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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0xc]
mov ebx, dword [eax]
lea eax, [ecx - 3]
cmp eax, 4
ja case.0x41707c.4
jmp dword [eax*4 + 0x41725c]
lea edx, [esi + 0x144]
push edx
call fcn.00416900
mov di, ax
xor eax, eax
mov ax, word [esi + 0x28]
add esp, 4
and edi, 0xffff
inc eax
cmp eax, edi
je 0x4170e4
push edi
push str.Received_unexpected_DATA_packet_block__d_n
push ebx
call fcn.00412fe0
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
inc edx
mov eax, edx
mov dword [esi + 0x14], edx
cmp eax, ecx
jle 0x4170e4
xor ecx, ecx
mov cx, word [esi + 0x28]
inc ecx
push ecx
push str.tftp_rx:_giving_up_waiting_for_block__d
push ebx
call fcn.00413050
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
ret
mov word [esi + 0x28], di
lea edi, [esi + 0x148]
push 4
push edi
mov dword [esi + 0x14], 0
call fcn.00416f60
mov dx, word [esi + 0x28]
push edx
push edi
call fcn.00417270
mov eax, dword [esi + 0x130]
mov edx, dword [edi]
add esp, 0x10
lea ecx, [esi + 0xb0]
push eax
mov eax, dword [esi + 0x10]
push ecx
push 0
push 4
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x41713e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0xc]
push eax
push ecx
jmp 0x417220
mov edx, dword [esi + 0x13c]
mov ebx, dword [esi + 0x134]
add edx, 4
xor eax, eax
cmp ebx, edx
pop edi
setge al
dec eax
and eax, 2
inc eax
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
ret
lea edi, [esi + 0x148]
push 4
push edi
mov word [esi + 0x28], 0
mov dword [esi + 0x14], 0
call fcn.00416f60
mov cx, word [esi + 0x28]
push ecx
push edi
call fcn.00417270
mov edx, dword [esi + 0x130]
mov ecx, dword [edi]
add esp, 0x10
lea eax, [esi + 0xb0]
push edx
mov edx, dword [esi + 0x10]
push eax
push 0
push 4
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jl 0x417215
mov dword [esi], 1
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [esi + 0x14]
inc edx
mov eax, edx
mov dword [esi + 0x14], edx
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.00412fe0
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
add esp, 0xc
cmp ecx, eax
jle 0x4171ee
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [esi + 0x130]
mov ecx, dword [esi + 0x148]
lea eax, [esi + 0xb0]
push edx
mov edx, dword [esi + 0x10]
push eax
push 0
push 4
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x4171e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [esi + 0xc]
push eax
call fcn.00426750
push eax
push 0x42fae8
push ebx
call fcn.00413050
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
ret
push str.tftp_rx:_internal_error
push 0x42fae8
push ebx
call fcn.00413050
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
ret
Function at 0x4192b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov al, byte [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
lea ecx, [esp + 0x14]
mov edx, dword [esi + 0xd4]
mov edi, dword [esi]
push 3
push ecx
push edx
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], al
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4192fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00413050
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
push eax
push ebx
push str.SENT
push ecx
call fcn.00419320
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x41c7f0
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
shr eax, 0x1f
mov ebx, dword [edi]
add edx, eax
cmp edx, 2
je 0x41c82c
push str.Couldnt_set_desired_mode
push ebx
call fcn.00413050
add esp, 8
mov eax, 0x11
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x41c843
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.00412fe0
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, 0x11
jne 0x41c85b
push edi
call fcn.0041b370
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x12
jne 0x41c86f
push edi
call fcn.0041c8a0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x13
jne 0x41c883
push edi
call fcn.0041c9b0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x41c893
push edi
call fcn.0041c9d0
add esp, 4
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x41ce30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov ebp, dword [ebx]
mov esi, dword [ebx + 0xd8]
push edi
push 1
push 0
push ebx
call fcn.004137a0
add esp, 0xc
test eax, eax
jge 0x41ce6f
push str.Timed_out_before_server_could_connect_to_us
push ebp
call fcn.00413050
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
push 0xffffffffffffffff
push esi
call fcn.00424c50
add esp, 0xc
cmp eax, 0xffffffff
je 0x41ceff
test eax, eax
je 0x41cef8
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
or edi, 0xffffffff
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x41cebf
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
push esi
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
jne 0x41ced2
push str.Error_accept__ing_server_connect
jmp 0x41cf04
push str.Connection_accepted_from_server_n
push ebp
call fcn.00412fe0
push 1
push edi
mov dword [ebx + 0xd8], edi
call fcn.00426c30
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push str.Timeout_while_waiting_for_server_connect
jmp 0x41cf04
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.00413050
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x422d80
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x422d8f
jmp dword [ecx*4 + 0x422de4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
Function at 0x424c50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x320
push ebx
push ebp
mov ebp, dword [esp + 0x32c]
push esi
push edi
xor edi, edi
xor esi, esi
cmp ebp, 0xffffffff
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
jne 0x424c96
cmp dword [esp + 0x338], ebp
jne 0x424c96
mov eax, dword [esp + 0x33c]
push eax
call fcn.00424e90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret
mov ebx, dword [esp + 0x33c]
cmp ebx, edi
jle 0x424cb0
mov esi, ebx
call fcn.004232c0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor ecx, ecx
or edi, 0xffffffff
xor eax, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x128], eax
je 0x424ce4
mov ecx, 1
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ecx
mov edi, ebp
mov ebp, dword [esp + 0x338]
mov dword [esp + 0x22c], eax
cmp ebp, 0xffffffff
je 0x424d39
cmp eax, ecx
mov dword [esp + 0x230], ebp
mov dword [esp + 0x22c], 1
jae 0x424d1f
lea edx, [esp + 0x28]
cmp dword [edx], ebp
je 0x424d1d
inc eax
add edx, 4
cmp eax, ecx
jb 0x424d11
cmp eax, ecx
jne 0x424d33
cmp ecx, 0x40
jae 0x424d33
mov dword [esp + eax*4 + 0x28], ebp
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp ebp, edi
jbe 0x424d39
mov edi, ebp
xor ecx, ecx
lea edx, [esp + 0x18]
test ebx, ebx
setl cl
dec ecx
and ecx, edx
inc edi
mov ebp, ecx
mov dword [esp + 0x20], edi
xor edi, edi
cmp ebx, edi
jle 0x424d85
mov eax, 0x10624dd3
mov ecx, 0x3e8
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, esi
mov dword [esp + 0x18], edx
cdq
idiv ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 0x1c], edx
jmp 0x424d8f
jne 0x424d8f
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x24]
push ebp
lea ecx, [esp + 0x230]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x130]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x424df0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, edi
je 0x424dc6
cmp eax, 0x2714
jne 0x424df4
cmp ebx, edi
jle 0x424d4e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.004232c0
push edx
push eax
call fcn.004232f0
mov esi, ebx
add esp, 0x10
sub esi, eax
cmp esi, edi
jle 0x424df4
jmp 0x424d4e
cmp eax, edi
jge 0x424e02
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x320
ret
jne 0x424e11
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x320
ret
mov edi, dword [esp + 0x334]
xor esi, esi
cmp edi, 0xffffffff
je 0x424e48
lea eax, [esp + 0x128]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424e36
mov esi, 1
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424e48
or esi, 4
mov edi, dword [esp + 0x338]
cmp edi, 0xffffffff
je 0x424e7b
lea edx, [esp + 0x22c]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424e69
or esi, 2
lea eax, [esp + 0x24]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x424e7b
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret
Function at 0x4251e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
mov eax, dword [esp + 0x108]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x42522e
lea ecx, [esp]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov al, byte [esp]
test al, al
je 0x42522e
lea edx, [esp]
push edx
call dword [0x4303c8]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret

Function at 0x427040
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x1002c0a
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10031e0
call fcn.01002db4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004bd8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002a1f
cmp eax, esi
jne 0x1002a12
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002a22
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10029f9
xor esi, esi
inc esi
mov eax, dword [0x1004bd4]
cmp eax, esi
jne 0x1002a35
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002a70
mov eax, dword [0x1004bd4]
test eax, eax
jne 0x1002a6a
mov dword [0x1004bd4], esi
push 0x1001140
push 0x1001134
call fcn.01002976
pop ecx
pop ecx
test eax, eax
je 0x1002a70
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002b3a
mov dword [0x1004894], esi
mov eax, dword [0x1004bd4]
cmp eax, esi
jne 0x1002a94
push 0x1001130
push 0x1001128
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004bd4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002aa1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004bdc], ebx
je 0x1002ac2
push 0x1004bdc
call fcn.01002d29
pop ecx
test eax, eax
je 0x1002ac2
push ebx
push 2
push ebx
call dword [0x1004bdc]
push dword [0x100487c]
push dword [0x1004880]
push dword [0x1004878]
call fcn.01001bab
add esp, 0xc
mov dword [0x1004890], eax
cmp dword [0x1004884], ebx
jne 0x1002b20
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004894], ebx
jne 0x1002b2e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004890]
call fcn.01002df9
ret
call fcn.01002f01
jmp 0x10029d7

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401050
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x417b70
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00416714
test eax, eax
jne 0x40108c
mov esi, 1
jmp 0x4010b5
mov eax, dword [0x41f710]
mov dword [esp + 4], eax
push 1
lea ecx, [esp + 8]
mov dword [esp + 0x34], esi
call fcn.004109ba
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041055d
cmp dword [esp + 0x38], 2
jge 0x4010ce
xor eax, eax
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
lea ecx, [esp + 8]
call fcn.00401ca0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], 1
mov edx, dword [ecx + 4]
lea ecx, [esp + 8]
push edx
call fcn.00402480
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.00401d10
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x401250
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x417b9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
push edi
mov ecx, dword [esp + 0x168]
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x168], 1
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or edi, 0xffffffff
cmp eax, edi
jne 0x4012ef
lea edx, [esp + 0x168]
lea eax, [esp + 0xc]
push edx
push str.File_not_found:
push eax
call fcn.0041081a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0xc]
call fcn.0041055d
lea ecx, [esp + 0x168]
mov byte [esp + 0x160], bl
call fcn.0041055d
lea ecx, [esp + 0x16c]
mov dword [esp + 0x160], edi
call fcn.0041055d
xor eax, eax
jmp 0x401448
push ecx
lea edx, [esp + 0x170]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.004102d2
call fcn.00401460
add esp, 4
cmp eax, ebx
lea eax, [esp + 0x10]
push eax
je 0x401375
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x170]
push 1
push ecx
push edx
push ebx
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesA
test eax, eax
jne 0x4013ee
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.UpdateDriverForPlugAndPlayDevices
call esi
push str.FindExistingDevice_true_UpdateDriverForPlugAndPlayDevices_failed_n
call esi
lea ecx, [esp + 0x168]
mov byte [esp + 0x160], bl
call fcn.0041055d
lea ecx, [esp + 0x16c]
mov dword [esp + 0x160], edi
call fcn.0041055d
xor eax, eax
jmp 0x401448
push ecx
lea edx, [esp + 0x174]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004102d2
push ecx
lea eax, [esp + 0x174]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x170], 2
call fcn.004102d2
mov byte [esp + 0x16c], 1
call fcn.004016e0
add esp, 0xc
cmp eax, ebx
jne 0x4013ee
push str.InstallRootEnumeratedDriver_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x168]
mov byte [esp + 0x160], bl
call fcn.0041055d
lea ecx, [esp + 0x16c]
mov dword [esp + 0x160], edi
call fcn.0041055d
xor eax, eax
jmp 0x401448
push str.Driver_Installed_successfully._n
call fcn.00401040
mov eax, dword [esp + 0x178]
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x40140c
mov dword [eax], ecx
cmp ecx, ebx
je 0x40141d
push str._Reboot_Required__n
call fcn.00401040
add esp, 4
lea ecx, [esp + 0x168]
mov byte [esp + 0x160], bl
call fcn.0041055d
lea ecx, [esp + 0x16c]
mov dword [esp + 0x160], edi
call fcn.0041055d
mov eax, 1
mov ecx, dword [esp + 0x158]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x158
ret
Function at 0x4027d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.0040fb69
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004102d2
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00402c40
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0x41f64c
push eax
mov byte [esp + 0x34], 1
call fcn.0041081a
push ecx
mov byte [esp + 0x2c], 2
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x41f648
push eax
push ecx
call fcn.004107a6
mov ecx, esi
call fcn.00402a00
lea ecx, [esp + 0x14]
mov ebp, eax
mov byte [esp + 0x24], 1
call fcn.0041055d
test ebp, ebp
jne 0x4028a4
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.0041055d
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041055d
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 8
mov eax, dword [0x41f710]
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], eax
mov edx, dword [esi + 4]
add esi, 4
lea eax, [esp + 0x30]
mov ecx, esi
push eax
mov byte [esp + 0x28], 4
call dword [edx + 0x58]
test eax, eax
je 0x4029a9
lea ecx, [esp + 0x30]
call fcn.0040f902
lea ecx, [esp + 0x30]
call fcn.0040f8b6
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402995
cmp byte [eax], 0x3b
je 0x402995
push 0x5b
lea ecx, [esp + 0x34]
call fcn.00410925
cmp eax, 0xffffffff
je 0x402920
lea ecx, [esp + 0x30]
call fcn.0040f902
mov ecx, dword [esp + 0x30]
cmp byte [ecx], 0x3b
jne 0x4029a9
jmp 0x402995
push 0x2c
lea ecx, [esp + 0x34]
call fcn.00410925
cmp eax, 0xffffffff
je 0x402995
mov edx, dword [esp + 0x30]
mov ecx, dword [edx - 8]
sub ecx, eax
lea eax, [esp + 0x14]
dec ecx
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.0040f46e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 5
call fcn.0041064a
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 4
call fcn.0041055d
lea ecx, [esp + 0xc]
call fcn.0040f902
lea ecx, [esp + 0xc]
call fcn.0040f8b6
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00401040
mov eax, dword [edi + 8]
add esp, 4
lea edx, [esp + 0xc]
mov ecx, edi
push edx
push eax
call fcn.0040fd12
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [eax + 0x58]
test eax, eax
jne 0x4028ce
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call fcn.0041055d
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.0041055d
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.0041055d
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041055d
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x1c
ret 8
Function at 0x408941
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x420338
cmp edx, dword [eax]
je 0x408963
add eax, 8
inc ecx
cmp eax, 0x4203c8
jl 0x408954
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x420338]
jne 0x408a91
mov eax, dword [0x422ca8]
cmp eax, 1
je 0x408a6b
test eax, eax
jne 0x408994
cmp dword [0x41fbf4], 1
je 0x408a6b
cmp edx, 0xfc
je 0x408a91
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4089cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408aa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408b90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408a0e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408b90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a798
push edi
call fcn.00403de0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408aa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408ab0
lea eax, [ebp - 0xa0]
push 0x41a778
push eax
call fcn.00408ab0
push dword [esi + 0x42033c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408ab0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b044
add esp, 0x2c
pop edi
jmp 0x408a91
lea eax, [ebp + 8]
lea esi, [esi + 0x42033c]
push 0
push eax
push dword [esi]
call fcn.00408b90
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 0x10043636
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1004dc48
call fcn.10039004
xor esi, esi
cmp dword [0x10054eb8], esi
jne 0x1004367a
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10043665
mov dword [0x10054eb8], edi
jmp 0x1004367a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1004367a
mov dword [0x10054eb8], 2
mov eax, dword [0x10054eb8]
cmp eax, 2
je 0x1004375b
cmp eax, esi
je 0x1004375b
cmp eax, 1
jne 0x100436bf
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x100436a8
mov eax, dword [0x10054e54]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x100436c6
xor eax, eax
jmp 0x1004376d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.100365e0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x100436fc
cmp edi, esi
jne 0x10043717
lea eax, [ebx + ebx]
push eax
call fcn.10036863
pop ecx
mov edi, eax
cmp edi, esi
je 0x100436bf
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004374a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x10043734
push esi
push esi
jmp 0x1004373a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x10043756
push edi
call fcn.1003633d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1004376d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.1003903f
ret