joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001690
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push edi
mov esi, ecx
xor edi, edi
push 0x100
push edi
mov dword [esi], 0x10009068
mov dword [esi + 4], edi
mov ecx, dword [0x1000c98c]
lea eax, [esi + 8]
add ecx, 0x43ca
push eax
mov dword [0x1000c98c], ecx
call dword [0x1000c890]
mov ecx, dword [0x1000c994]
mov word [esp + 0x14], di
add ecx, 0x7d1e
add esp, 0xc
mov dword [0x1000c994], ecx
mov dword [esi + 0x108], edi
mov eax, dword [0x1000c998]
mov ecx, 0x63
add eax, 0x3510
lea edi, [esp + 0xa]
mov dword [0x1000c998], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
push 0x202
stosw word es:[edi], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [0x1000c97c]
pop edi
add eax, 0x2d16
mov dword [0x1000c97c], eax
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x10002030
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x108
push ebp
push esi
push edi
mov esi, ecx
call fcn.100021f0
mov ebp, dword [0x1000c980]
lea edi, [esi + 8]
add ebp, 0x5d80
push 0x1000c9b8
push edi
mov dword [0x1000c980], ebp
call dword [0x1000c880]
mov eax, dword [0x1000c98c]
push 0x1000cab8
add eax, 0x75d5
mov dword [0x1000c98c], eax
mov eax, dword [0x1000c9a0]
mov dword [esi + 0x108], eax
mov ebp, dword [0x1000c990]
add ebp, 0x18e3
mov dword [0x1000c990], ebp
call dword [0x1000c878]
add esp, 0xc
test eax, eax
je 0x100020b5
push 0x1000cab8
mov ecx, esi
call fcn.10001930
add dword [0x1000c994], 0x556c
mov ecx, dword [esi + 0x108]
push ecx
push edi
mov ecx, esi
call fcn.10002270
mov dword [esi + 4], eax
mov ecx, dword [0x1000c974]
add ecx, 0x3c10
xor ebp, ebp
mov dword [0x1000c974], ecx
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x100020f0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x108
ret 8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
mov edx, dword [esp + 0x118]
rep stosd dword es:[edi], eax
mov eax, dword [0x1000c984]
push ebx
mov ebx, dword [0x1000c988]
add eax, 0x6cf4
mov dword [0x1000c984], eax
lea eax, [esp + 0x10]
add ebx, 0x764
push 0x108
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], 0x25ce424
mov dword [esp + 0x24], ebp
mov dword [0x1000c988], ebx
call fcn.100021b0
mov ecx, dword [0x1000c988]
lea edi, [esp + 0x10]
add ecx, 0x33d7
mov ebx, 0x108
mov dword [0x1000c988], ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x10002178
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x108
ret 8
mov ecx, dword [esi + 4]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10002169
add ebp, eax
add edi, eax
sub ebx, eax
cmp ebp, 0x108
jb 0x10002178
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x108
ret 8

Function at 0x100021b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [0x1000c98c]
xor eax, eax
add edx, 0x2bc
mov dword [0x1000c98c], edx
mov edx, dword [esp + 8]
test edx, edx
jbe 0x100021e0
mov ecx, dword [esp + 4]
push ebx
mov bl, byte [eax + ecx]
xor bl, 0xf7
mov byte [eax + ecx], bl
inc eax
cmp eax, edx
jb 0x100021d1
pop ebx
ret 8
Function at 0x10002270
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x128
xor eax, eax
push esi
mov dword [esp + 6], eax
push edi
mov dword [esp + 0xe], eax
mov ecx, 0x40
mov dword [esp + 0x12], eax
lea edi, [esp + 0x2d]
mov word [esp + 0x16], ax
mov esi, dword [0x1000c980]
mov byte [esp + 0x2c], al
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x134]
add esi, 0x9f2f
stosw word es:[edi], ax
push ecx
push edx
mov word [esp + 0x10], 0
mov dword [0x1000c980], esi
stosb byte es:[edi], al
call dword [0x1000c880]
mov edi, dword [0x1000c988]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
add esp, 8
lea eax, [esp + 0x2c]
add edi, 0x5804
push eax
mov dword [0x1000c988], edi
call esi
mov edx, dword [0x1000c998]
add edx, 0x4c08
cmp eax, 0xffffffff
mov dword [0x1000c998], edx
jne 0x100023a0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, dword [0x1000c988]
add edx, 0x3840
test eax, eax
mov dword [0x1000c988], edx
jne 0x10002332
pop edi
pop esi
add esp, 0x128
ret 8
xor edx, edx
mov word [esp + 0x1c], 0
mov dword [esp + 0x1e], edx
mov dword [esp + 0x22], edx
mov dword [esp + 0x26], edx
mov word [esp + 0x2a], dx
mov edx, dword [eax + 0xc]
movsx ecx, word [eax + 0xa]
mov eax, dword [edx]
push ecx
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [0x1000c87c]
mov ecx, dword [0x1000c978]
mov edx, dword [esp + 0x2c]
add esp, 0xc
add ecx, 0x334b
mov dword [0x1000c978], ecx
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x30]
push eax
call dword [0x1000c880]
mov eax, dword [0x1000c990]
add esp, 8
add eax, 0x5506
mov dword [0x1000c990], eax
lea ecx, [esp + 0x2c]
push ecx
call esi
mov edx, dword [0x1000c97c]
mov dword [esp + 0xc], eax
add edx, 0x41f4
mov dword [0x1000c97c], edx
mov edx, dword [esp + 0x138]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
mov eax, dword [0x1000c98c]
push 6
add eax, 0x1f36
push 1
push 2
mov word [esp + 0x14], 2
mov dword [0x1000c98c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [0x1000c990]
mov esi, eax
add ecx, 0x1b01
cmp esi, 0xffffffff
mov dword [0x1000c990], ecx
jne 0x10002418
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret 8
lea eax, [esp + 8]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000243f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret 8
mov eax, dword [0x1000c990]
lea ecx, [esp + 0x18]
push 4
push ecx
push 0x1006
add eax, 0x55ec
push 0xffff
push esi
mov dword [esp + 0x2c], 0x1b7740
mov dword [0x1000c990], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x10002486
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret 8
mov eax, esi
pop edi
pop esi
add esp, 0x128
ret 8
Function at 0x10007e00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x10008f36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x58]
call fcn.10001690
mov edi, dword [0x1000c994]
mov eax, dword [esp + 0x178]
xor ebp, ebp
add edi, 0x5d5b
push ebp
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x174], ebp
mov dword [0x1000c994], edi
call fcn.10002030
test eax, eax
jne 0x10007e74
lea ecx, [esp + 0x58]
mov dword [esp + 0x16c], 0xffffffff
call fcn.10001750
xor eax, eax
jmp 0x10008030
mov ecx, dword [0x1000c97c]
mov eax, dword [esp + 0x5c]
add ecx, 0x393e
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x10], ebp
mov dword [0x1000c97c], ecx
lea esi, [esp + 0x10]
mov edi, 4
je 0x10008063
mov ecx, dword [esp + 0x5c]
push ebp
push edi
push esi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebp
jle 0x10008063
add ebx, eax
add esi, eax
sub edi, eax
cmp ebx, 4
jb 0x10007ea1
mov edx, dword [esp + 0x10]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [0x1000c998]
mov esi, eax
mov eax, dword [esp + 0x14]
add edx, 0x3ab6
push eax
push ebp
push esi
mov dword [0x1000c998], edx
call dword [0x1000c890]
mov ecx, dword [0x1000c988]
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x20]
add esp, 0x10
add ecx, 0xc3
mov dword [esp + 0x18], ebx
test eax, eax
mov dword [0x1000c988], ecx
mov edi, esi
je 0x1000804b
test ebx, ebx
jbe 0x10007f41
mov ecx, dword [esp + 0x5c]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1000804b
add ebp, eax
add edi, eax
sub ebx, eax
mov eax, dword [esp + 0x18]
cmp ebp, eax
jb 0x10007f1c
mov al, 8
mov byte [esp + 0x2b], 4
mov byte [esp + 0x2a], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2c], 2
mov eax, dword [0x1000c980]
mov ebp, dword [0x1000c998]
add eax, 0x1ca0
lea edx, [esp + 0x10]
add eax, 0x687d
push edx
mov dword [0x1000c980], eax
lea eax, [esp + 0x18]
add ebp, 0x6dcc
push eax
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x178], 1
mov dword [esp + 0x20], 0
mov dword [0x1000c998], ebp
call fcn.10001170
mov ebp, dword [0x1000c980]
push esi
add ebp, 0x1c3b
mov dword [0x1000c980], ebp
call fcn.10008d16
mov esi, dword [0x1000c988]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esi, 0x4448
mov dword [0x1000c988], esi
mov esi, dword [esp + 0x178]
push ecx
push edx
push esi
call fcn.100063c0
mov ebx, dword [0x1000c998]
mov eax, dword [esp + 0x24]
add ebx, 0x4068
push eax
mov dword [0x1000c998], ebx
call fcn.10008d16
xchg dword [0x1000c98c], ecx
add esp, 0x14
add ecx, 0x2d35
push esi
mov dword [0x1000c98c], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x58]
mov esi, eax
mov dword [esp + 0x16c], 0xffffffff
call fcn.10001750
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret 8
push esi
call fcn.10008d16
mov eax, dword [0x1000c97c]
add esp, 4
add eax, 0x2928
mov dword [0x1000c97c], eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x16c], 0xffffffff
call fcn.10001750
xor eax, eax
jmp 0x10008030
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4056e4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sbb dword [ecx + 0xd68bcdd], esp
add eax, 0x9058f8aa

Function at 0x40592d
Capabilities:
Encode data using xor

Disassembly:
inc eax
pop esi
xor dword [esi + 0xe], 0x492f0e12
sub esi, 0xfffffffc
loop 0x405930
inc ebp
pop eax
jg 0x405958
adc dh, byte [esi - 0x139b5f89]
push ds
push cs
cmp eax, 0x824de88d
sahf
mov edi, 0xdc7bdbb6
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x43cd6914
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x53f97b67
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4031e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x412c48]
push eax
call sub.pvutil.dll_wipc_close_session
add esp, 4
call sub.pvutil.dll_cch_terminate
xor ecx, ecx
mov cx, word [0x41347a]
push ecx
call sub.pvutil.dll_osh_terminate
mov edx, dword [esp + 4]
push edx
call fcn.00407a1e
int3

Function at 0x403f30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
cmp eax, 4
jge 0x403f43
push 1
call fcn.00407a1e
cmp eax, 5
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
jl 0x403f5d
mov eax, dword [esi + 0x10]
push eax
call fcn.00407af9
add esp, 4
mov ebx, eax
mov ecx, dword [esi + 0xc]
push ecx
call fcn.00407af9
mov edx, dword [esi + 8]
add esp, 4
push eax
push edx
call fcn.00407af9
add esp, 4
push eax
mov eax, dword [esi + 4]
push eax
call fcn.00403290
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
add esp, 0xc
mov eax, dword [0x412c50]
mov edi, edi
test ebx, ebx
jle 0x403fb5
push ebx
xor esi, esi
push esi
push 1
call ebp
test eax, eax
je 0x403fa5
mov esi, 1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40400e
mov eax, dword [0x412c50]
test eax, eax
jne 0x403fcc
mov ecx, dword [0x412c44]
push 6
push ecx
call fcn.00403e30
add esp, 8
jmp 0x403fe0
mov edx, dword [0x412c44]
push edx
mov esi, 6
call fcn.00403ea0
add esp, 4
mov eax, dword [0x412c50]
test eax, eax
je 0x403f90
mov ecx, dword [eax + 8]
mov edi, dword [eax]
mov esi, dword [eax + 4]
push eax
mov dword [0x412c50], ecx
call sub.pvutil.dll_cch_free
push esi
call edi
add esp, 4
push esi
call sub.pvutil.dll_cch_free
jmp 0x403f89
push 1
call fcn.00407a1e
pop edi
pop esi
pop ebp
int3

Function at 0x406070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 0x18]
inc esi
lea edi, [esi + ebp]
cmp edi, eax
jle 0x4060a5
push str._Insufficient_buffer_space_for_TIFF_data_n
push 0x4122c8
call fcn.00407afe
add esp, 8
push 1
call fcn.00407a1e
mov eax, dword [esp + 0x10]
push ebx
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and esi, 0x80000001
mov eax, edi
jns 0x4060c2
dec esi
or esi, 0xfffffffe
inc esi
je 0x4060c5
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x406270
Capabilities:
Terminate process

Disassembly:
push ecx
push edi
mov edi, eax
lea eax, [edi + 8]
cmp eax, ecx
jle 0x406294
push str._Insufficient_buffer_space_for_TIFF_data_n
push 0x4122c8
call fcn.00407afe
add esp, 8
push 1
call fcn.00407a1e
fld qword [esp + 0xc]
push ebx
fld st(0)
call fcn.00407c74
mov ecx, eax
mov dword [esp + 8], ecx
fild dword [esp + 8]
mov ebx, 1
fsubr st(1)
fld st(1)
fxch st(1)
fxch st(1)
fmul qword [0x410a28]
fcompp
fnstsw ax
test ah, 5
jp 0x4062f9
lea ebx, [ebx + ebx*4]
shl ebx, 1
mov dword [esp + 8], ebx
fild dword [esp + 8]
fmul st(1)
fld st(0)
call fcn.00407c74
mov ecx, eax
mov dword [esp + 8], ecx
fild dword [esp + 8]
fsubr st(1)
fxch st(1)
fmul qword [0x410a28]
fcompp
fnstsw ax
test ah, 5
jnp 0x4062c6
cmp word [0x413078], 0
fstp st(0)
mov eax, ecx
mov edx, ecx
je 0x40634a
sar edx, 0x18
mov byte [esi + edi], dl
sar eax, 0x10
mov byte [edi + esi + 1], al
inc edi
inc edi
mov edx, ecx
sar edx, 8
mov byte [edi + esi], dl
inc edi
mov byte [edi + esi], cl
inc edi
mov eax, ebx
sar eax, 0x18
mov byte [edi + esi], al
mov ecx, ebx
sar ecx, 0x10
lea eax, [edi + 1]
mov byte [eax + esi], cl
mov edx, ebx
sar edx, 8
inc eax
mov byte [eax + esi], dl
inc eax
mov byte [eax + esi], bl
pop ebx
inc eax
pop edi
pop ecx
ret
mov byte [esi + edi], cl
inc edi
sar eax, 8
mov byte [edi + esi], al
sar edx, 0x10
mov byte [edi + esi + 1], dl
inc edi
sar ecx, 0x18
inc edi
mov byte [edi + esi], cl
inc edi
mov byte [edi + esi], bl
mov ecx, ebx
sar ecx, 8
mov edx, ebx
sar ebx, 0x18
lea eax, [edi + 1]
mov byte [eax + esi], cl
sar edx, 0x10
inc eax
mov byte [eax + esi], dl
inc eax
mov byte [eax + esi], bl
pop ebx
inc eax
pop edi
pop ecx
ret

Function at 0x40795d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4131cc], esi
push edi
jne 0x40797d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4131c8], esi
mov byte [0x4131c4], al
jne 0x4079e3
mov ecx, dword [0x41482c]
test ecx, ecx
je 0x4079c4
mov eax, dword [0x414828]
sub eax, 4
cmp eax, ecx
jmp 0x4079bd
mov eax, dword [eax]
test eax, eax
je 0x4079af
call eax
mov eax, dword [0x414828]
sub eax, 4
cmp eax, dword [0x41482c]
mov dword [0x414828], eax
jae 0x4079a7
mov eax, 0x412020
mov esi, 0x412028
cmp eax, esi
mov edi, eax
jae 0x4079e3
mov eax, dword [edi]
test eax, eax
je 0x4079dc
call eax
add edi, 4
cmp edi, esi
jb 0x4079d4
mov eax, 0x41202c
mov esi, 0x412030
cmp eax, esi
mov edi, eax
jae 0x407a02
mov eax, dword [edi]
test eax, eax
je 0x4079fb
call eax
add edi, 4
cmp edi, esi
jb 0x4079f3
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x407a1c
push dword [ebp + 8]
mov dword [0x4131cc], 1
call fcn.004078c3
pop ebp
ret
Function at 0x407d82
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x18
push 0x410f78
call fcn.0040ad40
mov edi, 0x94
mov eax, edi
call fcn.004077b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41318c], ecx
mov eax, dword [esi + 4]
mov dword [0x413198], eax
mov edx, dword [esi + 8]
mov dword [0x41319c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x413190], esi
cmp ecx, 2
je 0x407de2
or esi, 0x8000
mov dword [0x413190], esi
shl eax, 8
add eax, edx
mov dword [0x413194], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x407e1b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407e1b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x407e33
cmp eax, 0x20b
je 0x407e20
mov dword [ebp - 0x1c], edi
jmp 0x407e47
cmp dword [ecx + 0x84], 0xe
jbe 0x407e1b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x407e41
cmp dword [ecx + 0x74], 0xe
jbe 0x407e1b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.0040aced
pop ecx
test eax, eax
jne 0x407e73
cmp dword [0x4131e4], 2
je 0x407e60
call fcn.0040a732
push 0x1c
call fcn.0040a5bb
push 0xff
call fcn.004078c3
pop ecx
pop ecx
call fcn.00408b5d
mov dword [ebp - 4], edi
call fcn.00408e98
test eax, eax
jge 0x407e8c
push 0x1b
call fcn.00407d5d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x413800], eax
call fcn.0040abb1
mov dword [0x4131dc], eax
call fcn.0040ab0f
test eax, eax
jge 0x407eb2
push 8
call fcn.00407d5d
pop ecx
call fcn.0040a8dc
test eax, eax
jge 0x407ec3
push 9
call fcn.00407d5d
pop ecx
push 1
call fcn.004078f3
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x407ed9
push eax
call fcn.00407d5d
pop ecx
mov eax, dword [0x4131ac]
mov dword [0x4131b0], eax
push eax
push dword [0x4131a4]
push dword [0x4131a0]
call fcn.00403f30
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x407f08
push esi
call fcn.00407a1e
call fcn.00407a40
jmp 0x407f3a
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040ad7b
ret
Function at 0x40a5bb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x412690]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x412560]
je 0x40a5f0
inc eax
cmp eax, 0x13
jb 0x40a5e1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x412560]
jne 0x40a716
mov eax, dword [0x4131e4]
cmp eax, 1
je 0x40a6ee
cmp eax, edx
jne 0x40a620
cmp dword [0x412524], 1
je 0x40a6ee
cmp ecx, 0xfc
je 0x40a716
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a656
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040d2d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040a530
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40a68a
mov eax, edi
push eax
call fcn.0040a530
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x411478
push edi
call fcn.0040da20
add esp, 0x10
push edi
call fcn.0040a530
push dword [esi + 0x412564]
mov ebx, eax
call fcn.0040a530
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004077b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040d2d0
push edi
push ebx
call fcn.0040d2e0
push 0x411458
push ebx
call fcn.0040d2e0
push dword [esi + 0x412564]
push ebx
call fcn.0040d2e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040d919
add esp, 0x2c
jmp 0x40a716
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x412564]
push dword [esi]
call fcn.0040a530
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040b622
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret