joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77352d49
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x77352d6b
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x77352d6b
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x77352d6b
ret
cmp word [ebx + 4], 0x14c
jne 0x77352d6b
test word [ebx + 0x16], 2
je 0x77352d6b
test word [ebx + 0x16], 0x100
je 0x77352d6b
cmp word [ebx + 0x18], 0x10b
jne 0x77352d6b
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x77352d6b
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x77352df7
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x77352d8b
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.77339cd6
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x77352d6b
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x77352df7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x77352d6b
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x77352d6b
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x77352d6b
ret
cmp word [ebx + 4], 0x14c
jne 0x77352d6b
test word [ebx + 0x16], 2
je 0x77352d6b
test word [ebx + 0x16], 0x100
je 0x77352d6b
cmp word [ebx + 0x18], 0x10b
jne 0x77352d6b
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x77352d6b
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x77352df7
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x77352d8b
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.77339cd6
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x77352d6b
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x77352eae
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x77352f07
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77352eae
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77352ebd
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x77758b60
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x77352f0e
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.77339d84
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77352fad
add edi, 4
add eax, 2
dec ecx
jne 0x77352ef3
call 0x77352f5a
loope 0x77352f50
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77352faa
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77352fbb
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x77352f6e
cmp eax, ecx
ja 0x77352f6e
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x77352ff8
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x77352fee
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7733a263
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x77352ebd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x77352f07
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77352eae
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77352ebd
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x77758b60
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x77352f0e
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.77339d84
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77352fad
add edi, 4
add eax, 2
dec ecx
jne 0x77352ef3
call 0x77352f5a
loope 0x77352f50
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77352faa
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77352fbb
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x77352f6e
cmp eax, ecx
ja 0x77352f6e
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x77352ff8
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x77352fee
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7733a263
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x3007ffe0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.300845ac
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
pop ecx
pop ecx
push 0x10
call esi
test ax, ax
jns 0x30080013
push 4
pop edi
push 0x11
call esi
test ax, ax
jns 0x3008001f
or edi, 8
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call fcn.3007fdba
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x30080710
Capabilities:
Link many functions at runtime
Log keystrokes via polling

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x3009d6f4], bl
jne 0x3008080d
push esi
push 4
push 0x2a
push ebx
push dword [0x3009e1a4]
push ebx
push ebx
push 0x3007c388
push 0xa
call fcn.3000c7be
mov esi, dword [sym.imp.USER32.dll_VkKeyScanA]
add esp, 0x20
push 0x3a
call esi
mov edx, dword [0x3009e09c]
movsx eax, ax
movzx ecx, al
push eax
mov dword [edx + 0xce], ecx
call fcn.3000703c
pop ecx
mov ecx, dword [0x3009e09c]
push 0x3b
mov dword [ecx + 0xd2], eax
call esi
mov edx, dword [0x3009e09c]
movsx eax, ax
movzx ecx, al
push eax
mov dword [edx + 0xd6], ecx
call fcn.3000703c
pop ecx
mov ecx, dword [0x3009e09c]
mov dword [ecx + 0xda], eax
cmp dword [0x3009e094], ebx
je 0x30080805
call fcn.3005b53c
cmp eax, ebx
mov dword [0x3009d6f8], eax
je 0x30080805
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30002744
push eax
call esi
push 0x30002730
push dword [0x3009d6f8]
mov dword [0x3009d6fc], eax
call esi
push 0x3000271c
push dword [0x3009d6f8]
mov dword [0x3009d700], eax
call esi
push 0x30002700
push dword [0x3009d6f8]
mov dword [0x3009d704], eax
call esi
push 0x300026e8
push dword [0x3009d6f8]
mov dword [0x3009d708], eax
call esi
mov dword [0x3009d70c], eax
mov byte [0x3009d6f4], 1
pop esi
pop ebx
ret

Function at 0x30082038
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
xor edx, edx
cmp dword [ebp + 0xc], edx
mov cl, 0x55
jle 0x30082060
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, byte [esi]
dec dword [ebp + 0xc]
xor bl, cl
inc esi
mov byte [eax], bl
inc eax
cmp dword [ebp + 0xc], edx
mov cl, bl
jg 0x3008204c
pop esi
pop ebx
mov byte [eax], dl
pop ebp
ret

Function at 0x3008a567
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x300027d4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3008a5bf
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x300027cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x3008a5bf
mov al, 1
jmp 0x3008a5c1
xor al, al
leave
ret 8
Function at 0x703c50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x26f000]
push edi
jmp 0x703c6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x703c71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x703c60
mov eax, 1
add ebx, ebx
jne 0x703c83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x703c94
jne 0x703cb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x703cb3
dec eax
add ebx, ebx
jne 0x703ca0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x703c78
add ebx, ebx
jne 0x703caf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x703d05
xor ecx, ecx
sub eax, 3
jb 0x703ccb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x703d3a
sar eax, 1
mov ebp, eax
jmp 0x703cd6
add ebx, ebx
jne 0x703cd6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x703ca4
inc ecx
add ebx, ebx
jne 0x703ce4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x703ca4
add ebx, ebx
jne 0x703cf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x703ce6
jne 0x703d02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x703ce6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x703d24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x703d16
jmp 0x703c66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x703d24
add edi, ecx
jmp 0x703c66
pop esi
mov edi, esi
mov ecx, 0x7fc3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x703d42
cmp byte [edi], 0x17
jne 0x703d42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x703d47
lea edi, [esi + 0x2dd000]
mov eax, dword [edi]
or eax, eax
je 0x703db6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x305c94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3060e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x703d74
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3060e4]
or eax, eax
je 0x703db0
mov dword [ebx], eax
add ebx, 4
jmp 0x703d91
call dword [esi + 0x3060f4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x703de7
cmp al, 0xef
ja 0x703dda
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x703dbc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x703dc9
mov ebp, dword [esi + 0x3060e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x703e1b
sub esp, 0xffffff80
jmp 0x54b740
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x45cf3921
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
mov ecx, 0x22eb3c74
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408e84
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1feb1fdc
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x32686a00
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x495e30
Capabilities:
Accept command line arguments

Disassembly:
push esi
call fcn.0044b610
jmp fcn.00b89e0b
Function at 0x10001d20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp edx, 0xffffffff
jne 0x10001d3c
call fcn.10001dc0
movzx edx, ax
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x103
lea eax, [ebp - 0x208]
push esi
push eax
push 0x1004
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or dword [ebp + 0xc], 0xffffffff
lea eax, [ebp + 0xc]
push eax
push 0x1008c3b8
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.10034480
add esp, 0x10
xor ecx, ecx
mov eax, 0x1008c358
pop edi
pop esi
mov edx, dword [ebp + 0xc]
cmp edx, dword [eax]
je 0x10001da9
add eax, 8
inc ecx
cmp eax, 0x1008c388
jb 0x10001d95
jmp 0x10001dbb
push 1
pop ebx
push dword [ecx*8 + 0x1008c35c]
mov ecx, dword [ebp + 8]
call fcn.10025dc0
mov eax, ebx
pop ebx
leave
ret

Function at 0x10002969
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.1000ea70
cmp dword [0x100a4a58], 0
je 0x100029af
lea eax, [ebp + 0xc]
and byte [ebp - 1], 0
push eax
lea eax, [ebp - 0x1000]
push dword [ebp + 8]
push 0xfff
push eax
call fcn.1000ea13
and byte [ebp - 1], 0
add esp, 0x10
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret
Function at 0x10002abb
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
call fcn.100029b1
test eax, eax
je 0x10002b1d
xor ebx, ebx
cmp dword [ebp + 0xc], 2
mov dword [ebp - 0xc], ebx
jb 0x10002b1d
cmp dword [ebp + 0xc], 3
jbe 0x10002aee
cmp dword [ebp + 0xc], 5
jne 0x10002b1d
mov dword [ebp + 0xc], 0x10080860
jmp 0x10002af5
mov dword [ebp + 0xc], 0x10080850
push 0x12
push ebx
push ebx
push dword [ebp + 0xc]
call dword [0x100a4a5c]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x10002b22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceCfg:_pfnSetupDiGetClassDevsW_failed_errno_ld__n
call fcn.10002969
pop ecx
pop ecx
xor eax, eax
pop ebx
leave
ret
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x45b]
mov byte [ebp - 0x45c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1c
mov esi, 0x400
pop edx
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x40], edx
push 6
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x10], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp + 0xc]
push ebx
push dword [ebp - 4]
call dword [0x100a4a64]
test eax, eax
je 0x10002c30
lea eax, [ebp - 0x5c]
inc dword [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x45c]
push esi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0x45c], 6
push dword [ebp - 4]
call dword [0x100a4a68]
test eax, eax
je 0x10002c15
push ebx
push ebx
push 3
push ebx
push 3
lea eax, [ebp - 0x458]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x10002c09
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x24]
push 0xc
push eax
push ebx
push ebx
push 0x2d1080
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x10002c09
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x20]
je 0x10002c2a
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 8]
jmp 0x10002b67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceCfg:_pfnSetupDiGetDeviceInterfaceDetailW_failed_errno_ld__n
call fcn.10002969
pop ecx
pop ecx
jmp 0x10002c30
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call dword [0x100a4a60]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
jmp 0x10002b1f