joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401080
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548119
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x4010b5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
jmp 0x4010bb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 1
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x39]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 4], 1
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.004072f0
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x1c]
ja 0x40111c
mov ecx, dword [0x559070]
push ecx
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00407200
jmp 0x40112d
push 0
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407100
cmp dword [ebp - 0x18], 0x10
jb 0x40113b
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x70], ecx
jmp 0x401141
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x401154
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x74], edx
jmp 0x40115a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x70]
push edx
push 1
push 0
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 0x49]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 3
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.004072f0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407030
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004072f0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x401320
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x401339
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
jmp 0x40133f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0x10
jb 0x401352
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x401358
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov esp, ebp
pop ebp
ret
Function at 0x402420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548342
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x84], ecx
fldz
fstp qword [ebp - 0x1c]
mov dword [ebp - 0x50], 0
jmp 0x402458
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x64
jge 0x402477
fild dword [ebp - 0x50]
sub esp, 8
fstp qword [esp]
call fcn.004023b0
add esp, 8
fadd qword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
jmp 0x40244f
push 0x559468
push 0x5b63c8
call fcn.00409cf0
add esp, 8
mov dword [ebp - 0x7c], eax
push 0xa
mov ecx, dword [ebp - 0x7c]
call fcn.004038e0
mov ecx, dword [ebp - 0x7c]
call fcn.00403b00
mov dword [ebp - 0x4c], str.tg:__setlanguage_langclassic_zh_cn
push 1
push 0
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00417a0d
test eax, eax
jne 0x4024d7
push 0xffffffffffffffff
push 0
push 0x64
call fcn.00415ae3
xor eax, eax
jmp 0x402659
push 0
call fcn.004173c7
add esp, 4
push str.MicrosoftMFCSamples
mov ecx, dword [ebp - 0x84]
call fcn.004146fe
push 0x401ac0
call fcn.00402410
add esp, 4
push 0
call fcn.0052b285
push 4
mov ecx, dword [ebp - 0x84]
call fcn.00410bea
push str.Settings
mov ecx, dword [ebp - 0x84]
call fcn.00412eed
call fcn.00401a70
call fcn.0052b4bc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x84]
call fcn.004129c9
mov ecx, dword [ebp - 0x84]
call fcn.00412a16
push 0x8c
call fcn.00410a76
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x58], 0
je 0x402586
push 0x559ad8
push 0x559f6c
push 0x55991c
push 0x80
mov ecx, dword [ebp - 0x58]
call fcn.00416736
mov dword [ebp - 0x88], eax
jmp 0x402590
mov dword [ebp - 0x88], 0
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.004150fd
lea ecx, [ebp - 0x48]
call fcn.00411a00
mov dword [ebp - 4], 1
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.00410c70
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x84]
call fcn.00414f4d
test eax, eax
jne 0x402601
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00411a6a
mov eax, dword [ebp - 0x5c]
jmp 0x402659
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x84]
mov eax, dword [edx + 0x134]
call eax
push 5
mov ecx, dword [ebp - 0x84]
mov ecx, dword [ecx + 0x20]
call fcn.00415dc8
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00411a6a
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x416367
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x552f46
call fcn.0052d2dd
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41638c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4163de
call fcn.004290dc
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f6c0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0052f25b
push eax
call fcn.00410e2d
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00411108
mov eax, esi
call fcn.0052d3b5
ret 8

Function at 0x416f66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x416fae
call fcn.0044f018
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x416fae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x416ff1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x416fda
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x416fda
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x416fee
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x419355
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0044f018
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41938e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00418f97
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4193ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x419410
cmp dword [edi + 0x74], 0
jne 0x419410
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0044f018
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004193ad
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f53f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41f586
call fcn.0044f018
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41f586
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41f5a2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041f044
mov esi, eax
test edi, edi
je 0x41f5a0
test ebx, ebx
je 0x41f5a0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41fb14
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x41fb38
mov eax, dword [esi]
push 0
call dword [eax + pe_nt_image_headers32]
test eax, eax
jne 0x41fb46
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + pe_nt_image_headers32]
jmp 0x41fb32
xor eax, eax
inc eax
pop esi
ret

Function at 0x4546cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4546e3
mov edi, dword [esi + 0xc]
jmp 0x454723
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4546fc
call fcn.00426b83
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x454711
call fcn.00426b83
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x454723
call fcn.00426b83
call fcn.0044f018
cmp dword [eax + 0x3c], 0
je 0x454738
push edi
mov ecx, ebx
call fcn.004534ff
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004545e5
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x454756
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x454762
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x46c62e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46c648
call fcn.0044f018
mov esi, dword [eax + 0xc]
push dword [0x5b2d98]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46c666
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46c65e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46c693
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46c660
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046c55c
mov esi, eax
jmp 0x46c685

Function at 0x4717b8
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4717f6
push 0x562630
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x471804
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x471804
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x471806
cmp dword [esi + 4], 0
je 0x471804
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x47cc51
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041d9c2
call fcn.004111a8
cmp eax, esi
pop esi
jne 0x47cc6d
mov ecx, 0x5b27e0
jmp fcn.004596cd
ret

Function at 0x499769
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x54f5d8
call fcn.0052d2dd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f3c0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4997cb
call fcn.0044e8db
cmp eax, 1
jne 0x4997cb
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004151c6
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00411c53
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00411108
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00411108
mov eax, esi
call fcn.0052d3b5
ret 0x10
Function at 0x4997f4
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x54f5d8
call fcn.0052d2dd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040f3c0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x499856
call fcn.0044e8db
cmp eax, 1
jne 0x499856
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004151c6
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00411c53
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00411108
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00411108
mov eax, esi
call fcn.0052d3b5
ret 0x14

Function at 0x5107ce
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0051048d
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x510818
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041d5a5
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00414baf
jmp 0x510823
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004557ec
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x510829
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00415be7
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x510866
call fcn.0051048d
mov dword [esi + 0xc], 1
jmp 0x51086b
call fcn.0051048d
cmp dword [esi], 0
je 0x5108b4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x51088c
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041d5a5
jmp 0x51089e
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.0040f760
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00414baf
jmp 0x5108d8
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x5108d8
push dword [esi]
push dword [ebp + 8]
call fcn.004557ec
pop esi
pop ebp
ret 0xc

Function at 0x52d2ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5aeb30]
jne 0x52d2d8
repz ret
jmp fcn.0053ad37
Function at 0x5416c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5aeb30]
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.00533872
and dword [ebp - 0x14], 0
cmp dword [0x5b61fc], 0
mov dword [ebp - 0x18], eax
jne 0x541776
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x54181e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x54181e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x587274
push ebx
mov dword [0x5b61fc], eax
call edi
push eax
call esi
push 0x587260
push ebx
mov dword [0x5b6200], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5b6204], eax
call edi
push eax
call esi
mov dword [0x5b620c], eax
test eax, eax
je 0x541776
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5b6208], eax
mov eax, dword [0x5b6208]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5417cf
cmp dword [0x5b620c], ecx
je 0x5417cf
push eax
call esi
push dword [0x5b620c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5417cf
test ebx, ebx
je 0x5417cf
call edi
test eax, eax
je 0x5417c6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5417c6
test byte [ebp - 8], 1
jne 0x5417cf
or dword [ebp + 0x10], 0x200000
jmp 0x541802
mov eax, dword [0x5b6200]
cmp eax, dword [ebp - 0x18]
je 0x541802
push eax
call esi
test eax, eax
je 0x541802
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x541802
mov eax, dword [0x5b6204]
cmp eax, dword [ebp - 0x18]
je 0x541802
push eax
call esi
test eax, eax
je 0x541802
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5b61fc]
call esi
test eax, eax
je 0x54181e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x541820
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052d2ce
leave
ret
Function at 0x49bf15
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00492111
and dword [ebp - 4], 0
cmp dword [0x4d124c], 0
mov ebx, eax
jne 0x49bfc6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49c077
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ae8f8
push edi
call esi
test eax, eax
je 0x49c077
push eax
call fcn.0049209f
mov dword [esp], 0x4ae8e8
push edi
mov dword [0x4d124c], eax
call esi
push eax
call fcn.0049209f
mov dword [esp], 0x4ae8d4
push edi
mov dword [0x4d1250], eax
call esi
push eax
call fcn.0049209f
mov dword [esp], 0x4ae8b8
push edi
mov dword [0x4d1254], eax
call esi
push eax
call fcn.0049209f
pop ecx
mov dword [0x4d125c], eax
test eax, eax
je 0x49bfc6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049209f
pop ecx
mov dword [0x4d1258], eax
mov eax, dword [0x4d1258]
cmp eax, ebx
je 0x49c01e
cmp dword [0x4d125c], ebx
je 0x49c01e
push eax
call fcn.0049211a
push dword [0x4d125c]
mov esi, eax
call fcn.0049211a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49c01e
test edi, edi
je 0x49c01e
call esi
test eax, eax
je 0x49c015
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49c015
test byte [ebp - 0xc], 1
jne 0x49c01e
or dword [ebp + 0x10], 0x200000
jmp 0x49c057
mov eax, dword [0x4d1250]
cmp eax, ebx
je 0x49c057
push eax
call fcn.0049211a
pop ecx
test eax, eax
je 0x49c057
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49c057
mov eax, dword [0x4d1254]
cmp eax, ebx
je 0x49c057
push eax
call fcn.0049211a
pop ecx
test eax, eax
je 0x49c057
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d124c]
call fcn.0049211a
pop ecx
test eax, eax
je 0x49c077
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49c079
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000148c
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp + 0xc]
pop ebp
ret 0xc
Function at 0x1000cb80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 4]
lea ecx, [esi*8]
imul edx, edi
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0xc], ebx
add edx, esi
mov esi, 8
lea edx, [eax + edx*8]
mov eax, dword [ebx + 0x10]
sub eax, ecx
mov ecx, esi
cmp eax, esi
cmovl ecx, eax
mov eax, dword [ebx + 0x18]
shl edi, 3
sub eax, edi
cmp eax, esi
cmovl esi, eax
cmp ecx, 8
jne 0x1000cc33
cmp esi, ecx
jne 0x1000cc33
mov ecx, dword [ebp + 8]
mov esi, 8
add ecx, 2
nop
movzx eax, byte [edx]
lea ecx, [ecx + 8]
mov byte [ecx - 0xa], al
movzx eax, byte [edx + 1]
mov byte [ecx - 9], al
movzx eax, byte [edx + 2]
mov byte [ecx - 8], al
movzx eax, byte [edx + 3]
mov byte [ecx - 7], al
movzx eax, byte [edx + 4]
mov byte [ecx - 6], al
movzx eax, byte [edx + 5]
mov byte [ecx - 5], al
movzx eax, byte [edx + 6]
mov byte [ecx - 4], al
movzx eax, byte [edx + 7]
add edx, 8
mov byte [ecx - 3], al
mov eax, dword [ebx + 0x14]
add eax, 0xfffffff8
add edx, eax
sub esi, 1
jne 0x1000cbe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 8
nop dword [eax]
mov edx, dword [ebp + 0x10]
xor esi, esi
mov ecx, dword [ebx + 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], edi
cmp edx, ecx
jge 0x1000cc6e
cmp edi, dword [ebx + 0x18]
jge 0x1000cc6e
mov ecx, dword [ebx + 0x14]
imul ecx, edi
add ecx, dword [ebp + 0x10]
add ecx, dword [ebx + 4]
mov cl, byte [ecx + esi]
jmp 0x1000cc9f
cmp dword [ebx + 0x24], 0
je 0x1000cc79
mov byte [eax], 0xff
jmp 0x1000cca1
cmp edx, ecx
jl 0x1000cc81
dec ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebx + 0x18]
cmp edi, ecx
jl 0x1000cc8c
dec ecx
mov dword [ebp + 8], ecx
mov ecx, dword [ebx + 0x14]
imul ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov cl, byte [ecx + ebx]
mov ebx, dword [ebp - 0xc]
mov byte [eax], cl
inc esi
inc eax
inc edx
cmp esi, 8
jl 0x1000cc45
inc edi
sub dword [ebp - 4], 1
jne 0x1000cc40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc