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

Disassembly:
sub esp, 0x88
mov eax, dword [0x4bb0c4]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
lea eax, [esp + 0xc]
push edi
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
mov ebp, dword [esi + 0x194]
or edi, 0xffffffff
mov ebx, dword [esi]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x43a152
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebp
push esi
call fcn.004271c0
add esp, 8
cmp edi, 0xffffffff
jne 0x43a176
push str.Error_accept__ing_server_connect
push ebx
call fcn.00426770
add esp, 8
mov eax, 0x1e
jmp 0x43a1ce
push str.Connection_accepted_from_server_n
push ebx
call fcn.00426850
push 1
mov byte [esi + 0x370], 0
push edi
mov dword [esi + 0x194], edi
call fcn.00446f50
mov byte [esi + 0x1a1], 1
add esp, 0x10
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x43a1cc
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x43a1cc
push esi
call fcn.0043a680
add esp, 4
mov eax, 0x2a
jmp 0x43a1ce
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00453227
add esp, 0x88
ret
Function at 0x43bed0
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
lea eax, [ecx - 0xc8]
xor esi, esi
mov edx, dword [ebx]
cmp eax, 0x64
jb 0x43befd
push str.Couldnt_set_desired_mode
push edx
call fcn.00426770
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x43bf14
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.00426850
add esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
push edi
cmp eax, 0x13
jne 0x43bf2f
push ebx
call fcn.0043bde0
add esp, 4
mov esi, eax
pop edi
pop ebp
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x43c03c
mov esi, dword [ebx]
xor edi, edi
cmp dword [esi + 0x328], 2
jne 0x43bfa4
mov eax, dword [esi + 0x47a4]
test eax, eax
je 0x43bfa4
cmp byte [eax], 0
je 0x43bfa4
push 0x2f
push eax
call fcn.0046c9f0
add esp, 8
test eax, eax
je 0x43bfa4
push dword [esi + 0x47a4]
call dword [0x4bb044]
mov edi, eax
add esp, 4
test edi, edi
je 0x43bff6
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43bf81
sub ecx, edx
cmp byte [ecx + edi - 1], 0x2f
je 0x43bfa4
push 0x2f
push edi
call fcn.0046c640
add esp, 8
test eax, eax
je 0x43bfa4
mov byte [eax + 1], 0
mov ecx, dword [esi + 0x398]
test ecx, ecx
jne 0x43bfc2
cmp byte [esi + 0x33d], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x495f68
test edi, edi
mov eax, edx
cmovne eax, edi
push eax
mov eax, 0x49ad5c
cmove eax, edx
push eax
push ecx
push 0x496f0c
call fcn.00415b70
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x43c002
push edi
call dword [0x4bb03c]
add esp, 4
pop edi
mov esi, 0x1b
pop ebp
mov eax, esi
pop esi
pop ebx
ret
push ebp
lea eax, [ebx + 0x5e8]
push 0x497130
push eax
call fcn.0044c260
push edi
mov esi, eax
call dword [0x4bb03c]
push ebp
call dword [0x4bb03c]
add esp, 0x14
test esi, esi
jne 0x43c069
pop edi
pop ebp
mov eax, esi
mov dword [ebx + 0x650], 0x1f
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x43c055
push 0xd
push 1
push ebx
call fcn.0043b9b0
add esp, 0xc
mov esi, eax
pop edi
pop ebp
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x43c069
push 0xe
push 1
push ebx
call fcn.0043b9b0
add esp, 0xc
mov esi, eax
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
ret
Function at 0x43f090
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x190]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43f0dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00426770
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.0043eca0
add esp, 0x10
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebp, dword [eax + 0x114]
jne 0x43f321
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x43f20b
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
jmp 0x43f20d
mov eax, ebx
cmp eax, edi
jae 0x43f221
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43f221
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x43f28c
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43f28c
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43f28c
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43f28c
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43f28c
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43f28c
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
mov dword [edi], ebx
push eax
lea eax, [ebp + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.0043eda0
add esp, 0x10
push 0
push 3
push ebx
mov ebx, dword [esp + 0x24]
push dword [ebx + 0x190]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x43f2e0
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00426770
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb3]
push eax
push ebx
call fcn.0043f100
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push 0
push 2
push eax
push dword [ebx + 0x190]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43f31e
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00426770
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x4406e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x4bb0c4]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x90]
lea eax, [esp + 4]
push ebp
push esi
push edi
mov esi, dword [ebx + 0x5e8]
mov edi, dword [ebx]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x440765
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.0046ad00
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4407a0
push str.Received_too_short_packet
push edi
call fcn.00426770
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00453227
add esp, 0x88
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
shl ecx, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4407c1
jmp dword [ecx*4 + 0x4408c4]
cmp edx, 4
jle case.0x4407c1.4
mov ebp, dword [esi + 0x15c]
movzx ecx, byte [ebp + 2]
movzx eax, byte [ebp + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4407c1.4
lea eax, [edx - 4]
push eax
lea eax, [ebp + 4]
push eax
push 1
push ebx
call fcn.004264f0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x44081f
push 5
push esi
call fcn.00441150
add esp, 8
mov eax, ebp
jmp 0x440787
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
push edi
call fcn.0042b120
jmp 0x44089a
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x4964c0
push edi
call fcn.00426850
jmp 0x44089a
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.00440470
add esp, 0xc
test eax, eax
je case.0x4407c1.4
jmp 0x440787
push str.Internal_error:_Unexpected_packet
push 0x497130
push edi
call fcn.00426770
add esp, 0xc
push ebx
call fcn.0042b4b0
add esp, 4
test eax, eax
je 0x440785
push 5
push esi
call fcn.00441150
add esp, 8
mov eax, 0x2a
jmp 0x440787
Function at 0x444970
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4bb0c4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00475f1f
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4449d5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4449d5
lea eax, [esp]
push eax
call dword [0x4bb044]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00453227
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.00453227
add esp, 0x108
ret
Function at 0x44a830
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 3
jne 0x44a859
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x44a848
pop edi
pop esi
ret
push dword [ecx + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call eax
jmp 0x44a88d
mov eax, dword [esi + 8]
test eax, eax
jne 0x44a87d
push 0x495ff0
push dword [ecx + 8]
call fcn.0046f18f
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x44a87d
pop edi
or eax, 0xffffffff
pop esi
ret
push eax
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.00477722
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x44a8af
mov eax, dword [esi + 8]
test eax, eax
je 0x44a8a9
push eax
call fcn.0046eb97
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x44e430
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x44e440
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x4bb038]
mov edi, eax
add esp, 4
test edi, edi
jne 0x44e467
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x44e480
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x44e470
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x44e4fa
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x44e4ee
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x4bb03c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x44e520
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x4bb0c4]
xor eax, esp
mov dword [esp + 0x20], eax
push edi
mov edi, dword [esp + 0x30]
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x44e62f
push esi
mov esi, dword [esp + 0x38]
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x24], 0
push 8
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov al, dl
shr al, 1
mov byte [esp + 0x24], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [esi + 2]
mov byte [esp + 0x25], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [esi + 3]
mov byte [esp + 0x26], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [esi + 4]
mov byte [esp + 0x27], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [esi + 5]
mov byte [esp + 0x28], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [esi + 6]
mov byte [esp + 0x29], al
mov al, cl
shr al, 6
add cl, cl
or al, dl
mov word [esp + 0x18], 0x208
mov byte [esp + 0x2a], al
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
mov byte [esp + 0x2f], cl
call fcn.00450cd0
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x44e641
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00453227
add esp, 0x24
ret
mov ecx, dword [esp + 0x2c]
push dword [esp + 8]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
lea eax, [esp + 0xc]
push eax
push edi
push 0
push 0
push 0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
mov al, 1
pop edi
xor ecx, esp
call fcn.00453227
add esp, 0x24
ret
Function at 0x450cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x450d1f
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
and dl, 2
movzx ecx, cl
cmp dl, 2
cmovb ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x450ce1
pop ebx
pop edi
pop esi
ret

Function at 0x450d80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4bb038]
mov edi, eax
add esp, 4
test edi, edi
jne 0x450da7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x450df2
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x450df6
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x450e56
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x450e15
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x450e87
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x49ee0e
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x49ee0f
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x450e60
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4564ba
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x47e987
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x4be530]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47e9c8
cmp byte [edx], 0xa
jne 0x47e9c8
or byte [eax + edi + 0x28], 4
jmp 0x47e9cd
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x47eabe
mov al, byte [ebx]
cmp al, 0x1a
je 0x47ea9f
cmp al, 0xd
je 0x47e9f6
mov byte [esi], al
inc esi
inc ebx
jmp 0x47ea94
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x47ea16
cmp byte [eax], 0xa
jne 0x47ea0b
push 2
mov byte [esi], 0xa
pop eax
jmp 0x47ea11
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x47ea94
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47ea8d
cmp dword [ebp - 0x14], 0
je 0x47ea8d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4be530]
test byte [eax + edi + 0x28], 0x48
je 0x47ea64
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x47ea54
mov byte [esi], dl
jmp 0x47ea90
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4be530]
mov byte [eax + edi + 0x2a], dl
jmp 0x47ea90
cmp byte [ebp - 1], 0xa
jne 0x47ea76
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x47ea76
mov byte [esi], 0xa
jmp 0x47ea13
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047b485
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47ea91
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x47e9df
jmp 0x47eabe
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4be530]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47eab9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47eabe
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47eac9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x4be530]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x47eb0d
cmp word [edx], bx
jne 0x47eb0d
or byte [edi + eax + 0x28], 4
jmp 0x47eb12
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x47ec66
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x47ec46
cmp ax, word [ebp - 0x10]
je 0x47eb4b
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x47ec3b
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x47eb71
push 0xa
pop ecx
cmp word [eax], cx
jne 0x47eb61
push ecx
pop eax
push 4
jmp 0x47eb66
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x47ec35
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47ec2c
cmp dword [ebp - 0x18], 0
je 0x47ec2c
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x4be530]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x47ebf8
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x47ebbc
mov word [esi], ax
jmp 0x47ebf0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x4be530]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x4be530]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x4be530]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x47ec3b
cmp word [ebp - 4], ax
jne 0x47ec0d
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x47ec0d
mov word [esi], ax
add esi, 2
jmp 0x47ec3b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047b485
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x47ec38
jmp 0x47ec2f
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x47eb2b
jmp 0x47ec66
mov ecx, dword [ecx*4 + 0x4be530]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x47ec5d
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x47ec66
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48558d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048540a

Function at 0x48854b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004881ed