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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40640c
call fcn.00413f5e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40640c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40644f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x406438
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x406438
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x40644c
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40826b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00413f5e
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4082a4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00407ead
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x408302
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x408326
cmp dword [edi + 0x74], 0
jne 0x408326
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00413f5e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004082c3
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x412af7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x412b3e
call fcn.00413f5e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x412b3e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412b5a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004125fc
mov esi, eax
test edi, edi
je 0x412b58
test ebx, ebx
je 0x412b58
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413311
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x519883
call fcn.0050333c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x413336
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x413388
call fcn.004036e5
push eax
lea ecx, [ebp - 0x10]
call fcn.00401460
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00503492
push eax
call fcn.004034fe
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011f0
mov eax, esi
call fcn.00503414
ret 8

Function at 0x414322
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00413fe1
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41436c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004035df
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004035b0
jmp 0x414377
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041966b
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41437d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00412c03
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4143ba
call fcn.00413fe1
mov dword [esi + 0xc], 1
jmp 0x4143bf
call fcn.00413fe1
cmp dword [esi], 0
je 0x414408
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4143e0
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004035df
jmp 0x4143f2
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004014b0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004035b0
jmp 0x41442c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x41442c
push dword [esi]
push dword [ebp + 8]
call fcn.0041966b
pop esi
pop ebp
ret 0xc

Function at 0x41799c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x56fae0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4179d1
xor eax, eax
jmp 0x417a24
lea eax, [ebp - 0x210]
push eax
call fcn.00502df9
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x417a02
push 0x52a6d4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050641f
add esp, 0xc
test eax, eax
jne 0x4179cd
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050641f
add esp, 0xc
test eax, eax
jne 0x4179cd
lea eax, [ebp - 0x210]
push eax
call fcn.0040e0f4
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005021d0
leave
ret
Function at 0x45b7c7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004dd629
call fcn.0041398f
cmp dword [eax + 0x14], 0
jne 0x45b7e4
mov ecx, esi
pop esi
jmp fcn.0045b2cc
pop esi
ret

Function at 0x45edd7
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004d6f10
call fcn.0041398f
cmp dword [eax + 0x14], 0
jne 0x45edf4
mov ecx, esi
pop esi
jmp fcn.0045e7aa
pop esi
ret

Function at 0x46ebde
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46ebf8
call fcn.00413f5e
mov esi, dword [eax + 0xc]
push dword [0x57cb28]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46ec16
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46ec0e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46ec43
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46ec10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046eb0c
mov esi, eax
jmp 0x46ec35

Function at 0x4e8f62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e8f7a
mov edi, dword [esi + 0xc]
jmp 0x4e8fba
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e8f93
call fcn.00408eb4
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e8fa8
call fcn.00408eb4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e8fba
call fcn.00408eb4
call fcn.00413f5e
cmp dword [eax + 0x3c], 0
je 0x4e8fcf
push edi
mov ecx, ebx
call fcn.004e7d96
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e8e7c
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e8fed
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e8ff9
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5021d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56fae0]
jne 0x5021da
repz ret
jmp fcn.00508d84
Function at 0x51511f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56fae0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0050b489
and dword [ebp - 0x14], 0
cmp dword [0x57f42c], 0
mov dword [ebp - 0x18], eax
jne 0x5151d2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51527a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51527a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54e734
push ebx
mov dword [0x57f42c], eax
call edi
push eax
call esi
push 0x54e720
push ebx
mov dword [0x57f430], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x57f434], eax
call edi
push eax
call esi
mov dword [0x57f43c], eax
test eax, eax
je 0x5151d2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x57f438], eax
mov eax, dword [0x57f438]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51522b
cmp dword [0x57f43c], ecx
je 0x51522b
push eax
call esi
push dword [0x57f43c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51522b
test ebx, ebx
je 0x51522b
call edi
test eax, eax
je 0x515222
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x515222
test byte [ebp - 8], 1
jne 0x51522b
or dword [ebp + 0x10], 0x200000
jmp 0x51525e
mov eax, dword [0x57f430]
cmp eax, dword [ebp - 0x18]
je 0x51525e
push eax
call esi
test eax, eax
je 0x51525e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51525e
mov eax, dword [0x57f434]
cmp eax, dword [ebp - 0x18]
je 0x51525e
push eax
call esi
test eax, eax
je 0x51525e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57f42c]
call esi
test eax, eax
je 0x51527a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51527c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005021d0
leave
ret
Function at 0xbb8c00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x333000]
push edi
or ebp, 0xffffffff
jmp 0xbb8c22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xbb8c29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbb8c18
mov eax, 1
add ebx, ebx
jne 0xbb8c3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xbb8c4c
jne 0xbb8c6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbb8c6b
dec eax
add ebx, ebx
jne 0xbb8c58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xbb8c30
add ebx, ebx
jne 0xbb8c67
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xbb8cbd
xor ecx, ecx
sub eax, 3
jb 0xbb8c83
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xbb8cf2
sar eax, 1
mov ebp, eax
jmp 0xbb8c8e
add ebx, ebx
jne 0xbb8c8e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbb8c5c
inc ecx
add ebx, ebx
jne 0xbb8c9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbb8c5c
add ebx, ebx
jne 0xbb8ca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xbb8c9e
jne 0xbb8cba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xbb8c9e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xbb8cdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xbb8cce
jmp 0xbb8c1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xbb8cdc
add edi, ecx
jmp 0xbb8c1e
pop esi
mov edi, esi
mov ecx, 0x7a6f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xbb8cfa
cmp byte [edi], 0x28
jne 0xbb8cfa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xbb8cff
lea edi, [esi + 0x7b5000]
mov eax, dword [edi]
or eax, eax
je 0xbb8d77
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7ba0ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7ba24c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xbb8d2c
mov ecx, edi
jns 0xbb8d5b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7ba254]
or eax, eax
je 0xbb8d71
mov dword [ebx], eax
add ebx, 4
jmp 0xbb8d49
call dword [esi + 0x7ba250]
mov ebp, dword [esi + 0x7ba258]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xbb8dab
sub esp, 0xffffff80
jmp 0x4f90f6
Function at 0x40261d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40265c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40265c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40265c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40265c
cmp dword [ecx + 0x74], 0xe
jbe 0x40265c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40420d
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x469df6
call fcn.0044e53f
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
lea eax, [ebp + 0xc]
push eax
xor ebx, ebx
lea eax, [ebp - 0x2c]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00404056
pop ecx
pop ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00403958
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x18], edi
jbe 0x404272
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403505
xor byte [eax], 0x4b
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403505
movzx eax, byte [eax]
push eax
mov ecx, esi
call fcn.00403a88
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x40424c
push dword [esi]
lea ecx, [ebp - 0x48]
call fcn.004023c4
mov edi, dword [ebp + 0x28]
dec edi
mov byte [ebp - 4], 3
test edi, edi
jle 0x4042c4
push dword [ebp + 0x2c]
lea eax, [ebp - 0x48]
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.00401f80
lea eax, [ebp - 0x4c]
push eax
call fcn.0040420d
add esp, 0x28
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00403f66
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401264
inc edi
cmp dword [ebp + 0x2c], edi
jne 0x4042f5
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp + 0x2c]
mov ecx, esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00403de2
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00403f66
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.00401264
push 0
push ebx
lea ecx, [ebp - 0x48]
call fcn.004018e2
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004018e2
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.004018e2
mov eax, esi
call fcn.0044e5c2
ret

Function at 0x40431e
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x469e33
call fcn.0044e4d6
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040396c
push 3
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.CAokOAosen4PGCgYDCUReQ
mov byte [ebp - 4], 1
call fcn.004023c4
lea eax, [ebp - 0x14]
push eax
call fcn.0040420d
add esp, 0x28
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00403e66
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401264
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040396c
call fcn.00403b1f
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401264
call fcn.0044e5ae
ret
Function at 0x4043bb
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x94
lea ebp, [esp - 4]
mov eax, dword [0x494190]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0xc
mov eax, 0x469e87
call fcn.0044e4d6
mov edi, dword [ebp + 0xa0]
push 3
push 3
sub esp, 0x1c
xor esi, esi
mov dword [ebp - 0x14], esi
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.CSNzBAY8BiIDIjwJDAk7MQoZO3kvLHZ2
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], edi
call fcn.004023c4
push edi
call fcn.0040420d
mov dword [ebp - 4], esi
mov esi, 0x94
push esi
xor ebx, ebx
lea eax, [ebp]
push 0
inc ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.0044de20
add esp, 0x34
lea eax, [ebp]
push eax
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp + 4], 5
jne 0x4044a0
cmp dword [ebp + 8], ebx
jne 0x40446b
push 2
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.BzJzKAIiHh8MPHZ2
call fcn.004023c4
lea eax, [ebp - 0x10]
push eax
call fcn.0040420d
add esp, 0x28
mov dword [ebp - 4], ebx
jmp 0x404505
cmp dword [ebp + 8], 2
jne 0x404518
push 3
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.CB88JAo8BgIKIigEBjEsLgcZBTEvLHZ2
call fcn.004023c4
lea eax, [ebp - 0x10]
push eax
call fcn.0040420d
add esp, 0x28
mov dword [ebp - 4], 2
jmp 0x404505
cmp dword [ebp + 4], 6
jne 0x404518
cmp dword [ebp + 8], 0
jne 0x4044d7
push 2
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.AiICKAIiHi8CISxkACx2dg
call fcn.004023c4
lea eax, [ebp - 0x10]
push eax
call fcn.0040420d
add esp, 0x28
mov dword [ebp - 4], 3
jmp 0x404505
cmp dword [ebp + 8], ebx
jne 0x404518
push 2
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.LhMgKAIiHXM
call fcn.004023c4
lea eax, [ebp - 0x10]
push eax
call fcn.0040420d
add esp, 0x28
mov dword [ebp - 4], 4
push eax
mov ecx, edi
call fcn.00403f66
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401264
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 + 0x94]
xor ecx, ebp
call fcn.0044e4c7
add ebp, 0x98
leave
ret

Function at 0x404601
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x494190]
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.0044de20
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.0040453d
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0044e4c7
leave
ret
Function at 0x404750
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x318
lea ebp, [esp - 4]
mov eax, dword [0x494190]
xor eax, ebp
mov dword [ebp + 0x318], eax
push 0x10
mov eax, 0x469f16
call fcn.0044e4d6
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.00404712
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.0044de20
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.0044de20
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.0044de20
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.0040453d
push dword [ebp - 0x10]
mov ecx, edi
push str.APPPATH
mov dword [ebp - 0x14], ebx
call fcn.00403c0c
lea eax, [ebp + 0x108]
push eax
push str.SYSTEMPATH
mov ecx, edi
call fcn.00403c0c
lea eax, [ebp]
push eax
push str.WINDOWSPATH
mov ecx, edi
call fcn.00403c0c
lea eax, [ebp + 0x210]
push eax
push str.TEMPPATH
mov ecx, edi
call fcn.00403c0c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401264
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.0044e4c7
add ebp, 0x31c
leave
ret
Function at 0x40648a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x494190]
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 0x4064c2
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x4064d6
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 0x4064de
xor eax, eax
jmp 0x406511
test edi, edi
je 0x406503
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 0x4064da
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.0044e4c7
add ebp, 0x68
leave
ret