joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cfc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1004e370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x22c], 0
je 0x1001d0a8
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 8
push 0xffff
push esi
call ebx
test eax, eax
jns 0x1001d033
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt_SO_KEEPALIVE_1_failed_with_error__d_n
push 1
call fcn.1001dbe0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
imul eax, dword [edi + 0x22c], 0x3e8
push 0
push 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], eax
imul eax, dword [edi + 0x234], 0x3e8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1001d0a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.WSAIoctl_SIO_KEEPALIVE_VALS_1__lu__lu_failed_with_error__d_n
push 1
call fcn.1001dbe0
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
push 0x10045688
mov dword [ebp - 0x14], 1
call dword [sym.imp.WS2_32.dll_getprotobyname]
test eax, eax
jne 0x1001d0c5
mov eax, 6
jmp 0x1001d0c9
movsx eax, word [eax + 8]
push 4
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
push esi
call ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x1001d10d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
push 1
call fcn.1001dbe0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039446
mov esp, ebp
pop ebp
ret
Function at 0x1001d550
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x25c], 0
je 0x1001d5a2
push esi
call fcn.1001bb20
mov ecx, dword [esi + 0x25c]
add esp, 4
mov edx, dword [esi + 0x2b0]
push 0x10
test eax, eax
je 0x1001d590
lea eax, [ecx + 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x1001d5d8
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x1001d5d8
mov eax, dword [esi + 0x24c]
test byte [eax + 0x22], 1
je 0x1001d5c4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x2b0]
call sub.msvcrt.dll__write
add esp, 0xc
jmp 0x1001d5d8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x2b0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1001d61b
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x1001d605
call edi
cmp eax, 0x2733
je 0x1001d605
call edi
cmp eax, 0x2714
je 0x1001d605
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
call edi
cmp eax, 0x2733
jne 0x1001d615
or dword [esi + 0x2d8], 0x40
mov eax, 0xfffffffc
pop edi
pop esi
pop ebp
ret
Function at 0x100260c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x90]
and eax, 4
or eax, 0
jne 0x100260f5
push 0x5f
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x100260f5
push 0x60
push str.unknown
push dword [ebp + 8]
call fcn.100204f0
add esp, 0xc
pop ebp
ret

Function at 0x10026250
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
push 0
movsx eax, byte [edx + 0x2e9]
push 2
push 2
lea edi, [eax + eax*2]
shl edi, 6
add edi, dword [edx]
lea esi, [edi + 0x19c]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x1bc], eax
cmp eax, 0xffffffff
je 0x100262ea
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x1c0], eax
cmp eax, 0xffffffff
je 0x100262ea
mov eax, 2
push 0x7f000001
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 4], eax
xor eax, eax
push 0x10
push esi
mov word [esi + 2], ax
push dword [edi + 0x1bc]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x100262ea
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x10
push eax
push esi
push dword [edi + 0x1bc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x100262ea
pop edi
pop esi
pop ebp
ret
push str.lws_plat_pipe_create
push str._s:_failed_n
push 1
call fcn.1001dbe0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push 0x10
mov byte [ebp + 0xf], 0
lea ecx, [eax + eax*2]
shl ecx, 6
add ecx, dword [ebp + 8]
lea eax, [ecx + 0x19c]
push eax
push 0
push 1
lea eax, [ebp + 0xf]
push eax
push dword [ecx + 0x1c0]
call dword [sym.imp.WS2_32.dll_sendto]
dec eax
neg eax
sbb eax, eax
neg eax
pop ebp
ret

Function at 0x10026350
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1004e370]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10026387
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
push eax
push str.WSAStartup_failed_with_error:__d_n
push 1
call fcn.1001dbe0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
call fcn.10039446
mov esp, ebp
pop ebp
ret
Function at 0x100277f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1004e370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push str.nsc_regen
push 0
push esi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 1
call fcn.10027280
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x108], ebx
test ebx, ebx
jns 0x10027851
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
push dword [esi + 0x14]
lea eax, [ebp - 0x84]
push str._s.tmp
push 0x80
push eax
call fcn.10020380
lea eax, [ebp - 0x84]
push eax
call sub.msvcrt.dll__unlink
push 0x180
lea eax, [ebp - 0x84]
push 0x101
push eax
call sub.msvcrt.dll__open
add esp, 0x20
mov dword [ebp - 0x11c], eax
test eax, eax
js 0x100279cf
push 0x1c
push str._Netscape_HTTP_Cookie_File_n
push eax
call sub.msvcrt.dll__write
add esp, 0xc
cmp eax, 0x1c
jne 0x100279bc
mov ebx, dword [ebp + 0x14]
test edi, edi
je 0x100278f3
push ebx
push edi
push dword [ebp - 0x11c]
call sub.msvcrt.dll__write
add esp, 0xc
cmp eax, ebx
jne 0x100279b6
push 1
push 0x1004acb8
push dword [ebp - 0x11c]
call sub.msvcrt.dll__write
add esp, 0xc
cmp eax, 1
jne 0x100279b6
mov eax, dword [ebp - 0x110]
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x120], ebx
call fcn.10020a20
mov ebx, dword [ebp - 0x108]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x130]
push eax
push 0x10027a20
push ebx
push esi
mov dword [ebp - 0x124], edx
mov byte [ebp - 0x118], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
call fcn.10027b50
add esp, 0x10
test eax, eax
jne 0x100279bc
push dword [ebp - 0x11c]
call sub.msvcrt.dll__close
push dword [esi + 0x14]
mov dword [ebp - 0x11c], 0xffffffff
call sub.msvcrt.dll__unlink
push dword [esi + 0x14]
lea eax, [ebp - 0x84]
push eax
call sub.msvcrt.dll_rename
mov edx, dword [esi + 0x58]
add esp, 0x10
mov ecx, dword [esi + 0x5c]
mov eax, edx
or eax, ecx
je 0x100279aa
push ecx
push edx
push 0x10027240
push esi
call fcn.1001e4a0
add esp, 0x10
mov dword [ebp - 0x10c], 0
jmp 0x100279cf
mov ebx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x11c]
test eax, eax
js 0x100279cf
push eax
call sub.msvcrt.dll__close
add esp, 4
lea eax, [ebp - 0x84]
push eax
call sub.msvcrt.dll__unlink
push dword [esi + 0x14]
lea eax, [ebp - 0x104]
push str._s.LCK
push 0x80
push eax
call fcn.10020380
push ebx
call sub.msvcrt.dll__close
lea eax, [ebp - 0x104]
push eax
call sub.msvcrt.dll__unlink
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10039446
mov esp, ebp
pop ebp
ret
Function at 0x10027b50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1004e370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x11c], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x120], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x118], eax
xor eax, eax
push edi
mov dword [ebp - 0x110], eax
xor al, al
push edi
push ebx
mov dword [ebp - 0x10c], 1
mov byte [ebp - 0x105], al
call sub.msvcrt.dll__lseek
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10027bc5
pop edi
pop esi
or eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
mov eax, 0x100
sub eax, edi
push eax
lea eax, [ebp - 0x104]
add eax, edi
push eax
push ebx
call sub.msvcrt.dll__read
add esp, 0xc
test eax, eax
jg 0x10027bf5
mov dl, 1
mov byte [ebp - 0x105], dl
cmp esi, edi
je 0x10027d24
jmp 0x10027c00
mov dl, byte [ebp - 0x105]
add edi, eax
nop dword [eax]
mov eax, esi
cmp esi, edi
jge 0x10027c9a
inc esi
lea ebx, [ebp - 0x104]
add ebx, esi
cmp byte [ebx - 1], 0xa
jne 0x10027c00
cmp byte [ebp - 0x104], 0x23
jne 0x10027c2e
mov dword [ebp - 0x114], 0
jmp 0x10027c5b
push eax
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x10c]
or eax, 2
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [ebp - 0x120]
add esp, 0x14
mov dword [ebp - 0x114], eax
sub edi, esi
mov dword [ebp - 0x10c], 1
push edi
lea eax, [ebp - 0x104]
mov dword [ebp - 0x110], 0
push ebx
push eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x114]
add esp, 0xc
xor esi, esi
test eax, eax
jne 0x10027d26
mov ebx, dword [ebp + 0xc]
jmp 0x10027bc5
test esi, esi
je 0x10027d0c
cmp dword [ebp - 0x110], 0
jne 0x10027cfa
mov ecx, dword [ebp - 0x10c]
cmp ecx, 1
jne 0x10027cbf
test edi, edi
je 0x10027cce
cmp byte [ebp - 0x104], 0x23
je 0x10027cfa
cmp edi, esi
jne 0x10027cce
test dl, dl
je 0x10027cce
mov eax, 2
jmp 0x10027cd0
xor eax, eax
push esi
lea edx, [ebp - 0x104]
or eax, ecx
push edx
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [ebp - 0x120]
add esp, 0x14
xor esi, esi
xor edi, edi
test eax, eax
jne 0x10027d26
jmp 0x10027d04
mov dword [ebp - 0x110], 1
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
cmp byte [ebp - 0x105], 0
mov ebx, dword [ebp + 0xc]
je 0x10027bc5
cmp edi, esi
jne 0x10027bc5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039446
mov esp, ebp
pop ebp
ret
Function at 0x100317e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 8], ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
test edx, edx
je 0x100318c3
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 4
xor ebx, ebx
xor eax, eax
nop word [eax + eax]
test edx, edx
je 0x1003181e
mov cl, byte [edi]
inc ebx
inc edi
dec edx
mov dword [ebp + 0xc], edi
jmp 0x10031829
cmp eax, 3
jae 0x100318e1
xor cl, cl
mov byte [ebp + eax + 0x10], cl
inc eax
cmp eax, 3
jl 0x10031810
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 4], eax
jge 0x100318cb
movzx ecx, byte [ebp + 0x10]
mov edi, dword [ebp + 8]
mov eax, ecx
shr eax, 2
and ecx, 3
shl ecx, 4
movzx eax, byte [eax + edi]
mov byte [esi], al
movzx eax, byte [ebp + 0x11]
mov dword [ebp - 0xc], eax
shr eax, 4
or eax, ecx
mov ecx, edi
movzx eax, byte [eax + ecx]
mov byte [esi + 1], al
cmp ebx, 1
jle 0x1003189f
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ebp + 0x12]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or eax, ecx
mov ecx, edi
mov al, byte [eax + ecx]
mov byte [esi + 2], al
add esi, 3
cmp ebx, 2
jle 0x100318a6
movzx eax, byte [ebp + 0x12]
and eax, 0x3f
mov al, byte [eax + ecx]
jmp 0x100318a8
mov byte [esi + 2], 0x3d
add esi, 3
mov al, 0x3d
mov ecx, dword [ebp - 8]
add dword [ebp - 4], 4
add ecx, 4
mov edi, dword [ebp + 0xc]
mov byte [esi], al
inc esi
mov dword [ebp - 8], ecx
test edx, edx
jne 0x10031806
lea eax, [ecx + 1]
cmp eax, dword [ebp + 0x18]
jl 0x100318d5
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov byte [esi], 0
mov eax, ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10039737
int3
Function at 0x10033fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
mov eax, dword [eax]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ecx, dword [edi + 8]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x10034005
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x4cc]
mov edx, dword [edi + 0x94]
mov ebx, dword [edx + 0x128]
cmp ecx, ebx
cmovbe ebx, ecx
cmp ebx, dword [ebp + 0x10]
cmova ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x1003402d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test byte [edx + 0x120], 4
mov dword [ebp - 0xc], eax
jne 0x100340f5
movzx edx, byte [edx + 0x135]
mov esi, dword [edi + 0x94]
mov ecx, edx
and ecx, 3
mov cl, byte [ecx + esi + 0x124]
mov byte [ebp + 0xb], cl
mov byte [ebp - 8], cl
lea ecx, [edx + 1]
and ecx, 3
mov cl, byte [ecx + esi + 0x124]
mov byte [ebp + 0x13], cl
mov byte [ebp - 7], cl
lea ecx, [edx - 2]
and ecx, 3
mov cl, byte [ecx + esi + 0x124]
mov byte [ebp - 1], cl
mov byte [ebp - 6], cl
lea ecx, [edx - 1]
and ecx, 3
mov cl, byte [ecx + esi + 0x124]
mov byte [ebp - 2], cl
mov byte [ebp - 5], cl
mov ecx, ebx
shr ecx, 2
test ecx, ecx
je 0x100340c6
mov dl, byte [ebp + 0xb]
mov dh, byte [ebp + 0x13]
mov bl, byte [ebp - 1]
mov bh, byte [ebp - 2]
nop word [eax + eax]
xor byte [eax], dl
xor byte [eax + 1], dh
xor byte [eax + 2], bl
xor byte [eax + 3], bh
add eax, 4
sub ecx, 1
jne 0x100340b0
mov ebx, dword [ebp - 0x10]
mov edx, ebx
xor esi, esi
and edx, 3
jbe 0x100340df
nop
mov cl, byte [ebp + esi - 8]
lea eax, [eax + 1]
xor byte [eax - 1], cl
inc esi
cmp esi, edx
jl 0x100340d0
mov ecx, dword [edi + 0x94]
mov al, byte [ecx + 0x135]
add al, bl
and al, 3
mov byte [ecx + 0x135], al
mov eax, dword [ebp + 0xc]
add dword [eax], ebx
mov eax, dword [edi + 0x94]
sub dword [eax + 0x128], ebx
mov ecx, dword [edi + 0x94]
mov eax, dword [ecx + 0x120]
test eax, 0x400
je 0x10034197
test eax, 0x800
jne 0x10034197
push ebx
push dword [ebp - 0xc]
lea eax, [ecx + 0x13a]
push eax
call fcn.10020060
add esp, 0xc
test eax, eax
je 0x10034143
mov eax, str.bad_utf8
mov ecx, 8
jmp 0x10034172
mov eax, dword [edi + 0x94]
cmp dword [eax + 0x128], 0
jne 0x10034197
test byte [eax + 0x120], 1
je 0x10034197
cmp byte [eax + 0x13a], 0
je 0x10034197
test esi, esi
jne 0x10034197
mov eax, str.partial_utf8
mov ecx, 0xc
push ecx
push eax
push 0x3ef
push edi
call fcn.1002fb80
push ebx
push dword [ebp - 0xc]
push 8
call fcn.1001dd00
add esp, 0x1c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x100341c4
cmp dword [edi + 0x2b8], 0
jne 0x100341c4
push ebx
push dword [ebp - 0xc]
push dword [edi + 0x2a0]
push 6
push edi
push eax
call fcn.1001c4f0
add esp, 0x18
test eax, eax
jne 0x1003418d
mov ecx, dword [edi + 0x94]
mov eax, ebx
pop edi
pop esi
pop ebx
and dword [ecx + 0x120], 0xffffbfff
mov esp, ebp
pop ebp
ret
Function at 0x10037c00
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1004e370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
push esi
push edi
mov dword [ebp - 0x88], eax
mov eax, dword [ebx + 0x10]
push 0x54
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x5c]
push 0
push eax
call sub.ntdll.dll_memset
mov edi, dword [ebx + 0xc]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
mov dword [ebp - 0x60], 0xc3d2e1f0
test edi, edi
je 0x10037cf1
nop word [eax + eax]
movzx edx, byte [ebp - 0x10]
mov eax, 0x40
and edx, 0x3f
mov ecx, edi
sub eax, edx
sub ecx, esi
cmp eax, ecx
cmovae eax, ecx
push eax
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x88]
add eax, esi
push eax
lea eax, [ebp - 0x50]
add eax, edx
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x84]
add esp, 0xc
mov dl, al
add dl, byte [ebp - 0x10]
and dl, 0x3f
lea ecx, [eax*8]
mov byte [ebp - 0x10], dl
add dword [ebp - 0x58], ecx
adc dword [ebp - 0x54], 0
test dl, 0x3f
jne 0x10037ceb
lea eax, [ebp - 0x70]
push eax
call fcn.10037f70
mov eax, dword [ebp - 0x84]
add esp, 4
add esi, eax
cmp esi, edi
jb 0x10037c80
lea eax, [ebp - 0x70]
push eax
call fcn.10037db0
movzx eax, byte [ebp - 0x64]
add esp, 4
mov byte [ebp - 0x71], al
movzx eax, byte [ebp - 0x63]
mov byte [ebp - 0x72], al
movzx eax, byte [ebp - 0x62]
mov byte [ebp - 0x73], al
movzx eax, byte [ebp - 0x61]
mov byte [ebp - 0x74], al
movzx eax, byte [ebp - 0x68]
mov byte [ebp - 0x75], al
movzx eax, byte [ebp - 0x67]
mov byte [ebp - 0x76], al
movzx eax, byte [ebp - 0x66]
mov byte [ebp - 0x77], al
movzx eax, byte [ebp - 0x65]
mov byte [ebp - 0x78], al
movzx eax, byte [ebp - 0x6c]
mov byte [ebp - 0x79], al
movzx eax, byte [ebp - 0x6b]
movzx ecx, byte [ebp - 0x5d]
mov byte [ebp - 0x7a], al
movzx eax, byte [ebp - 0x6a]
mov byte [ebp - 0x7b], al
movzx eax, byte [ebp - 0x69]
mov byte [ebp - 0x7c], al
movzx eax, byte [ebp - 0x70]
mov byte [ebp - 0x7d], al
movzx eax, byte [ebp - 0x6f]
mov byte [ebp - 0x7e], al
movzx eax, byte [ebp - 0x6e]
mov byte [ebp - 0x7f], al
movzx eax, byte [ebp - 0x6d]
mov byte [ebp - 0x80], al
mov eax, dword [ebp - 0x8c]
movups xmm0, xmmword [ebp - 0x80]
pop edi
pop esi
mov byte [eax + 0x10], cl
movzx ecx, byte [ebp - 0x5e]
mov byte [eax + 0x11], cl
movzx ecx, byte [ebp - 0x5f]
mov byte [eax + 0x12], cl
movzx ecx, byte [ebp - 0x60]
mov byte [eax + 0x13], cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
movups xmmword [eax], xmm0
call fcn.10039446
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1003c4a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.1003c4d0
mov esi, dword [ebp + 8]
test al, al
je 0x1003c4be
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call fcn.1003c4e0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x1003cb80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1004e370]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x10049b74
push edi
mov dword [ebp - 0x210], edi
call sub.msvcrt.dll_wcspbrk
add esp, 8
test eax, eax
jne 0x1003cbc0
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
push ebx
push esi
xor esi, esi
call sub.msvcrt.dll__errno
mov ebx, dword [eax]
call sub.msvcrt.dll__errno
push 0x104
push edi
mov dword [eax], esi
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__wfullpath
add esp, 0xc
mov edi, eax
call sub.msvcrt.dll__errno
test edi, edi
je 0x1003cbfc
mov dword [eax], ebx
mov ebx, dword [ebp - 0x210]
jmp 0x1003cc2b
cmp dword [eax], 0x22
jne 0x1003cd3a
call sub.msvcrt.dll__errno
push 0
mov dword [eax], ebx
mov ebx, dword [ebp - 0x210]
push ebx
push 0
call sub.msvcrt.dll__wfullpath
mov esi, eax
add esp, 0xc
mov edi, esi
test edi, edi
je 0x1003cd3a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003cc30
sub ecx, edx
sar ecx, 1
cmp ecx, 3
je 0x1003cd12
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003cc50
sub ecx, edx
sar ecx, 1
cmp ecx, 5
jb 0x1003cd3a
movzx eax, word [edi]
cmp eax, 0x5c
je 0x1003cc79
cmp eax, 0x2f
jne 0x1003cd3a
movzx eax, word [edi + 2]
cmp eax, 0x5c
je 0x1003cc8b
cmp eax, 0x2f
jne 0x1003cd3a
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x1003cd3a
cmp eax, 0x2f
je 0x1003cd3a
movzx eax, word [edi + 6]
lea edx, [edi + 6]
mov edi, eax
test ax, ax
je 0x1003ccd2
mov ecx, eax
cmp cx, 0x5c
je 0x1003cccf
cmp cx, 0x2f
je 0x1003cccf
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
mov edi, eax
test ax, ax
jne 0x1003ccb1
jmp 0x1003ccd2
movzx edi, cx
test di, di
je 0x1003cd3a
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
je 0x1003cd3a
cmp cx, 0x5c
je 0x1003cd03
cmp cx, 0x2f
je 0x1003cd03
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
mov edi, eax
test ax, ax
jne 0x1003cce5
jmp 0x1003cd06
movzx edi, cx
test di, di
je 0x1003cd12
cmp word [edx + 2], 0
jne 0x1003cd3a
push ebx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
push esi
cmp eax, 1
jbe 0x1003cd3b
call sub.msvcrt.dll_free
add esp, 4
mov al, 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10039446
mov esp, ebp
pop ebp
ret
push esi
call sub.msvcrt.dll_free
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor al, al
pop esi
pop ebx
pop edi
call fcn.10039446
mov esp, ebp
pop ebp
ret
Function at 0x1003d110
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x1004e370]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.DLL_IsProcessorFeaturePresent]
test eax, eax
je 0x1003d137
mov ecx, 5
int 0x29
push 2
call fcn.10039d20
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.ntdll.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.ntdll.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.DLL_UnhandledExceptionFilter]
test eax, eax
jne 0x1003d242
test esi, esi
jne 0x1003d242
push 2
call fcn.10039d20
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10039446
mov esp, ebp
pop ebp
ret