joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d3e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e823
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00462104
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046779d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468db3
test eax, eax
je 0x43d4fc
mov ecx, dword [esp + 0x3c]
call fcn.004677ca
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d4c0
push edi
mov ecx, esi
call fcn.00464e3a
mov ecx, esi
call fcn.0043d660
cmp dword [esp + 0x38], 1
jne 0x43d4f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00464f75
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43ff20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43ff53
push esi
call fcn.00443030
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43ff4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43ffd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43ffc2
mov eax, dword [esi + 8]
test eax, eax
je 0x43ff77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43ffbe
cmp eax, 2
je 0x43ffc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43ff6a
cmp eax, 3
je 0x43ff9d
cmp eax, 1
jne 0x43ff6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43ff6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43ff6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440000
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43ffe8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440000
add esp, 4
pop esi
ret
Function at 0x44cc90
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44ccda
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44cd09
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44cd4b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x462efa
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462f32
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.00460fb1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460f89
jmp 0x462f3e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4645f4
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 0x464636
call fcn.0046a19f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464636
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46462d
xor eax, eax
jmp 0x46463e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464644
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a6cf
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 0x46a6fd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a71b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a635
jmp 0x46a71b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a71b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a635
test edi, edi
mov eax, edi
jne 0x46a705
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001ea9
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1006068]
push esi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1001ee8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x1001294
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
jmp 0x1001f53
push 0x100119c
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 8]
lea eax, [ebp + eax*2 - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1001f60
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x1001f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp + 8]
push 0x100126c
call sub.ntdll.dll_DbgPrint
add esp, 0xc
mov eax, dword [ebp + 0x10]
push esi
push dword [eax]
call fcn.01001e3b
jmp 0x1001fa7
mov esi, 0x100125c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1001f9a
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push dword [ebp + 8]
push esi
push 0x100122c
call sub.ntdll.dll_DbgPrint
mov eax, dword [ebp + 0x10]
add esp, 0x10
push edi
push dword [eax]
call fcn.01001e3b
pop edi
jmp 0x1001fa7
push 0x1006838
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.010020b8
leave
ret 0xc

Function at 0x10020b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1006068]
jne 0x10020c1
ret
jmp 0x10020c6
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1006068]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x1006840]
test eax, eax
je 0x10020ea
call eax
cmp dword [0x1006844], 0
je 0x1002131
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x1006844]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.010020b8
add ebp, 0x2a8
leave
ret
Function at 0x10021d7
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
push 0x1001388
call fcn.01002e40
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1002218
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x1002222
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x100236f
mov eax, dword [esi + 0x10]
mov dword [0x10062fc], eax
mov eax, dword [esi + 4]
mov dword [0x1006308], eax
mov eax, dword [esi + 8]
mov dword [0x100630c], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x1006300], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x10062fc], 2
je 0x1002263
or byte [0x1006301], 0x80
mov eax, dword [0x1006308]
shl eax, 8
add eax, dword [0x100630c]
mov dword [0x1006304], eax
call fcn.0100217b
mov dword [ebp - 0x1c], eax
push ebx
call fcn.01002dec
pop ecx
test eax, eax
jne 0x10022aa
cmp dword [0x10062ec], 2
je 0x1002297
call fcn.01002654
push 0x1c
call fcn.010024f3
push 0xff
call fcn.01002375
pop ecx
pop ecx
mov dword [ebp - 4], ebx
call fcn.01002c0f
test eax, eax
jge 0x10022be
push 0x1b
call fcn.01002156
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1006bd4], eax
call fcn.01002ae9
mov dword [0x10062e4], eax
call fcn.01002a48
test eax, eax
jge 0x10022e4
push 8
call fcn.01002156
pop ecx
call fcn.010027fe
test eax, eax
jge 0x10022f5
push 9
call fcn.01002156
pop ecx
call fcn.010023a5
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x1002308
push eax
call fcn.01002156
pop ecx
mov eax, dword [0x100631c]
mov dword [0x1006320], eax
push eax
push dword [0x1006314]
push dword [0x1006310]
call fcn.01001ddc
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1002337
push esi
call fcn.010024b3
call fcn.010024d5
jmp 0x1002369
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002e7b
ret
Function at 0x10024f3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x1006078]
je 0x100250b
inc eax
cmp eax, 0x12
jb 0x10024fc
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1006078]
mov dword [ebp + 8], esi
jne 0x1002651
mov eax, dword [0x10062ec]
cmp eax, 1
push ebx
je 0x1002621
test eax, eax
jne 0x1002540
cmp dword [0x1006070], 1
je 0x1002621
cmp ecx, 0xfc
je 0x1002650
push edi
push 6
pop ecx
mov esi, 0x10016f8
mov edi, 0x1006340
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x100635a
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x100645e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100258e
push 5
pop ecx
mov esi, 0x10016e0
mov edi, 0x100635a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002593
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10025c6
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025a7
sub eax, edx
push 3
lea eax, [eax + 0x100631f]
push 0x10016dc
push eax
call fcn.01003090
add esp, 0xc
mov edx, 0x1006340
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10025ce
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100607c]
mov esi, 0x10016d8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025e9
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10025f5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10016b0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01002f95
add esp, 0xc
pop edi
jmp 0x1002650
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1002650
mov esi, dword [esi + 0x100607c]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1002638
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x1002f95
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100676c], ebx
push esi
push edi
jne 0x1003015
push 0x1001788
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003050
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100177c
push edi
call esi
test eax, eax
mov dword [0x100676c], eax
je 0x1003050
push 0x100176c
push edi
call esi
push 0x1001758
push edi
mov dword [0x1006770], eax
call esi
cmp dword [0x10062fc], 2
mov dword [0x1006774], eax
jne 0x1003015
push 0x100173c
push edi
call esi
test eax, eax
mov dword [0x100677c], eax
je 0x1003015
push 0x1001724
push edi
call esi
mov dword [0x1006778], eax
mov eax, dword [0x1006778]
test eax, eax
je 0x100305a
call eax
test eax, eax
je 0x1003041
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100677c]
test eax, eax
je 0x1003041
test byte [ebp - 8], 1
jne 0x100305a
cmp dword [0x1006308], 4
jb 0x1003054
or byte [ebp + 0x12], 0x20
jmp 0x1003079
xor eax, eax
jmp 0x1003089
or byte [ebp + 0x12], 4
jmp 0x1003079
mov eax, dword [0x1006770]
test eax, eax
je 0x1003079
call eax
mov ebx, eax
test ebx, ebx
je 0x1003079
mov eax, dword [0x1006774]
test eax, eax
je 0x1003079
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100676c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003f5e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1003f8c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x1003f93
cmp ebx, dword [eax + 4]
jae 0x1003f93
xor eax, eax
jmp 0x1004183
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1003fa4
xor eax, eax
inc eax
jmp 0x1004182
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1003fba
cmp ecx, edx
jae 0x10040ff
cmp dword [eax + 4], 0
je 0x1003fc3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1003fab
cmp dword [ebp + 8], 0
je 0x1003fe5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10040ff
cmp eax, esi
jae 0x10040ff
mov eax, dword [0x1006788]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100400a
cmp dword [esi*4 + 0x1006790], edi
je 0x1004103
inc esi
cmp esi, eax
jl 0x1003ff8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100417f
cmp dword [ebp - 8], 0x1000000
jne 0x100417f
test byte [ebp - 0xc], 0xcc
je 0x1004088
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100417f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100417f
cmp word [eax + 0x18], 0x10b
jne 0x100417f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100417f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1004088
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1004088
test byte [ecx + 0x27], 0x80
jne 0x10040ff
push 1
push 0x10067d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1003f9c
mov ecx, dword [0x1006788]
test ecx, ecx
mov edx, ecx
jle 0x10040bc
lea eax, [ecx*4 + 0x100678c]
cmp dword [eax], edi
je 0x10040bc
dec edx
sub eax, 4
test edx, edx
jg 0x10040b0
test edx, edx
jne 0x10040ed
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10040c9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10040e1
lea eax, [edx*4 + 0x1006790]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x10040cf
cmp ecx, 0x10
jge 0x10040ed
inc ecx
mov dword [0x1006788], ecx
push 0
push 0x10067d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1003f9c
xor eax, eax
jmp 0x1004182
test esi, esi
jle 0x1003f9c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x10067d0
call ebx
test eax, eax
jne 0x1003f9c
cmp dword [esi*4 + 0x1006790], edi
je 0x1004159
mov eax, dword [0x1006788]
lea esi, [eax - 1]
test esi, esi
jl 0x1004147
cmp dword [esi*4 + 0x1006790], edi
je 0x1004143
dec esi
jns 0x1004137
test esi, esi
jge 0x1004157
cmp eax, 0x10
jge 0x1004152
inc eax
mov dword [0x1006788], eax
lea esi, [eax - 1]
jmp 0x1004159
je 0x1004171
xor ecx, ecx
test esi, esi
jl 0x1004171
lea eax, [ecx*4 + 0x1006790]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100415f
push 0
push 0x10067d0
call ebx
jmp 0x1003f9c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004d76
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.01004e60
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004e11
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10062fc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x1004e11
cmp eax, 1
je 0x1004e32
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004e11
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1004dde
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1004e0d
xor eax, eax
inc eax
jmp 0x1004e51
cmp edi, eax
jae 0x1004e15
xor eax, eax
jmp 0x1004e51
cmp eax, esi
jae 0x1004e1c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10062fc]
jmp 0x1004e35
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4215c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c496b
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.004b732c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x421642
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004b499e
mov eax, dword [eax]
push 0x50a268
push eax
call fcn.00493014
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004b75b7
test bl, bl
je 0x421642
push 0x50a268
lea ecx, [esp + 0xc]
call fcn.004b7993
push 0x50dde4
lea ecx, [esp + 0xc]
call fcn.004b7993
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 0x42167e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004b75b7
jmp 0x421749
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 0x421702
lea edx, [esp + 0x7c]
push 0x50dde0
push edx
call fcn.00493014
add esp, 8
test eax, eax
je 0x421702
lea eax, [esp + 0x7c]
push 0x50dddc
push eax
call fcn.00493014
add esp, 8
test eax, eax
je 0x421702
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 0x421692
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.004b75b7
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 0x421f40
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 0x421fa2
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