joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4197a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4198da
cmp byte [edi + 0x49], bl
je 0x4198da
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x4197e8
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x20], bl
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 8
cmp ecx, 0x10
jae 0x41980a
lea eax, [ebp - 0x20]
mov byte [eax + 8], bl
push esi
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0xc]
mov edx, eax
cmp ebx, 0x10
jae 0x419820
lea edx, [ebp - 0x20]
mov eax, edx
add edx, dword [ebp - 0x10]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x24]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x41985f
dec eax
je 0x419863
sub eax, 2
lea ecx, [ebp - 0x20]
je 0x4198c2
call fcn.00401a70
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, eax
cmp ebx, 0x10
jae 0x419873
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x24]
sub esi, ecx
je 0x41989c
cmp ebx, 0x10
jae 0x419882
lea eax, [ebp - 0x20]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004a13a8
add esp, 0x10
cmp esi, eax
jne 0x4198ba
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp byte [edi + 0x49], 0
je 0x4198bf
test esi, esi
jne 0x419814
push esi
push 8
lea ecx, [ebp - 0x20]
call fcn.00404b00
jmp 0x41980e
lea ecx, [ebp - 0x20]
jmp 0x419847
lea ecx, [ebp - 0x20]
call fcn.00401a70
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x419cf0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x59ece0]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
mov ecx, 0x1400
cmp cx, si
je 0x419dae
push 9
lea edx, [esp + 0x14]
push edx
push 0x59
mov ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x419dae
mov ecx, dword [esp + 8]
dec eax
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00405c50
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x419d64
mov eax, dword [edi]
jmp 0x419d66
mov eax, edi
xor ecx, ecx
and esi, 0xfc00
xor edx, edx
mov word [eax], cx
cmp dx, si
je 0x419d9b
push 9
lea eax, [esp + 0x14]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x419d9b
dec eax
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00405c50
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret

Function at 0x41a090
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x59ece0]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [0x623e60]
push esi
mov esi, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41a0be
call fcn.0041d9a0
mov ecx, str.BrokerEvent
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41a0e5
test dl, dl
je 0x41a0e1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41a0e5
add eax, 2
add ecx, 2
test dl, dl
jne 0x41a0c5
xor eax, eax
jmp 0x41a0ea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41a13d
mov eax, esi
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], 0
mov byte [esp + 8], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41a108
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.00402920
lea ecx, [esp + 8]
push ecx
call fcn.00421fc0
add esp, 4
cmp dword [esp + 0x1c], 0x10
jb 0x41a13d
mov edx, dword [esp + 8]
push edx
call fcn.0049d0c3
add esp, 4
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x41a150
call fcn.00422130
test al, al
je 0x41a161
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.0041a010
add esp, 4
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x41c090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp byte [ebp + 8], 0
push edi
mov edi, 8
je 0x41c1c3
xor eax, eax
lea ecx, [ebp - 0x214]
push ecx
push eax
push 0xffffffffffffffff
push 0x1a
push eax
mov word [ebp - 0x214], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x41c0e4
xor al, al
pop edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
xor edx, edx
lea eax, [ebp - 0x214]
mov word [ebp - 0x230], dx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c110
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405c50
xor ecx, ecx
push 0xffffffffffffffff
push ecx
lea edx, [ebp - 0x230]
mov word [ebp - 0x24c], cx
push edx
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
call fcn.00405b50
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x24c]
push eax
mov ecx, esi
call fcn.00405b50
cmp dword [ebp - 0x238], edi
jb 0x41c18d
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.0049d0c3
add esp, 4
xor edx, edx
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], dx
cmp dword [ebp - 0x21c], edi
jb 0x41c1d6
mov eax, dword [ebp - 0x230]
push eax
call fcn.0049d0c3
add esp, 4
jmp 0x41c1d6
push esi
push 0x6c
call fcn.00409700
add esp, 8
test al, al
je 0x41c0d3
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ecx, esi
mov dword [ebp - 0x254], str.Microsoft
mov dword [ebp - 0x250], 9
call fcn.004089f0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405b50
cmp dword [ebp - 0x21c], edi
jb 0x41c222
mov eax, dword [ebp - 0x230]
push eax
call fcn.0049d0c3
add esp, 4
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ecx, esi
mov dword [ebp - 0x254], str.Internet_Explorer
mov dword [ebp - 0x250], 0x11
call fcn.004089f0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405b50
cmp dword [ebp - 0x21c], edi
jb 0x41c26e
mov eax, dword [ebp - 0x230]
push eax
call fcn.0049d0c3
add esp, 4
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x230]
push edx
mov ecx, esi
mov dword [ebp - 0x254], str.Quick_Launch
mov dword [ebp - 0x250], 0xc
call fcn.004089f0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405b50
cmp dword [ebp - 0x21c], edi
jb 0x41c2ba
mov eax, dword [ebp - 0x230]
push eax
call fcn.0049d0c3
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov al, 1
pop edi
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x41d340
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
movzx eax, word [edi + 0x14]
lea eax, [eax + edi + 0x18]
lea esi, [eax + 0xc]
mov dword [ebp - 4], eax
cmp ebx, dword [esi]
jae 0x41d368
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 6]
xor eax, eax
test ecx, ecx
jne 0x41d383
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
lea edx, [eax + 1]
cmp edx, ecx
jne 0x41d38f
mov edi, dword [edi + 0x50]
jmp 0x41d392
mov edi, dword [esi + 0x28]
cmp ebx, dword [esi]
jb 0x41d39e
cmp dword [ebp + 0xc], edi
jb 0x41d3b1
mov ebx, dword [ebp + 0xc]
mov eax, edx
add esi, 0x28
cmp eax, ecx
jb 0x41d380
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*8 + 0x14]
sub eax, dword [edx + ecx*8 + 0xc]
lea ecx, [edx + ecx*8]
add eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421fc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004220a0
test al, al
je 0x42202c
mov eax, dword [0x5a1a94]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
jne 0x421fe6
call fcn.004253d0
mov ecx, dword [0x623d80]
cmp dword [eax + ecx*4], 0
jne 0x42202c
push 0x90
call fcn.0049d431
add esp, 4
test eax, eax
je 0x422010
mov edx, dword [ebp + 8]
push edx
call fcn.00421df0
mov esi, eax
jmp 0x422012
xor esi, esi
mov eax, dword [0x5a1a94]
push eax
call edi
test eax, eax
jne 0x422023
call fcn.004253d0
mov ecx, dword [0x623d80]
mov dword [eax + ecx*4], esi
pop edi
pop esi
pop ecx
pop ebp
ret

Function at 0x4221a0
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4253d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
cmp dword [0x5a1a94], 0xffffffff
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
jne 0x425412
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0xffffffffffffffff
mov esi, eax
push esi
push 0x5a1a94
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
je 0x425412
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0x100
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0049d850
mov edx, dword [0x5a1a94]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x100
call fcn.0049ca06
mov ebx, eax
add esp, 4
mov ecx, 0x40
lea esi, [esp + 0x10]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x5a1a94]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425470
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x5a1a94]
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
cmp eax, 0xffffffff
je 0x42551b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x42551b
mov ecx, 0x40
mov esi, ebx
lea edi, [esp + 0x10]
lea eax, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x5a1a94]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0049d97d
add esp, 4
mov edi, 0x40
nop
mov esi, dword [0x623dcc]
xor ebx, ebx
xor dl, dl
cmp esi, ebx
jle 0x425504
mov edi, edi
mov eax, dword [esp + esi*4 + 0x10]
cmp eax, ebx
je 0x4254ff
mov ecx, dword [esi*4 + 0x61d698]
cmp ecx, ebx
je 0x4254ff
push eax
mov dword [esp + esi*4 + 0x14], ebx
call ecx
add esp, 4
mov dl, 1
dec esi
cmp esi, ebx
jg 0x4254e0
dec edi
cmp edi, ebx
jle 0x42550d
test dl, dl
jne 0x4254d0
mov edx, dword [0x5a1a94]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425530
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [0x5a1a94]
mov dword [esp + 4], 0
cmp eax, 0xffffffff
je 0x425556
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42555b
call fcn.004253d0
push 0x623dcc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x623d80], eax
cmp eax, 0x40
jl 0x425576
xor al, al
mov esp, ebp
pop ebp
ret
mov dword [eax*4 + 0x61d698], 0x422040
mov al, 1
mov byte [0x623d7c], al
mov esp, ebp
pop ebp
ret

Function at 0x4260f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
mov eax, dword [edx + 0x3c]
movzx ecx, word [eax + edx + 6]
add eax, edx
cmp edi, ecx
jae 0x426140
movzx ecx, word [eax + 0x14]
add ecx, esi
lea eax, [ecx + eax + 0x18]
test eax, eax
je 0x426140
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x42612a
add ecx, edx
cmp ecx, ebx
ja 0x42613a
mov ebx, dword [eax + 8]
add ebx, ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 4], ebx
ja 0x426142
inc edi
add esi, 0x28
jmp 0x426101
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4262b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4262c7
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x78]
mov edx, dword [edi]
mov edx, dword [edx]
push esi
push eax
mov ecx, edi
call edx
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x42636c
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x4262ff
mov word [ebx], ax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x20]
mov eax, dword [edi]
mov edx, dword [eax]
push ecx
mov ecx, edi
call edx
mov ebx, eax
mov eax, dword [esi + 0x18]
lea eax, [ebx + eax*4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x42636c
jmp 0x426323
mov eax, dword [ebp - 4]
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
mov edx, dword [edi]
mov edx, dword [edx]
sar eax, 1
lea esi, [ebx + eax*4]
mov eax, dword [esi]
push eax
mov ecx, edi
call edx
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
test dl, dl
je 0x426351
cmp dl, byte [eax]
jne 0x426351
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x426344
movzx edx, byte [eax]
movzx eax, byte [ecx]
sub eax, edx
je 0x426376
test eax, eax
jle 0x426364
lea ebx, [esi + 4]
jmp 0x426367
mov dword [ebp - 4], esi
cmp ebx, dword [ebp - 4]
jne 0x426320
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x24]
mov eax, dword [edi]
mov edx, dword [eax]
push ecx
mov ecx, edi
call edx
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [ebx + 0x10]
pop esi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4263b0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4263c0
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4263bd
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x4263bd
mov edx, 0x10b
cmp word [eax + 0x18], dx
sete al
ret

Function at 0x426500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x42650f
test eax, eax
jne 0x426561
cmp byte [0x61d798], 0
je 0x426561
mov eax, dword [0x61d79c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x426561
push esi
push edi
mov esi, eax
lea esp, [esp]
mov eax, dword [esi + 0xc]
mov edi, dword [esi]
test eax, eax
je 0x426542
mov ecx, dword [esi + 4]
push ecx
call eax
add esp, 4
push esi
call fcn.0049d0c3
add esp, 4
mov esi, edi
test edi, edi
jne 0x426530
mov edx, dword [0x61d79c]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x42b7d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x167]
push ebx
push ecx
mov dword [ebp - 0x1d8], eax
mov byte [ebp - 0x168], 0
call fcn.0049d850
push esi
push 0x5978e4
mov ecx, 0x104
lea edi, [ebp - 0x168]
mov dword [ebp - 0x1cc], ebx
mov dword [ebp - 0x1d0], ebx
mov dword [ebp - 0x1c8], 0x67452301
mov dword [ebp - 0x1c4], 0xefcdab89
mov dword [ebp - 0x1c0], 0x98badcfe
mov dword [ebp - 0x1bc], 0x10325476
call fcn.0042b6a0
mov eax, edi
add esp, 0x14
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42b860
sub eax, edx
lea edx, [ebp - 0x168]
push edx
mov ecx, eax
lea esi, [ebp - 0x1d0]
call fcn.0042de40
mov ecx, esi
call fcn.0042df70
mov ecx, esi
call fcn.0042df70
mov ecx, dword [ebp - 0x174]
mov eax, dword [ebp - 0x178]
mov edx, dword [ebp - 0x170]
push 0x40
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x60]
push ebx
push ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
call fcn.0049d850
add esp, 0x10
movzx edx, byte [ebp + ebx - 0x1c]
xor eax, eax
push edx
push 0x598794
lea ecx, [eax + 8]
lea edi, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.0042b6a0
lea eax, [ebp - 0x60]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42b8e5
sub eax, edx
mov ecx, 0x40
sub ecx, eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1d4], ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42b901
sub eax, esi
mov dword [ebp - 0x1dc], eax
cmp eax, ecx
lea eax, [ebp - 0x1dc]
jl 0x42b920
lea eax, [ebp - 0x1d4]
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x60]
push 0x40
push edx
call fcn.004c4750
inc ebx
add esp, 0x10
cmp ebx, 0x10
jl 0x42b8be
mov edi, dword [ebp - 0x1d8]
test edi, edi
je 0x42b96c
mov esi, dword [ebp + 0xc]
push esi
push 0
push edi
call fcn.0049d850
lea eax, [ebp - 0x60]
push eax
push 0x5978e4
lea ecx, [esi - 1]
call fcn.0042b6a0
push esi
push edi
call fcn.004c4739
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x42bd80
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d18
call fcn.004a2a90
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2d14], eax
cmp eax, ebx
je 0x42bef1
push esi
mov dword [ebp - 0x2d10], ebx
mov dword [ebp - 0x2d0c], ebx
push edi
lea esp, [esp]
mov eax, dword [ebp - 0x2d0c]
push eax
push str..PhysicalDrive_d
mov eax, 0x200
lea edi, [ebp - 0x204]
call fcn.0042b700
add esp, 8
push ebx
push ebx
push 3
push ebx
push 3
push ebx
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42bec4
xor eax, eax
push 0x2710
lea edx, [ebp - 0x2cfc]
push ebx
mov dword [ebp - 0x2d08], eax
mov dword [ebp - 0x2d04], eax
push edx
mov dword [ebp - 0x2d18], ebx
mov dword [ebp - 0x2d00], eax
mov dword [ebp - 0x2d08], ebx
mov dword [ebp - 0x2d04], ebx
call fcn.0049d850
add esp, 0xc
push ebx
lea eax, [ebp - 0x2d18]
push eax
push 0x2710
lea ecx, [ebp - 0x2cfc]
push ecx
push 0xc
lea edx, [ebp - 0x2d08]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42beb5
push 0x3e8
lea eax, [ebp - 0x5ec]
push ebx
push eax
call fcn.0049d850
mov eax, dword [ebp - 0x2ce4]
add esp, 0xc
lea edi, [ebp - 0x5ec]
lea ecx, [ebp - 0x2cfc]
call fcn.0042d4e0
push 0x7ffffffe
mov ecx, edi
push ecx
mov ecx, dword [ebp - 0x2d14]
mov eax, 0x64
call fcn.0042b770
cmp eax, ebx
jne 0x42beb5
mov dword [ebp - 0x2d10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d10], ebx
jne 0x42beda
mov eax, dword [ebp - 0x2d0c]
inc eax
mov dword [ebp - 0x2d0c], eax
cmp eax, 0x10
jl 0x42bdc0
mov eax, dword [ebp - 0x2d10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x42c1c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f4
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x4f4], edi
test edi, edi
je 0x42c3a4
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0049d850
add esp, 0xc
lea ecx, [ebp - 0x4e0]
push ecx
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42c376
mov ecx, dword [ebp - 0x4e0]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
xor esi, esi
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x4e4]
push edx
lea eax, [ebp - 0x2d4]
push eax
push esi
push ecx
mov dword [ebp - 0x4e4], 0x104
call ebx
test eax, eax
jne 0x42c367
mov edi, 1
jmp 0x42c260
mov ecx, dword [ebp - 0x4e0]
lea edx, [ebp - 0x4e8]
push edx
push edi
push 0
lea eax, [ebp - 0x2d4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42c32d
lea edx, [ebp - 0x4f0]
push edx
mov edx, dword [ebp - 0x4e8]
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0x4ec]
push ecx
push 0
push str.ServiceName
push edx
mov dword [ebp - 0x4ec], edi
mov dword [ebp - 0x4f0], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c320
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0049d850
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x4dc]
push edx
call fcn.0042c0a0
add esp, 0x14
test eax, eax
je 0x42c320
cmp byte [ebp - 0x68], 0
je 0x42c307
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x42c320
push 0x7ffffffe
lea edx, [ebp - 0xcc]
push edx
mov eax, 0x64
lea ecx, [ebp - 0x68]
call fcn.0042b770
mov eax, dword [ebp - 0x4e8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x4e0]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x4e4]
push ecx
lea edx, [ebp - 0x2d4]
push edx
add esi, edi
push esi
push eax
mov dword [ebp - 0x4e4], 0x104
call ebx
test eax, eax
je 0x42c260
mov edi, dword [ebp - 0x4f4]
mov ecx, dword [ebp - 0x4e0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [ebp - 0x68], 0
je 0x42c3a4
lea edx, [ebp - 0x68]
push edx
mov edx, 0x64
mov ecx, edi
call fcn.0042b5a0
xor ecx, ecx
test eax, eax
setns cl
pop edi
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret