joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6394f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64bc30
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x7030b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CShareVariableManager.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.0041d670
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.0041d670
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
call fcn.0041d670
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xa8
call fcn.0041d670
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0xc0
call fcn.0041d670
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.0041d670
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x44], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x48], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x50], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x54], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x58], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x5c], 0
push 0x6dfeac
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.0041d520
push 0x6dfeb0
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call fcn.0041d520
push 0x6dfea4
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
call fcn.0041d520
push 0x6dfea8
mov ecx, dword [ebp - 0x10]
add ecx, 0xa8
call fcn.0041d520
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x63bd80
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64bf3a
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x7030b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b0], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0041d4a0
push eax
call fcn.004a1f02
add esp, 4
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2bc]
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.0042de00
mov cx, word [eax]
mov word [ebp - 0x2ac], cx
movzx edx, word [ebp - 0x2ac]
cmp edx, 0x5c
je 0x63be10
movzx eax, word [ebp - 0x2ac]
cmp eax, 0x2f
je 0x63be10
push 0x6e32cc
lea ecx, [ebp + 8]
call fcn.0041d4e0
mov dword [ebp - 0x2b8], 0
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0041d6c0
mov byte [ebp - 4], 1
push 0x6e32e0
lea ecx, [ebp - 0x58]
call fcn.0041d4e0
lea edx, [ebp - 0x2a8]
push edx
lea ecx, [ebp - 0x58]
call fcn.0041d4a0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0xffffffff
je 0x63bfc6
lea eax, [ebp - 0x2a8]
push eax
mov ecx, dword [ebp - 0x2b4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
jne 0x63be88
jmp 0x63bfc6
mov edx, 2
imul eax, edx, 0
movzx ecx, word [ebp + eax - 0x27c]
cmp ecx, 0x2e
jne 0x63be9f
jmp 0x63be53
mov edx, 2
shl edx, 0
movzx eax, word [ebp + edx - 0x27c]
test eax, eax
jne 0x63beb5
jmp 0x63be53
mov ecx, 2
shl ecx, 0
movzx edx, word [ebp + ecx - 0x27c]
cmp edx, 0x2e
jne 0x63bee2
mov eax, 2
shl eax, 1
movzx ecx, word [ebp + eax - 0x27c]
test ecx, ecx
jne 0x63bee2
jmp 0x63be53
mov edx, dword [ebp - 0x2a8]
and edx, 0x10
je 0x63bf4c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041d6c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041d4e0
push 0x6e32e8
lea ecx, [ebp - 0x28]
call fcn.0041d4e0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c0], esp
lea edx, [ebp - 0x28]
push edx
call fcn.0041d6c0
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x2b0]
call fcn.0063bd80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0041d5b0
jmp 0x63bfc1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041d6c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0041d4e0
mov edx, dword [ebp - 0x2b0]
mov ecx, dword [edx + 0x6e4]
call fcn.0041e890
cmp eax, 0xc8
jb 0x63bf91
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0041d5b0
jmp 0x63bfc6
mov eax, dword [ebp - 0x2b0]
cmp dword [eax + 0x6e4], 0
je 0x63bfb5
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x2b0]
mov ecx, dword [edx + 0x6e4]
call fcn.0041d120
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0041d5b0
jmp 0x63be53
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0041d5b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041d5b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004421e5
mov esp, ebp
pop ebp
ret 0x18
Function at 0x63c8d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6e4], 0
jne 0x63c8e5
jmp 0x63c91d
cmp dword [ebp + 8], 0
je 0x63c8fd
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x714
call fcn.0041d520
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x63c8b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x708], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x63e330
Capabilities:
Hide graphical window
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0063a890
mov eax, dword [ebp - 4]
mov dword [eax + 0x70c], 1
mov ecx, dword [ebp - 4]
call fcn.0063c950
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x704]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x710], 0
je 0x63e3ba
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x708]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x708]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x708], 0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x63e409
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x708]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x708]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 0x708], 0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov esp, ebp
pop ebp
ret
Function at 0x63e6b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov word [ebp - 4], ax
movsx eax, word [ebp - 4]
test eax, eax
jge 0x63e6db
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x6a4], 0
je 0x63e75d
call dword [sym.imp.USER32.dll_GetFocus]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x684]
jne 0x63e71b
cmp dword [ebp - 0x14], 0
je 0x63e714
cmp dword [ebp + 0xc], 0x41
jne 0x63e714
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x684
call fcn.0042dd10
jmp 0x63e870
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x6a4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x6a4]
mov edx, dword [eax + 0x100]
call edx
movzx eax, al
test eax, eax
je 0x63e75d
cmp dword [ebp - 0x14], 0
je 0x63e758
cmp dword [ebp + 0xc], 0x41
jne 0x63e758
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x6a4]
call fcn.0046b918
jmp 0x63e870
mov dword [ebp - 0x18], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov word [ebp - 8], ax
movsx edx, word [ebp - 8]
test edx, edx
jge 0x63e77f
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x14], 0
jne 0x63e78b
cmp dword [ebp - 0x18], 0
je 0x63e790
jmp 0x63e870
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x42
jne 0x63e7a9
mov ecx, dword [ebp - 0xc]
call fcn.0063d150
jmp 0x63e870
cmp dword [ebp - 0x10], 0x43
jne 0x63e7bc
mov ecx, dword [ebp - 0xc]
call fcn.0063e2f0
jmp 0x63e870
cmp dword [ebp - 0x10], 0x45
jne 0x63e7cf
mov ecx, dword [ebp - 0xc]
call fcn.0063dad0
jmp 0x63e870
cmp dword [ebp - 0x10], 0x53
jne 0x63e7e2
mov ecx, dword [ebp - 0xc]
call fcn.0063dc50
jmp 0x63e870
cmp dword [ebp - 0x10], 0x48
jne 0x63e7f2
mov ecx, dword [ebp - 0xc]
call fcn.0063d000
jmp 0x63e870
cmp dword [ebp - 0x10], 0x58
jne 0x63e802
mov ecx, dword [ebp - 0xc]
call fcn.0063e330
jmp 0x63e870
cmp dword [ebp - 0x10], 0x4f
jne 0x63e812
mov ecx, dword [ebp - 0xc]
call fcn.0063cd30
jmp 0x63e870
cmp dword [ebp - 0x10], 0x44
jne 0x63e822
mov ecx, dword [ebp - 0xc]
call fcn.0063ccd0
jmp 0x63e870
cmp dword [ebp - 0x10], 0x56
jne 0x63e832
mov ecx, dword [ebp - 0xc]
call fcn.0063cc70
jmp 0x63e870
cmp dword [ebp - 0x10], 0x54
jne 0x63e842
mov ecx, dword [ebp - 0xc]
call fcn.0063cc10
jmp 0x63e870
cmp dword [ebp - 0x10], 0x4d
jne 0x63e852
mov ecx, dword [ebp - 0xc]
call fcn.0063cbb0
jmp 0x63e870
cmp dword [ebp - 0x10], 0x41
jne 0x63e862
mov ecx, dword [ebp - 0xc]
call fcn.0063cb50
jmp 0x63e870
cmp dword [ebp - 0x10], 0x52
jne 0x63e870
mov ecx, dword [ebp - 0xc]
call fcn.0063caf0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x642ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64caa1
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x7030b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004a08c0
add esp, 0xc
push 0x6e88a8
lea ecx, [ebp - 0x260]
call fcn.0041d600
mov dword [ebp - 4], 0
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.0041d600
mov byte [ebp - 4], 1
push str._rundll32.exe
lea ecx, [ebp - 0x248]
call fcn.0041d4e0
push 0x6e8920
lea ecx, [ebp - 0x230]
call fcn.0041d600
mov byte [ebp - 4], 2
push 0x6e891c
lea ecx, [ebp - 0x230]
call fcn.0041d520
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0041d500
push str.__shell32.dll_Control_RunDLL_timedate.cpl
lea ecx, [ebp - 0x230]
call fcn.0041d4e0
lea ecx, [ebp - 0x230]
call fcn.0041d4a0
push eax
call fcn.00448b49
add esp, 4
mov ecx, dword [ebp - 0x264]
call fcn.00642cb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.0041d5b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0041d5b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.0041d5b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004421e5
mov esp, ebp
pop ebp
ret

Function at 0x401a80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4064a1
mov eax, 0xff
call fcn.00401a80
xor byte [esi], al
inc esi
dec ebx
jne 0x406491
pop esi
pop ebx
ret
Function at 0x418870
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push dword [ebp + 8]
call sub.msvcrt.dll_getenv
add esp, 0x10
mov edx, eax
mov byte [ebp - 0x104], 0
test eax, eax
je 0x4188a5
lea eax, [ebp - 0x104]
push ecx
push 0x104
push eax
push edx
call sub.kernel32.dll_ExpandEnvironmentStringsA
pop eax
xor eax, eax
cmp byte [ebp - 0x104], 0
je 0x4188c3
sub esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [fcn.0041e014]
add esp, 0x10
leave
ret

Function at 0x41c078
Capabilities:
Set socket configuration

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0xc], 0
setne al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [ebp + 8]
call sub.ws2_32.dll_ioctlsocket
leave
ret
Function at 0x41c998
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push ebx
call sub.advapi32.dll_CryptAcquireContextA
add esp, 0xc
test eax, eax
je 0x41c9d4
sub esp, 0xc
lea eax, [ebx + 4]
push eax
push 0
push 0
push 0x8003
push dword [ebx]
call sub.advapi32.dll_CryptCreateHash
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x5f9b0f
Capabilities:
Encode data using xor

Disassembly:
rol bh, cl
les esp, [eax]
pop eax
dec ebp
xor eax, 0x5925c971
jne 0x5f9b15
invalid

Function at 0x6d901f
Capabilities:
Encode data using xor

Disassembly:
and eax, 0x52e0c091
pop es
sal dword [ebx - 0x1a], cl
lahf
and al, 0xe7
call 0xe33f3b37
inc esp
adc dword [esi - 0x1d], 0x675704fb
dec ebp
call 0x6cc591ac

Function at 0x6da4ff
Capabilities:
Encode data using xor

Disassembly:
aam 0x3c
in al, dx
mov eax, 0x1baf0d1b
dec edx
scasb al, byte es:[edi]
fsub dword [ebp - 0x44]
xor ecx, dword [eax - 0xe5310d2]
stc
xchg edi, eax
inc ebx
mov ecx, 0x9954a163
arpl word [ecx + 0x50e29954], sp
loop 0x6da541
inc ecx
cmc
xchg ebx, eax
inc edi
lea esp, [ebx + 0x49]
inc ecx
mov bh, 0xe1
adc ch, ch
xor dword [ebx], eax
add esi, dword [0xe99294b4]
or ah, byte [edi + 0x1869aab9]
out 0x71, eax
xchg edx, eax
je 0x6da4eb
or edi, eax
push edi
movsb byte es:[edi], byte [esi]
daa
pop esp
cdq
push esi
add eax, dword [edi]
inc byte [ebx]
xlatb
pop ss
jb 0x6da4d4
iretd
rcl dword [edi]
and ebp, dword [0x8cc2523]
jg 0x6da591
inc eax
pop edx
jecxz 0x6da570
adc eax, dword [ecx - 0x1a]
push edx
pop esi
mov edx, 0x27357124
or eax, 0x72d7dee2
pop edx
ret
out 0x13, al
pop ecx
bound ebp, qword [edx]
pop ds
mov ebp, dword [edi]
ret 0xa8d3
inc esp
pop ecx
adc ch, byte [eax + 0xd]
jae 0x6da570
aaa
sbb al, 0x36
xor al, dl
mov bl, 0x79
ret
Function at 0x402f0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x45d8db
call fcn.0044166f
xor esi, esi
mov dword [ebp - 4], esi
push 0xf
pop edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.00401665
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], edi
call fcn.00401665
push dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00402143
push dword [ebp + 8]
movzx eax, word [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 0x14], 0x10
mov edi, eax
mov eax, dword [ebp - 0x28]
jae 0x402f85
lea eax, [ebp - 0x28]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0xd0]
call fcn.00402d9f
push edi
push ebx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 5
call fcn.00402e69
lea ecx, [ebp - 0xd0]
call fcn.00402b61
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.00402c53
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.004018b8
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004018b8
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.0040127b
call fcn.004416f2
ret

Function at 0x403c99
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x45d99a
call fcn.00441606
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004035d2
push str..
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00403c62
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.004035d2
call fcn.0040375d
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040127b
call fcn.004416de
ret
Function at 0x403ec3
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x318
lea ebp, [esp - 4]
mov eax, dword [0x47f150]
xor eax, ebp
mov dword [ebp + 0x318], eax
push 0x10
mov eax, 0x45da1c
call fcn.00441606
mov eax, dword [ebp + 0x328]
and dword [ebp - 4], 0
mov edi, dword [ebp + 0x324]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], edi
call fcn.00403e85
mov esi, 0x105
push esi
xor ebx, ebx
lea eax, [ebp + 0x108]
push 0
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00440f50
add esp, 0x10
push esi
lea eax, [ebp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp]
push 0
push eax
call fcn.00440f50
add esp, 0xc
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0x210]
push 0
push eax
call fcn.00440f50
add esp, 0xc
lea eax, [ebp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00403d12
push dword [ebp - 0x10]
mov ecx, edi
push str.APPPATH
mov dword [ebp - 0x14], ebx
call fcn.0040384a
lea eax, [ebp + 0x108]
push eax
push str.SYSTEMPATH
mov ecx, edi
call fcn.0040384a
lea eax, [ebp]
push eax
push str.WINDOWSPATH
mov ecx, edi
call fcn.0040384a
lea eax, [ebp + 0x210]
push eax
push str.TEMPPATH
mov ecx, edi
call fcn.0040384a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040127b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x318]
xor ecx, ebp
call fcn.004415f7
add ebp, 0x31c
leave
ret

Function at 0x4048b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x47f150]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x74]
push edi
mov edi, dword [ebp + 0x78]
test eax, eax
jne 0x4048eb
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x4048ff
push ebx
lea ebx, [ebp - 0x38]
push ebx
or eax, 1
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop ebx
test eax, eax
je 0x404907
xor eax, eax
jmp 0x40493a
test edi, edi
je 0x40492c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0x96
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404903
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
pop edi
call fcn.004415f7
add ebp, 0x68
leave
ret
Function at 0x4078a2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x47f150]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x48
mov eax, 0x45de3d
call fcn.00441639
mov eax, dword [ebp + 0x114]
mov ecx, dword [ebp + 0x10c]
mov esi, dword [ebp + 0x110]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x118]
xor ebx, ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], ebx
call fcn.004035be
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x18]
xor edi, edi
inc edi
push esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4079cb
push 0xfe
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00440f50
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x34], 0xff
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 4
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x4079c2
push dword [ebp - 0x1c]
call fcn.0044361a
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x4079b9
cmp dword [ebp - 0x28], edi
jne 0x4079b9
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
call fcn.00403c62
push dword [ebp - 0x18]
call fcn.00441183
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.004415f7
add ebp, 0x104
leave
ret

Function at 0x40864d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x47f150]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00440f50
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call fcn.00403d12
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004415f7
leave
ret
Function at 0x408809
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x94
lea ebp, [esp - 4]
mov eax, dword [0x47f150]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 8
mov eax, 0x45e10a
call fcn.00441606
mov ebx, dword [ebp + 0xa0]
xor edi, edi
push str.Unknown
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
call fcn.00403d12
push 0x94
lea eax, [ebp]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.00440f50
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp + 4], 5
jne 0x408897
cmp dword [ebp + 8], 1
jne 0x40888a
push str.WinXP
jmp 0x4088b4
cmp dword [ebp + 8], 2
jne 0x4088bb
push str.WinXP_64
jmp 0x4088b4
cmp dword [ebp + 4], 6
jne 0x4088bb
cmp dword [ebp + 8], edi
jne 0x4088a9
push str.WinVista
jmp 0x4088b4
cmp dword [ebp + 8], 1
jne 0x4088bb
push str.Win7
mov ecx, ebx
call fcn.00403b82
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004415f7
add ebp, 0x98
leave
ret