joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434170
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0xffffffffffffffff
mov eax, ecx
xor esi, esi
push 0x4015c0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
call fcn.0043feb3
mov edi, eax
test edi, edi
js 0x434330
lea ecx, [ebp - 0x3c]
call fcn.0043fdcb
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], 0x7fff
call fcn.0043fdcb
push dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
call fcn.0043fe70
mov edi, eax
test edi, edi
jns 0x4341d7
lea ecx, [ebp - 0x24]
call fcn.00440156
lea ecx, [ebp - 0x3c]
call fcn.00440156
jmp 0x434330
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x24]
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x434208
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4341fb
push 0x57
pop edi
test edi, edi
jle 0x4341c2
movzx edi, di
or edi, 0x80070000
jmp 0x4341c2
push ebx
push 0x44
pop edi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x434235
lea ecx, [ebp - 0x24]
mov edi, 0x8007000e
call fcn.00440156
lea ecx, [ebp - 0x3c]
call fcn.00440156
jmp 0x43432f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x43427c
cmp edi, 0x7a
je 0x43427c
test edi, edi
jle 0x434318
movzx edi, di
or edi, 0x80070000
jmp 0x434318
lea ecx, [ebp - 0x30]
call fcn.0043fdcb
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x30]
inc eax
push eax
call fcn.0043fe70
mov edi, eax
test edi, edi
js 0x434310
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x24]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x4342cf
test edi, edi
jle 0x434310
movzx edi, di
or edi, 0x80070000
jmp 0x434310
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x4342ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4342c2
push 0x57
pop edi
jmp 0x4342c0
push 0xffffffffffffffff
push dword [ebp - 4]
lea ecx, [ebp - 0x3c]
call fcn.0043feb3
mov edi, eax
test edi, edi
js 0x434310
push ecx
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
call fcn.0044007f
mov edi, eax
lea ecx, [ebp - 0x30]
call fcn.00440156
lea ecx, [ebp - 0x24]
call fcn.00440156
lea ecx, [ebp - 0x3c]
call fcn.00440156
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
cmp dword [ebp - 4], 0
je 0x43433f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x434347
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x101
push esi
push 0x4017c0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4343b1
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x409160
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4343a4
cmp dword [ebp - 0xc], edi
je 0x4343a7
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4343b9
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
lea ecx, [ebp - 0x20c]
inc edx
call fcn.0041fda0
test eax, eax
je 0x43441f
push 0x40918c
mov edx, 0x208
lea ecx, [ebp - 0x20c]
call fcn.0041fb3c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43441f
test al, 0x10
jne 0x43441f
xor ecx, ecx
lea eax, [ebp - 0x20c]
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441b90
mov esp, ebp
pop ebp
ret

Function at 0x43442d
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor edx, edx
lea ecx, [ebp - 0x20c]
xor esi, esi
inc edx
inc esi
call fcn.0041fda0
test eax, eax
je 0x4344e9
push edi
xor edi, edi
lea ecx, [ebp - 0x20c]
push 0x40918c
mov edx, 0x208
mov dword [ebp - 0x210], edi
call fcn.0040c07b
lea eax, [ebp - 0x210]
push eax
push 0x20106
push edi
push 0x403180
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x210], edi
je 0x4344e8
lea ecx, [ebp - 0x20c]
mov esi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4344aa
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x4091a8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x434855
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x21c], edx
xor ebx, ebx
mov dword [ebp - 0x210], ecx
xor eax, eax
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x218]
mov dword [ebp - 0x220], 0x104
push edx
push edi
lea edx, [ebp - 0x224]
mov dword [ebp - 0x218], ebx
push edx
push 0
lea edx, [ebp - 0x220]
push edx
lea edx, [ebp - 0x20c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, 0x103
je 0x43497a
cmp esi, 0xea
jne 0x4348df
test edi, edi
je 0x4348e3
push edi
call fcn.00441807
pop ecx
xor edi, edi
test edi, edi
jne 0x434905
mov ebx, dword [ebp - 0x218]
shr ebx, 4
inc ebx
shl ebx, 4
push ebx
call fcn.0044183a
mov edi, eax
pop ecx
test edi, edi
je 0x434948
mov eax, dword [ebp - 0x214]
jmp 0x43493d
test esi, esi
jne 0x43492c
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push edi
push dword [ebp - 0x224]
push esi
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x214], eax
test esi, esi
jne 0x43494b
mov ecx, dword [ebp - 0x210]
jmp 0x434885
push 0xe
pop esi
xor ebx, ebx
test edi, edi
je 0x434958
push edi
call fcn.00441807
pop ecx
test esi, esi
jne 0x434a3d
mov edi, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov esi, ebx
push ebx
jmp 0x434a22
xor ebx, ebx
mov esi, ebx
jmp 0x43494d
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
push 0x109
push ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4349e4
push ebx
lea eax, [ebp - 0x214]
push eax
push ebx
push 0x20106
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4349e4
mov edx, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
call fcn.00434855
cmp dword [ebp - 0x210], 0
je 0x4349ff
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x210], ebx
cmp dword [ebp - 0x214], 0
je 0x434a14
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x20c]
inc esi
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x434980
lea esi, [eax - 0x103]
neg esi
sbb esi, esi
and esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x435ca2
Capabilities:
Check if file exists
Create directory
Get file attributes
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x620], ecx
push esi
mov esi, 0x80004005
push edi
mov edi, edx
test ebx, ebx
jne 0x435ce3
lea eax, [esi - 2]
jmp 0x435eb7
lea eax, [ebp - 0x620]
push eax
push 1
push ecx
push 0x4044a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435eb5
mov eax, 0x208
mov dword [ebp - 0x624], edi
mov dword [ebp - 0x628], 1
cmp edi, eax
jbe 0x435d24
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x624]
xor esi, esi
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x628]
push eax
push esi
push 0x409884
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x435e50
cmp dword [ebp - 0x628], 1
jne 0x435e50
lea eax, [ebp - 0x20c]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x414]
call fcn.0040c010
test eax, eax
js 0x435dd4
push 0x5c
pop ebx
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x435d89
sub ecx, edx
sar ecx, 1
je 0x435db4
cmp word [ebp + ecx*2 - 0x416], bx
jne 0x435db4
test ecx, ecx
je 0x435db4
xor eax, eax
mov word [ebp + ecx*2 - 0x416], ax
jmp 0x435d80
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [ebp - 0x62c]
cmp eax, 0xffffffff
je 0x435dd4
test al, 0x10
jne 0x435e66
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x61c]
call fcn.0040c010
test eax, eax
js 0x435e50
push 0x5c
pop ebx
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x435e09
sub ecx, edx
sar ecx, 1
je 0x435e34
cmp word [ebp + ecx*2 - 0x61e], bx
jne 0x435e34
test ecx, ecx
je 0x435e34
xor eax, eax
mov word [ebp + ecx*2 - 0x61e], ax
jmp 0x435e00
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [ebp - 0x62c]
cmp eax, 0xffffffff
je 0x435e50
test al, 0x10
jne 0x435e66
mov edx, 0x208
lea ecx, [ebp - 0x20c]
call fcn.004358e8
mov esi, eax
test esi, esi
jne 0x435ea9
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x630]
jne 0x435e6f
sub edx, ecx
shr edi, 1
sar edx, 1
lea eax, [edx + 1]
cmp edi, eax
jbe 0x435e9d
lea eax, [ebp - 0x20c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0040c010
jmp 0x435ea9
mov esi, 0x8007007a
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fb3c
mov esp, ebp
pop ebp
ret
Function at 0x4366ff
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov eax, ecx
mov ebx, edx
mov dword [ebp - 0x224], eax
push esi
push edi
test eax, eax
je 0x436906
test ebx, ebx
je 0x436906
xor ecx, ecx
push 0x5c
push ebx
mov word [eax], cx
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x43674b
mov edi, ebx
jmp 0x43674e
add edi, 2
mov esi, 0x104
lea eax, [ebp - 0x214]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x436787
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x436774
push 0x57
pop eax
test eax, eax
jle 0x43690b
movzx eax, ax
or eax, 0x80070000
jmp 0x43690b
push ecx
lea eax, [ebp - 0x220]
mov edx, esi
push eax
lea ecx, [ebp - 0x214]
call fcn.0040c131
test eax, eax
js 0x4367bf
mov eax, dword [ebp - 0x220]
mov edx, esi
push ecx
push 0x4099e0
push ecx
lea ecx, [ebp - 0x214]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c197
push edi
mov edx, esi
lea ecx, [ebp - 0x214]
call fcn.0040c045
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, esi
push 4
pop ecx
cmp eax, 0xffffffff
je 0x4368d6
test al, 0x10
jne 0x4368d6
push ebx
push 0x409a48
push ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x228], ecx
call fcn.0041ea5f
add esp, 0xc
lea eax, [ebp - 0x21c]
push esi
push eax
push esi
push 3
push esi
push esi
push esi
push 0x409a90
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4368a2
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43687d
cmp dword [ebp - 0x220], 4
jne 0x43687d
cmp dword [ebp - 0x218], 1
setne al
mov dword [ebp - 0x218], eax
push 4
lea eax, [ebp - 0x218]
push eax
push 4
push esi
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], esi
je 0x4368d6
test edi, edi
je 0x4368ed
mov ecx, dword [ebp - 0x224]
mov edx, 0x103
push 0x409afc
call fcn.0040c010
mov ecx, dword [ebp - 0x224]
mov edx, 0x103
push edi
call fcn.0040c045
jmp 0x4368f2
test edi, edi
je 0x4368ed
mov ecx, dword [ebp - 0x224]
mov edx, 0x103
push edi
call fcn.0040c010
jmp 0x4368f2
mov esi, 0x80004005
push esi
push 0x409b04
push 4
call fcn.0041ea5f
add esp, 0xc
mov eax, esi
jmp 0x43690b
mov eax, 0x8007000e
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4
Function at 0x4373a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
xor esi, esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
mov ebx, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00436e37
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0xc], ebx
je 0x437485
cmp dword [ebp - 8], ebx
je 0x437485
lea eax, [ebp - 0x18]
push eax
push 3
xor eax, eax
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x437485
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 1
push eax
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0x208
push eax
xor eax, eax
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43744e
cmp dword [ebp - 0x10], 1
jne 0x43744e
inc ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x437485
test edi, edi
je 0x437468
mov ecx, edi
call fcn.0041f3f3
jmp 0x43746a
xor eax, eax
test eax, eax
je 0x437485
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x1c]
jne 0x437473
sub edx, ecx
sar edx, 1
jne 0x437499
test esi, esi
je 0x437499
push esi
mov edx, 0x104
mov ecx, edi
call fcn.0040c010
xor ebx, ebx
inc ebx
cmp dword [ebp - 8], 0
je 0x4374a8
push dword [ebp - 8]
call fcn.00441807
pop ecx
cmp dword [ebp - 0x14], 0
je 0x4374b7
push dword [ebp - 0x14]
call fcn.00441807
pop ecx
test esi, esi
je 0x4374c2
push esi
call fcn.00441807
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43905f
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x210], ecx
inc esi
push edi
test eax, eax
jne 0x43908c
mov eax, 0x40aad0
push 1
push 0x40a934
push eax
lea eax, [ebp - 0x22c]
xor ecx, ecx
push eax
lea edx, [ebp - 0x210]
call fcn.00436af8
test eax, eax
je 0x439206
mov eax, dword [0x444f94]
xor esi, esi
mov dword [ebp - 0x218], esi
test eax, eax
je 0x439106
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x439106
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x26d7
push dword [0x443af0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x439106
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x5c5
push dword [0x444f94]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x22c]
call fcn.0043699f
mov ebx, eax
mov dword [ebp - 0x21c], ebx
test ebx, ebx
je 0x439206
push 0x4059e8
push ebx
call dword [sym.imp.msvcrt.dll_wcstok]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4391ff
push edi
push 0x40a318
push 4
call fcn.0041ea5f
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x22c]
add esp, 0xc
mov edx, edi
push eax
push esi
call fcn.00422ff3
test eax, eax
je 0x4391e1
mov ecx, dword [ebp - 0x210]
xor ebx, ebx
mov edx, edi
inc ebx
call fcn.00422ea6
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x214], edi
call fcn.0041de27
cmp edi, ebx
jb 0x4391e1
mov esi, edi
mov ecx, ebx
call fcn.0041dfa0
lea ecx, [ebp - 0x22c]
inc ebx
call fcn.0043699f
mov edi, eax
test edi, edi
je 0x4391c5
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.0041f3f3
push edi
push 0x40a33c
push 4
call fcn.0041ea5f
add esp, 0xc
push edi
call fcn.00441807
pop ecx
lea eax, [ebp - 0x22c]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x4391db
cmp ebx, esi
jbe 0x439187
mov esi, dword [ebp - 0x218]
push 0x4059e8
push esi
call dword [sym.imp.msvcrt.dll_wcstok]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x439139
mov ebx, dword [ebp - 0x21c]
push ebx
call fcn.00441807
pop ecx
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4
Function at 0x43dbb5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 1
push ebx
push 0x401680
push SysReAllocStringLen
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43dc20
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push ebx
push 0x40b420
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43dc16
cmp dword [ebp - 8], esi
jne 0x43dc16
cmp dword [ebp - 0xc], 1
sete bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43e06e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
push eax
push 0x20019
xor esi, esi
push esi
push 0x40b5b0
push SysReAllocStringLen
mov dword [ebp - 4], esi
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43e119
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push edi
push ecx
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push esi
push esi
push eax
mov edi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43e0ec
push dword [ebp - 8]
call fcn.0044183a
mov edi, eax
pop ecx
test edi, edi
je 0x43e0ec
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, edi
test edi, edi
je 0x43e118
cmp dword [ebp - 0xc], 1
jne 0x43e118
push edi
call dword [sym.imp.msvcrt.dll__strlwr]
push dword [ebp + 8]
mov esi, eax
push esi
call dword [sym.imp.msvcrt.dll_strstr]
add esp, 0xc
test eax, eax
je 0x43e118
mov dword [ebx], 1
pop edi
cmp dword [ebp - 4], 0
je 0x43e128
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x43e133
push esi
call fcn.00441807
pop ecx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43e148
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, edx
xor ecx, ecx
mov dword [ebp - 8], eax
mov ebx, ecx
push edi
mov edi, ecx
test esi, esi
je 0x43e265
test eax, eax
je 0x43e265
push 7
push 0x40b640
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x43e192
add esi, 0xe
push 0
push 0x8000080
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43e1d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x43e1c3
push 0x57
pop esi
test esi, esi
jle 0x43e281
movzx esi, si
or esi, 0x80070000
jmp 0x43e281
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
jne 0x43e208
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x43e1fb
push 0x57
pop esi
test esi, esi
jle 0x43e26a
movzx esi, si
or esi, 0x80070000
jmp 0x43e26a
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x43e1ea
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x43e1ea
push 0
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43e1ea
push dword [ebp - 8]
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, eax
test esi, esi
js 0x43e26a
mov eax, dword [ebp - 8]
push 0
push dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x446624]
call esi
mov esi, eax
jmp 0x43e26a
mov esi, 0x80004003
cmp ebx, 0xffffffff
je 0x43e276
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x43e281
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test esi, esi
jns 0x43e287
xor eax, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret