joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499150
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4ca256
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x4f1f98]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004b88b7
mov edx, dword [0x4f1f98]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4991aa
mov dword [esp + 0x1c], ebx
jmp 0x4991b1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004baa64
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004b656d
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x499202
mov dword [esp + 0x14], ebx
jmp 0x499209
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x499224
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x49921e
cmp eax, 2
jne 0x499224
mov dword [esp + 0x18], edi
jmp 0x499228
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x499236
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004b7eec
mov edi, eax
cmp edi, ebx
jne 0x499246
xor eax, eax
jmp 0x499249
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x499271
mov ecx, esi
call fcn.004baa64
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x49928d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4992ac
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4992ac
push 1
push 0xd
push pe_nt_image_headers32
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004b6434
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004b6434
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4b88b7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b88ef
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b68db
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b68b3
jmp 0x4b88fb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ba12d
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 0x4ba16f
call fcn.004c083e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ba16f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ba166
xor eax, eax
jmp 0x4ba177
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ba17d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c0d6e
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 0x4c0d9c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c0dba
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c0cd4
jmp 0x4c0dba
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c0dba
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c0cd4
test edi, edi
mov eax, edi
jne 0x4c0da4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4c3a9a
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4c3ac2
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4c3ad3
push 2
call edi
test ax, ax
jge 0x4c3ad3
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004b7eec
cmp dword [esi + 0x30], ebx
jne 0x4c3bad
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, pe_nt_image_headers32
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004b7eec
cmp eax, dword [esp + 0x34]
jne 0x4c3bad
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4c3b49
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4c3b8e
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4c3bad
cmp eax, 0x205
je 0x4c3bad
cmp eax, 0x201
je 0x4c3bad
cmp eax, 0x204
je 0x4c3bad
cmp eax, ebx
jne 0x4c3b74
cmp dword [esp + 0x1c], 0x1b
je 0x4c3bad
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x51134c]
jbe 0x4c3ba3
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4c3b06
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4012c0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [0x410b70], 1
push eax
push 0
push 0
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x410b74], eax
mov eax, dword [0x410b74]
test eax, eax
jne 0x40130c
push str.slserv___thread_is_not_created_n
mov dword [0x410b70], 0
call fcn.00401930
add esp, 4
xor eax, eax
pop ecx
ret
push str.slserv___thread_is_created_n
call fcn.00401930
add esp, 4
mov eax, 1
pop ecx
ret

Function at 0x40437d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f3c8
cmp edx, dword [eax]
je 0x40439f
add eax, 8
inc ecx
cmp eax, 0x40f458
jl 0x404390
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f3c8]
jne 0x4044cd
mov eax, dword [0x410b88]
cmp eax, 1
je 0x4044a7
test eax, eax
jne 0x4043d0
cmp dword [0x40f2f8], 1
je 0x4044a7
cmp edx, 0xfc
je 0x4044cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404407
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004066c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004049a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40444a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004049a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d584
push edi
call fcn.00406b70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004066c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004066d0
lea eax, [ebp - 0xa0]
push 0x40d564
push eax
call fcn.004066d0
push dword [esi + 0x40f3cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004066d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406ae5
add esp, 0x2c
pop edi
jmp 0x4044cd
lea eax, [ebp + 8]
lea esi, [esi + 0x40f3cc]
push 0
push eax
push dword [esi]
call fcn.004049a0
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 0x407027
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00407027
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
mov ebx, 0x412a9c
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
fldcw word [ebp - 0x10]
mov eax, dword [0x412ab0]
mov dword [0x412a55], eax
push dword [0x412a55]
push 0
push 0
fild qword [0x414630]
call fcn.00410c4f
push eax
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
fldcw word [ebp - 0x10]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jne 0x4070d4
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
fldcw word [ebp - 0x10]
lea ebx, [esp + 4]
push ebx
mov dword [ebx], eax
mov edx, 0x41303c
call fcn.00411750
lea ebx, [esp + 4]
push ebx
call fcn.00410c56
call fcn.004098a1
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 8
jmp 0x4071db
mov ebx, 0x412b4c
mov eax, 2
call fcn.0040b0dc
push 1
mov eax, dword [0x412a55]
push eax
push 4
push 0x10a0008
push 0
mov ebx, 0x412b4c
call fcn.0040afb2
mov word [0x412a8c], 1
mov eax, dword [0x412a55]
mov dword [ebp - 0xb0], eax
mov esi, 1
jmp 0x4071c1
mov ecx, 0x4071f6
push ecx
mov eax, dword [ebp - 0xa8]
push eax
push 0x100000
push 0
mov eax, esi
sub eax, dword [0x412b64]
shl eax, 2
add eax, dword [0x412b4c]
mov ebx, eax
call fcn.0040ba67
xor eax, eax
mov ecx, esi
sub ecx, dword [0x412b64]
mov ebx, dword [0x412b4c]
cmp eax, dword [ebx + ecx*4]
jne 0x4071b2
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
fldcw word [ebp - 0x10]
lea ebx, [esp + 4]
push ebx
mov dword [ebx], eax
mov edx, 0x413050
call fcn.00411750
lea ebx, [esp + 4]
push ebx
call fcn.00410c56
call fcn.004098a1
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 8
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
jmp 0x4071db
mov eax, edi
lea ebx, [ebp - 0xa4]
call fcn.0040ba41
inc esi
mov eax, esi
cmp eax, dword [ebp - 0xb0]
jle 0x407120
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4077f3
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.004077f3
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
mov eax, 1
add eax, dword [ebp + 0xc]
push eax
call fcn.0040a55a
mov dword [ebp - 0x9c], eax
push 0x38
call fcn.0040a55a
mov dword [ebp - 0xa4], eax
push 0x18
call fcn.0040a55a
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa4]
call fcn.00410c28
ftst
fnstsw ax
sahf
fstp st(0)
mov eax, 0xffffffff
jne 0x40785e
inc eax
call fcn.00410c21
ftst
fnstsw ax
sahf
fstp st(0)
je 0x4079e2
mov eax, dword [ebp - 0xa0]
call fcn.00410c28
ftst
fnstsw ax
sahf
fstp st(0)
mov eax, 0xffffffff
jne 0x40788a
inc eax
call fcn.00410c21
ftst
fnstsw ax
sahf
fstp st(0)
je 0x4079e2
mov eax, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0xa0]
mov dword [ebx + 0x14], eax
mov ebx, dword [ebp + 0x10]
mov ecx, 0x38
call fcn.00411513
mov ebx, dword [ebp - 0xa4]
mov ecx, 0x38
call fcn.0041153a
mov eax, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0xa4]
mov dword [ebx + 4], eax
mov ebx, dword [ebp - 0xa4]
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0xa4]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xa4]
mov dword [ebx + 0xc], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa8], eax
push 0
push 0
push dword [ebp - 0xa0]
xor eax, eax
lea ebx, [esp + 8]
push ebx
mov dword [ebx], eax
push 0
push 1
lea ebx, [ebp - 0xac]
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.DLL_WSARecv]
add esp, 4
fldcw word [ebp - 0x10]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4079dd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
fldcw word [ebp - 0x10]
mov esi, eax
cmp esi, 0x3e5
mov eax, 0xffffffff
je 0x407962
inc eax
cmp esi, 0x26
mov ecx, 0xffffffff
je 0x40796d
inc ecx
or eax, ecx
test eax, eax
mov eax, 0xffffffff
je 0x407979
inc eax
test eax, eax
je 0x4079dd
push 0
lea ebx, [ebp - 0xb0]
mov dword [ebx], esi
push ebx
mov edx, 0x4130a8
call fcn.00411750
lea ebx, [esp + 4]
push ebx
call fcn.00410c56
call fcn.004098a1
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 4
mov esi, dword [ebp - 0xb0]
push dword [ebp - 0x9c]
call fcn.0040a5ce
push dword [ebp - 0xa4]
call fcn.0040a5ce
push dword [ebp - 0xa0]
call fcn.0040a5ce
jmp 0x407a3c
jmp 0x407a32
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x4079fb
push dword [ebp - 0x9c]
call fcn.0040a5ce
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x407a14
push dword [ebp - 0xa4]
call fcn.0040a5ce
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x407a2d
push dword [ebp - 0xa0]
call fcn.0040a5ce
jmp 0x407a3c
mov dword [ebp - 0x98], 0xffffffff
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x407a59
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00407a59
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
mov eax, 1
add eax, dword [ebp + 0x10]
push eax
call fcn.0040a55a
mov dword [ebp - 0x9c], eax
push 0x38
call fcn.0040a55a
mov dword [ebp - 0xa4], eax
push 0x18
call fcn.0040a55a
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa4]
call fcn.00410c28
ftst
fnstsw ax
sahf
fstp st(0)
mov eax, 0xffffffff
jne 0x407ac4
inc eax
call fcn.00410c21
ftst
fnstsw ax
sahf
fstp st(0)
je 0x407c43
mov eax, dword [ebp - 0xa0]
call fcn.00410c28
ftst
fnstsw ax
sahf
fstp st(0)
mov eax, 0xffffffff
jne 0x407af0
inc eax
call fcn.00410c21
ftst
fnstsw ax
sahf
fstp st(0)
je 0x407c43
mov eax, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0xa0]
mov dword [ebx + 0x14], eax
mov ebx, dword [ebp + 0x14]
mov ecx, 0x38
call fcn.00411513
mov ebx, dword [ebp - 0xa4]
mov ecx, 0x38
call fcn.0041153a
mov eax, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0xa4]
mov dword [ebx + 4], eax
mov ebx, dword [ebp - 0xa4]
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0xa4]
mov dword [ebx], 2
mov ebx, dword [ebp - 0xa4]
mov dword [ebx + 0xc], 0xffffffff
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
call fcn.0040f5d3
mov eax, dword [ebp - 0x30]
call fcn.0040f604
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa8], eax
push 0
push dword [ebp - 0xa0]
push 0
push 0
push 1
lea ebx, [ebp - 0xac]
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.DLL_WSASend]
fldcw word [ebp - 0x10]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407c3e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
fldcw word [ebp - 0x10]
mov esi, eax
cmp esi, 0x3e5
je 0x407c3e
push 0
lea ebx, [ebp - 0xb0]
mov dword [ebx], esi
push ebx
mov edx, 0x4130cc
call fcn.00411750
lea ebx, [esp + 4]
push ebx
call fcn.00410c56
call fcn.004098a1
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 4
mov esi, dword [ebp - 0xb0]
push dword [ebp - 0x9c]
call fcn.0040a5ce
push dword [ebp - 0xa4]
call fcn.0040a5ce
push dword [ebp - 0xa0]
call fcn.0040a5ce
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
fldcw word [ebp - 0x10]
jmp 0x407c9d
jmp 0x407c93
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x407c5c
push dword [ebp - 0x9c]
call fcn.0040a5ce
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x407c75
push dword [ebp - 0xa4]
call fcn.0040a5ce
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x407c8e
push dword [ebp - 0xa0]
call fcn.0040a5ce
jmp 0x407c9d
mov dword [ebp - 0x98], 0xffffffff
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x407cba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00407cba
xor esi, esi
xor edi, edi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
mov eax, 1
add eax, dword [ebp + 0xc]
push eax
call fcn.0040a55a
mov dword [ebp - 0x9c], eax
push 0x38
call fcn.0040a55a
mov dword [ebp - 0xa4], eax
push 0x18
call fcn.0040a55a
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa4]
call fcn.00410c28
ftst
fnstsw ax
sahf
fstp st(0)
mov eax, 0xffffffff
jne 0x407d23
inc eax
call fcn.00410c21
ftst
fnstsw ax
sahf
fstp st(0)
je 0x407e66
mov eax, dword [ebp - 0xa0]
call fcn.00410c28
ftst
fnstsw ax
sahf
fstp st(0)
mov eax, 0xffffffff
jne 0x407d4f
inc eax
call fcn.00410c21
ftst
fnstsw ax
sahf
fstp st(0)
je 0x407e66
mov eax, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0xa0]
mov dword [ebx + 0x14], eax
mov ebx, dword [ebp + 0x10]
mov ecx, 0x38
call fcn.00411513
mov ebx, dword [ebp - 0xa4]
mov ecx, 0x38
call fcn.0041153a
mov eax, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0xa4]
mov dword [ebx + 4], eax
mov ebx, dword [ebp - 0xa4]
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0xa4]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xa4]
mov dword [ebx + 0xc], 0
push dword [ebp - 0xa0]
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x9c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
fldcw word [ebp - 0x10]
mov edi, eax
cmp edi, 0
jne 0x407e61
call dword [sym.imp.KERNEL32.DLL_GetLastError]
fldcw word [ebp - 0x10]
mov esi, eax
push 0
lea ebx, [ebp - 0xa8]
mov dword [ebx], esi
push ebx
mov edx, 0x4130f0
call fcn.00411750
lea ebx, [esp + 4]
push ebx
call fcn.00410c56
call fcn.004098a1
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 4
mov esi, dword [ebp - 0xa8]
cmp esi, 0x26
je 0x407e3b
cmp esi, 0x3e5
je 0x407e61
push dword [ebp - 0x9c]
call fcn.0040a5ce
push dword [ebp - 0xa4]
call fcn.0040a5ce
push dword [ebp - 0xa0]
call fcn.0040a5ce
jmp 0x407ec0
jmp 0x407eb6
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x407e7f
push dword [ebp - 0x9c]
call fcn.0040a5ce
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x407e98
push dword [ebp - 0xa4]
call fcn.0040a5ce
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x407eb1
push dword [ebp - 0xa0]
call fcn.0040a5ce
jmp 0x407ec0
mov dword [ebp - 0x98], 0xffffffff
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40843d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.0040843d
xor esi, esi
mov ecx, 0x14
push esi
dec ecx
jne 0x408457
push 0
mov eax, 1
lea ebx, [esp]
push ebx
mov dword [ebx], eax
fild qword [0x414700]
fistp qword [ebp - 0x6c]
push dword [ebp - 0x6c]
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
add esp, 4
fldcw word [ebp - 0x10]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4084d5
push 0
push 0
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
fldcw word [ebp - 0x10]
lea ebx, [esp + 4]
push ebx
mov dword [ebx], eax
mov edx, 0x41322c
call fcn.00411750
fild dword [ebp + 8]
call fcn.0040fdd0
call fcn.00410f1a
lea ebx, [esp + 4]
push ebx
call fcn.00410c56
call fcn.004098a1
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 8
push dword [ebp + 8]
push dword [0x412a84]
call fcn.00407751
mov esi, eax
mov eax, esi
test eax, eax
mov eax, 0xffffffff
je 0x4084f1
inc eax
test eax, eax
je 0x4084f9
mov dword [ebp - 0xc4], 0xffffffff
mov dword [ebp - 0xc0], 0
lea ebx, [ebp - 0xd0]
push ebx
push 0xfff
push dword [ebp + 8]
call fcn.004077f3
mov esi, eax
mov eax, esi
test eax, eax
mov eax, 0xffffffff
je 0x40852f
inc eax
test eax, eax
je 0x408537
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4094dd
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.004094dd
xor esi, esi
xor edi, edi
mov ecx, 0x16
push esi
dec ecx
jne 0x4094f9
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
fild qword [0x4145a4]
call fcn.00410c4f
push eax
mov ebx, dword [ebp + 8]
call fcn.004117fb
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
fldcw word [ebp - 0x10]
mov esi, eax
mov eax, esi
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xcc], 0xffffffff
mov dword [ebp - 0xa4], 1
cmp dword [ebp + 0x10], 0
jne 0x40956d
push 0
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
fldcw word [ebp - 0x10]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
je 0x40957d
cmp dword [ebp + 0x10], 0xffffffff
jne 0x4095ca
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
fldcw word [ebp - 0x10]
lea ebx, [esp + 4]
push ebx
mov dword [ebx], eax
mov edx, str._a_a_b
call fcn.00411750
lea ebx, [esp + 4]
push ebx
call fcn.00410c56
call fcn.004098a1
mov ebx, esp
mov eax, dword [ebx]
call fcn.0040f5cb
add esp, 8
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
jmp 0x4096dd
lea ebx, [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push ebx
call fcn.00409f4a
call fcn.00411767
lea ebx, [ebp - 0xa0]
call fcn.00410c56
push 0
mov edx, dword [ebp - 0xa0]
call fcn.00411739
call fcn.0041171e
push eax
lea ebx, [ebp - 0xa0]
call fcn.004117fb
push ebx
push dword [ebp + 0xc]
call fcn.00408dbe
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
fldcw word [ebp - 0x10]
mov esi, eax
mov eax, dword [str.:]
cmp eax, dword [ebp + 0x10]
jge 0x409691
mov eax, dword [str.:]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xc8], 0
mov eax, dword [ebp + 0x10]
sub eax, dword [str.:]
cmp eax, dword [str.:]
jl 0x409674
mov eax, dword [str.:]
mov dword [ebp - 0xa8], eax
jmp 0x409683
mov eax, dword [ebp + 0x10]
sub eax, dword [str.:]
mov dword [ebp - 0xa8], eax
mov eax, dword [str.:]
mov dword [ebp + 0x10], eax
jmp 0x40969b
mov dword [ebp - 0xc8], 0xffffffff
mov eax, esi
mov dword [ebp - 0xb4], eax
push dword [ebp + 0x10]
push 0
push 0
push 4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
fldcw word [ebp - 0x10]
mov esi, eax
mov eax, esi
mov dword [ebp - 0xb0], eax
lea ebx, [ebp - 0xd8]
push ebx
push dword [ebp + 0x10]
mov eax, esi
push eax
push dword [ebp + 0xc]
call fcn.00407a59
mov dword [ebp - 0x98], eax
call fcn.0041162a
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10