joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fc690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x10c
mov edx, dword [0x71f194]
or edx, dword [0x71f198]
or edx, dword [0x71f18c]
mov eax, dword [0x6d159c]
xor eax, ebp
mov dword [ebp - 8], eax
or edx, dword [0x71f190]
jne 0x5fc8aa
push 0x104
lea edi, [ebp - 0x10c]
push edi
push str.FORT_BLOCKSIZE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
test edx, edx
je 0x5fc6f5
cmp edx, 0x104
jae 0x5fc6ec
inc edx
je 0x5fc6fe
jmp 0x5fc70a
mov byte [ebp - 0x10c], 0
jmp 0x5fc70a
mov byte [ebp - 0x10c], 0
jne 0x5fc70a
mov dword [0x71f194], 0xffffffff
jmp 0x5fc74a
dec edx
lea eax, [ebp - 0x110]
push eax
push 2
push edx
push edi
call fcn.006075b0
add esp, 0x10
test eax, eax
jne 0x5fc72f
mov eax, dword [ebp - 0x110]
cmp eax, 0x7fffc000
jbe 0x5fc73b
mov dword [0x71f194], 0xfffffffe
jmp 0x5fc74a
add eax, 0x1ff
and eax, 0xfffffe00
mov dword [0x71f194], eax
push 0x104
push edi
push str.FORT_BUFFERCOUNT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
test edx, edx
je 0x5fc777
cmp edx, 0x104
jae 0x5fc76e
inc edx
je 0x5fc780
jmp 0x5fc78c
mov byte [ebp - 0x10c], 0
jmp 0x5fc78c
mov byte [ebp - 0x10c], 0
jne 0x5fc78c
mov dword [0x71f198], 0xffffffff
jmp 0x5fc7c0
dec edx
lea eax, [ebp - 0x110]
push eax
push 2
push edx
push edi
call fcn.006075b0
add esp, 0x10
test eax, eax
jne 0x5fc7af
mov eax, dword [ebp - 0x110]
cmp eax, 0x7f
jbe 0x5fc7bb
mov dword [0x71f198], 0xfffffffe
jmp 0x5fc7c0
mov dword [0x71f198], eax
push 0x104
push edi
push str.FORT_FMT_RECL
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
test edx, edx
je 0x5fc7ed
cmp edx, 0x104
jae 0x5fc7e4
inc edx
je 0x5fc7f6
jmp 0x5fc802
mov byte [ebp - 0x10c], 0
jmp 0x5fc802
mov byte [ebp - 0x10c], 0
jne 0x5fc802
mov dword [0x71f18c], 0xffffffff
jmp 0x5fc835
dec edx
lea eax, [ebp - 0x110]
push eax
push 2
push edx
push edi
call fcn.006075b0
add esp, 0x10
test eax, eax
jne 0x5fc82b
mov eax, dword [ebp - 0x110]
test eax, eax
jl 0x5fc82b
mov dword [0x71f18c], eax
jmp 0x5fc835
mov dword [0x71f18c], 0xfffffffe
push 0x104
push edi
push str.FORT_UFMT_RECL
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
test edx, edx
je 0x5fc862
cmp edx, 0x104
jae 0x5fc859
inc edx
je 0x5fc86b
jmp 0x5fc877
mov byte [ebp - 0x10c], 0
jmp 0x5fc877
mov byte [ebp - 0x10c], 0
jne 0x5fc877
mov dword [0x71f190], 0xffffffff
jmp 0x5fc8aa
dec edx
lea eax, [ebp - 0x110]
push eax
push 2
push edx
push edi
call fcn.006075b0
add esp, 0x10
test eax, eax
jne 0x5fc8a0
mov eax, dword [ebp - 0x110]
test eax, eax
jl 0x5fc8a0
mov dword [0x71f190], eax
jmp 0x5fc8aa
mov dword [0x71f190], 0xfffffffe
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], 0
xor ecx, ebp
cmp ecx, dword [0x6d159c]
jne 0x5fc8c4
lea esp, [ebp - 4]
pop edi
pop ebp
ret
call fcn.0063f93a
lea esi, [esi]
Function at 0x62cfd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x324
mov eax, dword [0x6d159c]
mov edx, dword [esp + 0x344]
xor eax, esp
mov dword [esp + 0x320], eax
test edx, edx
je 0x62cff9
mov dword [edx], 0
lea eax, [esp]
push 0x1c
push eax
push dword [esp + 0x340]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [esp + 0x33c]
test eax, eax
jne 0x62d042
xor eax, eax
mov byte [edi], al
mov ecx, dword [esp + 0x320]
mov dword [esp + 0x320], eax
xor ecx, esp
cmp ecx, dword [0x6d159c]
jne 0x62d0df
add esp, 0x324
pop ebp
pop ebx
pop edi
pop esi
ret
lea esi, [esp + 0x21c]
push 0x104
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62d084
xor eax, eax
mov byte [edi], al
mov ecx, dword [esp + 0x320]
mov dword [esp + 0x320], eax
xor ecx, esp
cmp ecx, dword [0x6d159c]
jne 0x62d0df
add esp, 0x324
pop ebp
pop ebx
pop edi
pop esi
ret
xor eax, eax
lea ebx, [esp + 0x1c]
lea ebp, [esp + 0x11c]
push ebx
push ebp
push eax
push eax
push esi
call fcn.0065a712
mov esi, dword [esp + 0x354]
push esi
push ebp
push edi
call fcn.00657070
lea eax, [esi - 1]
push eax
push ebx
push edi
call fcn.0065a290
add esp, 0x2c
mov ecx, dword [esp + 0x320]
mov dword [esp + 0x320], 0
xor ecx, esp
cmp ecx, dword [0x6d159c]
jne 0x62d0df
add esp, 0x324
pop ebp
pop ebx
pop edi
pop esi
ret
call fcn.0063f93a
lea esi, [esi]
lea edi, [edi]
Function at 0x6300d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x6d159c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x198], esi
call fcn.00630070
mov dword [esi], vtable.ExchangeTcp.0
mov dword [esi + 0x28], 0xffffffff
mov eax, dword [0x6df9e0]
mov ecx, eax
inc eax
mov dword [0x6df9e0], eax
test ecx, ecx
jne 0x630134
movzx ecx, word [0x6c4600]
lea eax, [ebp - 0x194]
push eax
push ecx
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x630134
push str.Unable_to_start_Windows_sockets
call fcn.00631020
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0063f93a
mov esp, ebp
pop ebp
ret

Function at 0x630340
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x6d159c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, ecx
mov dword [ebp - 0x11c], 0x10
call fcn.0064cf29
push eax
call fcn.0064cf17
add esp, 8
mov dword [ebp - 0x124], 0
call fcn.0064cef6
cdq
mov ecx, 0x3de
idiv ecx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x118], 1
add edx, 0xa
imul eax, edx, 0x3e8
push ecx
push 0
push 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x120], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x114], eax
inc eax
push ecx
push eax
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x6303eb
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.Socket_Select_Error:__ld_n
call fcn.0062ff30
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x6303da
push edi
lea eax, [ebp - 0x118]
push eax
push dword [esi + 0x28]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x630449
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x28]
call sub.WS2_32.dll_accept
mov edi, eax
cmp edi, 0xffffffff
je 0x630449
mov ecx, dword [esi + 0x28]
cmp ecx, 0xffffffff
je 0x63042b
push ecx
call sub.WS2_32.dll_closesocket
push 1
mov ecx, esi
mov dword [esi + 0x28], edi
call fcn.00630790
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
Function at 0x630460
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6d159c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ebp + 8]
mov eax, 2
mov dword [ebp - 0x18], 0x10
mov edi, ecx
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_htons
push 0
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_htonl
push 6
push 1
push 2
mov dword [ebp - 0x10], eax
call sub.WS2_32.dll_socket
mov esi, eax
test esi, esi
js 0x630507
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_bind
test eax, eax
js 0x630507
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.WS2_32.dll_getsockname
test eax, eax
js 0x630507
push dword [ebp - 0x12]
mov dword [edi + 0x28], esi
call sub.WS2_32.dll_ntohs
movzx edi, ax
test edi, edi
jne 0x6304f3
push esi
call sub.WS2_32.dll_closesocket
push str.ExchangeBind
call fcn.00646111
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063f93a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.0063f93a
mov esp, ebp
pop ebp
ret 4
Function at 0x630550
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6d159c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0x66dd8c
push edi
mov byte [ebp - 0x15], 0
call fcn.0064cade
add esp, 8
test eax, eax
jne 0x6305c2
push edi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x6305b4
push edi
push str.Exchange::Connect:_Cannot_resolve_address__s_n
push 2
call fcn.00647235
add esp, 4
push eax
call fcn.0062fd30
add esp, 0xc
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063f93a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.WS2_32.dll_ntohl
jmp 0x6305c5
mov eax, dword [ebp - 0x20]
push esi
push 0
push 1
push 2
mov dword [ebp - 0x1c], eax
call sub.WS2_32.dll_socket
mov esi, eax
test esi, esi
js 0x6306a3
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 1
push 6
push dword [ebx + 0x28]
call sub.WS2_32.dll_setsockopt
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_htons
push 0x66dd8c
push edi
mov word [ebp - 0x12], ax
call fcn.0064cade
add esp, 8
test eax, eax
jne 0x630628
push dword [ebp - 0x1c]
call sub.WS2_32.dll_htonl
jmp 0x63062e
push edi
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
js 0x630653
push 0
mov ecx, ebx
mov byte [ebp - 0x15], 1
mov dword [ebx + 0x28], esi
call fcn.00630790
jmp 0x6306c0
cmp eax, 0xffffffff
jne 0x6306b6
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.connect_function_failed_with_error:__ld_n
call fcn.00631040
add esp, 8
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274c
jne 0x63068a
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.Exchange::Connect:Connection_Timed_Out:__ld_n
call fcn.00631040
add esp, 8
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274d
jne 0x6306b6
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.Exchange::Connect:Connection_Refused:__ld_n
jmp 0x6306ae
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.socket_function_failed_with_error:__ld_n
call fcn.00631040
add esp, 8
test esi, esi
js 0x6306c0
push esi
call sub.WS2_32.dll_closesocket
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x15]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.0063f93a
mov esp, ebp
pop ebp
ret 8

Function at 0x630700
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x4004667f
push dword [ecx + 0x28]
call sub.WS2_32.dll_ioctlsocket
mov esi, eax
cmp esi, 0xffffffff
jne 0x63072a
push str.Unable_to_check_read_buffer.
call fcn.00631020
add esp, 4
or eax, 0xffffffff
test esi, esi
pop esi
cmove eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x630a60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66baa0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6d159c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov bh, byte [ebp + 8]
xor bl, bl
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 0
test bh, bh
je 0x630ac6
mov eax, dword [esi]
call dword [eax + 0x14]
test eax, eax
jne 0x630ac6
push 1
call fcn.00647235
push eax
call fcn.006475cd
push 2
call fcn.00647235
push eax
call fcn.006475cd
add esp, 0x10
test bl, bl
jne 0x630b90
test bh, bh
jne 0x630ae1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jle 0x630b90
mov eax, dword [esi + 0x2c]
lea edi, [esi + 0x2c]
sub eax, dword [esi + 0x30]
push 0
push eax
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0x30]
push eax
push dword [esi + 0x28]
call sub.WS2_32.dll_recv
test eax, eax
jns 0x630b15
push 0x6c2534
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.Unexpected_error_at_transport_mechanism.
push eax
call fcn.00641de8
jne 0x630b2c
push 0x6c2534
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], str.Unexpected_closure_of_transport_mechanism.
push eax
call fcn.00641de8
add dword [esi + 0x30], eax
mov eax, dword [edi]
cmp dword [esi + 0x30], eax
jne 0x630ac6
cmp eax, 4
jne 0x630b5d
push edi
mov ecx, esi
mov dword [esi + 0x20], 0
call fcn.006301d0
mov eax, dword [edi]
lea ecx, [esi + 0x14]
sub eax, dword [esi + 0x30]
push eax
call fcn.00630520
jmp 0x630ac6
cmp byte [esi + 0x25], 0
jne 0x630ba6
mov ecx, esi
call fcn.00630800
mov dword [esi + 0x30], 0
mov dword [edi], 4
jmp 0x630ac6
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, 1
mov dword [esi + 0x30], 0
mov byte [ebp - 0x11], bl
mov dword [edi], 4
jmp 0x630ac6

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66bae0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6d159c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [edi + 0x10]
push esi
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
call fcn.00630240
push 0
push esi
push dword [edi + 4]
push dword [edi + 0x28]
call sub.WS2_32.dll_send
test eax, eax
jns 0x630d6b
push 0x6c2534
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.Unexpected_error_at_transport_mechanism.
push eax
call fcn.00641de8
jne 0x630d93
push 0x6c2534
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.Unexpected_closure_of_transport_mechanism.
push eax
call fcn.00641de8
push dword [ebp - 0x1c]
call fcn.00631020
add esp, 4
mov eax, 0x630d93
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x630de0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6d159c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
mov esi, ecx
call fcn.0064cf29
push eax
call fcn.0064cf17
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x110]
add esp, 8
mov dword [ebp - 0x104], eax
inc eax
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 1
push ecx
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push eax
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x630ecb
call sub.WS2_32.dll_WSAGetLastError
push eax
push str.Socket_Select_Error:_ld_n
call fcn.0062ff30
mov eax, dword [ebp - 0x108]
add esp, 8
xor ecx, ecx
test eax, eax
je 0x63100a
mov edx, dword [esi + 0x28]
cmp dword [ebp + ecx*4 - 0x104], edx
je 0x630e94
inc ecx
cmp ecx, eax
jb 0x630e75
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
dec eax
cmp ecx, eax
jae 0x63100a
nop dword [eax]
mov eax, dword [ebp + ecx*4 - 0x100]
mov dword [ebp + ecx*4 - 0x104], eax
inc ecx
mov eax, dword [ebp - 0x108]
dec eax
cmp ecx, eax
jb 0x630ea0
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x630f3b
mov eax, dword [ebp - 0x108]
xor ecx, ecx
test eax, eax
je 0x63100a
mov edx, dword [esi + 0x28]
cmp dword [ebp + ecx*4 - 0x104], edx
je 0x630f01
inc ecx
cmp ecx, eax
jb 0x630ee2
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
dec eax
cmp ecx, eax
jae 0x63100a
nop word [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x100]
mov dword [ebp + ecx*4 - 0x104], eax
inc ecx
mov eax, dword [ebp - 0x108]
dec eax
cmp ecx, eax
jb 0x630f10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x28]
call sub.WS2_32.dll___WSAFDIsSet
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x108]
je 0x630fbb
test eax, eax
je 0x630faa
mov edx, dword [esi + 0x28]
nop dword [eax]
cmp dword [ebp + ecx*4 - 0x104], edx
je 0x630f7f
inc ecx
cmp ecx, eax
jb 0x630f60
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
dec eax
cmp ecx, eax
jae 0x630faa
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x100]
mov dword [ebp + ecx*4 - 0x104], eax
inc ecx
mov eax, dword [ebp - 0x108]
dec eax
cmp ecx, eax
jb 0x630f90
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x63100a
mov edx, dword [esi + 0x28]
cmp dword [ebp + ecx*4 - 0x104], edx
je 0x630fe1
inc ecx
cmp ecx, eax
jb 0x630fc2
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
dec eax
cmp ecx, eax
jae 0x63100a
nop word [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x100]
mov dword [ebp + ecx*4 - 0x104], eax
inc ecx
mov eax, dword [ebp - 0x108]
dec eax
cmp ecx, eax
jb 0x630ff0
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
Function at 0x635050
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6d159c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x63508f
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.00653ba9
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0063f93a
mov esp, ebp
pop ebp
ret
Function at 0x6401e7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x640226
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x640226
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x640226
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x640226
cmp dword [ecx + 0x74], 0xe
jbe 0x640226
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x65b840
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6bde48
push 0x6bde40
push str.FlsAlloc
push 0x1e
call fcn.0065b62d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x65b874
push dword [ebp + 8]
mov ecx, esi
call dword [0x66c264]
call esi
jmp 0x65b87a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x65b8be
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6bde58
push 0x6bde50
push str.FlsGetValue
push 0x20
call fcn.0065b62d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x65b8f5
push dword [ebp + 8]
mov ecx, esi
call dword [0x66c264]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x660385
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 0x660422
push ebx
push esi
call fcn.0066034e
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.0065e046
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x6603cf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x660421
push edi
push eax
call fcn.0065c22e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x6603ef
call fcn.0065b31e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x660420
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0065e046
add esp, 0x20
test eax, eax
jne 0x66040e
push edi
call fcn.0065b31e
jmp 0x660416
push ebx
call fcn.0065b31e
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 0x660425
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x660436
pop esi
ret
push ebx
push edi
push esi
call fcn.0066034e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0065c22e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x66045e
push ebx
push esi
push edi
call fcn.00641fc0
add esp, 0xc
push 0
call fcn.0065b31e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x660baa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006606d1

Function at 0x660ed4
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00660e56
Function at 0x66526e
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 + 0x724f70]
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 0x6652ae
cmp byte [ebx], 0xa
jne 0x6652ae
or byte [eax + edi + 0x28], 4
jmp 0x6652b3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x6653b1
mov al, byte [edx]
cmp al, 0x1a
je 0x665393
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x6652e2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x665307
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x665311
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 0x6652c4
jmp 0x6653b1
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 0x66538e
cmp dword [ebp - 0xc], 0
je 0x66538e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x724f70]
test byte [eax + edi + 0x28], 0x48
je 0x665368
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x665353
mov byte [esi], dl
jmp 0x665364
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x724f70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x6653b1
cmp byte [ebp - 1], 0xa
jne 0x665377
cmp esi, ebx
jne 0x665377
mov byte [esi], 0xa
jmp 0x6653b0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.006651de
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6653b1
mov byte [esi], 0xd
jmp 0x6653b0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x724f70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6653ad
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6653b1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret