joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401210
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42d625
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.00422a7b
mov edi, 1
lea edx, [esp + 0x10]
push edi
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], edi
call fcn.00420672
mov eax, dword [eax]
push 0x43b0d0
push eax
call fcn.00412c4d
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00422a0d
test bl, bl
je 0x4012b4
push 0x43b0d0
lea ecx, [esp + 0x10]
call fcn.00422d75
mov esi, dword [esp + 0x12c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00422782
mov dword [esp + 0x14], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 0
call fcn.00422a0d
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x401f00
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42da95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x104
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call fcn.00422a7b
mov esi, dword [esp + 0x124]
push str.UsbHab.cfg
mov edi, 1
push eax
push esi
mov dword [esp + 0x128], edi
call fcn.00422ca2
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 0
call fcn.00422a0d
mov ecx, dword [esp + 0x114]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x401fb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42dac5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x104
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call fcn.00422a7b
mov esi, dword [esp + 0x124]
push str.UsbPort.cfg
mov edi, 1
push eax
push esi
mov dword [esp + 0x128], edi
call fcn.00422ca2
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 0
call fcn.00422a0d
mov ecx, dword [esp + 0x114]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x403210
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
push 1
call fcn.0042621d
mov edi, dword [esp + 0xc]
push 0
push 0
push edi
push 0x4031d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + edi*4 + 0x87c], eax
pop edi
pop esi
ret 4
Function at 0x407330
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
mov esi, dword [esp + 0x118]
push edi
mov dword [esp + 0x10], ecx
mov bl, 0x41
mov eax, dword [0x43b2a4]
mov ecx, 0x40
mov dword [esp + 0x14], eax
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], bl
push ecx
call ebp
cmp eax, 2
jne 0x40738e
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
call fcn.004072c0
cmp esi, eax
jne 0x40738e
cmp dword [esp + 0x120], edx
je 0x4073a4
inc bl
cmp bl, 0x5a
jle 0x40734d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x108
ret 8
mov al, byte [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8

Function at 0x408f30
Capabilities:
Get disk information
Get disk size

Disassembly:
mov dl, byte [esp + 4]
sub esp, 0x118
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dl, 0x61
push edi
jb 0x408f4b
cmp dl, 0x7a
jbe 0x408f5d
cmp dl, 0x41
jb 0x409028
cmp dl, 0x5a
ja 0x409028
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x21], 0x3a
mov byte [esp + 0x22], 0x5c
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
mov byte [esp + 0x20], dl
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x409028
lea ecx, [esp + 0xc]
push ebp
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push ebx
push ebp
push ebx
push eax
xor edi, edi
call fcn.00413760
push edi
push esi
push edx
push eax
call fcn.00413760
mov ecx, dword [esp + 0x130]
push ebx
push ebp
push edi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00413760
push edi
push esi
push edx
push eax
call fcn.00413760
mov ecx, dword [esp + 0x134]
pop ebp
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], edx
pop ebx
add esp, 0x118
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x118
ret
Function at 0x409590
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
push ebx
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4095d1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x409647
mov edi, dword [esp + 0x13c]
cmp ebp, dword [esp + 0x18]
je 0x409607
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.0041ad30
add esp, 8
test eax, eax
je 0x409618
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x409647
jmp 0x4095ef
mov eax, dword [esp + 0x140]
mov ebx, 1
cmp eax, ebx
jne 0x409647
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x409647
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x40a360
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
mov dword [esp], 1
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesUSB
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a3bc
lea ecx, [esp]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesUSB
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40a3bc
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp + 4]
lea eax, [esp]
push 4
push eax
push 4
push 0
push str.DisableSelectiveSuspend
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret

Function at 0x40a400
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42e50e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x43b990]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
lea ebp, [esi + 4]
mov dword [ebp], eax
lea ebx, [esi + 8]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x12c], edi
call fcn.004068c0
mov cl, byte [esp + 0x13]
mov dword [esi + 0x14], edi
mov byte [esi + 0x10], cl
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
lea edi, [esi + 0x28]
push 0
mov ecx, edi
mov byte [esp + 0x130], 2
call fcn.0040b030
mov dword [edi], 0x4305a0
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x20]
push 0x104
push edx
mov byte [esp + 0x134], 3
mov dword [esi], 0x430b20
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
call fcn.00422a7b
push str.UsbPortMng.ini
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x138], 4
call fcn.00422ca2
push eax
mov ecx, ebp
mov byte [esp + 0x130], 5
call fcn.00422b46
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 4
call fcn.00422a0d
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 3
call fcn.00422a0d
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ebp
call fcn.00422782
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x124]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x41ffd0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00413320
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42009b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42009b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42004e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x420059
or bh, 8
and edi, 0x8000000
je 0x420074
mov eax, dword [0x4434dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42009b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42049b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4204bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4204da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x42648a
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 0x4264cc
call fcn.0042a94c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4264cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4264c3
xor eax, eax
jmp 0x4264d4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004264da
pop edi
pop esi
pop ebx
ret 4

Function at 0x42aede
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 0x42af0c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42af2a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042ae44
jmp 0x42af2a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42af2a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042ae44
test edi, edi
mov eax, edi
jne 0x42af14
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40538c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x405395
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x4014], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004040ec
mov eax, dword [ebp - 8]
call fcn.004040ec
xor eax, eax
push ebp
push 0x405484
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x400f]
mov edx, 0x3fff
call fcn.00404a14
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004040fc
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], 0x3fff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x400f]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004040fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 0x4014]
lea edx, [ebp - 0x400f]
mov ecx, 0x3fff
call fcn.00403eec
cmp dword [ebp - 0x4014], 0
je 0x40545e
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x400f]
mov ecx, 0x3fff
call fcn.00403eec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40548b
lea eax, [ebp - 0x4014]
call fcn.00403d80
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403da4
ret

Function at 0x405494
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405508
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x100
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00403eec
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x40551c
call fcn.00403f50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40550f
lea eax, [ebp - 0x108]
call fcn.00403d80
ret
Function at 0x40670c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x198], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040ec
xor eax, eax
push ebp
push 0x406853
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403d80
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x40681e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004040fc
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x406814
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x40680a
cmp dword [ebp - 4], 0
jne 0x4067f6
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x198]
call fcn.00403eb0
mov edx, dword [ebp - 0x198]
mov eax, 0x40686c
call fcn.00404240
dec eax
je 0x406809
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19c]
call fcn.00403eb0
mov edx, dword [ebp - 0x19c]
mov eax, 0x406878
call fcn.00404240
dec eax
je 0x406809
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00403eb0
jmp 0x406814
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00403eb0
inc ebx
cmp dword [esi + ebx*4], 0
jne 0x406787
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406828
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40685a
lea eax, [ebp - 0x19c]
mov edx, 2
call fcn.00403da4
lea eax, [ebp - 4]
call fcn.00403d80
ret

Function at 0x406b5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004040fc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406b75
test al, 0x10
jne 0x406b79
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x406b80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c59
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x100
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, dword [0x40ea14]
cmp dword [eax], 0xa
jl 0x406bed
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00403eec
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x406c70
call fcn.00403f50
jmp 0x406c15
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00403eec
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x406c84
call fcn.00403f50
mov eax, dword [ebx]
call fcn.00406b5c
test al, al
jne 0x406c2f
push 0
mov eax, dword [ebx]
call fcn.004040fc
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, ebx
mov edx, 0x406c9c
call fcn.00403f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c60
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00403da4
ret
Function at 0x47d810
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x500f8b
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.004f3b9c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x47d892
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004f147d
mov eax, dword [eax]
push 0x7d3cf8
push eax
call fcn.004e3b94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004f3e27
test bl, bl
je 0x47d892
push 0x7d3cf8
lea ecx, [esp + 0xc]
call fcn.004f4203
push 0x7d3d04
lea ecx, [esp + 0xc]
call fcn.004f4203
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 0x47d8ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004f3e27
jmp 0x47d999
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 0x47d952
lea edx, [esp + 0x7c]
push 0x7d3d00
push edx
call fcn.004e3b94
add esp, 8
test eax, eax
je 0x47d952
lea eax, [esp + 0x7c]
push 0x7d3cfc
push eax
call fcn.004e3b94
add esp, 8
test eax, eax
je 0x47d952
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 0x47d8e2
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.004f3e27
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 0x47e1c0
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 0x47e222
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