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

Disassembly:
mov eax, 0x1000
call fcn.101591a0
push dword [esp + 0x1004]
call fcn.10180586
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x1013acec
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x1013acec
lea eax, [esp]
push eax
call dword [0x101da89c]
add esp, 4
add esp, 0x1000
ret
xor eax, eax
add esp, 0x1000
ret

Function at 0x1013b350
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [eax], esi
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1013b502
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x1013b4ec
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x1013b39f
lea ebp, [eax + 0xe]
jmp 0x1013b3ab
cmp eax, 0x17
jne 0x1013b459
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x1013b459
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1013b459
cmp eax, ebp
jb 0x1013b459
push 0x20
call dword [0x101da890]
mov edi, eax
add esp, 4
test edi, edi
je 0x1013b4e1
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
push ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x101da890]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x1013b4d0
push ebp
push dword [ebx + 0x18]
push eax
call fcn.10025090
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x1013b445
push eax
call dword [0x101da89c]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x1013b4b6
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x1013b455
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x1013b392
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x1013b478
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x1013b4e8
test esi, esi
je 0x1013b4a5
push dword [esi + 0x18]
call dword [0x101da894]
push dword [esi + 0x14]
call dword [0x101da894]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x101da894]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x1013b480
mov eax, dword [esp + 0x28]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x101da894]
push edi
call dword [0x101da894]
add esp, 8
jmp 0x1013b468
push edi
mov ebx, 8
call dword [0x101da894]
add esp, 4
jmp 0x1013b468
mov ebx, 8
jmp 0x1013b468
test esi, esi
jne 0x1013b4f8
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x10144bd0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x10144c02
pop edi
or eax, eax
pop esi
add esp, 0x30
ret
push ebx
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10144d93
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10144d93
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x10144d93
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10144d93
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x10144d93
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10144d93
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x10144d93
push ebx
push 0x101c5ee0
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.10128120
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10144d00
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x10144d93
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x10144d93
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x10144d51
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10144d56
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10144d40
cmp esi, 0xfffffffc
je 0x10144d83
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10144d93
cmp esi, 0xfffffffd
je 0x10144d83
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10144d93
cmp esi, 0xfffffffe
je 0x10144d83
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10144d93
cmp esi, 0xffffffff
je 0x10144d83
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10144d93
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret
Function at 0x10153420
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x101da890]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1015344b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x1015349a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x101534a2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10153513
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x101534d0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x10153545
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x101c852d
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x101c852e
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x10153520
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x101546e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
push esi
push edi
xor ebp, ebp
lea eax, [esp + 0xc]
push eax
push ebp
push ebp
push ebp
push dword [esp + 0x24]
mov edi, ecx
mov dword [esp + 0x20], ebp
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x10154716
cmp eax, 0xea
jne 0x10154748
mov eax, dword [esp + 0xc]
mov ecx, esi
push ebp
shr eax, 1
push eax
call fcn.1015830b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1015472f
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push eax
push ebp
push ebp
push dword [esp + 0x24]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10154751
push ebp
push ebp
mov ecx, esi
call fcn.1015830b
pop edi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x10154758
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ecx
push ebp
push edi
xor ebp, ebp
lea eax, [esp + 0xc]
push eax
push ebp
push ebp
push ebp
push dword [esp + 0x24]
mov edi, ecx
mov dword [esp + 0x20], ebp
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10154795
cmp eax, 0xea
je 0x10154795
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.10154216
jmp 0x101547d2
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0xf]
push eax
push dword [esp + 0x14]
mov ecx, esi
call fcn.10154216
lea eax, [esp + 0x10]
push eax
push dword [esi]
push ebp
push ebp
push dword [esp + 0x28]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x101547d1
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push ebp
call fcn.10154216
pop esi
pop edi
pop ebp
pop ecx
pop ecx
ret 8
Function at 0x101573cd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1019d869
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x101573f7
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
xor eax, eax
test ebx, ebx
jne 0x10157428
mov ecx, dword [ebp + 8]
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ecx + 0x10], ebx
xor eax, eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov eax, ecx
jmp 0x1015752c
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.101582e8
cmp dword [edi + 0x14], 8
jb 0x10157442
mov edi, dword [edi]
push esi
mov esi, dword [ebp - 0x28]
push esi
push ebx
xor ebx, ebx
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x101574a1
mov ebx, dword [ebp + 8]
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
test esi, esi
je 0x10157529
mov eax, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x10157520
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10155c2c
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
jmp 0x1015751e
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp + 0xc], ebx
push eax
push str.StringFileInfo040904B0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x101574da
cmp dword [ebp - 0x10], ebx
je 0x101574da
cmp dword [ebp + 0xc], ebx
je 0x101574da
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov ecx, ebx
push dword [ebp - 0x10]
call fcn.10154b1e
jmp 0x101574f5
mov ebx, dword [ebp + 8]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
test esi, esi
je 0x10157529
mov eax, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
cmp eax, 0x1000
jb 0x10157520
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10155c2c
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
pop ecx
pop ecx
push eax
push esi
call fcn.10159505
pop ecx
pop ecx
mov eax, ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10159410
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1015943d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1015943d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1017180d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101d891c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x101c9a40
push esi
call fcn.1001df68
pop ecx
pop ecx
test eax, eax
jne 0x1017183b
xor al, al
jmp 0x101718b8
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.101714a0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10171875
push dword [ebp - 0x210]
call fcn.1015a286
xor al, al
jmp 0x101718b6
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1017187b
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1017189b
push edx
call fcn.10171744
pop ecx
test al, al
je 0x10171866
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x101718a9
mov bl, 1
push dword [ebp - 0x210]
call fcn.1015a286
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001056a
leave
ret
Function at 0x1017297c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.101591a0
mov eax, dword [0x101d891c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1001f561
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x101729be
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10172b1a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10159840
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x101dffa8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10024406
mov ecx, dword [esi*4 + 0x101dffa8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10172b13
cmp eax, dword [ecx + edi + 0x24]
jne 0x10172b13
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10172b13
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10024406
add esp, 0x14
test edx, edx
jl 0x10172b13
jg 0x10172a89
test eax, eax
jb 0x10172b13
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10172b13
jl 0x10172aa3
cmp dword [ebp - 0x1008], eax
ja 0x10172b13
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10172ac1
test ebx, ebx
je 0x10172afa
cmp ecx, edi
jae 0x10172afa
mov al, byte [ecx]
cmp al, 0xd
jne 0x10172adb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10172ae7
cmp byte [ecx + 1], 0xa
jne 0x10172ae7
inc ecx
jmp 0x10172ae7
movzx eax, al
movsx eax, byte [eax + 0x101d9070]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10172ac1
cmp edx, ebx
jne 0x10172ac1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10172b18
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001056a
leave
ret
Function at 0x10189efe
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10189d6d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1018a06d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1018a06d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1018a022
jg 0x10189f5a
test eax, eax
je 0x1018a018
push 1
push 0x1000
call fcn.1001566c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10189f7d
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1018a00f
push 0x8000
push ebx
call fcn.10181451
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10189fa6
jg 0x10189fa1
cmp ecx, 0x1000
jb 0x10189fa6
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10020746
add esp, 0x10
cmp eax, 0xffffffff
je 0x10189feb
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10189fa1
jl 0x10189fd2
test ecx, ecx
jne 0x10189f93
push dword [ebp - 0xc]
push ebx
call fcn.10181451
push esi
call fcn.10012413
add esp, 0xc
xor ebx, ebx
jmp 0x1018a07b
cmp byte [edi + 0x24], 0
je 0x1018a002
cmp dword [edi + 0x20], 5
jne 0x1018a002
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1018a00d
mov ebx, dword [edi + 0x18]
jmp 0x1018a00f
xor ebx, ebx
push esi
call fcn.10012413
pop ecx
jmp 0x1018a07b
test ecx, ecx
jg 0x10189fe4
jl 0x1018a022
test eax, eax
jae 0x10189fe4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10024424
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1018a042
cmp byte [edi + 0x1c], 0
je 0x10189fe4
jmp 0x1018a073
push ebx
call fcn.1001f9a8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10189fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1018a07b
cmp byte [edi + 0x1c], 0
je 0x1018a078
mov ebx, dword [edi + 0x18]
jmp 0x1018a07b
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10024424
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1018fcf7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101d891c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1018fd3a
call fcn.10016646
mov dword [eax], 0xf
call fcn.10016659
mov dword [eax], 0xd
call fcn.10013670
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001056a
leave
ret
test eax, eax
jne 0x1018fd41
inc eax
jmp 0x1018fd2e
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1018fd2c
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1018fd2e

Function at 0x101932cf
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0x101df4f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x101e2b30]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x101e2b34], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.1019626c
mov dword [esi + 0x58], 0x101942b2
mov eax, esi
mov dword [esi + 0x5c], 0x101942fe
mov dword [esi + 0x10], fcn.10193dea
mov dword [esi + 0x30], 0x10193bc5
mov dword [esi + 0x64], 0x10194393
mov dword [esi + 0x60], 0x10194347
mov dword [esi + 0x34], 0x10193690
mov dword [esi + 0x24], 0x10193667
mov dword [esi + 0x28], 0x1019363c
mov dword [esi + 0x2c], 0x10193590
mov dword [esi + 0x44], 0x10194082
mov dword [esi + 0x68], 0x10193390
mov dword [esi + 0x6c], 0x10194595
pop esi
ret 4
Function at 0x10198897
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10198aa3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
imul esi, dword [esp + 0x24], 3
push edi
mov edi, 0xff
shl ebx, 2
mov dword [esp + 0x28], edx
cmp dword [esp + 0x40], edi
jne 0x101989b3
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x1019897c
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx edi, byte [ebp + 3]
mov esi, 0xff
movzx eax, byte [ebp + 2]
sub esi, edi
movzx ecx, byte [ebx + 2]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x1019890d
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x14]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
test ecx, ecx
jne 0x101988d8
jmp 0x10198a9f
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x10198a6d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx eax, byte [ebp + 3]
mov esi, 0xff
imul eax, dword [esp + 0x40]
movzx ecx, byte [ebx + 2]
cdq
idiv edi
mov edi, eax
movzx eax, byte [ebp + 2]
imul eax, edi
sub esi, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
mov edi, 0xff
add eax, ecx
cdq
idiv edi
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x101989f4
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x18]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x101989bb
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28