joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424680
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
jl 0x4246ff
mov eax, dword [esp + 0x118]
push edi
cdq
mov edi, 0x3e8
idiv edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 1
imul edx, edx, 0x3e8
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
mov dword [esp + 0x14], edx
push 0
lea edx, [esp + 0x1c]
push edx
inc ecx
push ecx
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
pop edi
jne 0x4246ef
mov eax, dword [esp + 0x114]
mov dword [eax], 0
or eax, 0xffffffff
pop esi
add esp, 0x10c
ret 8
cmp eax, 1
jne 0x4246ff
mov ecx, esi
call fcn.00424560
test eax, eax
jne 0x42470b
xor eax, eax
pop esi
add esp, 0x10c
ret 8
mov ecx, dword [esp + 0x114]
mov dword [ecx], eax
or eax, 0xffffffff
pop esi
add esp, 0x10c
ret 8

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

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
mov eax, dword [ecx + 4]
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
test eax, eax
jne 0x4247a2
mov eax, str._unavailable_
add esp, 0x14
ret

Function at 0x4247b0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4247db
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4247d9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4247d9
mov eax, dword [eax]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4247e0
Capabilities:
Set socket configuration

Disassembly:
cmp byte [0x450c40], 2
push esi
mov esi, ecx
jae 0x4247f2
xor eax, eax
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 8]
push edi
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x20], eax
call edi
cmp eax, 0xffffffff
jne 0x424824
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0x10]
push eax
push 0x1005
push 0xffff
push ecx
call edi
inc eax
neg eax
pop edi
sbb eax, eax
pop esi
ret 4

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

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
call fcn.004351a6
mov ebp, dword [esp + 0x14]
push 0
mov dword [eax], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push ebp
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov ebx, eax
test ebx, ebx
jge 0x4248b8
push edi
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esi + 4]
push edi
push ebp
push edx
push eax
push str..VSocket.cpp:_tsend_0x_x__0x_x___d__0_:_wsa_error___d_n
push 4
push 0x44ff14
call fcn.00401e70
add esp, 0x1c
cmp edi, 0x2733
pop edi
jne 0x4248b8
call fcn.004351a6
mov dword [eax], 0x2733
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 8
Function at 0x424ac0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
mov esi, eax
push edi
mov edi, ecx
mov dword [esp + 0xc], esi
jbe 0x424be9
cmp dword [edi + 0xc], ebx
mov eax, dword [edi + 4]
mov ecx, 1
mov dword [esp + 0x124], eax
mov dword [esp + 0x120], ecx
mov dword [esp + 0x18], ebx
je 0x424b0b
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x12c]
push ecx
inc eax
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x32
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, ebx
je 0x424ae4
jl 0x424c1b
cmp eax, 2
jg 0x424c1b
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x424b66
mov ecx, edi
call fcn.004249a0
test eax, eax
je 0x424c10
mov edx, dword [edi + 4]
lea ecx, [esp + 0x120]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x424bdd
call fcn.004351a6
push ebx
mov dword [eax], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 4]
push esi
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
mov esi, eax
cmp esi, ebx
jge 0x424bb2
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x424bb0
call fcn.004351a6
mov dword [eax], 0x2733
cmp esi, ebx
jle 0x424bc8
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
add ecx, esi
sub eax, esi
mov dword [ebp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x424bdd
cmp esi, ebx
jge 0x424bdb
call fcn.004351a6
cmp dword [eax], 0x2733
jne 0x424bf5
cmp esi, ebx
je 0x424bfc
mov esi, dword [esp + 0xc]
cmp esi, ebx
ja 0x424ae4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str..VSocket.cpp:_tsocket_error_n
jmp 0x424c01
push str..VSocket.cpp:_tzero_bytes_read_n
push 4
push 0x44ff14
call fcn.00401e70
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push str..VSocket.cpp:_tsocket_error_in_select___n
jmp 0x424c01
Function at 0x424cb0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.004248c0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x424d39
mov ebx, dword [sym.imp.WSOCK32.dll_select]
mov edi, 1
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x28], eax
push 0
inc eax
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x424ce2
jl 0x424d45
cmp eax, edi
jg 0x424d45
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x424d32
mov ecx, esi
call fcn.004249a0
test eax, eax
je 0x424d59
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x424ce2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str..VSocket.cpp:_tsocket_error_in_select___n
push 4
push 0x44ff14
call fcn.00401e70
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x424dc0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 4], 1
jl 0x424dd8
call fcn.00424c30
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
test eax, eax
mov dword [esi + 4], eax
jge 0x424df0
xor eax, eax
pop esi
pop ecx
ret
push edi
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0xffff
push eax
call edi
test eax, eax
je 0x424e12
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 4]
push 4
lea edx, [esp + 0xc]
push edx
push 1
push 6
push eax
call edi
neg eax
sbb eax, eax
neg eax
pop edi
dec eax
pop esi
pop ecx
ret

Function at 0x425b1d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x425b75
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x44736c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x425b68
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x425b77
xor eax, eax
pop esi
leave
ret 4
Function at 0x432b30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
cmp eax, 1
je 0x432b67
cmp eax, 2
je 0x432b67
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov byte [esp + 0xc], al
push 0x44c2e8
lea eax, [esp + 0x10]
push eax
call fcn.004340f0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x450c6c]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
jne 0x432b94
push 0x44c2e8
lea edx, [esp + 0x10]
xor al, al
push edx
mov byte [esp + 0x14], al
call fcn.004340f0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x432bb0
xor al, al
mov byte [esp + 0xc], al
push 0x44c2e8
lea eax, [esp + 0x10]
push eax
call fcn.004340f0
mov ecx, dword [esi + 0x38]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x432bd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x44c290
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
call fcn.004340f0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x432be6
mov ecx, dword [esi + 0x40]
mov dword [eax], ecx
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
pop edi
pop esi
ret 4

Function at 0x432c00
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x450c6c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x432c51
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x34]
test eax, eax
pop edi
je 0x432c4a
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
pop esi
mov dword [esp + 4], 0
jmp fcn.004355bd
mov eax, dword [esp + 8]
mov dword [esi + 0x40], eax
pop esi
mov dword [esp + 4], 0
jmp fcn.004355bd

Function at 0x432c90
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43f8b3
push eax
mov eax, dword [0x450c6c]
mov dword fs:[0], esp
sub esp, 8
push edi
mov edi, ecx
push eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
mov dword [edi + 4], eax
jne 0x432d48
push 0x450c80
mov dword [esp + 8], 0x450c80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x450c70]
test eax, eax
mov dword [esp + 0x14], 0
je 0x432cff
mov dword [edi], eax
mov ecx, dword [0x450c70]
mov edx, dword [ecx + 0x54]
mov dword [0x450c70], edx
jmp 0x432d38
push esi
push 0x58
call fcn.00433248
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov byte [esp + 0x18], 1
je 0x432d33
push 1
push 0
mov ecx, esi
call fcn.00432ac0
mov dword [esi], 0x4499c0
mov dword [esi + 0x54], 0
jmp 0x432d35
xor esi, esi
mov dword [edi], esi
pop esi
mov eax, dword [edi]
push 0x450c80
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x433040
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x43f8e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
lea edi, [esi + 4]
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
test eax, eax
mov dword [esp + 0x20], 0
je 0x43308e
xor al, al
mov byte [esp + 0xb], al
push 0x44c2e8
lea eax, [esp + 0xf]
push eax
call fcn.004340f0
lea ecx, [esp + 0xc]
push ecx
push 4
push esi
push 0x432fb0
push 0
push 0
call fcn.00435683
mov edx, dword [esp + 0x24]
add esp, 0x18
test eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
jne 0x4330ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
push 0x44c290
lea eax, [esp + 0x14]
push eax
call fcn.004340f0
mov ecx, dword [esi + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4330f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x44c290
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
call fcn.004340f0
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x43311e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x44c290
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], eax
call fcn.004340f0
push edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x434a5c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x449ab0
call fcn.0043711c
push 8
call fcn.004365c5
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x450cec], esi
jne 0x434a90
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x450ce8], esi
mov al, byte [ebp + 0x10]
mov byte [0x450ce4], al
cmp dword [ebp + 0xc], edi
jne 0x434ada
cmp dword [0x45254c], edi
je 0x434aca
mov eax, dword [0x452548]
sub eax, 4
mov dword [0x452548], eax
cmp eax, dword [0x45254c]
jb 0x434aca
mov eax, dword [eax]
cmp eax, edi
je 0x434aab
call eax
jmp 0x434aab
push 0x44e0fc
mov eax, 0x44e0f4
call fcn.004349da
pop ecx
push 0x44e108
mov eax, 0x44e100
call fcn.004349da
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x434b0b
cmp dword [ebp + 0x10], edi
jne 0x434b19
mov dword [0x450cec], esi
push dword [ebp + 8]
call fcn.00434998
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x434b18
push 8
call fcn.00436510
pop ecx
ret
call fcn.00437157
ret
Function at 0x4352b2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x449b08
call fcn.0043711c
mov edi, 0x94
mov eax, edi
call fcn.00434d20
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 [0x450cac], ecx
mov eax, dword [esi + 4]
mov dword [0x450cb8], eax
mov edx, dword [esi + 8]
mov dword [0x450cbc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x450cb0], esi
cmp ecx, 2
je 0x435312
or esi, 0x8000
mov dword [0x450cb0], esi
shl eax, 8
add eax, edx
mov dword [0x450cb4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43534d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43534d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x435365
cmp eax, 0x20b
je 0x435352
mov dword [ebp - 0x1c], esi
jmp 0x435379
cmp dword [ecx + 0x84], 0xe
jbe 0x43534d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x435373
cmp dword [ecx + 0x74], 0xe
jbe 0x43534d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00436421
pop ecx
test eax, eax
jne 0x43538d
push 0x1c
call fcn.0043528e
pop ecx
call fcn.004376d4
test eax, eax
jne 0x43539e
push 0x10
call fcn.0043528e
pop ecx
call fcn.00439560
mov dword [ebp - 4], esi
call fcn.0043969a
test eax, eax
jge 0x4353b7
push 0x1b
call fcn.00435269
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x451524], eax
call fcn.0043a6ee
mov dword [0x450cfc], eax
call fcn.0043a64c
test eax, eax
jge 0x4353dd
push 8
call fcn.00435269
pop ecx
call fcn.0043a419
test eax, eax
jge 0x4353ee
push 9
call fcn.00435269
pop ecx
push 1
call fcn.004349f2
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x435404
push eax
call fcn.00435269
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043a3bc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x435425
movzx eax, word [ebp - 0x40]
jmp 0x435428
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00425410
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x435446
push edi
call fcn.00434b1f
call fcn.00434b41
jmp 0x435478
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00437157
ret
Function at 0x435683
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4356a0
call fcn.004351a6
mov dword [eax], 0x16
xor eax, eax
jmp 0x43570a
push esi
push 0x8c
push 1
call fcn.0043412a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4356f5
push esi
call fcn.004374da
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4356d3
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4355ee
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x435709
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00433646
test ebx, ebx
pop ecx
je 0x435707
push ebx
call fcn.004351b8
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43a0a8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44f5ec]
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 + 0x44f640]
je 0x43a0dd
inc eax
cmp eax, 0x13
jb 0x43a0ce
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44f640]
jne 0x43a203
mov eax, dword [0x450d04]
cmp eax, 1
je 0x43a1db
cmp eax, edx
jne 0x43a10d
cmp dword [0x44f314], 1
je 0x43a1db
cmp ecx, 0xfc
je 0x43a203
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 0x43a143
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00439f20
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00435730
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43a177
mov eax, edi
push eax
call fcn.00435730
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x44a2e8
push edi
call fcn.004334d0
add esp, 0x10
push edi
call fcn.00435730
push dword [esi + 0x44f644]
mov ebx, eax
call fcn.00435730
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00434d20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00439f20
push edi
push ebx
call fcn.00439f30
push 0x44a2c8
push ebx
call fcn.00439f30
push dword [esi + 0x44f644]
push ebx
call fcn.00439f30
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043d045
add esp, 0x2c
jmp 0x43a203
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44f644]
push dword [esi]
call fcn.00435730
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.0043adac
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43aa0d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x44f5ec]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x43aa3e
xor eax, eax
jmp 0x43abc7
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x451400]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x43aa7a
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0043d927
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43ab55
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x43ab93
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x43aade
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43aacf
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x43aaaf
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43ab1e
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x43ab27
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x43aaa0
jmp 0x43ab29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x43abc2
cmp dword [ebp - 0x6c], edi
je 0x43ab93
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x43ab88
call fcn.004351a6
mov dword [eax], 9
call fcn.004351af
mov dword [eax], esi
jmp 0x43abbd
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43ab7d
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x43ab29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x43ab29
push dword [ebp - 0x6c]
call fcn.004351b8
pop ecx
jmp 0x43abbd
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43abab
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x43abab
xor eax, eax
jmp 0x43abc5
call fcn.004351a6
mov dword [eax], 0x1c
call fcn.004351af
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x43abc5
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0043adac
add ebp, 0x3a0
leave
ret