joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov bl, byte [edi]
test bl, bl
je 0x4740da
nop dword [eax]
mov cl, byte [eax]
test cl, cl
je 0x4740da
test esi, esi
je 0x4740de
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x47404d
jmp dword [eax*4 + 0x474110]
mov bl, 0x41
jmp case.default.0x47404d
mov bl, 0x42
jmp case.default.0x47404d
mov bl, 0x43
jmp case.default.0x47404d
mov bl, 0x44
jmp case.default.0x47404d
mov bl, 0x45
jmp case.default.0x47404d
mov bl, 0x46
jmp case.default.0x47404d
mov bl, 0x47
jmp case.default.0x47404d
mov bl, 0x48
jmp case.default.0x47404d
mov bl, 0x49
jmp case.default.0x47404d
mov bl, 0x4a
jmp case.default.0x47404d
mov bl, 0x4b
jmp case.default.0x47404d
mov bl, 0x4c
jmp case.default.0x47404d
mov bl, 0x4d
jmp case.default.0x47404d
mov bl, 0x4e
jmp case.default.0x47404d
mov bl, 0x4f
jmp case.default.0x47404d
mov bl, 0x50
jmp case.default.0x47404d
mov bl, 0x51
jmp case.default.0x47404d
mov bl, 0x52
jmp case.default.0x47404d
mov bl, 0x53
jmp case.default.0x47404d
mov bl, 0x54
jmp case.default.0x47404d
mov bl, 0x55
jmp case.default.0x47404d
mov bl, 0x56
jmp case.default.0x47404d
mov bl, 0x57
jmp case.default.0x47404d
mov bl, 0x58
jmp case.default.0x47404d
mov bl, 0x59
jmp case.default.0x47404d
mov bl, 0x5a
push ecx
call fcn.00474180
add esp, 4
cmp bl, al
jne 0x4740da
mov eax, dword [ebp + 0x10]
inc edi
inc eax
dec esi
mov dword [ebp + 0x10], eax
mov bl, byte [edi]
test bl, bl
jne 0x474030
test esi, esi
jne 0x4740e8
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
movzx eax, byte [edi]
push eax
call fcn.00474180
mov bl, al
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax]
push ecx
call fcn.00474180
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x474180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x474191
jmp dword [eax*4 + 0x474204]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret
Function at 0x474270
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 1
jb 0x47431e
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub edi, edx
nop dword [eax]
mov cl, byte [edx]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x47429d
jmp dword [eax*4 + 0x474324]
mov cl, 0x41
jmp case.default.0x47429d
mov cl, 0x42
jmp case.default.0x47429d
mov cl, 0x43
jmp case.default.0x47429d
mov cl, 0x44
jmp case.default.0x47429d
mov cl, 0x45
jmp case.default.0x47429d
mov cl, 0x46
jmp case.default.0x47429d
mov cl, 0x47
jmp case.default.0x47429d
mov cl, 0x48
jmp case.default.0x47429d
mov cl, 0x49
jmp case.default.0x47429d
mov cl, 0x4a
jmp case.default.0x47429d
mov cl, 0x4b
jmp case.default.0x47429d
mov cl, 0x4c
jmp case.default.0x47429d
mov cl, 0x4d
jmp case.default.0x47429d
mov cl, 0x4e
jmp case.default.0x47429d
mov cl, 0x4f
jmp case.default.0x47429d
mov cl, 0x50
jmp case.default.0x47429d
mov cl, 0x51
jmp case.default.0x47429d
mov cl, 0x52
jmp case.default.0x47429d
mov cl, 0x53
jmp case.default.0x47429d
mov cl, 0x54
jmp case.default.0x47429d
mov cl, 0x55
jmp case.default.0x47429d
mov cl, 0x56
jmp case.default.0x47429d
mov cl, 0x57
jmp case.default.0x47429d
mov cl, 0x58
jmp case.default.0x47429d
mov cl, 0x59
jmp case.default.0x47429d
mov cl, 0x5a
mov byte [edi + edx], cl
mov al, byte [edx]
inc edx
test al, al
je 0x47431d
sub esi, 1
jne 0x474290
pop edi
pop esi
pop ebp
ret
Function at 0x4746b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x47482b
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x474817
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x4747a8
cmp dword [edi + 0x18], 0
je 0x4747a8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4747a8
cmp eax, 0x10
jb 0x4747a8
push 0x20
call dword [0x4de440]
mov esi, eax
add esp, 4
test esi, esi
je 0x47480c
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x4de440]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4747fb
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x474796
push eax
call dword [0x4de44c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4747e1
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4747a5
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4746f0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x4747c5
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x474813
push ebx
call fcn.00474660
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x4de444]
push esi
call dword [0x4de444]
add esp, 8
jmp 0x4747b6
push esi
mov edi, 8
call dword [0x4de444]
add esp, 4
jmp 0x4747b6
mov edi, 8
jmp 0x4747b6
test ebx, ebx
jne 0x474823
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x475fc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004a85ad
add esp, 0x18
test eax, eax
je 0x475fe2
cmp eax, 0xffffffff
jne 0x475fe4
xor eax, eax
pop ebp
ret
Function at 0x47e180
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x47e1cd
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00470960
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x47e1f5
shr eax, 8
test al, al
jne 0x47e1f5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00470960
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.0049510d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x130]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x47ea68
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00470960
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.0047e3a0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x47eb40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x90c], edi
mov ebx, dword [edi]
mov dword [ebp - 0x908], ebx
mov esi, dword [ebx + 0x8664]
mov eax, dword [esi + 0x1ab0]
sub eax, dword [esi + 0x1aac]
add eax, 2
push eax
lea eax, [esi + 0x18ac]
push eax
push 0x3c
push ebx
call fcn.0047e4a0
mov eax, dword [esi + 0x1aac]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1aac], eax
cmp ecx, 0x18
je 0x47ecf8
cmp ecx, 0x23
je 0x47ecd4
cmp ecx, 0x27
jne 0x47ed86
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004729f0
mov esi, dword [esi + 0x18a8]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x47ec73
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47ec00
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x47ec61
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push edx
call fcn.00466f80
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.004729f0
add esp, 0x2c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x47ebf4
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push 0x4c8a18
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.004729f0
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x47ecce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00470960
add esp, 0xc
push edi
jmp 0x47ed74
lea edx, [esi + 0x1828]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47ece0
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x47ed19
lea edx, [esi + 0x1808]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47ed03
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.004729f0
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push esi
push eax
push dword [edi + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x47ed70
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00470960
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.0047e4a0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
Function at 0x47fd30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x88]
push esi
push edi
push eax
mov esi, dword [ebx + 0x3d0]
lea eax, [ebp - 0x84]
mov edi, dword [ebx]
push eax
mov dword [ebp - 0x88], 0x80
mov eax, dword [esi + 0x154]
push 0
add eax, 4
mov dword [ebp - 0x8c], ebx
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 0x47fdc1
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00496490
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x47fdf4
push str.Received_too_short_packet
push edi
call fcn.00470960
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x47fe15
jmp dword [ecx*4 + 0x47ff48]
cmp edx, 4
jle case.0x47fe15.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x47fe15.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 1
push ebx
call fcn.00470720
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x47fe85
push 5
push esi
call fcn.00480660
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
adc dword [edi + 0x3c], edx
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edi
call fcn.0047c340
mov ebx, dword [ebp - 0x8c]
jmp 0x47ff12
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 0x4c51b4
push edi
call fcn.00470a30
jmp 0x47ff12
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.0047fa50
add esp, 0xc
test eax, eax
je case.0x47fe15.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x4c2c90
push edi
call fcn.00470960
add esp, 0xc
push ebx
call fcn.0047c570
add esp, 4
test eax, eax
je 0x47fde1
push 5
push esi
call fcn.00480660
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret
Function at 0x480660
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x480672
jmp dword [edx*4 + 0x4806c8]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004801d0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0047ff60
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00480870
push str.TFTP_finished
push 0x4c51b4
push eax
call fcn.00470a30
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x4c2c90
push eax
call fcn.00470960
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x482280
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax]
or ebx, 0xffffffff
mov edi, dword [eax + 0x134]
push 1
push 0
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
call fcn.00471410
mov ecx, eax
add esp, 0xc
test ecx, ecx
js 0x4822f5
nop
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push edi
call fcn.0047d410
add esp, 0xc
cmp eax, 0xffffffff
je 0x4823a9
test eax, eax
jne 0x482319
push 1
push eax
push esi
call fcn.00471410
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x4822c0
push str.Timeout_while_waiting_for_server_connect
push esi
call fcn.00470960
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x482344
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.004710b0
add esp, 8
cmp ebx, 0xffffffff
jne 0x48237a
push str.Error_accept__ing_server_connect
push esi
call fcn.00470960
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push esi
call fcn.00470a30
push 1
push ebx
mov dword [edi + 0x134], ebx
call fcn.004899b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
push str.Error_while_waiting_for_server_connect
push esi
call fcn.00470960
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x1e
pop edi
pop esi
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret

Function at 0x484840
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x48486f
push str.Couldnt_set_desired_mode
push edx
call fcn.00470960
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x484886
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.00470a30
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x48489d
push edi
call fcn.00484390
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x4848b1
push edi
call fcn.00483ed0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x4848c9
push 0xd
push 1
push edi
call fcn.00484440
add esp, 0xc
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x4848dd
push 0xe
push 1
push edi
call fcn.00484440
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x487a30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004a93a2
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x487a94
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x487a94
lea eax, [ebp - 0x108]
push eax
call dword [0x4de44c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
Function at 0x48ae10
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x48], 0
lea edi, [ecx + 1]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48ae57
sub ecx, edi
lea eax, [ebp - 0x5c]
push ecx
push edx
push eax
call fcn.0048ac80
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.0048ad30
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.0049510d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4de440]
mov edi, eax
add esp, 4
test edi, edi
jne 0x48b91d
pop edi
pop esi
mov esp, ebp
pop ebp
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 [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x48b964
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x48b96a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x48b9cb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x48b990
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x48b9f7
mov eax, dword [esi + 4]
push 1
push 0x4cb184
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4cb185
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x48b9d0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48ba20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x48ba53
push 0x2e
push edi
call fcn.004970f0
add esp, 8
test eax, eax
je 0x48ba51
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x48c590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x48c5bc
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x48c5ad
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x48c5f0
cmp dword [esi + 8], 0
jne 0x48c5e0
push 0x4c1b90
push dword [eax + 8]
call fcn.0049fb81
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x48c5e0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004a3b98
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48c612
mov eax, dword [esi + 8]
test eax, eax
je 0x48c60c
push eax
call fcn.0049d836
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
pop ebp
ret

Function at 0x490200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x49020c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00490220
Function at 0x4b2915
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b2794

Function at 0x4b61fd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b5ebd

Function at 0x4bb860
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x4bb910
push 9
lea eax, [ebp - 0x18]
mov ebx, edi
push eax
push 0x59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x4bb910
mov ecx, dword [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004064e0
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4bb8cb
mov eax, dword [esi]
jmp 0x4bb8cd
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov eax, 0x400
cmp di, ax
jb 0x4bb8fd
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x4bb8fd
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004064e0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret