joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac326
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4e731c]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x4ac443
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4ac3a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004b4db6
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004abb71
add esp, 0x18
jmp 0x4ac44a
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4ac3d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004b4db6
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4ac395
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.004ac2ed
test eax, eax
jne 0x4ac40b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004b4db6
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x4ac396
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.004ac2ed
test eax, eax
jne 0x4ac440
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004b4db6
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4ac406
mov esi, dword [ebp - 0x78]
push esi
call fcn.004ac29e
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048db8d
add ebp, 0x90
leave
ret

Function at 0x4ac462
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4ac4a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004b4db6
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004abafe
add esp, 0x14
jmp 0x4ac4b4
push str.TCP_NODELAY_set_n
push esi
call fcn.004abafe
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4ac90b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x4ac95e
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x4ac95e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x4ac938
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x4ac95e
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4ac95e
mov eax, esi
jmp 0x4ac961
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4ada33
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x4adba5
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4adb8a
push ebx
push edi
jmp 0x4ada7b
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4adb1e
cmp dword [esi + 0x18], 0
je 0x4adb1e
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4adb1e
push 0x10
pop edi
cmp eax, edi
jb 0x4adb1e
push 0x20
call dword [0x4e85e8]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4adb2e
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x4e85e8]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4adb37
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4adb05
push eax
call dword [0x4e85f4]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4adb47
cmp dword [ebp - 4], 0
jne 0x4adb0e
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4adb18
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x4ada78
jmp 0x4adb60
mov dword [ebp - 8], 8
jmp 0x4adb60
push ebx
mov dword [ebp - 8], 8
call dword [0x4e85ec]
jmp 0x4adb5f
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x4e85ec]
push ebx
call dword [0x4e85ec]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x4adb72
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x4adb85
push dword [ebp - 4]
call fcn.004ad9f7
pop ecx
mov dword [ebp - 4], esi
jmp 0x4adb99
cmp dword [ebp - 4], esi
jne 0x4adb99
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x4adef7
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x4e85f8]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x4adfa9
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.004addb3
test eax, eax
pop ecx
pop ecx
je 0x4adfa9
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.004a4292
push dword [ebp + 8]
call dword [0x4e85f4]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x4adfa9
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4adfa9
lea eax, [esi + 0x10]
push eax
push 0x4ade27
call fcn.004b55de
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x4adfc3
call fcn.004901a6
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.004adea5
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4adfc6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b1b1d
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4b1b51
cmp ebx, esi
jne 0x4b1b51
mov eax, dword [ebp + 0x7c]
call fcn.004b1afe
jmp 0x4b1cee
cmp dword [ebp + 0x7c], edx
jle 0x4b1b66
mov edi, dword [ebp + 0x7c]
call fcn.004b30e3
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4b1b96
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4b1bed
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4b1bc9
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4b1bc9
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4b1bb7
cmp eax, dword [ebp - 0xa8]
jne 0x4b1be7
cmp dword [ebp - 0xa8], 0x40
jae 0x4b1be7
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4b1bed
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4b1bf6
xor ebx, ebx
jmp 0x4b1bf9
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4b1c18
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4b1c1d
jne 0x4b1c20
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4b1c79
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4b1c53
cmp eax, 0x2714
jne 0x4b1c7d
cmp dword [ebp + 0x7c], 0
jle 0x4b1bfc
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004b30e3
push edx
push eax
call fcn.004b30f9
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4b1bfc
jmp 0x4b1c7d
test eax, eax
jge 0x4b1c82
or eax, 0xffffffff
jmp 0x4b1cee
jne 0x4b1c88
xor eax, eax
jmp 0x4b1cee
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4b1cba
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b1ca4
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b1cba
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4b1cec
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b1cd6
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b1cec
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4b3c3b
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4b3c48
jmp dword [eax*4 + 0x4b3ca3]
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
mov al, byte [esp + 4]
ret

Function at 0x4b598e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4b59b2
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4b59e3
cmp dword [esi + 8], 0
jne 0x4b59d3
push 0x4cd848
push dword [eax + 8]
call fcn.00489f63
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4b59d3
or eax, 0xffffffff
jmp 0x4b5a09
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004899ba
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4b59f1
cmp edi, dword [ebp + 0xc]
jbe 0x4b5a07
test ebx, ebx
jne 0x4b5a01
push dword [esi + 8]
call fcn.00489a47
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x408aef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408b10
jl 0x408b07
test edi, edi
jne 0x408b10
xor eax, eax
xor edx, edx
jmp 0x408bd1
cmp dword [ebx + 0x38], 0
je 0x408b25
push eax
push edi
push dword [ebp + 8]
call fcn.00408bd7
jmp 0x408bd1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408b6c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408b6c
cmp eax, edi
jb 0x408b46
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a950
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408b72
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408bc6
mov ecx, ebx
call fcn.00408389
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408bb1
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00411ff3
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408bc6
jmp 0x408b84
test edx, edx
je 0x408bc6
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00411ff3
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a009
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a048
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a048
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a048
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a048
cmp dword [ecx + 0x74], 0xe
jbe 0x40a048
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x416ffc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c458
push 0x42c450
push str.FlsAlloc
push 0x1e
call fcn.00416e69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417030
push dword [ebp + 8]
mov ecx, esi
call dword [0x428180]
call esi
jmp 0x417036
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41707a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c468
push 0x42c460
push str.FlsGetValue
push 0x20
call fcn.00416e69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4170b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x428180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41a683
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a4f4

Function at 0x41aa7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a460
mov eax, dword [0x480000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00418464
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41aabf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ac1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425510
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x482660]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b81c
mov ecx, dword [esi*4 + 0x482660]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ac14
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ac14
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ac14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b81c
add esp, 0x14
test edx, edx
jl 0x41ac14
jg 0x41ab8a
test eax, eax
jb 0x41ac14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ac14
jl 0x41aba4
cmp dword [ebp - 0x1008], eax
ja 0x41ac14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41abc2
test ebx, ebx
je 0x41abfb
cmp ecx, edi
jae 0x41abfb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41abdc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41abe8
cmp byte [ecx + 1], 0xa
jne 0x41abe8
inc ecx
jmp 0x41abe8
movzx eax, al
movsx eax, byte [eax + 0x4802c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41abc2
cmp edx, ebx
jne 0x41abc2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ac19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040982d
leave
ret
Function at 0x41acba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x482660]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41acfa
cmp byte [ebx], 0xa
jne 0x41acfa
or byte [eax + edi + 0x28], 4
jmp 0x41acff
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41adfd
mov al, byte [edx]
cmp al, 0x1a
je 0x41addf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ad2e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ad53
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ad5d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41ad10
jmp 0x41adfd
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41adda
cmp dword [ebp - 0xc], 0
je 0x41adda
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482660]
test byte [eax + edi + 0x28], 0x48
je 0x41adb4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ad9f
mov byte [esi], dl
jmp 0x41adb0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482660]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41adfd
cmp byte [ebp - 1], 0xa
jne 0x41adc3
cmp esi, ebx
jne 0x41adc3
mov byte [esi], 0xa
jmp 0x41adfc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b83a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41adfd
mov byte [esi], 0xd
jmp 0x41adfc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482660]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41adf9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41adfd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ae06
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x482660]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ae49
cmp word [esi], dx
jne 0x41ae49
or byte [edi + eax + 0x28], 4
jmp 0x41ae4e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41afa1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41af81
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ae90
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41aec6
cmp eax, edx
jae 0x41aed2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ae68
jmp 0x41afa1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41af7d
cmp dword [ebp - 0x14], 0
je 0x41af7d
mov eax, dword [ebx*4 + 0x482660]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41af55
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41af1e
mov word [esi], cx
jmp 0x41af51
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482660]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482660]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482660]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41afa1
pop ebx
cmp word [ebp - 4], bx
jne 0x41af66
cmp esi, dword [ebp + 0xc]
jne 0x41af66
mov word [esi], bx
jmp 0x41af9e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b83a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41afa1
push 0xd
jmp 0x41af9a
mov ecx, dword [ebx*4 + 0x482660]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41af98
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41afa1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d620
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41d6bd
push ebx
push esi
call fcn.0041d5e9
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041c3ca
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d66a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d6bc
push edi
push eax
call fcn.0041762f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d68a
call fcn.0041663b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d6bb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c3ca
add esp, 0x20
test eax, eax
jne 0x41d6a9
push edi
call fcn.0041663b
jmp 0x41d6b1
push ebx
call fcn.0041663b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x425310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42533d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42533d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret