joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459274
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45941f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x459400
mov dl, 1
mov eax, dword [0x4123b8]
call fcn.004038d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040472c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4593ef
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044c1f0
test al, al
je 0x4593e2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x459430
lea eax, [ebp - 0x254]
call fcn.004092e0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4593e2
xor eax, eax
push ebp
push 0x4593db
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x459468
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4593c4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040499c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4593c4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040499c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4593e2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4592e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416120
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459426
lea eax, [ebp - 0x260]
call fcn.0040472c
ret

Function at 0x459d98
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x55657c]
cmp byte [eax + 0xad], 0
jne 0x459e09
cmp dword [0x556594], 0
jne 0x459dca
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459d54
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x556594], eax
cmp dword [0x556590], 0
jne 0x459de5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x556590], eax
cmp dword [0x556598], 0
jne 0x459e09
push esp
push 0
push 0
push 0x459cf8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x556598], eax
pop edx
ret
Function at 0x459fdc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459ff3
add esp, 0xfffffff0
call fcn.00403c24
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a358
mov eax, dword [0x552cac]
cmp word [eax + 2], 0
jne 0x45a01b
mov eax, dword [0x552cac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ba8c
mov eax, dword [0x552d70]
cmp word [eax + 2], 0
jne 0x45a035
mov eax, dword [0x552d70]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045bc98
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411f94]
call fcn.004038d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411f94]
call fcn.004038d0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411f94]
call fcn.004038d0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41ea14]
call fcn.004261d0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45a1ec
mov eax, dword [0x552bc0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004265a4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45c358
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x552bc0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ca84
test eax, eax
je 0x45a13c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c98
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cab8
test eax, eax
je 0x45a150
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040499c
mov byte [ebx + 0xd4], 0
push ebx
push 0x45b5ec
call fcn.0041b4d4
mov dword [ebx + 0xc8], eax
mov eax, dword [0x552a80]
cmp byte [eax], 0
jne 0x45a1a1
mov eax, ebx
call fcn.0045a330
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045c534
mov eax, ebx
call fcn.0045d094
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a1e1
call fcn.00403c7c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a5b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x55657c]
cmp dword [eax + 0x30], 0
je 0x45a65a
cmp dword [ebx + 0x94], 0
jne 0x45a654
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a540
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a654
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45a61a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a654
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004143c8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a629
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b374
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45b3a9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040481c
jmp 0x45b3b6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404780
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c718
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c786
mov eax, esi
call fcn.00446ed0
test al, al
je 0x45c786
mov eax, dword [ebx + 0x84]
call fcn.00446b30
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c786
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45c77a
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446b30
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043ef50
jmp 0x45c786
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045c554
pop esi
pop ebx
ret
Function at 0x2d86b399
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x2d86b3a8
pop dword [ebp - 0x10]
mov eax, 0x8ff8b46a
sub eax, 0x627200c2
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x2a65c502
sub dword [ebp - 0x20], 0xdc137fb7
mov dword [ebp - 0x1c], 0xfbf5e5dc
sub dword [ebp - 0x1c], 0xc9c29997
mov dword [ebp - 0x18], 0x57962c46
add dword [ebp - 0x18], 0xf4b617e8
mov dword [ebp - 0x14], 0x6a2b340
sub dword [ebp - 0x14], 0x6a2b340
lea eax, [ebp - 0x20]
push eax
mov eax, 0xa4fda317
sub eax, 0x77707247
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xf3395ab9
add dword [ebp - 0x20], 0x81390e9d
mov dword [ebp - 0x1c], 0x1b4be0b2
add dword [ebp - 0x1c], 0x262080c3
mov dword [ebp - 0x18], 0x433695df
add dword [ebp - 0x18], 0x2038d68d
mov dword [ebp - 0x14], 0xd4a8a32e
add dword [ebp - 0x14], 0x2b575cd2
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x5dd97
push 0
call eax
mov ecx, 0xcdd8080e
sub ecx, 0xcdd7b76e
xor esi, esi
add esi, eax
mov edi, 0x13f0699
sub edi, 0xd3a6ee99
add edi, dword [ebp - 0x10]
mov ebx, 0xfbc5f10d
sub ebx, 0x43e1cdd3
sub dword [ebp - 0xc], eax
mov edx, dword [edi]
add dword [ebp - 4], 0xaee47acf
xor edx, ebx
sub dword [ebp - 0xc], edi
mov dword [esi], edx
add dword [ebp - 0xc], 0x88eba8ba
add esi, 4
add edi, 0x48266768
add edi, 0xb7d9989c
loop 0x2d86b4c7
add eax, 0x16249262
add eax, 0xe9dca2f1
xor ebx, ebx
add ebx, eax
add eax, 0xedb3007
sub eax, 0xedb3002
mov ecx, 0x2d800000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x104af058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x104af1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x104af07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104af06a
add dl, dl
jne 0x104af089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104af0dc
xor eax, eax
add dl, dl
jne 0x104af096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104af17d
add dl, dl
jne 0x104af0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104af0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104af0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104af0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104af0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104af075
mov eax, 1
add dl, dl
jne 0x104af0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104af0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104af0e1
sub eax, ebx
mov ebx, 1
jne 0x104af128
mov ecx, 1
add dl, dl
jne 0x104af10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104af119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104af105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104af075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104af13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104af14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104af136
cmp eax, 0x7d00
jae 0x104af16d
cmp eax, 0x500
jb 0x104af168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104af075
cmp eax, 0x7f
ja 0x104af170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104af075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104af19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x104af075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430a6450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x430a645f
pop dword [ebp - 0x34]
mov eax, 0x2cd63511
sub eax, 0xe9cbd0b2
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x352ce
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x3e42
mov esi, eax
mov edx, 0xf9b6e069
add edx, 0x4953fd97
add edx, dword [ebp - 0x34]
mov ebx, 0x9aa6691
xor dword [ebp - 0x18], 0x4fbd28e5
mov edi, dword [edx]
add dword [ebp - 0x24], edx
sub edi, ebx
sub dword [ebp - 0xc], 0xd0c11231
mov dword [esi], edi
xor dword [ebp - 0x28], esi
add esi, 0x5873b989
add esi, 0xa78c467b
add edx, 0xe972cfd2
sub edx, 0xe972cfce
loop 0x430a64ad
add eax, 0x41187eaa
sub eax, 0x411792cf
xor ebx, ebx
add ebx, eax
add eax, 0x7a37697e
add eax, 0x85c89687
mov ecx, 0xa389425d
add ecx, 0x9f80bda3
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x430a67ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430aa9f0]
jne 0x430a67c4
repz ret
jmp fcn.430a7df9
Function at 0x401110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esi]
xor eax, eax
and ebp, 7
cmp edx, 5
mov dword [esp + 0xc], ecx
jae 0x401131
pop esi
pop ebp
add esp, 0xc
ret 0xc
mov esi, dword [esp + 0x18]
add esi, 5
lea edx, [ecx + edx - 4]
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
push edi
mov edi, edi
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40116f
jmp 0x401160
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40116f
add edi, 1
cmp edi, edx
jb 0x401160
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x10]
cmp edi, edx
jae 0x401285
cmp ecx, 3
jbe 0x4011a5
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x10], eax
je 0x4011e3
cmp cl, 0xff
je 0x4011e3
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x401150
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x401188
movzx ecx, byte [ebp + 0x4be908]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x4be900], 0
mov cl, byte [ebx + 4]
je 0x4011cf
test cl, cl
je 0x4011cf
cmp cl, 0xff
jne 0x401188
and ebp, 3
add ebp, ebp
mov dword [esp + 0x10], eax
or ebp, 1
add eax, 1
jmp 0x401150
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40120e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x401214
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x401256
movzx esi, byte [ebp + 0x4be908]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x401239
cmp dl, 0xff
jne 0x401252
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x401200
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x18]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x401150
cmp ecx, 3
pop edi
pop ebx
jbe 0x40129c
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
pop esi
mov dword [ecx], ebp
pop ebp
add esp, 0xc
ret 0xc
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x1c]
pop esi
and ebp, 7
mov dword [ecx], ebp
pop ebp
add esp, 0xc
ret 0xc
Function at 0x41536d
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x240
mov eax, 0x4a9b58
call fcn.0045edc9
mov byte [ebp - 0x249], dl
mov edx, ecx
xor ebx, ebx
lea ecx, [ebp - 0x230]
call fcn.004154dd
push ecx
lea edx, [ebp - 0x230]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x248]
call 0x4163fb
pop ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004046b8
lea ecx, [ebp - 0x248]
call fcn.0040a301
lea ecx, [ebp - 0x230]
call fcn.0040a2c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x41541c
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004628a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x230]
call fcn.0040a2c4
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
jne 0x4154ca
lea ecx, [ebp - 0x230]
call fcn.0040a2c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41548e
lea ecx, [ebp - 0x230]
call fcn.0040a2c4
mov edx, eax
lea ecx, [ebp - 0x248]
call fcn.004152f0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00404507
test al, al
je 0x41546a
lea ecx, [ebp - 0x248]
call fcn.0040a301
jmp 0x4154ca
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.00404654
lea ecx, [ebp - 0x248]
mov byte [ebp - 0x249], 1
call fcn.0040a301
cmp byte [ebp - 0x249], 0
push ebx
push 0x2000000
push 3
push ebx
push 7
push 2
pop eax
push 4
pop ecx
cmovne eax, ecx
lea ecx, [ebp - 0x230]
push eax
call fcn.0040a2c4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4154ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x230]
call fcn.0040a301
mov al, bl
call fcn.0045ed73
ret
Function at 0x41589b
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x4a96d3
call fcn.0045edc9
mov esi, ecx
call fcn.00414feb
test al, al
je 0x4158b9
mov al, 1
jmp 0x4159c7
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004154dd
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404530
push 2
pop esi
cmp eax, esi
jb 0x4159bb
push 0
lea ecx, [ebp - 0x28]
call fcn.0040aa73
xor ebx, ebx
push 0x5c
pop edi
inc ebx
cmp word [eax], di
jne 0x4158fd
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040aa73
cmp word [eax], di
je 0x415940
push esi
push 0x4c6f04
lea ecx, [ebp - 0x28]
call fcn.0040a2c4
add eax, esi
push eax
call fcn.0046729d
add esp, 0xc
test eax, eax
jne 0x41593e
push eax
lea ecx, [ebp - 0x28]
call fcn.0040aa73
movzx eax, word [eax]
cmp eax, 0x41
jb 0x415930
cmp eax, 0x5a
jbe 0x415939
add eax, 0xffffff9f
cmp ax, 0x19
ja 0x41593e
push 3
pop esi
jmp 0x415940
xor esi, esi
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.00404495
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415996
push esi
call fcn.0040aa73
xor ecx, ecx
push ecx
mov word [eax], cx
lea ecx, [ebp - 0x28]
call fcn.0040a2c4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41597a
call edi
cmp eax, 0xb7
jne 0x4159bb
push esi
lea ecx, [ebp - 0x28]
call fcn.0040aa73
push 0x5c
pop ecx
mov word [eax], cx
lea eax, [esi + 1]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404495
mov esi, eax
lea ecx, [ebp - 0x28]
cmp esi, 0xffffffff
jne 0x415952
push 0
call fcn.0040a2c4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4159bd
call edi
cmp eax, 0xb7
je 0x4159bd
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.0040a301
mov al, bl
call fcn.0045ed73
ret
Function at 0x4176db
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x82c
mov eax, 0x4a9e9a
call fcn.0045edc9
mov edi, ecx
mov dword [ebp - 0x834], edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x830]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push eax
push 1
push esi
push ecx
push edx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x830], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x830], esi
jne 0x41772c
mov ecx, edi
call fcn.0040a557
jmp 0x417827
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004628a0
add esp, 0xc
lea ecx, [ebp - 0x828]
call fcn.0040a557
xor ecx, ecx
lea eax, [ebp - 0x834]
push eax
push ecx
lea eax, [ebp - 0x82c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ebx
push dword [ebp - 0x830]
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x834], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4177ea
cmp dword [ebp - 0x82c], 1
je 0x41779a
cmp dword [ebp - 0x82c], 2
je 0x41779a
cmp dword [ebp - 0x82c], 7
jne 0x4177ea
cmp dword [ebp - 0x834], 0x800
jae 0x4177ae
lea esi, [ebp - 0x810]
jmp 0x4177bc
push dword [ebp - 0x834]
call fcn.0045e7d6
pop ecx
mov esi, eax
lea eax, [ebp - 0x834]
push eax
push esi
lea eax, [ebp - 0x82c]
push eax
push 0
push ebx
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4177ea
push esi
lea ecx, [ebp - 0x828]
call fcn.0040f04a
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41780e
lea eax, [ebp - 0x810]
cmp esi, eax
je 0x41780e
push 2
push esi
call fcn.0045e3f8
pop ecx
pop ecx
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.004090ea
lea ecx, [ebp - 0x828]
call fcn.0040a301
mov eax, edi
call fcn.0045ed73
ret
Function at 0x4178b2
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x82c
mov eax, 0x4a9e9a
call fcn.0045edc9
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x838], eax
lea eax, [ebp - 0x82c]
push eax
push 9
push edi
push edx
push ecx
mov dword [ebp - 0x82c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x82c], edi
je 0x417a47
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x830]
mov dword [ebp - 0x834], edi
push eax
lea eax, [ebp - 0x834]
mov dword [ebp - 0x830], edi
push eax
push edi
push edi
push edi
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jne 0x417a34
mov ebx, dword [ebp - 0x834]
test ebx, ebx
je 0x417a34
push 0x800
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.004628a0
mov eax, dword [ebp - 0x830]
add esp, 0xc
push 2
pop edx
cmp eax, 0x400
jae 0x417964
lea edi, [ebp - 0x810]
jmp 0x417991
xor ecx, ecx
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045e7d6
mov ecx, dword [ebp - 0x830]
mov edi, eax
inc ecx
push ecx
push 0
push edi
call fcn.004628a0
mov ebx, dword [ebp - 0x834]
add esp, 0x10
mov ecx, dword [ebp - 0x838]
push ebx
call fcn.0041686d
mov eax, dword [ebp - 0x830]
inc eax
push eax
push edi
push 0
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
xor ebx, ebx
inc ebx
jmp 0x417a14
cmp esi, 0xea
je 0x4179f5
test esi, esi
jne 0x4179f5
push edi
lea ecx, [ebp - 0x828]
call fcn.004097aa
mov ecx, dword [ebp - 0x838]
lea eax, [ebp - 0x828]
and dword [ebp - 4], esi
push eax
call fcn.004042c2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.0040a301
cmp ebx, dword [ebp - 0x834]
jae 0x417a20
mov eax, dword [ebp - 0x830]
inc eax
push eax
push edi
push ebx
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc ebx
mov esi, eax
cmp esi, 0x103
jne 0x4179b9
xor esi, esi
lea eax, [ebp - 0x810]
cmp edi, eax
je 0x417a34
push 2
push edi
call fcn.0045e3f8
pop ecx
pop ecx
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
jmp 0x417a49
xor al, al
call fcn.0045ed73
ret