joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x47aff8]
mov eax, esi
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x445688
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x14], edi
mov edx, edi
cmp edi, ecx
jb 0x4456c8
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x4456a5
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x445742
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x44573c
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x445704
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x445734
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x4456f0
test ecx, ecx
je 0x4457b3
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x445734
cmp ecx, 1
jbe 0x4457b3
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x445734
cmp ecx, 2
jbe 0x4457b3
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x4457b3
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x4456e0
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042dda0
add esp, 8
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x1f
jl 0x445674
mov ecx, dword [0x47b0d0]
test ecx, ecx
je 0x4457ac
mov esi, 0x47b0d0
mov bl, 0x2d
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x445788
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.0042de70
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x445780
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x445751
xor cl, 3
mov byte [eax + 5], cl
jmp 0x445751
Function at 0x446e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ebx]
push edi
push esi
push eax
mov eax, ebx
call fcn.00446490
mov ecx, dword [esi]
mov eax, dword [ebx + 0x34]
add ecx, 0x10
call fcn.0041b4e0
mov esi, eax
push 0x47eae0
push esi
call fcn.00454a75
mov edi, eax
add esp, 0x10
mov dword [ebp - 8], edi
test edi, edi
jne 0x446f05
mov ecx, dword [ebx + 0x34]
push esi
push str.Include_file_open_failed_n___s__n
push ecx
call fcn.0042e620
mov esi, dword [ebx + 0x34]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
lea ecx, [eax - 0x10]
add esp, 0xc
cmp ecx, eax
jae 0x446eef
lea edx, [ecx - 0x10]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [edx + 0x18]
mov dword [edx + 8], eax
add ecx, 0x10
add edx, 0x10
cmp ecx, dword [esi + 8]
jb 0x446ed4
mov ecx, dword [ebp - 4]
add dword [esi + 8], 0xfffffff0
push 0x131
push ecx
push ebx
call fcn.00445a10
add esp, 0xc
mov eax, dword [ebx + 0x34]
add dword [eax + 8], 0xfffffff0
mov edx, dword [ebx + 0x3c]
mov dword [edx + 4], 0
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [ebx + 0x34]
push 0x200
push ecx
push edx
push eax
call fcn.004488a0
mov ecx, dword [ebx + 0x3c]
mov dword [ecx], eax
mov edx, dword [ebx + 0x3c]
mov dword [edx + 8], 0x200
mov esi, dword [ebx + 0x3c]
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push 0x200
push 1
push eax
call fcn.0045abf6
add esp, 0x20
test eax, eax
je 0x446fda
mov edi, edi
add dword [esi + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
add ecx, 0x200
cmp ecx, eax
jbe 0x446fc0
lea edi, [eax + eax]
cmp edi, 0x7ffffffe
jb 0x446f8e
push 0
push str.lexical_element_too_long
push ebx
call fcn.00445a10
add esp, 0xc
lea ecx, [edi + 1]
cmp ecx, 0xfffffffd
ja 0x446fac
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [ebx + 0x34]
push edi
push edx
push eax
push ecx
call fcn.004488a0
add esp, 0x10
jmp 0x446fb8
mov edx, dword [ebx + 0x34]
push edx
call fcn.00448880
add esp, 4
mov dword [esi + 8], edi
mov edi, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push 0x200
push 1
push eax
call fcn.0045abf6
add esp, 0x10
test eax, eax
jne 0x446f60
push edi
call fcn.00454d73
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
add esp, 4
call fcn.00445b10
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 0x131
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448d60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x448d9b
push 0x495900
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, esi
call fcn.004489f0
mov edi, eax
test edi, edi
je 0x448d9b
inc dword [edi + 0x14]
push 0x495900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x448dbf
test esi, esi
je 0x448db7
push 0x495900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x448dd4
test esi, esi
jmp 0x448eca
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x448e09
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x448ec6
push 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00465200
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.00448a30
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x448e8d
push eax
mov eax, esi
call fcn.00448bb0
add esp, 4
push esi
call fcn.00448c40
add esp, 4
test eax, eax
je 0x448ebf
push esi
call fcn.00448ae0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
mov ebx, 1
test eax, eax
je 0x448ee3
add eax, edi
je 0x448ebf
push 0
push ebx
push edi
call eax
test eax, eax
jne 0x448ee0
mov eax, esi
call fcn.00449030
cmp dword [ebp + 0xc], 0
je 0x448ed7
push 0x495900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ebx
test eax, eax
je 0x448f14
push eax
call fcn.0045bc6a
add esp, 4
mov edi, esi
mov dword [esi + 0x18], eax
call fcn.004488f0
push 0x495900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], ebx
pop ebx
pop edi
mov dword [esi + 0x18], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x453d13
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4914c4]
jne 0x453d1d
repz ret
jmp fcn.0045bcbc
Function at 0x45a759
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x45a780
call fcn.00455a4b
mov dword [eax], esi
call fcn.00455a38
push 0x16
pop esi
mov dword [eax], esi
call fcn.0045e41b
mov eax, esi
jmp 0x45a7d5
test dword [ebp + 0xc], 0xfffffff9
jne 0x45a766
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45a7ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00455a5e
pop ecx
call fcn.00455a38
mov eax, dword [eax]
jmp 0x45a7d5
test al, 0x10
jne 0x45a7d3
test al, 1
je 0x45a7d3
test byte [ebp + 0xc], 2
je 0x45a7d3
call fcn.00455a4b
mov dword [eax], 5
call fcn.00455a38
mov dword [eax], 0xd
jmp 0x45a7a4
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46aa1d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4914c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045c822
and dword [ebp - 0x14], 0
cmp dword [0x49418c], 0
mov dword [ebp - 0x18], eax
jne 0x46aad0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46ab78
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x46ab78
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x479a5c
push ebx
mov dword [0x49418c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x494190], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x494194], eax
call edi
push eax
call esi
mov dword [0x49419c], eax
test eax, eax
je 0x46aad0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x494198], eax
mov eax, dword [0x494198]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46ab29
cmp dword [0x49419c], ecx
je 0x46ab29
push eax
call esi
push dword [0x49419c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46ab29
test ebx, ebx
je 0x46ab29
call edi
test eax, eax
je 0x46ab20
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46ab20
test byte [ebp - 8], 1
jne 0x46ab29
or dword [ebp + 0x10], 0x200000
jmp 0x46ab5c
mov eax, dword [0x494190]
cmp eax, dword [ebp - 0x18]
je 0x46ab5c
push eax
call esi
test eax, eax
je 0x46ab5c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46ab5c
mov eax, dword [0x494194]
cmp eax, dword [ebp - 0x18]
je 0x46ab5c
push eax
call esi
test eax, eax
je 0x46ab5c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49418c]
call esi
test eax, eax
je 0x46ab78
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46ab7a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453d13
leave
ret
Function at 0x10001820
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1001d080]
xor eax, ebp
mov dword [ebp - 4], eax
movzx ecx, word [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [0x1001ef5c]
push edi
push 2
push ecx
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x10001869
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008c28
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100018f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100018f2
mov edx, dword [ebp - 0x1c]
push 0
push 0x80
push 2
push 0
push 0
push 0x10000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x10001923
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0xe], eax
lea edx, [ebp - 0x18]
push edx
mov eax, 0x4d42
mov word [ebp - 0x14], ax
push 0xe
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0xe]
push esi
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xa], 0x36
call edi
test eax, eax
jne 0x10001905
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008c28
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x20]
push 0
lea ecx, [ebp - 0x18]
push ecx
push ebx
push edx
push esi
call edi
push esi
test eax, eax
je 0x100018ec
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.10008c28
mov esp, ebp
pop ebp
ret
Function at 0x100019b0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001501b
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x1001d080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x7ff
lea eax, [ebp - 0x80f]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x834], ebx
mov byte [ebp - 0x810], bl
call fcn.1000da00
add esp, 0xc
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x818], 0xf
mov dword [ebp - 0x81c], ebx
mov byte [ebp - 0x82c], bl
push ebx
push ebx
push ebx
push ebx
push str.99999999
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
je 0x10001abc
push ebx
push 0x40000000
push ebx
push ebx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
je 0x10001ab5
lea ecx, [ebp - 0x830]
push ecx
push 1
lea edx, [ebp - 0x810]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x10001aa6
lea eax, [ebp - 0x810]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001a76
sub eax, edx
push eax
lea eax, [ebp - 0x810]
lea ecx, [ebp - 0x82c]
call fcn.100021c0
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.1000da00
add esp, 0xc
cmp dword [ebp - 0x830], ebx
jne 0x10001a51
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x81c], ebx
jbe 0x10001aea
mov eax, dword [ebp - 0x82c]
cmp dword [ebp - 0x818], esi
jae 0x10001add
lea eax, [ebp - 0x82c]
push eax
call fcn.1000937a
add esp, 4
mov edi, eax
jmp 0x10001af0
mov edi, dword [ebp - 0x834]
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x81c], ebx
cmp dword [ebp - 0x818], esi
jae 0x10001b0a
lea eax, [ebp - 0x82c]
mov byte [eax], bl
cmp dword [ebp - 0x818], esi
jb 0x10001b23
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.10008c37
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10008c28
mov esp, ebp
pop ebp
ret
Function at 0x10002df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100150f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1001d080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor edi, edi
mov eax, 0x10018618
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10001750
lea eax, [ebp - 0x30]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServicesWINIO
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002efd
push 0x104
mov dword [ebp - 0x38], 0x104
call fcn.10008c1d
push 0x104
mov ebx, eax
push edi
push ebx
call fcn.1000da00
mov edx, dword [ebp - 0x30]
add esp, 0x10
lea ecx, [ebp - 0x38]
push ecx
push ebx
push edi
push edi
push str.DisplayName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10002ef1
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002eb1
sub eax, edx
mov edi, eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.10001750
cmp dword [ebp - 0x1c], 0
jbe 0x10002ef1
mov ecx, str.WINIO
mov edi, esi
call fcn.10005d90
test al, al
jne 0x10002eea
mov ecx, str.winio
call fcn.10005d90
test al, al
je 0x10002ef1
mov dword [ebp - 0x34], 1
push ebx
call fcn.100094bd
mov ebx, dword [ebp - 0x34]
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x10002f0f
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10008c37
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10008c28
mov esp, ebp
pop ebp
ret
Function at 0x10003250
Capabilities:
Create thread

Disassembly:
push esi
mov dword [0x1001ef54], 0
call fcn.10005bc0
push 0
push 0x1001ef60
call sym.MirclClient.dll_buffercheck
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10003460
push 0
push 0
call esi
push 0
push 0
push 0
push 0x100033d0
push 0
push 0
mov dword [0x1001f298], eax
call esi
push 0
push 0
push 0
push 0x10003310
push 0
push 0
call esi
pop esi
ret
Function at 0x10005660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015270
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1001d080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x50], eax
lea edi, [ebx + 0x48]
mov eax, str.http:__hi.baidu.com_go3gxn111111_blog_item_78aab003c92731e7a6ef3f17.html
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10001750
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.10001b50
add esp, 4
mov edx, dword [ebp - 0x50]
push ebx
push 0x8000000
push 2
push ebx
push 3
push 0x40000000
mov byte [ebp - 4], 1
push edx
mov dword [ebp - 0x4c], ebx
call dword [0x1001f2f8]
mov esi, eax
lea edi, [ebx + 0x10]
cmp esi, ebx
jbe 0x10005713
cmp esi, 0xffffffff
je 0x10005713
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x100056fb
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push ebx
lea ecx, [ebp - 0x4c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], edi
jb 0x10005724
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10008c37
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0x10005742
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10008c37
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10008c28
mov esp, ebp
pop ebp
ret 4
Function at 0x10006330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x1001d080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
push 0x1c
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x15c]
push eax
mov esi, 0x10000
mov edi, ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x100064c6
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x100063a0
cmp dword [ebp - 0x14c], 0x1000
jne 0x100064a1
test dword [ebp - 0x148], 0x100
jne 0x100064a1
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x150]
push ecx
add edx, eax
push edx
push eax
push str._8p.._8p___8p__n
call fcn.100071c0
push 0x40
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.1000da00
add esp, 0x1c
push 0
push 0x40
lea ecx, [ebp - 0x140]
push ecx
push esi
push edi
call ebx
test eax, eax
jne 0x10006418
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadProcessMemory_idh__failed:__d_n
jmp 0x10006499
mov edx, 0x5a4d
cmp word [ebp - 0x140], dx
jne 0x100064a1
push 0xf8
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.1000da00
mov edx, dword [ebp - 0x104]
add esp, 0xc
push 0
push 0xf8
lea ecx, [ebp - 0x100]
push ecx
add edx, esi
push edx
push edi
call ebx
test eax, eax
jne 0x10006468
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadProcessMemory_inh__failed:__d_n
jmp 0x10006499
cmp dword [ebp - 0x100], 0x4550
je 0x10006483
push str.__No_IMAGE_NT_SIGNATURE_n
call fcn.100071c0
add esp, 4
jmp 0x100064a1
mov eax, dword [ebp - 0xea]
test eax, 0x2000
je 0x100064f7
movzx eax, ax
push eax
push str.__Characteristics:__08x_n
call fcn.100071c0
add esp, 8
mov esi, dword [ebp - 0x150]
add esi, dword [ebp - 0x15c]
push 0x1c
lea eax, [ebp - 0x15c]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x100063a0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x57
je 0x100064e4
call edi
push eax
push esi
push str.VirtualQueryEx__08x__failed:__d_n
call fcn.100071c0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008c28
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008c28
mov esp, ebp
pop ebp
ret
Function at 0x100071c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1001d080]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7ff
lea eax, [ebp - 0x803]
push 0
push eax
mov byte [ebp - 0x804], 0
call fcn.1000da00
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.100099a9
add esp, 0x1c
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008c28
mov esp, ebp
pop ebp
ret

Function at 0x10007230
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001af48
push 0x1000c6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1001d080]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], dx
jne 0x100072d2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100072d2
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x100072d2
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x100072d2
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret