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

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c720
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44c5f0
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 0x44c5d1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c720
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44c5f0
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 0x44c620
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 0x44c677
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44c68d
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.0044c6b0
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 0x44c6b0
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 0x44c740
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 0x44c789
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 0x44cc00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474040
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.0044c7b0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044c830
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044c830
lea ecx, [esi + 0xc]
call fcn.00465a62
lea ecx, [esi + 0x10]
call fcn.00465a62
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044f070
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044f070
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044f070
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00465ad7
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00465ad7
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44d8a8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474268
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 0x44d8b8
call fcn.0044ddd0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44d99b
cmp byte [edi], 0
je 0x44d99b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44d8dd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044c5d0
test eax, eax
jne 0x44d8fd
push 0x497470
lea ecx, [esi + 0x38]
call fcn.00465c14
jmp 0x44d99b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044c620
test eax, eax
jne 0x44d92c
mov ecx, esi
call fcn.0044c720
push edi
add esi, 0x38
push 0x49744c
push esi
call fcn.004633e7
add esp, 0xc
jmp 0x44d99b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044e660
test eax, eax
je 0x44d994
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.0044da70
test eax, eax
jne 0x44d9b0
push edi
lea eax, [esi + 0x38]
push 0x497428
push eax
call fcn.004633e7
add esp, 0xc
mov ecx, esi
call fcn.0044ddd0
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 0x44da58
mov ecx, dword [0x497704]
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.004633e7
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.0044c6d0
test eax, eax
jne 0x44da1a
push 0x49740c
lea ecx, [esi + 0x38]
call fcn.00465c14
jmp 0x44da2a
push 0xfa
mov ecx, esi
call fcn.0044e660
test eax, eax
jne 0x44da47
mov ecx, esi
call fcn.0044ddd0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00465ad7
jmp 0x44d99b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00465ad7
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x44fec0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44ff63
test eax, eax
jbe 0x44ff63
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44ff63
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44ff0e
xor esi, esi
jmp 0x44ff14
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44ff3f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004537d0
add esi, eax
push esi
mov ebx, esi
call fcn.004537d0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44ff20
pop ebp
test edi, edi
pop edi
jne 0x44ff63
test ebx, ebx
je 0x44ff63
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00455d20
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4500a5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4501bd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4501bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004674d7
mov esi, eax
test esi, esi
je 0x4501bd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4501bd
mov ecx, esi
call fcn.00450010
cmp edi, eax
jge 0x4501bd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x450143
mov dword [esp + 0x34], 1
jmp 0x45019e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4501bd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044f5e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x467e7b
Capabilities:
Get graphical window text

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

Function at 0x46956d
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 0x4695af
call fcn.0046f0e5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4695af
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4695a6
xor eax, eax
jmp 0x4695b7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004695bd
pop edi
pop esi
pop ebx
ret 4

Function at 0x46f615
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 0x46f643
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46f661
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046f57b
jmp 0x46f661
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46f661
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046f57b
test edi, edi
mov eax, edi
jne 0x46f64b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401e11
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x1fa4]
mov eax, 0x2024
call fcn.00415470
mov eax, dword [0x438970]
xor eax, ebp
mov dword [ebp + 0x1fa0], eax
mov eax, dword [ebp + 0x1fac]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1fb0]
xor edi, edi
cmp dword [ebp + 0x1fb8], ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], ebx
jl 0x401f1a
jg 0x401e66
cmp dword [ebp + 0x1fb4], ebx
jbe 0x401f1a
mov ecx, dword [ebp + 0x1fb4]
sub ecx, dword [ebp - 0x6c]
mov eax, dword [ebp + 0x1fb8]
sbb eax, edi
js 0x401e8d
jg 0x401e83
cmp ecx, 0x2000
jbe 0x401e8d
mov ecx, 0x2000
mov dword [ebp - 0x7c], ebx
jmp 0x401e90
mov dword [ebp - 0x7c], eax
push ebx
lea eax, [ebp - 0x64]
push eax
push ecx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x74]
call dword [0x42d0a0]
test eax, eax
je 0x401f53
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x401f53
cmp byte [ebp + 0x1fbc], bl
je 0x401ece
xor ecx, ecx
cmp eax, ebx
jbe 0x401ece
xor byte [ebp + ecx - 0x60], 0x88
inc ecx
cmp ecx, eax
jb 0x401ec4
xor esi, esi
cmp eax, ebx
jbe 0x401ef8
push ebx
lea ecx, [ebp - 0x70]
push ecx
sub eax, esi
push eax
lea eax, [ebp + esi - 0x60]
push eax
push dword [ebp - 0x78]
call dword [0x42d09c]
test eax, eax
je 0x401f34
add esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x64]
cmp esi, eax
jb 0x401ed4
add dword [ebp - 0x6c], eax
adc edi, ebx
cmp edi, dword [ebp + 0x1fb8]
jl 0x401e66
jg 0x401f1a
mov eax, dword [ebp + 0x1fb4]
cmp dword [ebp - 0x6c], eax
jb 0x401e66
xor eax, eax
mov ecx, dword [ebp + 0x1fa0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415458
add ebp, 0x1fa4
leave
ret
call dword [0x42d098]
push eax
mov eax, dword [ebp - 0x64]
sub eax, esi
push eax
push 0x42d3e8
call fcn.0040ac8e
add esp, 0xc
push 2
pop eax
jmp 0x401f1c
push edi
push dword [ebp - 0x6c]
call dword [0x42d098]
push eax
push dword [ebp - 0x64]
push 0x42d3cc
call fcn.0040ac8e
xor eax, eax
add esp, 0x14
inc eax
jmp 0x401f1c

Function at 0x40a4c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x4380c4]
mov dword [ebp - 4], 0x4380c4
jmp 0x40a529
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push edi
call fcn.00414f40
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00414dea
pop ecx
pop ecx
test esi, esi
jle 0x40a50b
mov ecx, eax
sub edi, eax
mov edx, esi
mov bl, byte [edi + ecx]
xor bl, 0xbb
mov byte [ecx], bl
inc ecx
dec edx
jne 0x40a4ff
push esi
push eax
push dword [ebp + 8]
mov byte [eax + esi], 0
call fcn.00415d7b
add esp, 0xc
test eax, eax
je 0x40a53a
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00414f40
pop ecx
test eax, eax
ja 0x40a4dd
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x40a535

Function at 0x40a68d
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x40a6bd
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edi
movsx edi, byte [edx]
mov eax, dword [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4380c8]
inc edx
dec esi
mov dword [ecx], eax
jne 0x40a69f
pop edi
pop esi
ret
Function at 0x40e3c8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7f9c]
mov eax, 0x801c
call fcn.00415470
mov eax, dword [0x438970]
xor eax, ebp
mov dword [ebp + 0x7f98], eax
mov eax, dword [ebp + 0x7fa4]
push ebx
push esi
mov esi, dword [ebp + 0x7fa8]
push edi
push dword [ebp + 0x7fac]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x7fb0]
push esi
push 0x42fbb0
mov dword [ebp - 0x7c], eax
call fcn.0040aced
push 0x42f4fc
push esi
call fcn.00416d48
xor edi, edi
add esp, 0x14
mov dword [ebp - 0x6c], eax
cmp eax, edi
jne 0x40e44e
push esi
lea eax, [ebp - 0x68]
push 0x42fb98
push eax
call fcn.00415e3b
lea eax, [ebp - 0x68]
push eax
call fcn.0040ac8e
lea eax, [ebp - 0x68]
push eax
call fcn.00404ac7
add esp, 0x14
cmp dword [ebp + 0x7fac], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x70], edi
jle 0x40e51f
mov ebx, dword [0x42d164]
mov edi, 0x8000
mov eax, dword [ebp + 0x7fac]
sub eax, dword [ebp - 0x70]
cmp eax, edi
jle 0x40e47a
mov eax, edi
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x74]
call fcn.00411565
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40e51f
push dword [ebp - 0x6c]
add dword [ebp - 0x70], esi
push esi
lea eax, [ebp - 0x68]
push 1
push eax
call fcn.0041a040
add esp, 0x10
cmp eax, esi
jne 0x40e51f
push dword [ebp - 0x6c]
call fcn.0041aa49
pop ecx
test eax, eax
jne 0x40e51f
call ebx
mov ecx, dword [ebp - 0x78]
add ecx, 0xc8
cmp ecx, eax
jae 0x40e510
call ebx
cmp dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
je 0x40e510
push dword [ebp - 0x74]
call fcn.00410a8b
mov dword [ebp - 0x80], eax
fild dword [ebp - 0x80]
pop ecx
fidiv dword [ebp + 0x7fb4]
fmul qword [0x42fb90]
call fcn.004199c6
push 0x64
pop ecx
push 0
sub ecx, eax
push ecx
push 0x402
push 0x3e9
push dword [ebp - 0x7c]
call dword [0x42d23c]
mov eax, dword [ebp + 0x7fac]
cmp dword [ebp - 0x70], eax
jl 0x40e46b
push dword [ebp - 0x6c]
call fcn.0041aa49
pop ecx
test eax, eax
je 0x40e55a
push 0x42fb7c
call fcn.0040ac8e
push dword [ebp - 0x6c]
call fcn.00417123
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp + 0x7f98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415458
add ebp, 0x7f9c
leave
ret
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp + 0x7fac]
jge 0x40e588
push dword [ebp + 0x7fac]
push eax
push 0x42fb60
call fcn.0040ac8e
add esp, 0xc
xor bl, bl
push dword [ebp - 0x6c]
call fcn.00417123
pop ecx
mov al, bl
jmp 0x40e542
mov bl, 1
jmp 0x40e57b
Function at 0x40f3d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x40f45d
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00416770
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40f41d
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x40f43f
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40f58c
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x40f485
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x40f490
xor eax, eax
jmp 0x40f4dc
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x40f4ad
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0040ec47
jmp 0x40f4bd
cmp ecx, 2
jne 0x40f4c6
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0040f0d5
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.00416770
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
cmp edx, 3
jb 0x40f507
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edi, [eax + ecx]
movzx eax, byte [edi]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edx, 0x106
jae 0x40f51b
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40f3db
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x40f58c
mov edi, dword [esi + 0x6c]
add edi, edx
cmp ecx, edi
jae 0x40f55b
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x40f540
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.00417a60
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x40f58c
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x40f58c
sub edi, ecx
add edi, 0x102
sub eax, ecx
cmp edi, eax
jbe 0x40f575
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.00417a60
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
leave
ret
Function at 0x410e5f
Capabilities:
Read file on windows

Disassembly:
and dword [esi], 0
mov eax, dword [esi]
mov ecx, dword [esp + 8]
sub ecx, eax
push ecx
mov ecx, dword [esp + 8]
add eax, ecx
push eax
push dword [edi + 4]
call fcn.004289cf
add esp, 0xc
test eax, eax
jle 0x410e8d
add dword [esi], eax
mov ecx, dword [esi]
cmp ecx, dword [esp + 8]
jb 0x410e62
test eax, eax
jge 0x410eab
call fcn.0041ad0c
push dword [eax]
call fcn.0041ac5e
push eax
push 0xffffffffffffffff
push edi
call fcn.00410aba
add esp, 0x10
or eax, 0xffffffff
ret
test eax, eax
jne 0x410eb6
mov dword [edi + 0x28], 1
xor eax, eax
ret
Function at 0x427630
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49adcb
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.0048f505
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4276b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048c93d
mov eax, dword [eax]
push 0x4f6220
push eax
call fcn.0047ec64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048f790
test bl, bl
je 0x4276b2
push 0x4f6220
lea ecx, [esp + 0xc]
call fcn.0048fb20
push 0x4f9dfc
lea ecx, [esp + 0xc]
call fcn.0048fb20
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 0x4276ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048f790
jmp 0x4277b9
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 0x427772
lea edx, [esp + 0x7c]
push 0x4f9df8
push edx
call fcn.0047ec64
add esp, 8
test eax, eax
je 0x427772
lea eax, [esp + 0x7c]
push 0x4f9df4
push eax
call fcn.0047ec64
add esp, 8
test eax, eax
je 0x427772
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 0x427702
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.0048f790
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 0x428a10
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 0x428a72
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