joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f4580
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push 0x5027ab
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
mov eax, dword [eax]
sub esp, 0x108
push esi
lea ecx, [esp + 4]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x4f4681
mov ecx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0xff
lea eax, [esp + 0x14]
push eax
push esi
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x4f4656
push ebx
lea ecx, [ecx]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.00403991
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x124], 0
call fcn.004f4580
mov esi, eax
mov eax, dword [esp + 0x10]
test esi, esi
setne bl
add eax, 0xfffffff0
mov dword [esp + 0x11c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4f4638
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x4f4655
mov ecx, dword [esp + 0xc]
push 0xff
lea eax, [esp + 0x18]
push eax
push 0
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4f45e0
pop ebx
cmp esi, 0x103
pop edi
je 0x4f4667
cmp esi, 0x3f2
jne 0x4f4681
mov edx, dword [esp + 0x120]
mov eax, dword [edx]
push eax
mov eax, dword [esp + 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 8

Function at 0x4f4b70
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4f4ba3
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 0xc
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4f4bf9
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4f4bf9
test esi, esi
jne 0x4f4bf9
pop edi
mov eax, 1
pop esi
ret 0xc
pop edi
xor eax, eax
pop esi
ret 0xc

Function at 0x4f5930
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, dword [ecx]
test esi, esi
je 0x4f595a
mov eax, dword [0x55b59c]
test eax, eax
je 0x4f595a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f595a
cmp esi, dword [eax + 8]
jge 0x4f595a
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + esi*4]
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4f5a90
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4f5ac4
call fcn.004d1fe0
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x4f5b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4f5b83
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x10]
cmp eax, ecx
mov ecx, dword [esp + 0x14]
jl 0x4f5b77
test ecx, ecx
jne 0x4f5bc3
mov edx, dword [esi + 0xc]
pop edi
pop esi
mov dword [edx + eax*4], ecx
pop ebx
ret 8
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
jne 0x4f5bdb
call fcn.004d1fe0
xor esi, esi
lea edi, [ebx + 0x1c]
push edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
mov dword [esi + ecx], edx
push edi
mov dword [ebx + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4f5be6
mov eax, dword [ebx + 0xc]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4f5bf6
mov ecx, eax
call fcn.004f5a80
mov esi, eax
jmp 0x4f5b98
mov ecx, dword [ebx + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4f5c02
call fcn.004d1fe0
mov edx, dword [esi + 8]
mov ecx, dword [ebx + 0xc]
mov edi, dword [esi + 0xc]
sub ecx, edx
shl ecx, 2
lea edi, [edi + edx*4]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0xc]
mov dword [esi + 8], eax
mov ecx, dword [ebx]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [edx + ecx*4], eax
pop ebx
ret 8
Function at 0x4f5c70
Capabilities:
Set thread local storage value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
push edi
mov edi, 1
cmp eax, edi
mov ebx, ecx
mov dword [esp + 0xc], edi
jle 0x4f5cdb
push ebp
mov ebp, dword [esp + 0x1c]
nop
test ebp, ebp
je 0x4f5cb0
mov eax, dword [ebx + 0x10]
cmp dword [eax + edi*8 + 4], ebp
je 0x4f5cb0
mov ecx, dword [esi + 0xc]
cmp dword [ecx + edi*4], 0
je 0x4f5cca
mov dword [esp + 0x10], 0
jmp 0x4f5cca
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + edi*4]
test ecx, ecx
je 0x4f5cc0
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi*4], 0
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x4f5c90
mov eax, dword [esp + 0x10]
test eax, eax
pop ebp
je 0x4f5d3d
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4f5d19
cmp eax, esi
mov edx, dword [ebx + 0x18]
jne 0x4f5d00
mov eax, dword [esi + edx]
mov dword [ebx + 0x14], eax
jmp 0x4f5d19
mov ecx, dword [edx + eax]
cmp ecx, esi
je 0x4f5d0f
mov eax, ecx
test eax, eax
jne 0x4f5d00
jmp 0x4f5d19
test eax, eax
je 0x4f5d19
mov ecx, dword [edx + esi]
mov dword [edx + eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebx]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x4f5d50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
mov edi, ecx
lea ebp, [edi + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4f5d8c
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f5db4
mov ecx, dword [esp + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.004f5c70
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
ret 8
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4f5db4
push ebx
mov ebx, dword [esp + 0x10]
push esi
lea esp, [esp]
mov esi, dword [eax + 4]
push ebx
push eax
mov ecx, edi
call fcn.004f5c70
test esi, esi
mov eax, esi
jne 0x4f5da0
pop esi
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
ret 8
Function at 0x4f5dc0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x503182
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4f5e10
mov eax, dword [0x55b59c]
test eax, eax
jne 0x4f5e07
mov ecx, 0x55b5a0
mov dword [esp + 8], ecx
mov dword [esp + 0x14], eax
call fcn.004f5a90
mov dword [esp + 0x14], 0xffffffff
mov dword [0x55b59c], eax
mov ecx, eax
call fcn.004f5800
mov dword [edi], eax
mov eax, dword [0x55b59c]
mov ecx, dword [eax]
mov esi, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f5e33
cmp esi, dword [eax + 8]
jge 0x4f5e33
mov edx, dword [eax + 0xc]
mov eax, dword [edx + esi*4]
test eax, eax
jne 0x4f5e4a
call dword [esp + 0x1c]
mov ecx, dword [0x55b59c]
mov esi, eax
mov eax, dword [edi]
push esi
push eax
call fcn.004f5b50
mov eax, esi
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4f6980
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x501d4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0xc
call fcn.004d51d0
mov esi, eax
add esp, 4
mov dword [esp + 4], esi
test esi, esi
mov dword [esp + 0x10], 0
je 0x4f69c9
mov ecx, esi
call fcn.004d50e0
mov dword [esi], vtable.COleException.0
mov dword [esi + 8], 0
jmp 0x4f69cb
xor esi, esi
mov eax, dword [esp + 0x18]
push 0x5497dc
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 8], eax
mov dword [esp + 0x20], esi
call fcn.004b0e0c
pop esi
nop
nop
Function at 0x4ff550
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
call dword [0x551110]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov word [esp + 4], 2
jne 0x4ff5ba
push eax
call dword [sym.imp.WSOCK32.dll_htonl]
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.WSOCK32.dll_htons]
push 0x10
lea edx, [esp + 8]
mov word [esp + 0xa], ax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_bind]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop esi
mov eax, ecx
add esp, 0x10
ret 8
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4ff584
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x4ff5e0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
call dword [0x551110]
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push esi
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4ff630
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4ff656
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [edi]
mov word [esp + 0xa], ax
push 0x10
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call dword [edx + 0x34]
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x4ff670
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
call dword [0x551110]
mov esi, dword [esp + 0x28]
xor eax, eax
test esi, esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov word [esp + 8], 2
jne 0x4ff6df
push 0xffffffffffffffff
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [edi]
mov word [esp + 0xa], ax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x3c]
pop edi
pop esi
add esp, 0x10
ret 0x14
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4ff6aa
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4ff703
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
jmp 0x4ff6a6
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 0x14
Function at 0x4ffbe0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 8]
push esi
push 0
push eax
push 2
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4ffc64
push 0
push esi
push eax
call fcn.004ff720
call fcn.004f2070
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x2c]
mov eax, dword [esi + 4]
push ecx
push 0x373
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
je 0x4ffc64
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.004ff550
test eax, eax
je 0x4ffc4c
mov eax, 1
pop esi
ret 0x10
push edi
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx + 0x10]
push edi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x4fffc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
mov ecx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
lea edx, [esp + 4]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov edi, edx
test edi, edi
je 0x500055
mov eax, dword [esp + 0xa]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
mov edx, dword [esp + 0x20]
movzx ecx, ax
mov eax, dword [esp + 0xc]
push eax
mov dword [edx], ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
test eax, eax
jne 0x500039
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.0040165c
mov eax, edi
pop edi
add esp, 0x14
ret 8
mov ecx, eax
push esi
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x500040
sub ecx, esi
pop esi
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.0040165c
mov eax, edi
pop edi
add esp, 0x14
ret 8

Function at 0x40285d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4093ec], 0
push esi
jne 0x402894
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40286e
mov dword [ecx*4 + 0x4093e8], eax
inc ecx
cmp ecx, 0x100
jl 0x402869
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4028c5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4093e8]
xor eax, esi
inc ecx
dec edx
jne 0x4028a7
pop edi
not eax
pop esi
ret 0xc
Function at 0x401450
Capabilities:
Capture microphone audio
Create thread
Delete file
Resume thread

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov al, 0x4d
push edi
mov byte [esp + 0x17], al
mov byte [esp + 0x18], al
push 1
mov al, 0x4c
xor ebx, ebx
push 0x77
mov edi, ecx
push str.YaveInOpen
mov byte [esp + 0x20], 0x57
mov byte [esp + 0x21], 0x49
mov byte [esp + 0x22], 0x4e
mov byte [esp + 0x25], 0x2e
mov byte [esp + 0x26], 0x44
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
mov byte [esp + 0x29], bl
call fcn.0054a430
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push eax
lea eax, [esp + 0x18]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], eax
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
push 0x77
push str.YaveInGetNumDevs
call fcn.0054a430
add esp, 0xc
push eax
push str.WINMM.DLL
call ebp
push eax
call esi
lea edx, [esp + 0x24]
push 0x5d7050
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
test eax, eax
jne 0x401507
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x118
ret
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
push eax
push 4
push edi
push 0x4016d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x20]
push 0x20000
push ebx
lea edx, [edi + 0x46]
push ecx
lea ebp, [edi + 0x18]
push edx
push 0xffff
push ebp
mov dword [edi + 0x2c], eax
call dword [esp + 0x28]
test eax, eax
je 0x401550
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x118
ret
lea esi, [edi + 0x30]
mov dword [esp + 0x10], 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
mov dword [ecx + 0x10], ebx
mov edx, dword [esi]
mov dword [edx + 0x14], ebx
mov eax, dword [esi]
mov ecx, dword [ebp]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov eax, dword [esp + 0x10]
add esi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x40155b
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebp]
push 0x20
mov eax, dword [edi + edx*4 + 0x30]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
mov byte [edi + 0x44], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x118
ret
Function at 0x4032a0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push str.Mozilla_4.0__compatible_
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x4032e3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x428]
push ebp
push SysReAllocStringLen
push ebp
push ebp
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, ebp
jne 0x40330d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov ecx, dword [esp + 0x42c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40339f
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call ebp
test esi, esi
je 0x403361
cmp word [esp + 0x24], 0x5a4d
jne 0x403388
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x403390
jmp 0x403335
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x414
ret
Function at 0x405aa0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x160
cmp eax, 0xffffffff
jne 0x405ab6
mov eax, 0x80
jmp 0x405ab8
or al, 0x80
mov edx, dword [esp + 0x164]
push 0x4010
lea ecx, [esp + 4]
push 0x160
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 4]
add esp, 0x160
ret
Function at 0x407270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56d2f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
lea eax, [esp + 0x30]
mov edi, 1
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.0055249d
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.0054b052
cmp eax, 0xffffffff
jne 0x4072d8
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0055249d
mov dword [esp + 0x14], edi
jmp 0x407399
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0054afda
mov bl, 3
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0054b052
cmp eax, 0xffffffff
jne 0x40730d
push 0x5d7050
lea ecx, [esp + 0x10]
call fcn.005528b1
jmp 0x407377
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0054afda
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.00552861
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00552728
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x14]
call fcn.0054af5e
mov eax, dword [eax]
push 0x5c0ed8
push eax
call fcn.005336d0
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.00552728
test bl, bl
je 0x407377
push 0x5c0ed8
lea ecx, [esp + 0x10]
call fcn.00552b04
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0055249d
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x24], 2
call fcn.00552728
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.00552728
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.00552728
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x407f60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x56d36b
push eax
mov dword fs:[0], esp
sub esp, 0x354
xor eax, eax
push ebx
mov ebx, dword [esp + 0x368]
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x15c]
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx - 1], 0x5c
je 0x407fb1
mov edi, 0x5c0ed8
mov dword [esp + 0x14], edi
jmp 0x407fbd
mov dword [esp + 0x14], 0x5d7050
mov edi, dword [esp + 0x14]
push edi
push ebx
lea eax, [esp + 0x164]
push str._s_s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
jne 0x407ffa
xor al, al
jmp 0x408144
cmp byte [esp + 0x48], 0x2e
je 0x408127
test byte [esp + 0x1c], 0x10
je 0x40803d
lea eax, [esp + 0x48]
lea ecx, [esp + 0x260]
push eax
push edi
push ebx
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x260]
mov ecx, esi
push edx
call fcn.00407f60
jmp 0x408127
mov eax, dword [0x5d2724]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10]
push ecx
push edi
push ebx
push str._s_s_s
push edx
mov dword [esp + 0x380], 0
call fcn.0054b3fa
mov eax, dword [esi + 0xb4]
mov ebp, dword [esi + 0xac]
add esp, 0x14
test eax, eax
jne 0x4080b6
mov eax, dword [esi + 0xbc]
push 0xc
lea ecx, [esi + 0xb8]
push eax
push ecx
call fcn.0054cf5e
mov ecx, dword [esi + 0xbc]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x4080b6
inc ecx
mov edx, dword [esi + 0xb4]
mov dword [eax], edx
mov dword [esi + 0xb4], eax
sub eax, 0xc
dec ecx
jne 0x4080a2
mov edi, dword [esi + 0xb4]
push 1
mov eax, dword [edi]
mov dword [esi + 0xb4], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov edx, dword [esi + 0xb0]
lea ebp, [edi + 8]
inc edx
push ebp
mov dword [esi + 0xb0], edx
call fcn.0054b4ab
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00552861
mov eax, dword [esi + 0xac]
test eax, eax
je 0x4080ff
mov dword [eax], edi
jmp 0x408105
mov dword [esi + 0xa8], edi
lea ecx, [esp + 0x10]
mov dword [esi + 0xac], edi
mov dword [esp + 0x36c], 0xffffffff
call fcn.00552728
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407ffa
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret 4