joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41754f
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 + 0x498e00]
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 0x417592
cmp word [esi], dx
jne 0x417592
or byte [edi + eax + 0x28], 4
jmp 0x417597
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 0x4176ea
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 0x4176ca
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4175d9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41760f
cmp eax, edx
jae 0x41761b
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 0x4175b1
jmp 0x4176ea
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 0x4176c6
cmp dword [ebp - 0x14], 0
je 0x4176c6
mov eax, dword [ebx*4 + 0x498e00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41769e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417667
mov word [esi], cx
jmp 0x41769a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x498e00]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x498e00]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x498e00]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4176ea
pop ebx
cmp word [ebp - 4], bx
jne 0x4176af
cmp esi, dword [ebp + 0xc]
jne 0x4176af
mov word [esi], bx
jmp 0x4176e7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417f83
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4176ea
push 0xd
jmp 0x4176e3
mov ecx, dword [ebx*4 + 0x498e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4176e1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4176ea
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 0x41b4cf
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 0x41b56c
push ebx
push esi
call fcn.0041b498
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.0041a11d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b519
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b56b
push edi
push eax
call fcn.00418162
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b539
call fcn.00414f3c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b56a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a11d
add esp, 0x20
test eax, eax
jne 0x41b558
push edi
call fcn.00414f3c
jmp 0x41b560
push ebx
call fcn.00414f3c
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 0x422ce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x422d0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422d0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x402c00
pop dword [ebp - 0x10]
mov eax, 0x402c00
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x33931acf
add dword [ebp - 0x20], 0x1abf2a7c
mov dword [ebp - 0x1c], 0xb8961fa4
sub dword [ebp - 0x1c], 0x8662d35f
mov dword [ebp - 0x18], 0x40996894
sub dword [ebp - 0x18], 0xf44d2466
mov dword [ebp - 0x14], 0xf6214502
sub dword [ebp - 0x14], 0xf6214502
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x2d438277
sub dword [ebp - 0x20], 0xb8d11921
mov dword [ebp - 0x1c], 0x3a4ccb38
sub dword [ebp - 0x1c], 0xf8e069c3
mov dword [ebp - 0x18], 0x3f4102ae
add dword [ebp - 0x18], 0x242e69be
mov dword [ebp - 0x14], 0x36bc87d4
add dword [ebp - 0x14], 0xc943782c
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x35456161
sub eax, 0x3504e08d
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x39686
push 0
call eax
mov ecx, 0x52e0
xor edx, edx
add edx, eax
mov ebx, 0xdde50d20
sub ebx, 0xdda3fd20
add ebx, dword [ebp - 0x10]
mov edi, 0xeb9af787
add edi, 0x89cb2ee7
mov esi, dword [ebx]
sub dword [ebp - 8], 0x4b2405dd
sub esi, edi
sub dword [ebp - 8], eax
mov dword [edx], esi
xor dword [ebp - 8], 0x30f4e135
add edx, 0x1569469d
add edx, 0xea96b967
add ebx, 4
loop 0x402d14
add eax, 0xb341cde1
add eax, 0x4cbf7072
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa35caf54
add ecx, 0x5ce350ac
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10002aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
jne 0x10002ad6
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
push esi
push 0x358
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10002b07
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
push ecx
lea edx, [ebp - 0x20c]
mov ecx, edi
call fcn.10002970
add esp, 4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10002b89
test al, 0x10
je 0x10002b89
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10002b40
mov eax, dword [0x1002c8a0]
mov dword [ecx], eax
mov ax, word [0x1002c8a4]
mov word [ecx + 4], ax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
mov eax, esi
mov byte [esi + 0x254], 0
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop esi
pop edi
call fcn.100127b8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, edx
cmp eax, 0xfffffffe
je 0x10004865
test eax, eax
jg 0x100047b5
or dword [esi + 0x8c], 0x2000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
test dword [esi + 0x8c], 0x800
je 0x10004836
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_getsockname]
push str.iolog
push 0x11dc
mov ecx, 2
call fcn.10003aa0
add esp, 8
test al, al
je 0x10004829
push dword [ebp + 8]
lea eax, [esi + 0x1c]
mov ecx, 0x1002cca4
push eax
push 0x10004720
test bl, bl
mov eax, 0x1002cca0
cmove eax, ecx
push eax
lea eax, [esi + 8]
push eax
push 0x10004720
push dword [esi + 0x34]
push str._n____lu__M__s__M__ld
call fcn.10003bb0
add esp, 0x20
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.10003c00
mov eax, dword [ebp + 8]
test bl, bl
je 0x10004844
add dword [esi + 0x40], eax
mov edx, 7
jmp 0x10004857
push eax
lea ecx, [esi + 0x48]
xor edx, edx
call fcn.10003a30
add esp, 4
mov edx, 8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.10001ab0
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100127b8
mov esp, ebp
pop ebp
ret
Function at 0x10004880
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
push edi
test dword [esi + 0x8c], 0x100
je 0x1000490f
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x1c], xmm0
mov word [ebp - 0x1c], ax
mov ax, word [esi + 0x2c]
mov word [ebp - 0x1a], ax
mov eax, dword [esi + 0x1c]
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp + 8]
push edx
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
test edi, edi
jle 0x10004922
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10004920
cmp dword [ebp - 0xc], 0x10
setne al
mov byte [esi + 0x1a], al
mov ax, word [ebp - 0x2a]
mov word [esi + 0x18], ax
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
jmp 0x10004920
push 0
push dword [ebp + 8]
push edx
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jns 0x10004978
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2714
je 0x10004963
call esi
cmp eax, 0x2734
je 0x10004963
call esi
cmp eax, 0x2733
je 0x10004963
call esi
cmp eax, 0x2746
jne 0x10004978
mov eax, 0xfffffffd
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
test edi, edi
cmovle edi, eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
call fcn.100127b8
mov esp, ebp
pop ebp
ret
Function at 0x10004a50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, ecx
test dword [edi + 0x8c], 0x100
je 0x10004acc
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0x10
movups xmmword [ebp - 0x1c], xmm0
mov eax, 2
mov word [ebp - 0x1c], ax
mov ax, word [edi + 0x2c]
mov word [ebp - 0x1a], ax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp + 8]
push edx
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jle 0x10004adf
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x18]
setne cl
mov dword [edi + 0x1c], eax
mov byte [edi + 0x2e], cl
mov cx, word [ebp - 0x1a]
mov word [edi + 0x2c], cx
jmp 0x10004add
push 0
push dword [ebp + 8]
push edx
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x10004b35
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2714
je 0x10004b20
call edi
cmp eax, 0x2734
je 0x10004b20
call edi
cmp eax, 0x2733
je 0x10004b20
call edi
cmp eax, 0x2746
jne 0x10004b35
mov eax, 0xfffffffd
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
or eax, 0xffffffff
test esi, esi
pop edi
cmovle esi, eax
xor ecx, ebp
mov eax, esi
pop esi
call fcn.100127b8
mov esp, ebp
pop ebp
ret
Function at 0x10004cc0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, 2
push 0
mov ecx, 0x17
mov eax, esi
mov edx, dword [edi + 0x8c]
and edx, 0x100
neg edx
sbb edx, edx
neg edx
inc edx
cmp byte [edi + 0x2e], 0
push edx
cmovne eax, ecx
push eax
call dword [sym.imp.WS2_32.dll_socket]
and dword [edi + 0x8c], 0xfffffff7
mov ecx, eax
mov dword [edi + 0x30], ecx
cmp ecx, 0xffffffff
jne 0x10004d27
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket__:__d
jmp 0x10004eb7
test dword [edi + 0x8c], 0x100
je 0x10004d64
mov eax, dword [edi + 0x58]
test eax, eax
je 0x10004d47
push dword [edi + 0x5c]
push 0
push 3
push edi
call eax
add esp, 0x10
mov eax, dword [edi + 0x60]
test eax, eax
je 0x10004dff
push dword [edi + 0x64]
push 0
push 3
push edi
call eax
add esp, 0x10
jmp 0x10004dff
mov ax, word [edi + 0x2c]
lea ebx, [edi + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 8], 1
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 0x16], ax
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push ecx
mov word [ebp - 0x18], si
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
push 4
push eax
push 1
push 6
push dword [edi + 0x30]
mov dword [ebp - 8], 1
call esi
push 4
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push dword [edi + 0x30]
call esi
mov eax, dword [edi + 0x58]
test eax, eax
je 0x10004dd8
push dword [edi + 0x5c]
push 0
push 3
push edi
call eax
add esp, 0x10
mov eax, dword [edi + 0x60]
test eax, eax
je 0x10004dec
push dword [edi + 0x64]
push 0
push 3
push edi
call eax
add esp, 0x10
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0x30]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x10004e3c
mov eax, dword [edi + 0x58]
test eax, eax
je 0x10004e13
push dword [edi + 0x5c]
push 0
push 4
push edi
call eax
add esp, 0x10
mov eax, dword [edi + 0x60]
test eax, eax
je 0x10004ec0
push dword [edi + 0x64]
push 0
push 4
push edi
call eax
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
jns 0x10004eaf
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2714
je 0x10004e63
call esi
cmp eax, 0x2734
je 0x10004e63
call esi
cmp eax, 0x2733
je 0x10004e63
call esi
jmp 0x10004eb1
push str.mg_connect_resolved
push 0x12dc
mov ecx, 3
call fcn.10003aa0
add esp, 8
test al, al
je 0x10004e97
push ebx
push 0x10004720
push dword [edi + 0x30]
push dword [edi + 0x34]
push str._lu__p_____M_pend
call fcn.10003bb0
add esp, 0x14
or dword [edi + 0x8c], 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
push str.connect:__d
push edi
call fcn.10001af0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100127b8
mov esp, ebp
pop ebp
ret
Function at 0x10005a30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x10c], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x108], 0
jne 0x10005a9c
xor ecx, ecx
jmp 0x10005aae
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005aa5
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.10006400
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100127b8
mov esp, ebp
pop ebp
ret

Function at 0x10007210
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x10], 0
push esi
jne 0x10007238
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x14], 0x10
jb 0x10007240
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007227
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test esi, esi
je 0x10007276
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop esi
call fcn.100127b8
mov esp, ebp
pop ebp
ret
Function at 0x10008430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023c08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10008550
cmp byte [ebx + 0x3d], 0
je 0x10008550
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x10008489
xor al, al
jmp 0x10008552
sub esp, 8
lea ecx, [ebp - 0x28]
call fcn.10007410
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x100084dd
sub eax, 1
je 0x100084e1
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x10008539
xor bl, bl
jmp 0x1000853b
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x10008517
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x100084d9
cmp byte [ebx + 0x3d], 0
je 0x10008539
test edi, edi
lea edi, [ebx + 0x40]
jne 0x100084a1
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10008310
jmp 0x1000849b
mov bl, 1
cmp esi, 0x10
jb 0x1000854c
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
call fcn.10006900
mov al, bl
jmp 0x10008552
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
Function at 0x10008dd0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023d48
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.10009210
add esp, 0xc
push 0x44
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x38], 0xffffffff
lea eax, [ebp - 0x200]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
push esi
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x70]
push 0x10008bf0
mov dword [ebp - 0x5c], 0xbb8
mov dword [ebp - 0x6c], str.udp:__8.8.8.8:53
mov dword [ebp - 0x64], str.udp:___2001:4860:4860::8888_:53
call fcn.100042a0
add esp, 8
test eax, eax
je 0x10008e7c
mov dword [eax + 0x60], 0x10003670
cmp byte [esi + 0x79], 0
jne 0x10008e95
mov edx, 0x32
lea ecx, [ebp - 0x70]
call fcn.10005430
cmp byte [esi + 0x79], 0
je 0x10008e82
lea ecx, [ebp - 0x70]
call fcn.10004420
mov ecx, dword [ebp - 0x14]
mov bl, byte [esi + 0x78]
cmp ecx, 0x10
jb 0x10008eb2
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.10006900
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret