joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450580
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push esi
push 2
mov dword [eax], 0
call fcn.004627f0
add esp, 0xc
test eax, eax
jle 0x4505c4
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.0044fdf0
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.00450180
add esp, 8
test al, al
je 0x4505e8
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.004625a0
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.00443fc0
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x450635
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004625a0
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.00443fc0
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.0044fcc0
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x450b80
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0xc]
push ebx
mov ebx, dword [eax]
mov eax, dword [esp + 8]
add eax, 0xfffffffd
cmp eax, 4
push edi
ja case.0x450b97.4
jmp dword [eax*4 + 0x450d88]
lea eax, [esi + 0x154]
call fcn.00450890
movzx ecx, word [esi + 0x38]
movzx edi, ax
add ecx, 1
cmp ecx, edi
je 0x450bf8
push edi
push str.Received_unexpected_DATA_packet_block__d_n
push ebx
call fcn.00443fc0
add dword [esi + 0x14], 1
mov eax, dword [esi + 0x14]
cdq
add esp, 0xc
cmp edx, dword [esi + 0x24]
jl 0x450bf8
jg 0x450bda
cmp eax, dword [esi + 0x20]
jbe 0x450bf8
movzx edx, word [esi + 0x38]
add edx, 1
push edx
push str.tftp_rx:_giving_up_waiting_for_block__d
push ebx
call fcn.00444050
add esp, 0xc
pop edi
mov eax, 0x47
pop ebx
ret
mov word [esi + 0x38], di
lea edi, [esi + 0x158]
mov eax, 4
mov ecx, edi
mov dword [esi + 0x14], 0
call fcn.00450860
mov ax, word [esi + 0x38]
mov ecx, edi
call fcn.00450870
mov eax, dword [esi + 0x140]
mov edx, dword [edi]
push eax
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0xc0]
push ecx
push 0
push 4
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jl 0x450d44
mov edx, dword [esi + 0x14c]
xor eax, eax
add edx, 4
cmp dword [esi + 0x144], edx
pop edi
setl al
pop ebx
lea eax, [eax + eax + 1]
mov dword [esi], eax
xor eax, eax
ret
lea edi, [esi + 0x158]
mov eax, 4
mov ecx, edi
mov word [esi + 0x38], 0
mov dword [esi + 0x14], 0
call fcn.00450860
mov ax, word [esi + 0x38]
mov ecx, edi
call fcn.00450870
mov ecx, dword [esi + 0x140]
mov eax, dword [edi]
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0xc0]
push edx
push 0
push 4
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x450cda
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi + 0xc]
push eax
push edx
call fcn.004625a0
push eax
push 0x4af374
push ebx
call fcn.00444050
add esp, 0x14
pop edi
mov eax, 0x37
pop ebx
ret
pop edi
mov dword [esi], 1
xor eax, eax
pop ebx
ret
add dword [esi + 0x14], 1
mov eax, dword [esi + 0x14]
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.00443fc0
mov eax, dword [esi + 0x14]
cdq
add esp, 0xc
cmp edx, dword [esi + 0x24]
jl 0x450d1d
jg 0x450d0b
cmp eax, dword [esi + 0x20]
jbe 0x450d1d
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
pop edi
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x140]
mov edx, dword [esi + 0x158]
push eax
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0xc0]
push ecx
push 0
push 4
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x450d18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.004625a0
push eax
push 0x4af374
push ebx
call fcn.00444050
add esp, 0x14
pop edi
mov eax, 0x37
pop ebx
ret
push str.tftp_rx:_internal_error
push 0x4af374
push ebx
call fcn.00444050
add esp, 0xc
pop edi
mov eax, 0x47
pop ebx
ret
Function at 0x4532b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0xd4]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4532f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00444050
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004531a0
add esp, 4
pop esi
pop ecx
ret
Function at 0x454900
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x4c6644]
xor eax, esp
mov dword [esp + 0x14], eax
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xd8]
push 1
push 0
push esi
call fcn.00444420
add esp, 0xc
test eax, eax
jge 0x45494d
push str.Timed_out_before_server_could_connect_to_us
push ebp
call fcn.00444050
add esp, 8
pop edi
mov eax, 0x1c
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00467392
add esp, 0x18
ret
push eax
push 0xffffffffffffffff
push edi
call fcn.0045be90
add esp, 0xc
cmp eax, 0xffffffff
je 0x454a2b
test eax, eax
je 0x454a07
push ebx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4549a6
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x4549d7
push str.Error_accept__ing_server_connect
push ebp
call fcn.00444050
add esp, 8
pop ebx
pop edi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00467392
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.00443fc0
push 1
push ebx
mov dword [esi + 0xd8], ebx
call fcn.00462830
add esp, 0x10
pop ebx
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00467392
add esp, 0x18
ret
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.00444050
add esp, 8
pop edi
mov eax, 0x1e
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00467392
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.00444050
mov ecx, dword [esp + 0x24]
add esp, 8
pop edi
pop ebp
xor ecx, esp
mov eax, 0x1e
call fcn.00467392
add esp, 0x18
ret
Function at 0x45be90
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x45bed0
cmp ebp, ebx
jne 0x45bed0
mov eax, dword [esp + 0x334]
call fcn.0045be70
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x45beeb
mov esi, edi
call fcn.0045f060
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x45bf1f
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x45bf66
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x45bf4e
cmp dword [esp + eax*4 + 0x24], ebp
je 0x45bf4e
add eax, 1
cmp eax, ecx
jb 0x45bf41
cmp eax, ecx
jne 0x45bf60
cmp ecx, 0x40
jae 0x45bf60
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x45bf66
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, eax
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x45bfb1
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x45bfbb
jne 0x45bfbb
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x45c025
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x45bfee
cmp eax, 0x2714
jne 0x45c029
test edi, edi
jle 0x45bf80
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0045f060
push edx
push eax
call fcn.0045f090
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x45bf80
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x45c037
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x45c046
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x45c07d
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45c06b
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45c07d
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x45c0b0
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45c09e
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45c0b0
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x45e4f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.0045f060
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.0045f090
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x45e5a5
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.0045be90
add esp, 0xc
test eax, eax
jle 0x45e5a5
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.00443ce0
add esp, 0x10
test eax, eax
jne 0x45e5a8
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x45e5b0
test eax, eax
je 0x45e5a5
add dword [esp + 0x10], eax
sub edi, eax
add ebp, eax
call fcn.0045f060
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.0045f090
add esp, 0x10
cmp eax, ebx
jle 0x45e540
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x45fcf0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x45fcff
jmp dword [ecx*4 + 0x45fd54]
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 0x45fee0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4c6644]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00472da6
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x45ff45
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x45ff45
lea edx, [esp]
push edx
call dword [0x4c5c3c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00467392
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00467392
add esp, 0x108
ret
jmp 0x45fee0
Function at 0x45ff60
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4c6644]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00472da6
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x45ff45
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x45ff45
lea edx, [esp]
push edx
call dword [0x4c5c3c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00467392
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00467392
add esp, 0x108
ret
jmp 0x45fee0

Function at 0x4643d0
Capabilities:
Hash data with md5

Disassembly:
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 0x465800
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c6644]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046565f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00467660
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46584f
cmp dword [ebp - 0x1c], 5
jb 0x465867
jmp 0x465863
cmp dword [ebp - 0x10], 1
jne 0x465867
cmp dword [ebp - 0x1c], 4
ja 0x465863
jne 0x465867
cmp dword [ebp - 0x18], 0
jbe 0x465867
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b52b8
call fcn.00419584
test eax, eax
jge 0x465888
mov byte [0x4ca31c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00467392
add ebp, 0x78
leave
ret

Function at 0x465d04
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c93dc], 0
push esi
jne 0x465c72
call fcn.00465b90
test eax, eax
je 0x465cb5
mov eax, dword [0x4c93dc]
cmp eax, 1
jne 0x465c93
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x465cb5
pop esi
ret
push eax
call dword [0x4c93e4]
test eax, eax
jne 0x465cfd
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x465cb9
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4c93dc]
call dword [0x4c93e4]
mov edi, eax
test edi, edi
je 0x465ce0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x465cfc
lea edi, [esi + 0xff0]
push esi
push dword [0x4c93dc]
call dword [0x4c93e0]
add esi, 0x10
cmp esi, edi
jb 0x465ce6
mov eax, esi
pop edi
pop esi
ret
jmp 0x465c5f

Function at 0x467392
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6644]
jne 0x46739c
repz ret
jmp fcn.00477839
Function at 0x47015e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x47019b
cmp dword [ebp + 0x14], edi
je 0x47019b
cmp ecx, edi
jne 0x4701a2
call fcn.00472619
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00467067
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4701b6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4701d7
cmp ebx, 0xffffffff
je 0x4701c6
push ebx
push edi
push ecx
call fcn.00467660
add esp, 0xc
cmp esi, edi
je 0x470183
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x470183
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4701f3
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4701fa
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4702eb
test word [esi + 0xc], 0x10c
je 0x47024e
mov eax, dword [esi + 4]
test eax, eax
je 0x47024e
jl 0x47034c
cmp ebx, eax
mov edi, ebx
jb 0x47021f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4702f3
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0046743b
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4702e3
cmp ebx, dword [ebp - 0xc]
jb 0x4702bb
cmp dword [ebp - 0xc], 0
je 0x470278
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x47026d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x470274
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x470283
mov eax, bind
cmp ebx, eax
ja 0x470283
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x47031f
push eax
push dword [ebp - 8]
push esi
call fcn.0047fde1
pop ecx
push eax
call fcn.00484a5e
add esp, 0xc
test eax, eax
je 0x47035e
cmp eax, 0xffffffff
je 0x47034c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4702e3
push esi
call fcn.00482f85
cmp eax, 0xffffffff
pop ecx
je 0x470350
cmp dword [ebp - 4], 0
je 0x47031f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x470202
mov eax, dword [ebp + 0x14]
jmp 0x47019d
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x47030a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00467660
add esp, 0xc
call fcn.00472619
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x470193
cmp dword [ebp + 0xc], 0xffffffff
je 0x470335
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00467660
add esp, 0xc
call fcn.00472619
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x470193
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x47019d
or dword [esi + 0xc], 0x10
jmp 0x470350
Function at 0x47b847
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4c6d38]
je 0x47b862
inc edi
cmp edi, 0x17
jb 0x47b853
cmp edi, 0x17
jae 0x47b9e2
push ebp
push 3
call fcn.0048f283
cmp eax, 1
pop ecx
je 0x47b9ae
push 3
call fcn.0048f283
test eax, eax
pop ecx
jne 0x47b896
cmp dword [0x4c6640], 1
je 0x47b9ae
cmp ebx, 0xfc
je 0x47b9e1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4c9b58
push ebp
call fcn.00472455
add esp, 0xc
test eax, eax
je 0x47b8cc
push esi
push esi
push esi
push esi
push esi
call fcn.00466f33
add esp, 0x14
push 0x104
mov esi, 0x4c9b71
push esi
push 0
mov byte [0x4c9c75], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47b910
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00472455
add esp, 0xc
test eax, eax
je 0x47b910
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00466f33
add esp, 0x14
push esi
call fcn.004673b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47b955
push esi
call fcn.004673b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c9e6c
push 0x4b6824
sub ecx, eax
push ecx
push eax
call fcn.004724ba
add esp, 0x14
test eax, eax
je 0x47b955
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00466f33
add esp, 0x14
jmp 0x47b957
xor esi, esi
push 0x4b6820
push ebx
push ebp
call fcn.0047256d
add esp, 0xc
test eax, eax
je 0x47b977
push esi
push esi
push esi
push esi
push esi
call fcn.00466f33
add esp, 0x14
push dword [edi*8 + 0x4c6d3c]
push ebx
push ebp
call fcn.0047256d
add esp, 0xc
test eax, eax
je 0x47b999
push esi
push esi
push esi
push esi
push esi
call fcn.00466f33
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0048f0c6
add esp, 0xc
jmp 0x47b9e1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47b9e1
cmp ebp, 0xffffffff
je 0x47b9e1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c6d3c]
push dword [esi]
call fcn.004673b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x48f0c6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004772ae
xor ebx, ebx
cmp dword [0x4ca1f0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48f19c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48f27c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b7d94
push edi
call esi
cmp eax, ebx
je 0x48f27c
push eax
call fcn.00477240
mov dword [esp], 0x4b7d84
push edi
mov dword [0x4ca1f0], eax
call esi
push eax
call fcn.00477240
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ca1f4], eax
call esi
push eax
call fcn.00477240
mov dword [0x4ca1f8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004720c0
test eax, eax
pop ecx
pop ecx
je 0x48f16a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00466f33
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48f19c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00477240
cmp eax, ebx
pop ecx
mov dword [0x4ca200], eax
je 0x48f19c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00477240
pop ecx
mov dword [0x4ca1fc], eax
mov eax, dword [0x4ca1fc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48f221
cmp dword [0x4ca200], ecx
je 0x48f221
push eax
call fcn.004772b7
push dword [0x4ca200]
mov esi, eax
call fcn.004772b7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x48f221
cmp edi, ebx
je 0x48f221
call esi
cmp eax, ebx
je 0x48f1ee
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48f1ee
test byte [ebp - 0x18], 1
jne 0x48f221
lea eax, [ebp - 0x10]
push eax
call fcn.0047216f
test eax, eax
pop ecx
je 0x48f209
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00466f33
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48f218
or dword [ebp + 0x10], 0x200000
jmp 0x48f25c
or dword [ebp + 0x10], 0x40000
jmp 0x48f25c
mov eax, dword [0x4ca1f4]
cmp eax, dword [ebp - 8]
je 0x48f25c
push eax
call fcn.004772b7
cmp eax, ebx
pop ecx
je 0x48f25c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48f25c
mov eax, dword [0x4ca1f8]
cmp eax, dword [ebp - 8]
je 0x48f25c
push eax
call fcn.004772b7
cmp eax, ebx
pop ecx
je 0x48f25c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ca1f0]
call fcn.004772b7
cmp eax, ebx
pop ecx
je 0x48f27c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48f27e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret