joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9bb250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9cf808
push 0x9bf288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x9bb329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x9bb329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.009be1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x9bb329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x9bb329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x9bb32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.009bb351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9bbd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9bbd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x9bbd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9bbd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x9bbd94
push eax
push esi
call fcn.009be20b
add esp, 8
pop esi
ret 0x10

Function at 0x9bbda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9bbe22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x9bbe15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x9d4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009bddff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x9bbdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x9bbe30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9bbec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x9bbeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x9d4320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009bddff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x9bbeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x9bbe6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x9bc000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x9bc131
push esi
call fcn.009bf145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.009ae080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x9bc131
push 0
push ebp
call fcn.009ae3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.009ae260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x9bc08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.009ae2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x9bc121
push 0x9d4918
push edi
call fcn.009bd3f0
push eax
push ebx
push esi
call fcn.009bbf60
push 0x9d48f8
push edi
call fcn.009bd3f0
push eax
push ebx
push esi
call fcn.009bbf60
push 0x9d48d8
push edi
call fcn.009bd3f0
push eax
push ebx
push esi
call fcn.009bbf60
push 0x9d48c0
push edi
call fcn.009bd3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.009bbf60
push 0x9d48a0
push edi
call fcn.009bd3f0
push eax
push ebx
push esi
call fcn.009bbf60
push 0x9d4888
push edi
call fcn.009bd3f0
push eax
push ebx
push esi
call fcn.009bbf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9bd1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.009bd140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.009bd140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.009bd140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.009bd140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x9bdbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x9bdc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x9cf87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9bdc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x9bdc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x49c722
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x49c722
lcall 0x5de5, 0x8b10c483
jmp loc.008f1190

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401210
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
movzx eax, word [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x42943c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea edx, [esp + 0x18]
push edx
push edi
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x408cb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x427028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x430334]
push esi
mov dword [esp + 0x3c], eax
lea eax, [esp + 4]
push edi
push eax
mov esi, ecx
call fcn.0040f250
push str..exe
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x5c], 0
call fcn.00408030
mov eax, dword [esp + 0x30]
mov edi, 0x10
add esp, 0x10
cmp eax, edi
jb 0x408d14
mov edx, dword [esp + 0xc]
push edx
call fcn.004196bd
add esp, 4
cmp dword [esp + 0x3c], edi
mov eax, dword [esp + 0x28]
jae 0x408d22
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x433e8c]
push 0xca
push eax
mov ecx, esi
call fcn.00401210
cmp dword [esp + 0x3c], edi
mov eax, dword [esp + 0x28]
jae 0x408d43
lea eax, [esp + 0x28]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [esp + 0x3c], edi
pop edi
pop esi
jb 0x408d6c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004196bd
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x38]
call fcn.0041941a
add esp, 0x48
ret
Function at 0x4092d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x430334]
push ebx
mov dword [esp + 0x114], eax
push esi
push edi
xor ebx, ebx
xor eax, eax
mov byte [esp + 0x10], bl
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [0x431241], 1
mov dword [esp + 0xc], ebx
push 0x104
jne 0x409320
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40935a
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x409330
mov edx, dword [str.driversetc]
mov eax, dword [0x429d30]
mov ecx, dword [0x429d34]
mov dword [edi], edx
mov dl, byte [0x429d38]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov byte [edi + 0xc], dl
lea edi, [esp + 0x10]
dec edi
nop
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x409360
mov eax, dword [str.hosts]
mov cx, word [0x429d28]
mov dl, byte [0x429d2a]
mov esi, dword [ebp + 8]
mov dword [edi], eax
mov word [edi + 4], cx
mov byte [edi + 6], dl
lea eax, [esp + 0x10]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4093a0
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00403030
mov ecx, dword [esp + 0x11c]
mov eax, esi
call fcn.0041941a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.00402600
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push edi
push esi
mov dword [esp + 0x20], 0
call ebx
mov ebp, eax
test ebp, ebp
je 0x40b1ef
push 0xf0
push edi
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test eax, eax
je 0x40b164
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebp
push esi
mov dword [esp + 0x18], 0
call edi
test eax, eax
je 0x40b1c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40b1c8
push ebx
push edi
call fcn.0040a8d0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov esi, eax
test esi, esi
jne 0x40b1b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x40b1d6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40b1d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b1e5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40b930
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x430334]
push esi
mov dword [esp + 0x19c], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcA]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 8
mov dword [esp + 0xc], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [esp + 0x1a4]
push 0x42a098
push ecx
push 0
mov ecx, 0x433330
call fcn.0040ad20
call fcn.00402600
lea edx, [esp + 0xc]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [esp + 0x1b0]
mov ecx, dword [esp + 0x1ac]
push eax
push ecx
call fcn.0040b720
add esp, 8
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0x433330
call fcn.0040b6c0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
call fcn.0041941a
add esp, 0x19c
ret 0x10
Function at 0x40d530
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x430334]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40d652
lea ecx, [esp + 8]
call fcn.0040d430
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x40d656
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40d600
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0040d530
mov edi, eax
test edi, edi
jne 0x40d67a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x40d5c2
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40d619
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d638
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0041941a
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40d661
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0041941a
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d689
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.0041941a
add esp, 0x118
ret 4
Function at 0x40db60
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40db72
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40f180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x430334]
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x110], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40f1ec
push str.c:_temp
mov ecx, dword [ebp + 8]
call fcn.00407f80
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
jmp 0x40f240
lea edx, [ebp - 0x110]
push edx
call fcn.0041ab60
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x40f21f
mov eax, dword [ebp - 4]
movsx ecx, byte [ebp + eax - 0x111]
cmp ecx, 0x5c
jne 0x40f21f
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0x111], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407f80
mov ecx, dword [ebp - 0x114]
or ecx, 1
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0041941a
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x413c30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x10325476
mov eax, dword [ebp - 4]
mov dword [eax + 0x5c], 0
mov esp, ebp
pop ebp
ret
Function at 0x414ec0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427925
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x430334]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x30]
call dword [edx + 4]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x24], 0xffffffff
jne 0x414f2f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x2c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
jmp 0x415021
push 8
call fcn.004191f0
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0
je 0x414f5d
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.00416d30
mov dword [ebp - 0x34], eax
jmp 0x414f64
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp + 8]
call fcn.00401c50
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x414fa8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x2c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
jmp 0x415021
mov word [ebp - 0x24], 2
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0xa]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0041ac30
add esp, 0xc
mov dx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x415007
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x2c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
jmp 0x415021
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.00407fc0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x20], ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0041941a
mov esp, ebp
pop ebp
ret 8
Function at 0x4150b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x430334]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x2c], 0
mov byte [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov byte [ebp - 0xb], cl
push 2
push 0xa
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4150fc
xor al, al
jmp 0x41511a
cmp dword [ebp - 4], 0xffffffff
jne 0x415118
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x2c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
jmp 0x41511a
mov al, 1
mov ecx, dword [ebp - 8]
call fcn.0041941a
mov esp, ebp
pop ebp
ret

Function at 0x415700
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4279a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 8]
call fcn.00401c50
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x415747
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00407fc0
jmp 0x415802
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.00408850
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x4157a4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00407f80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x54]
add ecx, 0x1c
call fcn.00412800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402b70
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
jmp 0x41575e
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x415802
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x50]
call fcn.00407f80
mov dword [ebp - 4], 1
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x54]
add ecx, 0x2c
call fcn.00412800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402b70
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
jmp 0x4157ad
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4