joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae37
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
sub eax, 0xf
mov esi, ecx
je 0x40aeb7
dec eax
je 0x40aeab
sub eax, 0x75
je 0x40ae93
sub eax, 0x8c
je 0x40ae77
sub eax, 0xff
jne 0x40ae7e
cmp word [ebp + 0x10], 2
je 0x40ae7e
push 1
push dword [0x425e1c]
push 0x30
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40ae7e
mov eax, dword [ebp + 0x10]
dec eax
dec eax
je 0x40aeab
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040702b
jmp 0x40aebe
cmp dword [0x424cfc], 0
je 0x40aea7
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
jmp 0x40aebe
mov ecx, esi
call fcn.0040aef4
push 1
pop eax
jmp 0x40aebe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
pop esi
pop ebp
ret 0x10

Function at 0x40b2af
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
mov esi, ecx
lea ecx, [ebp - 4]
call fcn.0040d172
push 4
push 2
push dword [esi + 4]
lea ecx, [ebp - 4]
call fcn.0040d235
cmp eax, 6
pop esi
jne 0x40b326
push str.uproom
push 0x424c71
call fcn.00415f40
pop ecx
test eax, eax
pop ecx
jne 0x40b31a
push str.glWorld.exe
push 0x42538c
lea eax, [ebp - 0x108]
push str._s_s
push eax
call fcn.00415cc0
add esp, 0x10
lea eax, [ebp - 0x108]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
mov ecx, 0x424b10
call fcn.0040327d
leave
ret

Function at 0x40c12c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
mov bl, 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40c157
lea eax, [esi + 2]
push eax
call fcn.00415d12
mov edi, eax
pop ecx
test edi, edi
jne 0x40c15b
xor al, al
jmp 0x40c1c3
push edi
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40c16f
xor bl, bl
jmp 0x40c1ba
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x421c28
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
lea eax, [ebp - 0x28]
push str._u._u._u._u
push eax
call fcn.00415cc0
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call fcn.00415570
add esp, 0x20
push edi
call fcn.00415a53
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d909
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a04
call fcn.00416550
push ebx
push esi
mov esi, 0x2800
lea eax, [ebp - 0x2a04]
push esi
push 0
mov dword [ebp - 4], ecx
push eax
call fcn.00415510
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x2a04]
push dword [ebp - 4]
push esi
push eax
push 0x424ae0
push 0
push dword [ebp + 8]
call ebx
cmp byte [ebp - 0x2a04], 0
lea esi, [ebp - 0x2a04]
je 0x40da03
push edi
mov edi, 0x100
push edi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00415510
push edi
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00415510
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00415570
add esp, 0x20
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 0xc]
call fcn.00415b30
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004058f0
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call fcn.00405820
add esp, 0x14
test eax, eax
jne 0x40d9f0
push dword [ebp - 4]
lea eax, [ebp - 0x104]
push edi
push eax
push 0x424ae0
push esi
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x104]
push esi
push eax
push dword [ebp + 0x10]
call dword [ebp + 0x14]
add esp, 0xc
cmp byte [esi], 0
je 0x40d9f8
inc esi
jmp 0x40d9f0
inc esi
cmp byte [esi], 0
jne 0x40d968
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40da40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ecx
lea eax, [ebp - 0x404]
push 0x401
push eax
push 0x424ae0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
cmp byte [ebp - 0x404], al
setne al
leave
ret 4

Function at 0x40da75
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2800
call fcn.00416550
push ebx
push esi
mov esi, 0x2800
push edi
push esi
lea eax, [ebp - 0x2800]
push 0
mov ebx, ecx
push eax
call fcn.00415510
add esp, 0xc
lea eax, [ebp - 0x2800]
push ebx
push esi
push eax
push 0x424ae0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ebp - 0x2800], 0
lea esi, [ebp - 0x2800]
mov dword [edi + 8], ebx
mov dword [edi + 4], eax
je 0x40daeb
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax]
test eax, eax
je 0x40daf5
cmp byte [esi], 0
je 0x40dae5
inc esi
jmp 0x40dadd
inc esi
cmp byte [esi], 0
jne 0x40dad2
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x40daee
Function at 0x40dd60
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
push ebp
push esi
mov ebp, 0x400
push edi
mov esi, ecx
push ebp
push eax
push dword [esi + 0x70]
call ebx
lea eax, [esp + 0x10]
push 0x4219b8
push eax
mov edi, str.HKEY_CURRENT_USERSoftwareGloballinkGameShareProxy
push str.SocksServer
push edi
call fcn.0040e81b
add esp, 0x10
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esi + 0x78]
call ebx
lea eax, [esp + 0x10]
push 0x4228cc
push eax
push str.SocksPort
push edi
call fcn.0040e81b
add esp, 0x10
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esi + 0x90]
call ebx
lea eax, [esp + 0x10]
push 0x4219b8
push eax
push str.UserName
push edi
call fcn.0040e81b
add esp, 0x10
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esi + 0x94]
call ebx
lea eax, [esp + 0x10]
push 0x4219b8
push eax
push str.Password
push edi
call fcn.0040e81b
add esp, 0x10
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, pe_nt_image_headers32
push 0
push 0
push ebp
push dword [esi + 0x68]
call ebx
cmp eax, 1
jne 0x40de2b
push eax
jmp 0x40de2d
push 0
lea eax, [esp + 0x14]
push 0x421fe0
push eax
call fcn.00415cc0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x4228cc
push eax
push str.ProxyEnable
push edi
call fcn.0040e81b
add esp, 0x10
push 0
push 0
push ebp
push dword [esi + 0x7c]
call ebx
cmp eax, 1
jne 0x40de6a
push 4
jmp 0x40de6c
push 5
lea eax, [esp + 0x14]
push 0x421fe0
push eax
call fcn.00415cc0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x4228cc
push eax
push str.SocksVersion
push edi
call fcn.0040e81b
mov eax, dword [esi]
add esp, 0x10
mov ecx, esi
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret

Function at 0x40e483
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x2001f
push 0
push edi
push 0
push dword [ebp + 8]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e4e7
push str.null
push edi
call fcn.00415bb0
pop ecx
test eax, eax
pop ecx
jne 0x40e4c1
xor edi, edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40e4e7
mov al, 1
jmp 0x40e4e9
xor al, al
pop edi
pop ebp
ret
Function at 0x40e4ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40e5a2
push 0x401
lea eax, [ebp - 0x414]
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00415510
push esi
lea eax, [ebp - 0x414]
push esi
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0040e6b6
add esp, 0x20
test al, al
je 0x40e5a2
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x414]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e5a2
cmp dword [ebp - 4], esi
je 0x40e5a2
push str.null
mov dword [ebp - 0xc], 0x401
push dword [ebp + 0xc]
call fcn.00415bb0
pop ecx
test eax, eax
pop ecx
jne 0x40e575
mov dword [ebp + 0xc], esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e5a2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40e5a4
xor al, al
pop esi
leave
ret

Function at 0x40e5a7
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40e633
cmp dword [ebp + 0xc], esi
je 0x40e633
push dword [ebp + 0xc]
call fcn.00415b30
pop ecx
mov ecx, 0x401
cmp eax, ecx
ja 0x40e633
push ecx
lea eax, [ebp - 0x40c]
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00415510
push esi
lea eax, [ebp - 0x40c]
push esi
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0040e6b6
add esp, 0x20
test al, al
je 0x40e633
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x40c]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e633
cmp dword [ebp - 4], esi
je 0x40e633
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
neg eax
sbb al, al
inc al
jmp 0x40e635
xor al, al
pop esi
leave
ret

Function at 0x40e7ad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e805
cmp dword [ebp - 4], esi
je 0x40e805
mov eax, dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
push eax
mov word [eax], si
lea eax, [ebp + 0x20]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e7fa
xor al, al
jmp 0x40e818
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e816
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
call fcn.00415fd0
add esp, 0xc
mov al, 1
pop esi
leave
ret
Function at 0x40e8ab
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x91c
push esi
mov esi, ecx
push esi
call fcn.00415b30
test eax, eax
pop ecx
ja 0x40e8c9
xor eax, eax
jmp 0x40ea2a
push ebx
push edi
push 0xc
xor edi, edi
pop ebx
lea eax, [ebp - 0x14]
push ebx
push edi
push eax
mov dword [ebp - 8], edi
call fcn.00415510
add esp, 0xc
lea eax, [ebp - 0x118]
mov ecx, esi
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp + 8]
call fcn.0040ea6f
push 1
pop ebx
cmp dword [ebp + 8], ebx
jne 0x40e90e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.0040ea40
lea eax, [ebp - 0x118]
push eax
push esi
call fcn.00415570
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
push 0x41e720
push ebx
push edi
push 0x41e710
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40ea25
mov eax, dword [ebp - 4]
lea edx, [ebp + 8]
push edx
push 0x41e730
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x40ea1c
lea eax, [ebp - 0x91c]
push 0x401
push eax
lea eax, [ebp - 0x118]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 4]
lea edx, [esi + 0x104]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
lea edx, [esi + 0x208]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
push dword [esi + 0x618]
lea edx, [esi + 0x410]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [esi + 0x30c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
lea edx, [esi + 0x514]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov dx, word [esi + 0x61c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
push dword [esi + 0x620]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x91c]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40ea13
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x40ea6f
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
push esi
test eax, eax
mov esi, ecx
push 1
jne 0x40ea9f
push 0x424ae0
lea eax, [ebp - 0x104]
push 0x104
push eax
push str.Desktop
jmp 0x40eb27
pop ecx
cmp eax, ecx
jne 0x40eaed
push ecx
push 0x424ae0
lea eax, [ebp - 0x104]
push 0x104
push eax
push str.Programs
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push connect
call fcn.0040e7ad
lea eax, [ebp - 0x104]
push 0x421c28
push eax
call fcn.00415580
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00415580
add esp, 0x2c
jmp 0x40eb39
cmp eax, 2
jne 0x40eb0b
push ecx
push 0x424ae0
lea eax, [ebp - 0x104]
push 0x104
push eax
push str.Start_Menu
jmp 0x40eb27
cmp eax, 3
jne 0x40eb39
push ecx
push 0x424ae0
lea eax, [ebp - 0x104]
push 0x104
push eax
push str.Startup
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push connect
call fcn.0040e7ad
add esp, 0x1c
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call fcn.00415570
pop ecx
pop ecx
pop esi
leave
ret 8

Function at 0x40ec81
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp dword [0x4269e0], 0
je 0x40ec95
push 1
pop eax
jmp 0x40ecb4
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40ecac
xor eax, eax
jmp 0x40ecb4
push 1
pop eax
mov dword [0x4269e0], eax
add esp, 0x190
ret

Function at 0x40ef9f
Capabilities:
Get session user name
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, ecx
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_addr
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
jne 0x40efcd
push str.0.0.0.1
call sub.WSOCK32.dll_inet_addr
push 1
mov esi, eax
pop ebx
push dword [ebp + 0xc]
mov byte [ebp - 0x20c], 4
mov byte [ebp - 0x20b], 1
call sub.WSOCK32.dll_htons
mov word [ebp - 0x20a], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x208], esi
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x40f019
and byte [ebp - 0x204], al
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
test ebx, ebx
lea esi, [ebp + eax - 0x204]
je 0x40f03f
push dword [ebp + 8]
push esi
call fcn.00415570
push dword [ebp + 8]
call fcn.00415b30
add esp, 0xc
lea esi, [esi + eax + 1]
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
sub esi, ecx
push 0
lea ecx, [ebp - 0x20c]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x10]
cmp eax, 0xffffffff
je 0x40f071
mov eax, dword [edi]
push 1
lea ecx, [ebp - 0xc]
push 8
push ecx
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40f075
xor eax, eax
jmp 0x40f07e
xor eax, eax
cmp byte [ebp - 0xb], 0x5a
sete al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40f085
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
and byte [ebp - 6], 0
push esi
mov esi, ecx
push 0
lea ecx, [ebp - 8]
mov eax, dword [esi]
push 4
push ecx
mov ecx, esi
mov byte [ebp - 8], 5
mov byte [ebp - 7], 2
mov byte [ebp - 5], 2
call dword [eax + 0x10]
cmp eax, 0xffffffff
je 0x40f22f
mov eax, dword [esi]
push 1
lea ecx, [ebp - 2]
push 2
push ecx
mov ecx, esi
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40f22f
cmp byte [ebp - 1], 0
je 0x40f0e2
cmp byte [ebp - 1], 2
jne 0x40f22f
cmp byte [ebp - 2], 2
jne 0x40f188
push edi
lea edi, [esi + 0x54]
push edi
call fcn.00415b30
mov ebx, eax
lea eax, [esi + 0x94]
push eax
call fcn.00415b30
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x21a]
push edi
push eax
mov byte [ebp - 0x21c], 1
mov byte [ebp - 0x21b], bl
call fcn.00415fd0
mov eax, dword [ebp - 0x10]
mov byte [ebp + ebx - 0x21a], al
push eax
lea eax, [esi + 0x94]
push eax
lea eax, [ebp + ebx - 0x219]
push eax
call fcn.00415fd0
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi]
add esp, 0x20
lea ecx, [ecx + ebx + 3]
push 0
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, esi
call dword [eax + 0x10]
cmp eax, 0xffffffff
pop edi
je 0x40f22f
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0xa]
push 2
push ecx
mov ecx, esi
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40f22f
cmp byte [ebp - 9], 0
jne 0x40f22f
push dword [ebp + 8]
and byte [ebp - 0x21a], 0
mov byte [ebp - 0x21c], 5
mov byte [ebp - 0x21b], 1
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
je 0x40f1bf
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x218], eax
lea ebx, [ebp - 0x214]
jmp 0x40f1f0
push dword [ebp + 8]
mov byte [ebp - 0x219], 3
call fcn.00415b30
mov ebx, eax
lea eax, [ebp - 0x217]
push ebx
mov byte [ebp - 0x218], bl
push dword [ebp + 8]
push eax
call fcn.00415fd0
add esp, 0x10
lea ebx, [ebp + ebx - 0x217]
push dword [ebp + 0xc]
call sub.WSOCK32.dll_htons
lea ecx, [ebp - 0x21c]
mov word [ebx], ax
mov eax, dword [esi]
sub ebx, ecx
inc ebx
push 0
inc ebx
lea ecx, [ebp - 0x21c]
push ebx
push ecx
mov ecx, esi
call dword [eax + 0x10]
cmp eax, 0xffffffff
je 0x40f22f
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x1c]
push 0xa
push ecx
mov ecx, esi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40f233
xor eax, eax
jmp 0x40f23b
xor eax, eax
cmp byte [ebp - 0x1b], al
sete al
pop esi
pop ebx
leave
ret 8
Function at 0x40f241
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xe0], ebx
cmp dword [0x4269d8], 0x14
jl 0x40f264
xor eax, eax
jmp 0x40f355
mov ecx, esi
call fcn.0040ec81
test eax, eax
je 0x40f25d
cmp dword [esi + 4], 0xffffffff
je 0x40f27c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, esi
call fcn.0040eea1
mov eax, dword [ebp + 0xc]
cmp dword [esi + 8], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x40f29a
mov eax, dword [esi + 0x4c]
lea edi, [esi + 0xc]
mov dword [ebp - 4], eax
push ebx
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x40f25d
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00415510
add esp, 0xc
mov word [ebp - 0x14], 2
push edi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x40f2e3
push edi
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
je 0x40f30d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 4]
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x40f31c
cmp dword [esi + 8], ebx
je 0x40f25d
jmp 0x40f33f
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
jmp 0x40f25d
cmp dword [esi + 8], ebx
je 0x40f346
push dword [ebp + 0xc]
cmp dword [esi + 0x50], 4
mov ecx, esi
push dword [ebp + 8]
jne 0x40f336
call fcn.0040ef9f
jmp 0x40f33b
call fcn.0040f085
test eax, eax
jne 0x40f346
push 0x27d9
jmp 0x40f312
push 0x23
mov ecx, esi
call fcn.0040ecbb
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41a48d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4242b8
cmp edx, dword [eax]
je 0x41a4af
add eax, 8
inc ecx
cmp eax, 0x424348
jl 0x41a4a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4242b8]
jne 0x41a5dd
mov eax, dword [0x426a58]
cmp eax, 1
je 0x41a5b7
test eax, eax
jne 0x41a4e0
cmp dword [0x423e64], 1
je 0x41a5b7
cmp edx, 0xfc
je 0x41a5dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41a517
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00415570
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00415b30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41a55a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00415b30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f8cc
push edi
call fcn.0041c280
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00415570
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00415580
lea eax, [ebp - 0xa0]
push 0x41f8ac
push eax
call fcn.00415580
push dword [esi + 0x4242bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00415580
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041c1f5
add esp, 0x2c
pop edi
jmp 0x41a5dd
lea eax, [ebp + 8]
lea esi, [esi + 0x4242bc]
push 0
push eax
push dword [esi]
call fcn.00415b30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x424889
Capabilities:
Encode data using xor

Disassembly:
invalid
js 0x4247a8
xchg dl, dh
int3
cmc
sahf
cmp al, cl
or eax, eax
cmpsd dword [esi], dword es:[edi]
jo 0x4247ed
mov edx, 0xcdb470c6
mov edx, 0xcdb470c6
insb byte es:[edi], dx
dec edx
xchg esi, eax
cmp bl, ah
nop
add eax, 0xe30b66d9
push esi
and ch, ch
push ax
out dx, al
jmp 0x42480c
fstp dword [ebx]
or dh, cl
add al, 0xe
jae 0x424816
clc
push ds
inc ebx
pushfd
or bl, ah
mov ah, 0xf5
mov dword [0xa673d878], eax
cmpsd dword [esi], dword es:[edi]
cmp al, 0x47
cld
cmpsd dword [esi], dword es:[edi]
and al, 0xd3
mov byte [ebx + 0x3388d388], dh
or esi, dword [ecx + 0x7b]

Function at 0x42490e
Capabilities:
Encode data using xor

Disassembly:
add dword [ebx], ebx
mov ebp, 0xfc8200ca
clc
jo 0x4248fa
inc edi
jnp 0x42491b
mov ebx, 0x475639cd
sub byte [edx - 0x51], 0x2a
nop
shl edi, cl
pop ebp
ficom dword [edi - 0x689d5c04]
xchg edi, eax
sbb al, 0x82
inc ebx
inc esi
mov eax, dword [esi]
cmp ch, dh
sub al, 0x79
lds esi, [0x4e64361]
lodsd eax, dword ds:[esi]
inc edi
mov fs, word [ecx + ecx*2]
sbb edx, dword [eax - 0x3af0e209]
dec ebx
popfd
neg dword [ebx]
invalid
mov bh, 0xa
ror byte [edx - 0x5f5ee03d], cl
dec ebp
leave
jmp 0x42490b
dec edi
jo 0x4248d2
adc al, 0xbf
push ebp
idiv dword [edi]
jae 0x4248af
mov edi, 0xb5433795
cmp dword [esi - 0x312789ed], 2
sal byte [0xb9e2ddca], 1
mov esi, 0xced87613
add dl, al
xor eax, 0xb9e2ddca
add eax, 0xe3efecbc
push ss
mov esp, 0x16e3efec
inc edx
push es
jle 0x424928
mov al, byte [0x948e9b59]
sbb al, 0xbd
cld
sub ecx, ecx
loope 0x4248ce
mov edx, 0x6f643b51
ror dword [edi + 5], cl
call 0x82ecd3a4
outsb dx, byte [esi]
imul esi
pop ebp
je 0x424973
shr dword [edi + 0x1d], 0xca
mov esi, 0x2b02b298
sbb byte [edi], ch
invalid
cmpsd dword [esi], dword es:[edi]
adc eax, 0x70434176
out dx, eax
lodsd eax, dword [esi]
invalid