joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483a70
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x24]
cmp esi, 3
jne 0x483a86
mov ebp, dword [0x7fe1a0]
jmp 0x483aa7
cmp esi, 4
jne 0x483a93
mov ebp, dword [0x7fe1a0]
jmp 0x483aa7
cmp esi, 5
je 0x483aa1
cmp esi, 6
jne 0x483b91
mov ebp, dword [0x7fcfe0]
test ebp, ebp
je 0x483ba0
lea eax, [esp + 8]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00483500
mov eax, dword [0x7fe1f8]
add esp, 8
test eax, eax
je 0x483b3d
cmp esi, 4
jne 0x483b3d
mov ax, word [esp + 0xa]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x20]
mov word [0x7fd188], ax
mov eax, dword [esp + 0x1c]
mov dword [0x7fd184], edx
mov ecx, eax
push edi
mov edx, ecx
mov edi, 0x7fd18a
shr ecx, 2
mov byte [0x7fd180], 0
mov byte [0x7fd181], 0
mov byte [0x7fd182], 0
mov byte [0x7fd183], 1
rep movsd dword es:[edi], dword [esi]
push 0x10
mov ecx, edx
push 0x7fe184
add eax, 0xa
push 0
and ecx, 3
push eax
push 0x7fd180
rep movsb byte es:[edi], byte [esi]
push ebp
call sub.WSOCK32.DLL_sendto
mov esi, dword [esp + 0x28]
pop edi
jmp 0x483b56
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea eax, [esp + 8]
push 0x10
push eax
push 0
push ecx
push edx
push ebp
call sub.WSOCK32.DLL_sendto
cmp eax, 0xffffffff
jne 0x483ba0
call sub.WSOCK32.DLL_WSAGetLastError
cmp eax, 0x2733
je 0x483ba0
cmp eax, 0x2741
jne 0x483b78
cmp esi, 3
je 0x483ba0
cmp esi, 6
je 0x483ba0
call fcn.004832b0
push eax
push str.NET_SendPacket:__s_n
call fcn.0044cf60
add esp, 8
pop esi
pop ebp
add esp, 0x10
ret
push str.Sys_SendPacket:_bad_address_type
push 0
call fcn.0044d230
add esp, 8
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x483d30
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x28]
mov eax, 1
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push ebp
je 0x483d60
push edi
push str.Opening_IP_socket:__s:_i_n
call fcn.0044cf60
add esp, 0xc
jmp 0x483d6d
push str.Opening_IP_socket:_localhost:_i_n
call fcn.0044cf60
add esp, 8
push 0x11
push 2
push 2
call sub.WSOCK32.DLL_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x483da7
call sub.WSOCK32.DLL_WSAGetLastError
cmp eax, 0x273f
je 0x483d9e
call fcn.004832b0
push eax
push str.WARNING:_UDP_OpenSocket:_socket:__s
call fcn.0044cf60
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push esi
call sub.WSOCK32.DLL_ioctlsocket
cmp eax, 0xffffffff
jne 0x483dd8
call fcn.004832b0
push eax
push str.WARNING:_UDP_OpenSocket:_ioctl_FIONBIO:__s_n
call fcn.0044cf60
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x20
push 0xffff
push esi
call sub.WSOCK32.DLL_setsockopt
cmp eax, 0xffffffff
jne 0x483e0d
call fcn.004832b0
push eax
push str.WARNING:_UDP_OpenSocket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0044cf60
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
test edi, edi
je 0x483e38
cmp byte [edi], 0
je 0x483e38
push str.localhost
push edi
call fcn.0051be70
add esp, 8
test eax, eax
je 0x483e38
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00483610
add esp, 8
jmp 0x483e40
mov dword [esp + 0x18], 0
cmp ebp, 0xffffffff
jne 0x483e4e
mov word [esp + 0x16], 0
jmp 0x483e59
push ebp
call sub.WSOCK32.DLL_htons
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push 0x10
push eax
push esi
mov word [esp + 0x20], 2
call sub.WSOCK32.DLL_bind
cmp eax, 0xffffffff
jne 0x483e94
call fcn.004832b0
push eax
push str.WARNING:_UDP_OpenSocket:_bind:__s_n
call fcn.0044cf60
add esp, 8
push esi
call sub.WSOCK32.DLL_closesocket
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x4842a0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
lea eax, [esp + 4]
push esi
push edi
push 0x100
push eax
call sub.WSOCK32.DLL_gethostname
cmp eax, 0xffffffff
jne 0x4842c9
pop edi
pop esi
add esp, 0x104
jmp sub.WSOCK32.DLL_WSAGetLastError
lea ecx, [esp + 0xc]
push ecx
call sub.WSOCK32.DLL_gethostbyname
mov edi, eax
test edi, edi
jne 0x4842e6
pop edi
pop esi
add esp, 0x104
jmp sub.WSOCK32.DLL_WSAGetLastError
mov edx, dword [edi]
push edx
push str.Hostname:__s_n
call fcn.0044cf60
mov eax, dword [edi + 4]
add esp, 8
mov eax, dword [eax]
test eax, eax
je 0x48431c
xor esi, esi
push eax
push str.Alias:__s_n
add esi, 4
call fcn.0044cf60
mov ecx, dword [edi + 4]
add esp, 8
mov eax, dword [esi + ecx]
test eax, eax
jne 0x484301
cmp word [edi + 8], 2
jne 0x4843b3
xor eax, eax
mov dword [0x7fe1ec], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx]
test esi, esi
je 0x4843b3
cmp eax, 0x10
jge 0x4843b3
mov eax, dword [esi]
push eax
call sub.WSOCK32.DLL_ntohl
mov ecx, dword [0x7fe1ec]
mov dl, byte [esi]
mov dword [esp + 8], eax
mov byte [ecx*4 + 0x7fe1a8], dl
mov dl, byte [esi + 1]
mov byte [ecx*4 + 0x7fe1a9], dl
mov dl, byte [esi + 2]
mov byte [ecx*4 + 0x7fe1aa], dl
mov dl, byte [esi + 3]
mov byte [ecx*4 + 0x7fe1ab], dl
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
push ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esp + 0xe]
mov cl, byte [esp + 0xf]
push edx
push eax
push ecx
push str.IP:__i._i._i._i_n
call fcn.0044cf60
mov eax, dword [0x7fe1ec]
add esp, 0x14
inc eax
mov dword [0x7fe1ec], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx + eax*4]
test esi, esi
jne 0x484337
pop edi
pop esi
add esp, 0x104
ret
Function at 0x4844d0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push 0x3e8
push 2
push 6
mov dword [esp + 0x10], 1
call sub.WSOCK32.DLL_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x484517
call sub.WSOCK32.DLL_WSAGetLastError
cmp eax, 0x273f
je 0x484510
call fcn.004832b0
push eax
push str.WARNING:_IPX_Socket:_socket:__s_n
call fcn.0044cf60
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
lea eax, [esp + 4]
push eax
push 0x8004667e
push esi
call sub.WSOCK32.DLL_ioctlsocket
cmp eax, 0xffffffff
jne 0x484546
call fcn.004832b0
push eax
push str.WARNING:_IPX_Socket:_ioctl_FIONBIO:__s_n
call fcn.0044cf60
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
lea ecx, [esp + 4]
push 4
push ecx
push 0x20
push 0xffff
push esi
call sub.WSOCK32.DLL_setsockopt
cmp eax, 0xffffffff
jne 0x484579
call fcn.004832b0
push eax
push str.WARNING:_IPX_Socket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0044cf60
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xe], edx
cmp eax, 0xffffffff
mov word [esp + 8], 6
mov dword [esp + 0xa], ecx
mov word [esp + 0x12], dx
jne 0x4845a1
mov word [esp + 0x14], cx
jmp 0x4845ac
push eax
call sub.WSOCK32.DLL_htons
mov word [esp + 0x14], ax
lea eax, [esp + 8]
push 0xe
push eax
push esi
call sub.WSOCK32.DLL_bind
cmp eax, 0xffffffff
jne 0x4845de
call fcn.004832b0
push eax
push str.WARNING:_IPX_Socket:_bind:__s_n
call fcn.0044cf60
add esp, 8
push esi
call sub.WSOCK32.DLL_closesocket
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x484870
Capabilities:
Initialize winsock library

Disassembly:
push 0x7fcfe8
push 0x101
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
je 0x484892
push eax
push str.WARNING:_Winsock_initialization_failed__returned__d_n
call fcn.0044cf60
add esp, 8
ret
push str.Winsock_Initialized_n
mov dword [0x7fe1f4], 1
call fcn.0044cf60
call fcn.00484720
push 1
call fcn.00484630
add esp, 8
ret
Function at 0x488b20
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x7fe7a0]
test eax, eax
je 0x488b55
push 0
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, dword [0x7fe7a0]
push eax
call dword [sym.imp.USER32.DLL_CloseWindow]
mov ecx, dword [0x7fe7a0]
push ecx
call dword [sym.imp.USER32.DLL_DestroyWindow]
mov dword [0x7fe7a0], 0
ret

Function at 0x488b60
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x7fec24], eax
mov eax, dword [0x7fec20]
cmp ecx, eax
je 0x488bda
mov edx, dword [0x7fe7a0]
mov dword [0x7fec20], ecx
test edx, edx
je 0x488bda
mov eax, ecx
sub eax, 0
je 0x488bd1
dec eax
je 0x488bae
dec eax
je 0x488ba4
mov dword [esp + 8], ecx
mov dword [esp + 4], str.Invalid_visLevel__d_sent_to_Sys_ShowConsole_n
jmp fcn.004815c0
push 6
push edx
call dword [sym.imp.USER32.DLL_ShowWindow]
ret
push 1
push edx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov ecx, dword [0x7fe7a4]
push 0xffff
push 0
push 0xb6
push ecx
call dword [sym.imp.USER32.DLL_SendMessageA]
ret
push 0
push edx
call dword [sym.imp.USER32.DLL_ShowWindow]
ret

Function at 0x489420
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov dword [0xcbb634], eax
call fcn.00436c20
mov eax, dword [esp + 4]
test eax, eax
je 0x48948f
mov eax, dword [0xcbb634]
test eax, eax
jne 0x48948f
mov eax, dword [0x558890]
mov dword [0xcbb630], 1
test eax, eax
jne 0x4894f5
mov eax, dword [0xff28b0]
test eax, eax
jne 0x4894f5
mov eax, dword [0xcbb614]
test eax, eax
je 0x4894f5
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4894f5
push str.vid_restart_n
call fcn.0044c120
add esp, 4
mov dword [0x558890], 1
ret
push 0
mov dword [0xcbb630], 0
call fcn.0047ed00
mov ecx, dword [0xed0900]
add esp, 4
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x4894cc
mov edx, dword [0xed0914]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4894cc
call fcn.004784a0
mov dword [0x7fec54], 1
mov eax, dword [0xcbb614]
test eax, eax
je 0x48953d
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x48953d
mov eax, dword [0xcbb628]
push 6
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
push 0
push 0
call dword [sym.imp.USER32.DLL_ChangeDisplaySettingsA]
ret
push 1
mov dword [0x558890], 0
call fcn.0047ed00
mov ecx, dword [0xcbb628]
add esp, 4
push ecx
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
mov edx, dword [0xcbb628]
push 9
push edx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, dword [0x7fec54]
test eax, eax
je 0x48953d
call fcn.004784f0
mov dword [0x7fec54], 0
ret
Function at 0x489d20
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [0x7fec48]
test eax, eax
jne 0x489d65
mov eax, dword [0x7fec4c]
test eax, eax
jne 0x489d65
mov eax, dword [0xcbb62c]
push 0
push eax
push 0x489ae0
push 0xd
call dword [sym.imp.USER32.DLL_SetWindowsHookExA]
test eax, eax
mov dword [0x7fec3c], eax
je 0x489d5b
mov dword [0x7fec48], 1
ret
mov dword [0x7fec4c], 1
ret
Function at 0x4a0390
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4a03c3
push esi
call fcn.004d0a50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4a03bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4a03f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4a03eb
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x2d
mov edx, dword [esi]
call dword [edx]
add esp, 4
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x4a0419
cmp eax, 0xcc
je 0x4a0419
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x11
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
cmp dword [esi + 0x10], 0xcc
je 0x4a043f
mov edx, dword [esi + 0x1a0]
push esi
call dword [edx]
add esp, 4
mov dword [esi + 0x8c], 0
mov dword [esi + 0x10], 0xcc
mov eax, dword [esi + 0x1a0]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4a046a
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x2d
mov edx, dword [esi]
call dword [edx]
mov eax, dword [esi + 0x1a0]
add esp, 4
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4a044c
mov edx, dword [esi + 0x44]
xor ecx, ecx
test edx, edx
setne cl
add ecx, 0xcd
mov eax, 1
mov dword [esi + 0x10], ecx
pop esi
ret
Function at 0x4a09c0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x13e6afc]
sub esp, 0x694
test eax, eax
je 0x4a0b56
mov eax, dword [0x13e4258]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4a0b56
mov eax, dword [0x1313be4]
test eax, eax
je 0x4a0b56
push ebp
mov ebp, dword [esp + 0x6a4]
push esi
mov esi, dword [esp + 0x6a4]
push edi
mov edi, dword [esp + 0x6a4]
xor eax, eax
sub edi, esi
sub ebp, esi
movzx cx, byte [edi + esi]
xor edx, edx
mov dh, cl
or edx, ecx
movzx cx, byte [esi]
mov word [esp + eax*2 + 0xa0], dx
xor edx, edx
mov dh, cl
or edx, ecx
movzx cx, byte [esi + ebp]
mov word [esp + eax*2 + 0x2a0], dx
xor edx, edx
mov dh, cl
or edx, ecx
mov word [esp + eax*2 + 0x4a0], dx
inc eax
inc esi
cmp eax, 0x100
jl 0x4a0a0e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [esp + 0x10], 5
jne 0x4a0ad1
cmp dword [esp + 0x1c], 2
jne 0x4a0ad1
push str.performing_W2K_gamma_clamp._n
call fcn.0044d120
add esp, 4
lea esi, [esp + 0x19e]
mov edi, 3
push ebx
xor edx, edx
mov eax, 0x8000
lea ecx, [esi - 0xfe]
xor ebx, ebx
mov bx, word [ecx]
cmp ebx, eax
jle 0x4a0aa9
lea ebx, [edx - 0x80]
shl ebx, 8
mov word [ecx], bx
add eax, 0x100
inc edx
add ecx, 2
cmp eax, 0x10000
jl 0x4a0a97
cmp word [esi], 0xfe00
jbe 0x4a0ac5
mov word [esi], 0xfe00
add esi, 0x200
dec edi
jne 0x4a0a8a
pop ebx
jmp 0x4a0ade
push str.skipping_W2K_gamma_clamp._n
call fcn.0044d120
add esp, 4
lea esi, [esp + 0xa2]
mov edi, 3
mov eax, esi
mov edx, 0xff
mov cx, word [eax - 2]
cmp word [eax], cx
jae 0x4a0afd
mov word [eax], cx
add eax, 2
dec edx
jne 0x4a0af1
add esi, 0x200
dec edi
jne 0x4a0aea
mov eax, dword [0x13e4050]
pop edi
pop esi
pop ebp
test eax, eax
je 0x4a0b30
mov edx, dword [0x1313be4]
lea ecx, [esp + 0x94]
push ecx
push edx
call eax
add esp, 0x694
ret
mov ecx, dword [0x1313be4]
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.GDI32.DLL_SetDeviceGammaRamp]
test eax, eax
jne 0x4a0b56
push str.SetDeviceGammaRamp_failed._n
call fcn.0044cf60
add esp, 4
add esp, 0x694
ret
Function at 0x4a2950
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [0x1313c24], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x1313c1c], eax
call esi
push 0x1313c20
push 0
push 0
mov dword [0x1313c0c], eax
mov eax, dword [esp + 0x14]
push 0x4a2930
push 0
push 0
mov dword [0x1313c18], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
xor ecx, ecx
mov dword [0x1313c14], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret
Function at 0x4b95c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x98
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
push eax
push ecx
call fcn.004640d0
mov edx, dword [esp + 0xb4]
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xbc]
add esp, 8
xor ecx, ecx
lea eax, [esp + 0x50]
test cl, 1
je 0x4b9600
mov ebx, dword [edi]
jmp 0x4b9602
mov ebx, dword [esi]
test cl, 2
mov dword [esp + 0x18], ebx
je 0x4b9610
mov ebx, dword [edi + 4]
jmp 0x4b9613
mov ebx, dword [esi + 4]
test cl, 4
mov dword [esp + 0x1c], ebx
je 0x4b9621
fld dword [edi + 8]
jmp 0x4b9624
fld dword [esi + 8]
fld dword [esp + 0x24]
fmul dword [esp + 0x18]
inc ecx
add eax, 0xc
cmp ecx, 8
fstp dword [eax - 0x14]
fld dword [esp + 0x28]
fmul dword [esp + 0x18]
fstp dword [eax - 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x18]
fstp dword [eax - 0xc]
fld dword [esp + 0x1c]
fld dword [esp + 0x30]
fmul st(1)
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fld dword [esp + 0x34]
fmul st(1)
fadd dword [eax - 0x10]
fstp dword [eax - 0x10]
fld dword [esp + 0x38]
fmul st(1)
fadd dword [eax - 0xc]
fstp dword [eax - 0xc]
fstp st(0)
fld dword [esp + 0x3c]
fmul st(1)
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fld dword [esp + 0x40]
fmul st(1)
fadd dword [eax - 0x10]
fstp dword [eax - 0x10]
fld dword [esp + 0x44]
fmul st(1)
fadd dword [eax - 0xc]
fstp dword [eax - 0xc]
fstp st(0)
fld dword [eax - 0x14]
fadd dword [edx]
fstp dword [eax - 0x14]
fld dword [eax - 0x10]
fadd dword [edx + 4]
fstp dword [eax - 0x10]
fld dword [eax - 0xc]
fadd dword [edx + 8]
fstp dword [eax - 0xc]
jl 0x4b95f7
mov esi, dword [esp + 0xc8]
mov edi, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xbc]
push esi
push edi
push ebx
lea edx, [esp + 0x60]
push ebp
lea eax, [esp + 0x58]
push edx
push eax
call fcn.0049a570
push esi
push edi
push ebx
lea ecx, [esp + 0x90]
push ebp
lea edx, [esp + 0x7c]
push ecx
push edx
call fcn.0049a570
push esi
push edi
push ebx
lea eax, [esp + 0x9c]
push ebp
lea ecx, [esp + 0xac]
push eax
push ecx
call fcn.0049a570
add esp, 0x48
lea edx, [esp + 0x48]
lea eax, [esp + 0x60]
push esi
push edi
push ebx
push ebp
push edx
push eax
call fcn.0049a570
push esi
push edi
push ebx
lea ecx, [esp + 0xa8]
push ebp
lea edx, [esp + 0xa0]
push ecx
push edx
call fcn.0049a570
push esi
push edi
push ebx
lea eax, [esp + 0xd8]
push ebp
lea ecx, [esp + 0xc4]
push eax
push ecx
call fcn.0049a570
add esp, 0x48
lea edx, [esp + 0x90]
lea eax, [esp + 0x9c]
push esi
push edi
push ebx
push ebp
push edx
push eax
call fcn.0049a570
push esi
push edi
push ebx
lea ecx, [esp + 0x9c]
push ebp
lea edx, [esp + 0xb8]
push ecx
push edx
call fcn.0049a570
lea eax, [esp + 0x78]
add esp, 0x30
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 4
jmp 0x4b97b0
mov eax, dword [esp + 0x10]
push esi
push edi
push ebx
lea ecx, [eax + 0x30]
push ebp
push ecx
push eax
call fcn.0049a570
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 0x18
add ecx, 0xc
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4b97ac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x4d6530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x34]
mov eax, esi
imul eax, edi
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
lea ebp, [edx*4 + 0x80]
push ebp
call dword [0x1313c60]
mov ebx, eax
mov eax, ebp
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
push 0
push ebx
call fcn.0044f0f0
lea ebp, [esi*4]
push ebp
call dword [0x1313c60]
mov ecx, dword [esp + 0x50]
push ebp
push ecx
push eax
mov dword [ebx + 0x78], eax
call fcn.0044f1a0
lea ebp, [edi*4]
push ebp
call dword [0x1313c60]
mov edx, dword [esp + 0x60]
push ebp
add edx, 0x104
mov dword [ebx + 0x7c], eax
push edx
push eax
call fcn.0044f1a0
lea eax, [ebx + 0x20]
lea ecx, [ebx + 0x14]
push eax
push ecx
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x74], edi
mov dword [ebx], 2
call fcn.0045b2d0
add esp, 0x38
test esi, esi
jle 0x4d666f
mov eax, dword [esp + 0x38]
lea ebp, [ebx + 0x80]
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
test edi, edi
jle 0x4d664a
mov edx, dword [esp + 0x38]
lea ecx, [esi + esi*4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], edi
lea eax, [esi + ecx*2]
shl eax, 2
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x3c]
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x14]
mov ecx, 0xb
mov edi, ebp
push eax
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.0045b340
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
add esp, 0xc
add ebp, edx
add ecx, 0xb2c
dec eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
jne 0x4d6605
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edx, 0x2c
add ebp, 0x2c
dec eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jne 0x4d65e8
fld dword [ebx + 0x14]
fadd dword [ebx + 0x20]
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], eax
fmul dword [0x5354f0]
fst dword [ebx + 0x2c]
fld dword [ebx + 0x24]
fadd dword [ebx + 0x18]
fmul dword [0x5354f0]
fstp dword [ebx + 0x30]
fld dword [ebx + 0x28]
fadd dword [ebx + 0x1c]
fmul dword [0x5354f0]
fstp dword [ebx + 0x34]
fld dword [ebx + 0x14]
fsub st(1)
fstp dword [esp + 0x20]
fstp st(0)
fld dword [ebx + 0x18]
fsub dword [ebx + 0x30]
fstp dword [esp + 0x24]
fld dword [ebx + 0x1c]
fsub dword [ebx + 0x34]
fstp dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x40]
fld dword [esi]
fld dword [esi + 4]
fxch st(1)
fmul dword [esi]
fxch st(1)
fld dword [esi + 8]
fxch st(1)
fmul dword [esi + 4]
fxch st(1)
fmul dword [esi + 8]
fxch st(2)
faddp st(1)
faddp st(1)
fsqrt
pop esi
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x30]
pop edi
fst dword [ebx + 0x38]
fstp dword [ebx + 0x64]
mov dword [ebx + 0x60], eax
pop esi
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], edx
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x52663d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x56d418
cmp edx, dword [eax]
je 0x52665f
add eax, 8
inc ecx
cmp eax, 0x56d4a8
jl 0x526650
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x56d418]
jne 0x52678d
mov eax, dword [0xcbb2a8]
cmp eax, 1
je 0x526767
test eax, eax
jne 0x526690
cmp dword [0x56aae4], 1
je 0x526767
cmp edx, 0xfc
je 0x52678d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x5266c7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00523360
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005213c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x52670a
lea eax, [ebp - 0x1a4]
push eax
call fcn.005213c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x555b80
push edi
call fcn.0051ae90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00523360
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00523370
lea eax, [ebp - 0xa0]
push 0x5382cc
push eax
call fcn.00523370
push dword [esi + 0x56d41c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00523370
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0052b795
add esp, 0x2c
pop edi
jmp 0x52678d
lea eax, [ebp + 8]
lea esi, [esi + 0x56d41c]
push 0
push eax
push dword [esi]
call fcn.005213c0
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 0x417670
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100eb7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x6a0
mov eax, dword [0x101378d0]
xor eax, esp
mov dword [esp + 0x698], eax
push ebx
push esi
push edi
mov eax, dword [0x101378d0]
xor eax, esp
push eax
lea eax, [esp + 0x6b0]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov edi, ecx
mov dword [esp + 0x38], 0x80004005
call 0x3e5400
xor esi, esi
mov dword [esp + 0x6b8], esi
and al, 0xb8
push es
add byte [eax], al
push 0x40
lea ecx, [esp + 0x44]
push esi
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x48], esi
call 0x49ec10
xor eax, eax
add esp, 0xc
push 0x40e
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x8a]
xor edx, edx
push esi
push eax
mov dword [esp + 0x30], esi
mov word [esp + 0x90], dx
call 0x49ec10
add esp, 0xc