joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411b90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
cmp esi, edx
jg 0x411ba3
xor al, al
pop esi
add esp, 0xc
ret
add edx, ecx
mov dword [esp + 8], edx
mov edx, dword [eax + 0x14]
push ebp
xor ebp, ebp
test edx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 8], edx
jbe 0x411c4f
push ebx
push edi
mov edi, dword [eax + 0x18]
mov eax, dword [esp + 0x20]
lea ebx, [ecx + esi]
mov dword [esp + 0x18], ebx
nop
mov ecx, dword [edi]
mov edx, ecx
shr edx, 1
add edx, dword [esp + 0x14]
cmp edx, ebx
ja 0x411c49
test cl, 1
movzx esi, word [edi + 4]
je 0x411c2b
lea ecx, [esi + edx]
cmp ecx, ebx
ja 0x411c49
test edx, edx
je 0x411c34
test esi, esi
je 0x411c34
or eax, 0xffffffff
xor ecx, ecx
test esi, esi
jbe 0x411c27
nop
movzx ebx, byte [ecx + edx]
mov ebp, eax
and ebp, 0xff
xor ebx, ebp
shr eax, 8
xor eax, dword [ebx*4 + 0x450bf8]
add ecx, 1
cmp ecx, esi
jb 0x411c00
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
not eax
jmp 0x411c34
lea eax, [edx + 4]
cmp eax, ebx
ja 0x411c49
mov eax, dword [edx]
cmp eax, dword [edi + 8]
jne 0x411c49
add ebp, 1
add edi, 0xc
cmp ebp, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
jb 0x411bd0
mov edx, dword [esp + 0x10]
pop edi
pop ebx
xor eax, eax
cmp ebp, edx
pop ebp
sete al
pop esi
add esp, 0xc
ret

Function at 0x413220
Capabilities:
Write clipboard data

Disassembly:
push ebx
push esi
mov esi, eax
xor bl, bl
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x413277
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413235
sub eax, edx
push edi
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [esi]
mov byte [eax], cl
add esi, 1
add eax, 1
test cl, cl
jne 0x413256
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov bl, 1
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov al, bl
pop ebx
ret

Function at 0x4182de
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x418317
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00413bb4
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00413b8f
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x419e33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x419e76
call fcn.0041b5f4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x419e76
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x419e91
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004199ea
test ebx, ebx
mov esi, eax
je 0x419e8f
test edi, edi
je 0x419e8f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41c85e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x444de5
call fcn.004328b6
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0041b5f4
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41c8a9
call fcn.0041b5f4
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41c8ba
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41c8c7
or eax, 0xffffffff
jmp 0x41ca23
mov ecx, esi
call fcn.0041c3b0
mov dword [ebp - 0x14], eax
call fcn.004172e4
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41c945
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41c945
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41c945
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00415e98
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41c945
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41c945
mov ecx, ebx
call fcn.0041b843
test eax, eax
je 0x41c945
push 0
mov ecx, ebx
call fcn.0041b85e
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00418d16
push dword [ebp - 0x14]
call fcn.0041723c
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041c666
xor edi, edi
cmp eax, edi
je 0x41c9a2
test byte [esi + 0x3c], 0x10
je 0x41c98c
push 4
pop edi
mov ecx, esi
call fcn.0041b72a
test ax, 0x100
je 0x41c982
push 5
pop edi
push edi
mov ecx, esi
call fcn.00416dd2
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41c9a2
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041ba2d
or dword [ebp - 4], 0xffffffff
jmp 0x41c9cd
cmp dword [ebp - 0x28], edi
je 0x41c9db
push 1
mov ecx, ebx
call fcn.0041b85e
cmp dword [ebp - 0x2c], edi
je 0x41c9eb
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41ca04
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41ca04
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041c3ea
cmp dword [esi + 0x58], edi
je 0x41ca20
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043295b
ret
Function at 0x41dd3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x45e508]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x41dd7c
push 0x44a2d8
push 4
push eax
call fcn.00432cfb
push eax
call fcn.00401000
add esp, 0x10
jmp 0x41dd8e
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41ddfc
push edi
call fcn.00432cb7
mov edi, dword [eax]
call fcn.00432cb7
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00432134
add esp, 0x18
mov ebx, eax
call fcn.00432cb7
cmp dword [eax], 0
je 0x41dddc
call fcn.00432cb7
push dword [eax]
call fcn.004136ac
pop ecx
jmp 0x41dde3
call fcn.00432cb7
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41ddfc
cmp ebx, esi
jae 0x41ddfc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41ddfe
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f760
leave
ret
Function at 0x41ebcc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41ec12
call fcn.0041b5f4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41ec12
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41ec55
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41ec3e
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 0x41ec3e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41ec52
mov ecx, dword [esi + 0x4c]
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 0x420a3e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x420a6c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420a8a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004209a8
jmp 0x420a8a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x420a8a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004209a8
test edi, edi
mov eax, edi
jne 0x420a74
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x461870]
test ecx, ecx
je 0x420b4d
jmp 0x420a3d
ret 8

Function at 0x42f760
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e508]
jne 0x42f76a
repz ret
jmp fcn.00435a05
Function at 0x436cff
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x45e7d8]
je 0x436d1a
inc edi
cmp edi, 0x17
jb 0x436d0b
cmp edi, 0x17
jae 0x436e9a
push ebp
push 3
call fcn.0043e6ac
cmp eax, 1
pop ecx
je 0x436e66
push 3
call fcn.0043e6ac
test eax, eax
pop ecx
jne 0x436d4e
cmp dword [0x45e504], 1
je 0x436e66
cmp ebx, 0xfc
je 0x436e99
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x462070
push ebp
call fcn.00432cfb
add esp, 0xc
test eax, eax
je 0x436d84
push esi
push esi
push esi
push esi
push esi
call fcn.004319e0
add esp, 0x14
push 0x104
mov esi, 0x462089
push esi
push 0
mov byte [0x46218d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x436dc8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00432cfb
add esp, 0xc
test eax, eax
je 0x436dc8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004319e0
add esp, 0x14
push esi
call fcn.004329c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x436e0d
push esi
call fcn.004329c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x462384
push 0x44c15c
sub ecx, eax
push ecx
push eax
call fcn.004344ba
add esp, 0x14
test eax, eax
je 0x436e0d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004319e0
add esp, 0x14
jmp 0x436e0f
xor esi, esi
push 0x44c158
push ebx
push ebp
call fcn.00434894
add esp, 0xc
test eax, eax
je 0x436e2f
push esi
push esi
push esi
push esi
push esi
call fcn.004319e0
add esp, 0x14
push dword [edi*8 + 0x45e7dc]
push ebx
push ebp
call fcn.00434894
add esp, 0xc
test eax, eax
je 0x436e51
push esi
push esi
push esi
push esi
push esi
call fcn.004319e0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043e4ef
add esp, 0xc
jmp 0x436e99
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x436e99
cmp ebp, 0xffffffff
je 0x436e99
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45e7dc]
push dword [esi]
call fcn.004329c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43e4ef
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00437975
xor ebx, ebx
cmp dword [0x462610], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43e5c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43e6a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44cb80
push edi
call esi
cmp eax, ebx
je 0x43e6a5
push eax
call fcn.00437907
mov dword [esp], 0x44cb70
push edi
mov dword [0x462610], eax
call esi
push eax
call fcn.00437907
mov dword [esp], 0x44cb5c
push edi
mov dword [0x462614], eax
call esi
push eax
call fcn.00437907
mov dword [0x462618], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00434621
test eax, eax
pop ecx
pop ecx
je 0x43e593
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004319e0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43e5c5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00437907
cmp eax, ebx
pop ecx
mov dword [0x462620], eax
je 0x43e5c5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00437907
pop ecx
mov dword [0x46261c], eax
mov eax, dword [0x46261c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43e64a
cmp dword [0x462620], ecx
je 0x43e64a
push eax
call fcn.0043797e
push dword [0x462620]
mov esi, eax
call fcn.0043797e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43e64a
cmp edi, ebx
je 0x43e64a
call esi
cmp eax, ebx
je 0x43e617
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43e617
test byte [ebp - 0x18], 1
jne 0x43e64a
lea eax, [ebp - 0x10]
push eax
call fcn.00434658
test eax, eax
pop ecx
je 0x43e632
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004319e0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43e641
or dword [ebp + 0x10], 0x200000
jmp 0x43e685
or dword [ebp + 0x10], 0x40000
jmp 0x43e685
mov eax, dword [0x462614]
cmp eax, dword [ebp - 8]
je 0x43e685
push eax
call fcn.0043797e
cmp eax, ebx
pop ecx
je 0x43e685
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43e685
mov eax, dword [0x462618]
cmp eax, dword [ebp - 8]
je 0x43e685
push eax
call fcn.0043797e
cmp eax, ebx
pop ecx
je 0x43e685
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x462610]
call fcn.0043797e
cmp eax, ebx
pop ecx
je 0x43e6a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43e6a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4442ce
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45e508]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00444263
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00432dc0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44431d
cmp dword [ebp - 0x1c], 5
jb 0x444335
jmp 0x444331
cmp dword [ebp - 0x10], 1
jne 0x444335
cmp dword [ebp - 0x1c], 4
ja 0x444331
jne 0x444335
cmp dword [ebp - 0x18], 0
jbe 0x444335
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44dc64
call fcn.00444137
test eax, eax
jge 0x444356
mov byte [0x4626b9], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042f760
add ebp, 0x78
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019a8
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x4046e9]
lea edx, [fcn.00401a2c]
sub eax, edx
push eax
push fcn.00401a2c
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401337
push edi
call fcn.00401883
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004018d1
add esp, 0xc
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov edx, edi
inc edx
imul eax, edx
push eax
or edi, edi
je 0x401328
mov esi, 0
jmp 0x40132e
lea esi, [0x4070e4]
push esi
call fcn.00401a2c
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4019a8
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
push 0
push 0
call sub.USER32.DLL_GetWindow
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
call sub.KERNEL32.dll_GetLastError
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x403fb8
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00404168
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4040b6
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x404059
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40409c
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x404070
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40408b
test al, 0x40
je 0x404082
mov ecx, dword [edi + 0x20]
jmp 0x404089
test al, 0x80
je 0x40409c
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40409c
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x404028
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x43ece0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b028b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004a287f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x43ed62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a01d0
mov eax, dword [eax]
push 0x56b234
push eax
call fcn.004922d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a2b0a
test bl, bl
je 0x43ed62
push 0x56b234
lea ecx, [esp + 0xc]
call fcn.004a2ee6
push 0x56edac
lea ecx, [esp + 0xc]
call fcn.004a2ee6
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x43ed9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a2b0a
jmp 0x43ee69
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x43ee22
lea edx, [esp + 0x7c]
push 0x56eda8
push edx
call fcn.004922d4
add esp, 8
test eax, eax
je 0x43ee22
lea eax, [esp + 0x7c]
push 0x56eda4
push eax
call fcn.004922d4
add esp, 8
test eax, eax
je 0x43ee22
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43edb2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004a2b0a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x43f660
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x43f6c2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x43f6d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b030b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x577cf8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x43f808
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x43f736
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a2b0a
xor eax, eax
jmp 0x43f87f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a2c93
push esi
lea ecx, [esp + 0xc]
call fcn.004a2f22
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x43f85d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0043f660
test eax, eax
jne 0x43f85d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0043f660
test eax, eax
jne 0x43f85d
lea eax, [esp + 0x14]
push 0x56edc0
push eax
call fcn.00493480
mov esi, eax
add esp, 8
test esi, esi
jne 0x43f83c
lea ecx, [esp + 0x14]
push 0x56edbc
push ecx
call fcn.00493400
mov esi, eax
add esp, 8
test esi, esi
jne 0x43f83c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x43f83f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a2c43
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x43f74e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a2b0a
xor eax, eax
jmp 0x43f87f
mov byte [esi], 0
push 0x56edb8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004a2b0a
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4