joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad224
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4c6458
call fcn.00419fdc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004bc884
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4ad263
call fcn.004bc884
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4ad271
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4ad27f
or eax, 0xffffffff
jmp 0x4ad367
mov ecx, esi
call fcn.004ad19a
mov dword [ebp - 0x14], eax
call fcn.004ae05a
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4ad2b6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4ad2b6
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004ae00e
push dword [ebp - 0x14]
call fcn.004adb3f
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004aceb5
cmp eax, edi
je 0x4ad329
test byte [esi + 0x24], 0x10
je 0x4ad2f7
push 4
mov ecx, esi
pop ebx
call fcn.004b0ec1
test ah, 1
je 0x4ad2ef
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004b05ab
cmp dword [esi + 0x1c], edi
je 0x4ad329
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004b104d
jmp 0x4ad329
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4ad33d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4ad356
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4ad356
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004ad1d4
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4ae552
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ae58a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ab8cc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ab8a4
jmp 0x4ae596
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b0354
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b0396
call fcn.004bc884
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b0396
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b038d
xor eax, eax
jmp 0x4b039e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b03a4
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c4661
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x4c46df
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x9eb920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9eb96c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9eb932
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9eb9d0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9eba22
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9eba28
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa03f15
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a03bd5

Function at 0xa08d0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a08b8e

Function at 0xa0e2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa0e2ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa0e2ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x20af12e2
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6e9c4f0b
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40c620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
je 0x401527
rcl byte [ebx + 0x55], 0x56
inc esp
and al, 0x69
push 1
push 0
push edi
call fcn.0040d030
add esp, 0x18
mov esi, eax
call fcn.004092c0
mov dword [esi + 8], 1
mov dword [esi], ebp
test ebp, ebp
jle 0x402184
xor ebx, ebx
inc ebx
push ebx
push 1
push 0
push edi
call fcn.0040d030
add esp, 0x10
lea edi, [esp + 0x18]
mov esi, eax
call fcn.0040e640
mov ecx, edi
lea eax, [esp + 0x3c]
call fcn.00401a70
cmp ebx, ebp
jl 0x42c23a
iretd
lea ecx, [esp + 0x18]
call fcn.00402620
lea esi, [esp + 0x28]
call fcn.004092c0
lea edi, [esp + 0x50]
call fcn.00401a30
mov dword [esp + 0x3c], 0
mov dword [esp + 0x50], 0x4848ec
call fcn.00401a30
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004112ef
add esp, 4
lea ecx, [esp + 0x40]
call fcn.00402620
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [esp + 0x128]
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, ecx
mov ecx, dword [edi + 4]
xor ebx, ebx
fisttp dword [ecx - 0x38efdba4]
inc esp
and al, 0x18
add dword [eax], eax
add byte [eax], al
mov dword [esp + 0x1c], ebx
mov edx, dword [ecx + eax*4 - 4]
lea eax, [ecx + eax*4]
movsx ecx, word [edx + 0xa]
mov edx, dword [eax]
cmp word [edx + 8], 0x4e
mov dword [esp + 0x24], ecx
jne 0x40c6d7
inc dword [esi]
mov eax, dword [esi]
mov ecx, dword [edi + 4]
mov edx, dword [ecx + eax*4]
movsx eax, word [edx + 0xa]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x134]
push esi
push edi
mov dword [esp + 0x30], eax
call fcn.0040ab50
test eax, eax
jne 0x42c290
lea ecx, [esp + 0x10]
call fcn.0040c760
test eax, eax
jl 0x42c267
mov eax, dword [esi]
mov edx, dword [edi + 4]
mov ecx, dword [edx + eax*4]
cmp word [ecx + 8], 0x4f
jne 0x42c278
inc eax
lea ecx, [esp + 0x10]
mov dword [esi], eax
call fcn.0040c760
mov edx, dword [esi]
mov dword [esp + ebx*4 + 0x28], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + edx*4]
inc ebx
cmp word [ecx + 8], 0x4e
je 0x40c664
mov esi, dword [ebp]
cmp dword [esi + 8], 5
jne 0x42c24a
mov eax, dword [esi]
xor edi, edi
cmp ebx, edi
mov dword [eax + 0x210], edi
jle 0x40c703
mov esi, dword [esp + edi*4 + 0x28]
mov edx, dword [ebp]
call fcn.0040d0f0
inc edi
cmp edi, ebx
jl 0x40c6f2
mov ecx, dword [esp + 0x134]
mov edx, dword [ebp]
push 0
push ecx
push edx
call fcn.0040d030
add esp, 0xc
mov dword [ebp], eax
test eax, eax
je 0x42c256
lea esi, [esp + 0x10]
call fcn.004092c0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0xc
call 0x844116ac
dec ebp
in al, 8
lea ecx, [esp + 0x18]
lea eax, [esp + 0x3c]
dec ebp
call fcn.00401a8b
jmp 0x402134
jl 0x42c27c
jmp 0x402172
call fcn.0040e90b
jmp 0x40c6ff
sub al, 0xff
jo 0x42c28c
push eax
push 0x7a
push ecx
jmp 0x42c2a6
adc byte [edx + 0x6a], dl
jnp 0x42c2e1
push eax
jmp 0x42c2a6
jmp 0x4014f2
Function at 0x40e7e0
Capabilities:
Hash data with md5

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, 5
cmp dword [edi + 8], ebx
je 0x42b34a
call fcn.0040e8f0
test esi, esi
je 0x40e833
cmp dword [edi + 8], ebx
jne 0x42b354
mov eax, dword [edi]
mov dword [eax + 0x210], 0
test esi, esi
jle 0x40e833
push ebp
lea ebx, [esp + 0x14]
mov ebp, esi
mov esi, dword [ebx + 4]
add ebx, 4
mov edx, edi
call fcn.0040d0f0
sub ebp, 1
jne 0x40e820
pop ebp
mov eax, dword [edi]
mov ecx, dword [eax + 0x210]
mov dword [eax + 0x20c], ecx
mov edx, dword [edi]
mov dword [edx + 8], 1
add byte [ebx + 0xcb88307], cl
add al, byte [eax]
add byte [eax], al
jle 0x40e891
xor edx, edx
mov ecx, 0xc
lea esp, [esp]
adc byte [edx + esi*8 - 0x75], bh
pop es
inc edi
mov eax, dword [0xe44d40fe]
add al, 0x89
inc edi
add al, 0x33
shr cl, 0x46
inc ebx
invalid

Function at 0x40e849
Capabilities:
Hash data with md5

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, 5
cmp dword [edi + 8], ebx
je 0x42b34a
call fcn.0040e8f0
test esi, esi
je 0x40e833
cmp dword [edi + 8], ebx
jne 0x42b354
mov eax, dword [edi]
mov dword [eax + 0x210], 0
test esi, esi
jle 0x40e833
push ebp
lea ebx, [esp + 0x14]
mov ebp, esi
mov esi, dword [ebx + 4]
add ebx, 4
mov edx, edi
call fcn.0040d0f0
sub ebp, 1
jne 0x40e820
pop ebp
mov eax, dword [edi]
mov ecx, dword [eax + 0x210]
mov dword [eax + 0x20c], ecx
mov edx, dword [edi]
mov dword [edx + 8], 1
add byte [ebx + 0xcb88307], cl
add al, byte [eax]
add byte [eax], al
jle 0x40e891
xor edx, edx
mov ecx, 0xc
lea esp, [esp]
adc byte [edx + esi*8 - 0x75], bh
pop es
inc edi
mov eax, dword [0xe44d40fe]
add al, 0x89
inc edi
add al, 0x33
shr cl, 0x46
inc ebx
invalid
Function at 0x40f450
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10020
call fcn.00425210
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x492380]
mov dl, byte [eax + 0x492378]
mov byte [esp + eax + 0xc], cl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 8
jl 0x40f460
lea eax, [esp]
push 0x4876e8
push eax
call fcn.00413990
push 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00410f70
add esp, 0x14
push ebx
push ebp
push esi
mov dword [esp + 0x14], 0
push edi
jmp 0x40f4b0
mov eax, dword [esp + 0x10034]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [esp + 0x38]
push 1
push edx
call fcn.004151b0
add esp, 0x10
cmp eax, 0x18
jl 0x40f531
mov ebp, eax
lea edi, [ebp - 0x14]
test edi, edi
jle 0x40f4fd
xor edx, edx
mov edi, edi
xor ecx, ecx
lea esi, [esp + edx + 0x30]
mov al, byte [esp + ecx + 0x1c]
cmp al, byte [esi + ecx]
je 0x40f521
cmp ecx, 0x14
je 0x42937a
inc edx
cmp edx, edi
jl 0x40f4e0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10034]
lea edx, [ecx + ebp - 0x14]
sub esp, ebp
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [esp + 0x24], edx
call fcn.0041557c
add esp, 0xc
jmp 0x40f4b0
mov bl, byte [esp + ecx + 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x31]
je 0x40f543
inc ecx
jmp 0x40f4ef
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10020
ret 4
mov bl, byte [esp + ecx + 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x32]
je 0x40f555
add ecx, 2
jmp 0x40f4ef
mov bl, byte [esp + ecx + 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x33]
jne 0x429372
mov bl, byte [esp + ecx + 0x20]
lea eax, [ecx + edx]
cmp bl, byte [esp + eax + 0x34]
je 0x429361
add ecx, 4
jmp 0x40f4ef
pushfd
add al, 0
add byte [ebx + 0x14d0e8ce], cl
invalid
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
push ecx
call 0x8441130a
dec ebp
in al, 4
inc edi
cmp edi, dword [esi + 8]
jle 0x42937c
jb 0x429361
pop edi
jmp 0x410835
invalid
add ecx, 5
cmp ecx, 0x14
jl 0x40f501
jmp 0x40f50a

Function at 0x40f5e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
mov ebx, 0x4848e8
call fcn.0040f580
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00413990
push esi
call fcn.004112ef
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0040f6a0
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.0040f6d0
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x40f631
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x4876c8
push eax
call fcn.00414e06
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x42b2ee
push edi
call fcn.0040f450
cmp eax, ebx
je 0x42b2f8
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.00414e94
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
jg 0x42b33a
and al, 0x18
call fcn.0040263b
or al, 0xff

Function at 0x40f6a0
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004131f0
Function at 0x40738e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x4073d4
push edi
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x406ebc
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4073d1
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b55a
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x54
mov eax, 0x4114a3
call fcn.004084be
mov esi, ecx
mov dword [ebp - 0x5c], esi
cmp dword [0x415124], 8
lea ecx, [ebp - 0x48]
push ecx
mov eax, 0x415110
cmovae eax, dword [0x415110]
xor ebx, ebx
push 0x20119
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x40b721
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], ebx
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x40b718
lea ebx, [esi + 0x1c]
push dword [ebx + 4]
mov ecx, ebx
push dword [ebx]
call fcn.0040bb1d
mov eax, dword [ebx]
lea ecx, [ebp - 0x40]
push 0x401cc4
mov dword [ebx + 4], eax
call fcn.00409302
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x401cdc
call fcn.00409302
mov byte [ebp - 4], 1
lea eax, [esi + 0x28]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push SysReAllocString
call fcn.0040c992
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.004090d5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.004090d5
mov eax, dword [ebp - 0x44]
inc eax
xor esi, esi
mov dword [ebp - 0x44], eax
cmp esi, dword [ebp - 0x4c]
jae 0x40b718
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x60]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040ba81
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x1c]
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
js 0x40b6ff
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.00409302
mov byte [ebp - 4], 3
and dword [ebp - 0x54], 0
and dword [ebp - 0x50], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
call fcn.0040b72c
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.0040c322
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x40b6ef
call fcn.00407726
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.004090d5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040bf7e
inc esi
test edi, edi
js 0x40b718
mov eax, dword [ebp - 0x44]
jmp 0x40b656
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00408472
ret
Function at 0x40c8e3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 0x14], 0
mov eax, 0x20119
mov ecx, 0x20019
cmovne ecx, eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40c905
mov eax, dword [eax]
push ebx
push esi
lea edx, [ebp + 0x14]
push edx
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
mov ebx, 0x80070000
or esi, ebx
mov dword [ebp + 0xc], 4
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c983
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x40c93d
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, ebx
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40c97a
cmp dword [ebp + 8], 4
jne 0x40c975
mov ecx, dword [ebp + 0x18]
xor esi, esi
mov eax, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x40c97a
mov esi, 0x8007065d
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40c992
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20019
cmp byte [ebp + 0x14], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, 0x20119
cmovne ecx, esi
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x40c9cf
mov eax, dword [eax]
lea esi, [ebp - 0x210]
push esi
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x218], 0x208
test eax, eax
cmovle esi, eax
and dword [ebp - 0x214], 0
test esi, esi
js 0x40ca7c
cmp dword [edi + 0x14], 8
jb 0x40ca0c
mov edi, dword [edi]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40ca70
cmp dword [ebp - 0x214], 1
jne 0x40ca6b
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
call fcn.00409d77
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00409c32
jmp 0x40ca70
mov esi, 0x8007065d
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408439
mov esp, ebp
pop ebp
ret 0x14
Function at 0x410384
Capabilities:
Get common file path

Disassembly:
push 0x2c0
mov eax, 0x411a09
call fcn.004084be
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x234]
push 0x402f28
call fcn.0040ee05
push 0x402f50
push 0x402f9c
xor ebx, ebx
test edi, edi
push 0x402fd8
push 0x11a
setne al
mov dword [ebp - 4], ebx
movzx eax, al
push 0x402d90
push eax
call fcn.0040d55a
xor eax, eax
mov esi, 0x80004005
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0x24
lea eax, [ebp - 0x218]
push ebx
push 0x23
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x410487
push eax
push 2
lea ecx, [ebp - 0x2cc]
call fcn.0040a5f8
push 0x41551c
push 0x402bf4
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.00409e04
push eax
call fcn.0040f298
push eax
call fcn.0040cf31
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.0040c688
push eax
mov ecx, edi
call fcn.0040abb0
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.004090d5
lea ecx, [ebp - 0x27c]
mov esi, ebx
call fcn.0040a9d2
lea ecx, [ebp - 0x27c]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0040ee80
mov eax, esi
call fcn.00408472
ret 4

Function at 0x4104a5
Capabilities:
Get common file path

Disassembly:
push 0x2c0
mov eax, 0x411a09
call fcn.004084be
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x234]
push 0x402e14
call fcn.0040ee05
push 0x402e40
push 0x402e98
xor ebx, ebx
test edi, edi
push 0x402ed8
push 0x105
setne al
mov dword [ebp - 4], ebx
movzx eax, al
push 0x402d90
push eax
call fcn.0040d55a
xor eax, eax
mov esi, 0x80004005
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0x24
lea eax, [ebp - 0x218]
push ebx
push 0x1c
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x4105dd
push eax
push 2
lea ecx, [ebp - 0x2cc]
call fcn.0040a5f8
cmp dword [0x415440], 8
mov ecx, 0x41542c
mov eax, 0x4154ec
mov byte [ebp - 4], 1
cmovae ecx, dword [0x41542c]
cmp dword [0x415500], 8
push ecx
cmovae eax, dword [0x4154ec]
mov ecx, 0x402bf4
push ecx
push eax
push ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.00409e04
push eax
call fcn.0040f298
push eax
call fcn.00409e04
push eax
call fcn.0040f298
push eax
call fcn.00409e04
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.0040c688
push eax
mov ecx, edi
call fcn.0040abb0
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.004090d5
lea ecx, [ebp - 0x27c]
mov esi, ebx
call fcn.0040a9d2
lea ecx, [ebp - 0x27c]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0040ee80
mov eax, esi
call fcn.00408472
ret 4