joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ded0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x49aa46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x514548]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.0048a927
cmp dword [0x5314f4], ebx
je 0x46df40
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004884f0
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x514548]
push ebp
push edi
mov edi, 1
mov dword [0x5314f4], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x46df69
mov dword [esp + 0x20], ebx
jmp 0x46df70
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.0048ca71
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004885dd
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x46dfce
mov dword [esp + 0x14], ebx
jmp 0x46dfd5
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x46dfef
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x46dfe9
cmp eax, 2
jne 0x46dfef
mov dword [esp + 0x18], edi
jmp 0x46dff3
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x46e001
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00489f5d
mov edi, eax
cmp edi, ebx
jne 0x46e011
xor eax, eax
jmp 0x46e014
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x46e03c
mov ecx, esi
call fcn.0048ca71
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x46e054
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x5314f4], 0
test eax, eax
je 0x46e07d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x46e07d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004884f0
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004884f0
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x46ff80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ac38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0048f15e
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.0046fec0
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0048f08c
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x470047
cmp dword [esp + 0x40], 1
jne 0x470045
cmp ecx, eax
jge 0x470047
mov eax, ecx
cmp eax, 0x12c
jge 0x470053
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004700a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048f1d0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x474370
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x49b126
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x514548]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.0048a927
mov edx, dword [0x514548]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4743ca
mov dword [esp + 0x1c], ebx
jmp 0x4743d1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.0048ca71
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004885dd
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x474422
mov dword [esp + 0x14], ebx
jmp 0x474429
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x474444
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x47443e
cmp eax, 2
jne 0x474444
mov dword [esp + 0x18], edi
jmp 0x474448
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x474456
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00489f5d
mov edi, eax
cmp edi, ebx
jne 0x474466
xor eax, eax
jmp 0x474469
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x474491
mov ecx, esi
call fcn.0048ca71
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4744ad
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4744cc
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4744cc
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004884f0
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004884f0
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x48a927
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48a95f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048894b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00488923
jmp 0x48a96b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48c19b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48c1dd
call fcn.004926b8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48c1dd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48c1d4
xor eax, eax
jmp 0x48c1e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048c1eb
pop edi
pop esi
pop ebx
ret 4

Function at 0x492be8
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 0x492c16
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492c34
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492b4e
jmp 0x492c34
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492c34
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492b4e
test edi, edi
mov eax, edi
jne 0x492c1e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x49545e
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x495486
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x495497
push 2
call edi
test ax, ax
jge 0x495497
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00489f5d
cmp dword [esi + 0x30], ebx
jne 0x495571
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00489f5d
cmp eax, dword [esp + 0x34]
jne 0x495571
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x49550d
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x495552
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x495571
cmp eax, 0x205
je 0x495571
cmp eax, 0x201
je 0x495571
cmp eax, 0x204
je 0x495571
cmp eax, ebx
jne 0x495538
cmp dword [esp + 0x1c], 0x1b
je 0x495571
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5332ec]
jbe 0x495567
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4954ca
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401530
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
lea eax, [ebp - 0x108]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str._uninsep.bat
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x20c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [ebp - 0x20c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x310]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x310]
push ecx
call fcn.004043c0
add esp, 8
test eax, eax
je 0x4015d3
mov byte [eax], 0
push 0
push 0x80
push 2
push 0
push 0
lea edx, [ebp - 0x108]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4016a5
lea edi, [ebp - 0x20c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir__s__r_ndel___s_
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x108]
lea edx, [ecx + edx*2 + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
mov eax, edx
add eax, 3
and al, 0xfc
call fcn.00404380
lea eax, [ebp - 0x108]
mov esi, esp
lea ecx, [ebp - 0x310]
push eax
lea edx, [ebp - 0x20c]
push ecx
lea eax, [ebp - 0x20c]
push edx
push eax
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir__s__r_ndel___s_
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [ebp - 4]
mov edi, esi
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
lea edx, [ebp - 0x108]
push 0
push edx
push 0x40d178
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea esp, [ebp - 0x31c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016c0
Capabilities:
Create thread

Disassembly:
sub esp, 0x78
mov eax, dword [0x410f9c]
push esi
add eax, 0x1c
xor esi, esi
push eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], 0x40b1f4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x411028]
push eax
call fcn.004022a0
mov edx, dword [0x410f9c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 4]
push eax
push esi
push esi
push 0x401bb0
push esi
push esi
call fcn.004043e7
add esp, 0x18
lea ecx, [esp + 0x40]
call fcn.00401ba0
lea ecx, [esp + 0x64]
call fcn.00402710
lea ecx, [esp + 0x40]
lea edx, [esp + 0x48]
push ecx
push edx
push 0x410fa0
mov dword [esp + 0x4c], 0x40b1e8
mov dword [esp + 0x68], 0x40b1e4
mov dword [esp + 0x6c], 0x40b1e0
call fcn.00402440
mov eax, dword [0x410fa8]
push esi
push 0x403640
push esi
push 0x81
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
jne 0x4017b8
lea ecx, [esp + 0x40]
lea eax, [esp + 0x64]
neg ecx
sbb ecx, ecx
and ecx, eax
call fcn.004027f0
lea ecx, [esp + 0x18]
call fcn.004027d0
lea ecx, [esp + 0xc]
call fcn.004027d0
xor eax, eax
pop esi
add esp, 0x78
ret
mov ecx, dword [esp + 0x44]
push ebx
push ebp
push edi
push esi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 1
xor edi, edi
cmp ebx, esi
je 0x4017fc
push esi
push esi
push esi
lea edx, [esp + 0x3c]
push esi
push edx
call ebp
test eax, eax
jne 0x4017fc
mov eax, edi
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x18]
inc edi
call dword [eax + 4]
test eax, eax
jne 0x4017d8
xor ebx, ebx
push esi
push esi
lea ecx, [esp + 0x38]
push esi
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, 0xffffffff
je 0x4017d4
cmp eax, esi
je 0x401859
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call dword [eax]
test eax, eax
jne 0x40183c
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x30]
push eax
call fcn.004024d0
add esp, 4
test eax, eax
je 0x4017d4
mov ebx, 1
xor edi, edi
jmp 0x4017d4
mov ecx, dword [0x410f9c]
mov esi, dword [esp + 0x38]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x411028]
push eax
call fcn.00402320
mov edx, dword [0x410f9c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x70]
neg ecx
sbb ecx, ecx
and ecx, eax
call fcn.004027f0
lea ecx, [esp + 0x14]
call fcn.00401e80
pop edi
pop ebp
mov eax, esi
pop ebx
pop esi
add esp, 0x78
ret
Function at 0x401ec0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov dword [0x411010], 0x40d168
mov dword [0x410f9c], 0x410fa0
mov ecx, dword [esp + 0xd4]
mov dword [0x410fa0], 0x84
push ecx
push ebx
push 0x410fa0
mov dword [0x411004], 0x300
call fcn.004020e0
mov ebp, dword [sym.imp.KERNEL32.dll_HeapCreate]
push ebx
push ebx
push ebx
call ebp
mov dword [0x410fb8], eax
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x40], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x4c], 2
jne 0x401f7c
cmp dword [esp + 0x40], 5
jae 0x401fdf
mov eax, dword [esp + 0x2c]
cmp eax, 1
jbe 0x401fdf
lea edx, [eax + eax]
or ecx, 0xffffffff
xor eax, eax
test edx, 0x80000000
jne 0x401f9f
shl edx, 1
shr ecx, 1
inc eax
cmp eax, 0x20
jl 0x401f8d
mov edx, dword [0x410fb8]
shr ecx, 1
mov dword [0x411014], ecx
lea ecx, [ecx*4 + 4]
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x411018], eax
xor esi, esi
push ebx
push ebx
push ebx
call ebp
mov ecx, dword [0x411018]
inc esi
mov dword [ecx + esi*4 - 4], eax
mov eax, dword [0x411014]
cmp esi, eax
jbe 0x401fc4
jmp 0x401feb
mov dword [0x411018], ebx
mov dword [0x411014], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x411024], eax
mov dword [0x411028], ebx
call fcn.00404633
add esp, 4
cmp eax, ebx
je 0x402014
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x402016
xor eax, eax
cmp eax, ebx
mov dword [0x411028], eax
je 0x402025
mov dword [0x41102c], ebx
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0xdc]
push edx
push eax
call fcn.004016c0
mov ecx, dword [0x410f9c]
add esp, 8
add ecx, 0x1c
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x41102c]
cmp eax, ebx
je 0x40206d
cmp dword [eax + 4], ebx
jle 0x40206d
mov edx, dword [eax]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x41102c]
mov esi, eax
cmp esi, ebx
je 0x402083
mov ecx, esi
call fcn.004027d0
push esi
call fcn.004043af
add esp, 4
mov ecx, dword [0x410f9c]
mov dword [0x41102c], ebx
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x411028]
cmp esi, ebx
je 0x4020b3
mov ecx, esi
call fcn.00402790
push esi
call fcn.004043af
add esp, 4
push 0x410fa0
call fcn.00402170
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 0x10
Function at 0x40b580
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46bf4b
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.004605c0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b602
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045e36d
mov eax, dword [eax]
push 0x4ab1d0
push eax
call fcn.004507f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046084b
test bl, bl
je 0x40b602
push 0x4ab1d0
lea ecx, [esp + 0xc]
call fcn.00460bdb
push 0x4aed4c
lea ecx, [esp + 0xc]
call fcn.00460bdb
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 0x40b63e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046084b
jmp 0x40b709
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 0x40b6c2
lea edx, [esp + 0x7c]
push 0x4aed48
push edx
call fcn.004507f4
add esp, 8
test eax, eax
je 0x40b6c2
lea eax, [esp + 0x7c]
push 0x4aed44
push eax
call fcn.004507f4
add esp, 8
test eax, eax
je 0x40b6c2
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 0x40b652
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.0046084b
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 0x40bf00
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 0x40bf62
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 0x40bf70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46bfcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b56d0]
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 0x40c0a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40bfd6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046084b
xor eax, eax
jmp 0x40c11f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00460988
push esi
lea ecx, [esp + 0xc]
call fcn.00460c17
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 0x40c0fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040bf00
test eax, eax
jne 0x40c0fd
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 closesocket
mov ecx, edi
call fcn.0040bf00
test eax, eax
jne 0x40c0fd
lea eax, [esp + 0x14]
push 0x4aed60
push eax
call fcn.00451830
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c0dc
lea ecx, [esp + 0x14]
push 0x4aed5c
push ecx
call fcn.004517b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c0dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c0df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00460938
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40bfee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046084b
xor eax, eax
jmp 0x40c11f
mov byte [esi], 0
push 0x4aed58
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.0046084b
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