joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e5e0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044e730
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44e600
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44e5e1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044e730
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44e600
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44e630
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44e687
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44e69d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044e6c0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44e6c0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44e750
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44e799
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44ec10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x471e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044e7c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044e840
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044e840
lea ecx, [esi + 0xc]
call fcn.004639a9
lea ecx, [esi + 0x10]
call fcn.004639a9
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00451070
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00451070
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00451070
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00463a1e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00463a1e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44f8b8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x472098
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44f8c8
call fcn.0044fde0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44f9ab
cmp byte [edi], 0
je 0x44f9ab
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44f8ed
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044e5e0
test eax, eax
jne 0x44f90d
push 0x49c890
lea ecx, [esi + 0x38]
call fcn.00463b5b
jmp 0x44f9ab
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044e630
test eax, eax
jne 0x44f93c
mov ecx, esi
call fcn.0044e730
push edi
add esi, 0x38
push 0x49c86c
push esi
call fcn.004619ba
add esp, 0xc
jmp 0x44f9ab
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00450660
test eax, eax
je 0x44f9a4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044fa80
test eax, eax
jne 0x44f9c0
push edi
lea eax, [esi + 0x38]
push 0x49c848
push eax
call fcn.004619ba
add esp, 0xc
mov ecx, esi
call fcn.0044fde0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44fa68
mov ecx, dword [0x49cb5c]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004619ba
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044e6e0
test eax, eax
jne 0x44fa2a
push 0x49c82c
lea ecx, [esi + 0x38]
call fcn.00463b5b
jmp 0x44fa3a
push 0xfa
mov ecx, esi
call fcn.00450660
test eax, eax
jne 0x44fa57
mov ecx, esi
call fcn.0044fde0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00463a1e
jmp 0x44f9ab
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00463a1e
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x465dc2
Capabilities:
Get graphical window text

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

Function at 0x4674b3
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 0x4674f5
call fcn.0046d031
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4674f5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4674ec
xor eax, eax
jmp 0x4674fd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467503
pop edi
pop esi
pop ebx
ret 4

Function at 0x46d561
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 0x46d58f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d5ad
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d4c7
jmp 0x46d5ad
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d5ad
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d4c7
test edi, edi
mov eax, edi
jne 0x46d597
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001710
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.10017a60
mov eax, dword [0x10023008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2000
lea eax, [ebp - 0x2004]
push 0
push eax
call fcn.100061d0
push str._FileDialogHelper_
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.1000b055
add esp, 0x18
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1fde]
push 0xfed
push eax
call fcn.10001560
push dword [eax + 4]
push dword [eax]
call fcn.1000b031
push 0x100214c0
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.1000b0b9
add esp, 0x28
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001ddf
mov esp, ebp
pop ebp
ret

Function at 0x10002bd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [0x10024014], 0
jne 0x10002d4c
lea ecx, [ebp - 0x68]
call fcn.10005100
lea ecx, [ebp - 0x50]
call fcn.10005100
push 8
lea eax, [ebp - 0x18]
push eax
push 0x10018364
call fcn.10004730
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10
lea ecx, [ebp - 0x28]
push ecx
push 0x1001838c
call fcn.10004730
push eax
push 0x10
lea edx, [ebp - 0x38]
push edx
push 0x10018378
call fcn.10004730
push eax
push str._S_S__x_S
lea eax, [ebp - 0x68]
push eax
call fcn.10005460
add esp, 0x18
lea ecx, [ebp - 0x68]
call fcn.10005540
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10002d3c
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x10
lea edx, [ebp - 0x28]
push edx
push 0x1001838c
call fcn.10004730
push eax
push 0x10
lea eax, [ebp - 0x38]
push eax
push 0x10018378
call fcn.10004730
push eax
push str._S_S__x
lea ecx, [ebp - 0x50]
push ecx
call fcn.10005460
add esp, 0x14
lea ecx, [ebp - 0x50]
call fcn.10005540
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10002d28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10002cdc
mov dword [ebp - 0xc], 1
jmp 0x10002ce3
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x10024014], eax
cmp dword [ebp - 0x10], 0
je 0x10002d1e
cmp dword [0x10024014], 0
je 0x10002d1e
mov ecx, dword [0x10024014]
mov dword [ecx], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x50]
call fcn.10005150
lea ecx, [ebp - 0x68]
call fcn.10005150
cmp dword [0x10024014], 0
je 0x10002d68
mov edx, dword [0x10024014]
push edx
call fcn.100035e0
add esp, 4
jmp 0x10002d6a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100044a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x10023010], 0xffffffff
jne 0x10004513
push 0x114
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.100061d0
add esp, 0xc
mov dword [ebp - 0x11c], 0x114
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
ja 0x10004503
cmp dword [ebp - 0x118], 6
jne 0x100044fa
cmp dword [ebp - 0x114], 1
ja 0x10004503
mov dword [ebp - 4], 0
jmp 0x1000450a
mov dword [ebp - 4], 1
mov edx, dword [ebp - 4]
mov dword [0x10023010], edx
cmp dword [0x10023010], 1
jne 0x10004525
mov dword [ebp - 8], 1
jmp 0x1000452c
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x100048f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021e58
push 0x10006e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.10005730
test eax, eax
jne 0x10004965
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x10004965
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x10004965
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x10004991
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10004e70
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.10005850
test eax, eax
je 0x10004e86
xor eax, eax
jmp 0x10004f25
mov dword [ebp - 0x10], 0
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
push 0x8000
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 0xffffffff
je 0x10004f22
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10004f18
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x402570
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, edi
jne 0x40259b
xor al, al
jmp 0x40261f
push ebx
push esi
call fcn.00435c89
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4025ed
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4025ed
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4668c4
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4025ed
mov esi, dword [ebp - 8]
push 0xd
pop ecx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x44], 0xfeef04bd
sete byte [ebp - 1]
push ebx
call fcn.00435d1d
cmp byte [ebp - 1], 0
pop ecx
pop ebx
je 0x402594
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x10
mov dword [eax], ecx
movzx ecx, word [ebp - 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x38]
shr ecx, 0x10
mov dword [eax + 8], ecx
movzx ecx, word [ebp - 0x38]
mov dword [eax + 0xc], ecx
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x402a70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4744f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 1
push esi
call fcn.00402669
pop ecx
pop ecx
test al, al
je 0x402a99
mov al, 1
jmp 0x402c1c
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.004027a4
cmp dword [ebp - 0x10], 2
jae 0x402abc
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00401fd0
xor al, al
jmp 0x402c1c
mov eax, dword [ebp - 0x20]
push 8
pop esi
cmp dword [ebp - 0xc], esi
jae 0x402aca
lea eax, [ebp - 0x20]
push edi
push 0x5c
pop edi
cmp word [eax], di
jne 0x402ae8
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x402ade
lea eax, [ebp - 0x20]
cmp word [eax + 2], di
jne 0x402ae8
push 2
jmp 0x402b4f
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x402af3
lea eax, [ebp - 0x20]
push 2
add eax, 2
push 0x4668d0
push eax
call fcn.00439b4d
add esp, 0xc
test eax, eax
jne 0x402b52
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x402b17
lea eax, [ebp - 0x20]
cmp word [eax], 0x61
jb 0x402b2d
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x402b27
lea eax, [ebp - 0x20]
cmp word [eax], 0x7a
jbe 0x402b4d
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x402b37
lea eax, [ebp - 0x20]
cmp word [eax], 0x41
jb 0x402b52
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x402b47
lea eax, [ebp - 0x20]
cmp word [eax], 0x5a
ja 0x402b52
push 3
pop eax
jmp 0x402b54
xor eax, eax
push ebx
push 1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], edi
call fcn.00403105
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
je 0x402bdb
mov dword [ebp - 0x24], 0x5c
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x402b8d
lea eax, [ebp - 0x20]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x402b9f
lea eax, [ebp - 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x402bb1
call ebx
cmp eax, 0xb7
jne 0x402c0c
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x402bbd
lea eax, [ebp - 0x20]
push 0x5c
pop ecx
mov word [eax + esi*2], cx
push 1
inc esi
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403105
mov esi, eax
cmp esi, 0xffffffff
jne 0x402b81
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x402be7
lea eax, [ebp - 0x20]
xor esi, esi
push esi
push eax
call edi
test eax, eax
jne 0x402bfd
call ebx
cmp eax, 0xb7
je 0x402bfd
push esi
jmp 0x402c0e
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.00401fd0
mov al, 1
jmp 0x402c1a
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00401fd0
xor al, al
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00435bbb
leave
ret
Function at 0x402c29
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4744f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402cfa
mov ecx, 0x4668d8
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402c8a
test dx, dx
je 0x402c86
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402c8a
add eax, 4
add ecx, 4
test dx, dx
jne 0x402c64
xor eax, eax
jmp 0x402c8f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402cdd
mov ecx, 0x4668dc
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402cc4
test dx, dx
je 0x402cc0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402cc4
add eax, 4
add ecx, 4
test dx, dx
jne 0x402c9e
xor eax, eax
jmp 0x402cc9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402cdd
mov eax, dword [ebx]
lea ecx, [ebp - 0x254]
push ecx
push eax
push ebx
call fcn.00403289
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402c59
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00435bbb
leave
ret

Function at 0x402f07
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402f49
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0x6400000
jb 0x402f50
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
add eax, 0xa
push eax
call fcn.004303a6
mov esi, eax
pop ecx
cmp esi, ebx
je 0x402f42
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
mov eax, esi
jmp 0x402f4b
Function at 0x403b04
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x45f1dd
call fcn.004523a9
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x838]
push edx
push 1
xor esi, esi
push esi
push ecx
mov dword [ebp - 0x834], esi
push eax
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x838], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
cmp dword [ebp - 0x838], esi
jne 0x403b61
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov word [ebx], ax
jmp 0x403c91
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push esi
push eax
mov dword [ebp - 0x830], esi
call fcn.00435bd0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], esi
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x834]
push eax
push esi
lea eax, [ebp - 0x83c]
push eax
push esi
mov dword [ebp - 4], esi
push edi
push dword [ebp - 0x838]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x834], esi
call edi
test eax, eax
jne 0x403c47
cmp dword [ebp - 0x83c], 1
je 0x403be9
cmp dword [ebp - 0x83c], 2
je 0x403be9
cmp dword [ebp - 0x83c], 7
jne 0x403c47
cmp dword [ebp - 0x834], 0x800
jae 0x403bfd
lea eax, [ebp - 0x810]
jmp 0x403c09
push dword [ebp - 0x834]
call fcn.004303a6
pop ecx
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x830]
lea eax, [ebp - 0x83c]
push eax
push esi
push dword [ebp - 0x840]
push dword [ebp - 0x838]
call edi
test eax, eax
jne 0x403c47
push dword [ebp - 0x830]
lea ecx, [ebp - 0x82c]
call fcn.00401e48
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x830], esi
je 0x403c75
lea eax, [ebp - 0x810]
cmp dword [ebp - 0x830], eax
je 0x403c75
push dword [ebp - 0x830]
call fcn.00435bb0
pop ecx
lea eax, [ebp - 0x82c]
push eax
mov ecx, ebx
call fcn.00401a0b
push esi
push 1
lea ecx, [ebp - 0x82c]
call fcn.00401fd0
mov eax, ebx
call fcn.0045242c
ret

Function at 0x403c99
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], edi
je 0x403d19
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x403d0c
push 4
pop eax
cmp dword [ebp - 8], eax
je 0x403cf4
cmp dword [ebp - 8], 5
jne 0x403d0c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop esi
pop edi
leave
ret