joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433fa1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0
push 2
mov dword [ebp - 0x234], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ecx, dword [ebp + 8]
push ecx
mov byte [esi], 0
call fcn.00433e20
add esp, 4
cmp byte [esi], 0
mov ebx, eax
jne 0x43407f
lea ecx, [ecx]
lea edx, [ebp - 0x234]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x43407f
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x840]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00413bee
lea edx, [ebp - 0x63c]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.00411706
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x438]
push edx
call fcn.0041167b
add esp, 0x24
test eax, eax
jne 0x434060
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x434073
test ebx, ebx
je 0x434076
mov eax, dword [ebp - 0x22c]
cmp ebx, eax
jne 0x434076
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov byte [esi], 1
cmp byte [esi], 0
je 0x433ff1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43408f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x4340f0
lea ecx, [ebp - 4]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [ebp - 4]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x434502
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [ebp + 8]
mov esi, eax
cmp edi, esi
jne 0x434526
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
test esi, esi
jne 0x434538
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x43454c
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x434646
push ebx
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [ebp + 8]
push 0
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [ebp - 4], eax
call esi
push 1
push edi
push ebx
call esi
mov ecx, dword [ebp - 4]
push 1
push ecx
push edi
call esi
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x43461b
push eax
push eax
push eax
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x12
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0x12
call dword [sym.imp.USER32.dll_keybd_event]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x434622
mov dword [ebp - 8], 4
jmp 0x434622
mov dword [ebp - 8], 3
mov ecx, dword [ebp - 4]
push 0
push ecx
push ebx
call esi
push 0
push edi
push ebx
call esi
mov edx, dword [ebp - 4]
push 0
push edx
push edi
call esi
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43466c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
test esi, esi
js 0x434704
jne 0x43468f
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
cmp esi, 0xf
jae 0x4346fc
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call edi
test eax, eax
je 0x4346fc
mov dword [ebp + 8], esi
fild dword [ebp + 8]
test esi, esi
jns 0x4346b5
fadd qword [0x48cd20]
fstp qword [ebp - 0x28]
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 8]
push ecx
call edi
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
call fcn.0040df40
fdivr qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jnp 0x4346bc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4348bf
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, bl
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
mov byte [ebp + 0xf], al
cmp byte [ebp + 0x10], al
je 0x434914
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push ebx
push esi
call fcn.00434807
push esi
call fcn.00434866
push 2
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push ebx
push esi
call fcn.00434807
push esi
call fcn.00434893
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4363e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
je 0x4363fd
mov eax, dword [eax]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
pop ebp
ret 8
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
pop ebp
ret 8

Function at 0x4364d8
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
jne 0x436505
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x43651e
push 1
jmp 0x436507
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
pop ebp
ret 8
Function at 0x436bd6
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push esi
push 0
push ecx
push 3
push edi
call ebx
test eax, eax
jne 0x436c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x436c33
mov edx, dword [esi]
push edx
call fcn.00436ba2
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x436c33
mov edx, dword [esi]
push esi
push edx
push eax
push 3
push edi
call ebx
test eax, eax
je 0x436c33
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc

Function at 0x436c7f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00436b2a
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
mov esi, eax
push 0
push esi
call edi
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
push 2
push 0
push 0
lea edx, [esi + 8]
push edx
call edi
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call edi
push eax
call ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push 0
push 0
push esi
push 0x436c3c
push 0
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x436ce8
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
and eax, 2
or eax, 4
push 0
shr eax, 1
push eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 0x14
Function at 0x436ea5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
xor ecx, ecx
xor edi, edi
mov dword [ebp + 0x14], ecx
test al, 1
je 0x436ec2
lea edi, [ecx + 1]
jmp 0x436ecb
test al, 2
je 0x436ecb
mov edi, 2
xor bl, bl
test al, 4
je 0x436f0a
lea eax, [ebp + 0x1c]
push eax
push 0xa
mov dword [ebp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, dword [ebp + 0x1c]
push 1
push ecx
lea edx, [ebp + 0x14]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x436f3f
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
or esi, 0x400
push esi
push edx
mov edx, dword [ebp + 8]
push 0
push edi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne bl
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x436f4d
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x440a02
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x194]
mov eax, dword [ebx + 4]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp + 0xc], eax
cmp ecx, dword [ebp + 0x10]
je 0x440abc
mov edi, 3
cmp dword [esi + 0x84], edi
jl 0x440ab3
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
cmp dword [eax], 0
je 0x440aaa
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 4], ecx
jne 0x440aaa
cmp byte [eax + 0x88], 0xb
je 0x440aaa
mov cl, byte [eax + 0x8b]
movzx edx, cl
cmp edx, dword [ebx + 0x194]
je 0x440a7a
cmp byte [ebx + 0x19c], 0
je 0x440aaa
cmp cl, 0xff
je 0x440aaa
cmp byte [eax + 0x88], 0xa
je 0x440aaa
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
test byte [eax + 0x8a], 0x40
je 0x440aaa
cmp byte [eax + 0x88], 0x1a
jne 0x440aaa
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
inc edi
cmp edi, dword [esi + 0x84]
jle 0x440a34
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x194], ecx
mov edi, 3
cmp dword [esi + 0x84], edi
jl 0x440b58
jmp 0x440ad2
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
cmp dword [eax], 0
je 0x440b4b
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 4], ecx
jne 0x440b4b
cmp byte [eax + 0x88], 0xb
je 0x440b4b
movzx edx, byte [eax + 0x8b]
cmp edx, dword [ebx + 0x194]
jne 0x440b4b
test byte [eax + 0x8a], 0x20
jne 0x440b4b
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
mov ecx, dword [eax]
push 4
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
mov eax, dword [eax]
test byte [eax + 0x8a], 0x40
je 0x440b4b
cmp byte [eax + 0x88], 0x1a
jne 0x440b4b
mov ecx, dword [eax]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
inc edi
cmp edi, dword [esi + 0x84]
jle 0x440ad2
mov edx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x18c]
push 0
push edx
push 0x130c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x44115a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4412d5
push eax
push 0x4a8630
call fcn.00430c69
mov dword [0x4a869c], eax
jmp 0x4412da
mov ecx, dword [0x4a8690]
mov edx, dword [ecx + eax*4]
push esi
mov esi, dword [edx]
cmp byte [esi + 0x3a], 0
push edi
mov edi, dword [esi]
je 0x4411c5
cmp dword [esi + 0x190], 0
mov byte [esi + 0x3a], 0
jl 0x4411c5
cmp byte [esi + 0x19c], 0
je 0x4411c5
mov eax, dword [esi + 0x198]
push eax
push esi
push 0x4a8630
call fcn.00440a02
mov byte [esi + 0x19c], 0
cmp ebx, 0x43
ja case.0x4411d5.7
movzx ecx, byte [ebx + 0x441312]
jmp dword [ecx*4 + 0x4412ea]
cmp byte [esi + 0x38], 0
je 0x441266
push ebx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call fcn.00434502
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
cmp byte [esi + 0x38], 0
jne 0x441266
push ebx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x44121e
cmp ebx, 4
je 0x44121e
push edi
call fcn.00434502
pop edi
mov byte [esi + 0x38], 1
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov byte [esi + 0x38], 0
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
mov byte [esi + 0x38], 1
cmp byte [esi + 0x38], 0
je 0x441266
push 6
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
push edi
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
push 0
mov byte [esi + 0x39], 0
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov edx, dword [esi]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
mov eax, dword [0x4a869c]
cmp eax, 0xffffffff
jne 0x441181
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x441c70
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
push esi
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x441d74
mov edi, dword [ebp + 0xc]
mov eax, edi
or eax, 0x20019
mov dword [ebp - 0xc], eax
jmp 0x441cc3
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push eax
push 0
lea edx, [ebp - 0x220]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x441d86
mov eax, dword [ebp - 8]
push edi
push eax
call fcn.00441c70
mov ecx, dword [ebp - 8]
add esp, 8
push ecx
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x441d86
lea edx, [ebp - 0x18]
xor ebx, ebx
push edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call fcn.00430d11
test al, al
je 0x441d2d
push ebx
push edi
lea eax, [ebp - 0x220]
push eax
push esi
lea ecx, [ebp - 0x18]
push ecx
call fcn.00441c4d
call eax
jmp 0x441d3b
lea edx, [ebp - 0x220]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
jne 0x441d7d
lea eax, [ebp - 0x18]
push eax
call fcn.00430ef3
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push ebx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x220]
push eax
push ebx
push esi
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x441cc0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
push ecx
call fcn.00430ef3
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4422ef
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, 1
push 0
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp dword [ebp + 0xc], 0
jne 0x442322
mov dword [ebp + 0xc], 0x400
cmp dword [ebp + 8], 0
je 0x44237c
lea esp, [esp]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00431a4d
add esp, 4
mov edi, eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push eax
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4423ac
mov eax, dword [ebp + 8]
test eax, eax
je 0x442373
push eax
push edi
lea ecx, [esi + 0x44]
push ecx
call fcn.004319e8
mov eax, dword [ebp + 8]
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x44232f
jmp 0x44237c
push edi
call fcn.004113ac
add esp, 4
mov edx, dword [esi + 8]
or edx, dword [esi + 0xc]
jne 0x442399
push edx
push 0xdeadbeef
push 0x21
push esi
call fcn.004422bc
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 1
push 0
push 0
push esi
call fcn.004422bc
pop edi
pop esi
pop ebx
pop ebp
ret 8
push edi
call fcn.004113ac
add esp, 4
push 0
push 0xdeadbeef
push 0x20
push esi
call fcn.004422bc
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4423cb
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x34]
push edi
push 0x488154
push eax
mov dword [ebp - 4], fcn.00414c26
call fcn.00414ba2
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x44241f
push eax
push 0xdeadbeef
push 0x1f
push esi
call fcn.004422bc
mov bl, al
lea eax, [ebp - 8]
push eax
call fcn.00431900
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 8], 1
jmp 0x44242b
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x44249d
mov eax, dword [ebp + 8]
test eax, eax
je 0x442471
push edi
push 1
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00414496
mov eax, dword [ebp + 8]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x44242b
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x4424c2
push eax
push 0xdeadbeef
push 0x21
push esi
call fcn.004422bc
lea ecx, [ebp - 8]
push ecx
mov bl, al
call fcn.00431900
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xdeadbeef
push 0x20
push esi
call fcn.004422bc
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.00431900
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push 0
push esi
call fcn.004422bc
lea edx, [ebp - 8]
push edx
mov bl, al
call fcn.00431900
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44255d
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp ecx, 1
jne 0x442578
movzx eax, word [esi + 0x8c]
jmp 0x44257c
movzx eax, word [esi + 0x58]
cmp ecx, 1
movsx edx, ax
lea ecx, [esi + 0xb0]
je 0x44258d
lea ecx, [esi + 0x7c]
mov eax, dword [esi + 0xc0]
push 0
cmp edx, 1
jne 0x4425a1
push 0
push 0
push edx
jmp 0x4425e8
cmp edx, 2
jne 0x4425e2
mov ecx, dword [ecx]
push str._local_
push ecx
push 3
jmp 0x4425e8
cmp byte [esi + 0xdc], 0
je 0x4425d9
push 8
lea eax, [ebp - 8]
push eax
push 0x32
push 0
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4425b2
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x442877
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x258]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x442906
jmp 0x4428a7
lea edx, [ebp - 0x22c]
push 0x487ca4
push edx
call fcn.0041330c
add esp, 8
test eax, eax
je 0x4428f4
lea eax, [ebp - 0x22c]
push 0x48ab2c
push eax
call fcn.0041330c
add esp, 8
test eax, eax
je 0x4428f4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.00433cc9
add esp, 0xc
test al, al
je 0x442920
mov bl, 1
lea ecx, [ebp - 0x258]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4428a7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
cmp byte [ebp + 0x14], 0
jne 0x442932
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp - 0x258]
push edx
push 0x48ab24
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x4429c4
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x4429b2
lea eax, [ebp - 0x22c]
push 0x487ca4
push eax
call fcn.0041330c
add esp, 8
test eax, eax
je 0x4429b2
lea ecx, [ebp - 0x22c]
push 0x48ab2c
push ecx
call fcn.0041330c
add esp, 8
test eax, eax
je 0x4429b2
lea edx, [ebp - 0x22c]
push edx
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
push edx
push eax
call fcn.00442877
test al, al
je 0x4429d2
push 0x48ab2c
call ebx
lea ecx, [ebp - 0x258]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44294d
push edi
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10