joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475370
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4973eb
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.00478c30
mov eax, dword [0x4c0910]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.0048884c
push 0x5c
lea ecx, [esp + 8]
call fcn.00488ac6
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.00488a9f
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x475416
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.0048870f
xor eax, eax
jmp 0x475493
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x475471
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x475463
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x47543d
jmp 0x475471
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.0048870f
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x4754b0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x14
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebp
je 0x4755e0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
push eax
push 0x40000
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x4755cf
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x4755cf
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4755ca
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push 0x20019
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x4755cf
push eax
push eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push ebp
lea eax, [esp + 0x44]
push edx
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4755cf
push 0x105
call fcn.00488450
mov esi, eax
mov eax, dword [esp + 0x30]
add esp, 4
xor edi, edi
test eax, eax
jbe 0x4755c1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0x10]
push 0x105
push esi
push edi
push edx
call ebx
test eax, eax
jne 0x4755b1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 1
push eax
push esi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004754b0
jmp 0x4755b8
cmp eax, 0x103
je 0x4755c1
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jb 0x475587
push esi
call fcn.00488479
add esp, 4
mov ebp, 1
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebx
je 0x4755e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
add esp, 0x14
ret 0x10

Function at 0x48aadd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48ab15
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.00488b6a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00488b42
jmp 0x48ab21
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48c1cb
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 0x48c20d
call fcn.00491c87
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48c20d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48c204
xor eax, eax
jmp 0x48c215
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048c21b
pop edi
pop esi
pop ebx
ret 4
Function at 0x4921b7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4921e5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492203
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049211d
jmp 0x492203
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492203
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049211d
test edi, edi
mov eax, edi
jne 0x4921ed
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x59f9ab
Capabilities:
Authenticate hmac

Disassembly:
pop eax
dec eax
imul esp, dword [ebp - 0x57], 0xffffffa5
movsd dword es:[edi], dword [esi]
in eax, dx
test esp, esp
test al, 0x49

Function at 0x59f9b1
Capabilities:
Authenticate hmac

Disassembly:
pop eax
dec eax
imul esp, dword [ebp - 0x57], 0xffffffa5
movsd dword es:[edi], dword [esi]
in eax, dx
test esp, esp
test al, 0x49

Function at 0x59f9c3
Capabilities:
Authenticate hmac

Disassembly:
rol dword [ecx], cl
xor eax, 0xceaedb7d
scasb al, byte es:[edi]
into
mov bl, 0xd2
mov al, byte [0xc47504db]
add al, 0x75
les ebx, [ecx - 7]
jl fcn.0059f9ed
mov bh, 0x5c
or al, 0x9e
mov al, 0x20
invalid

Function at 0x624435
Capabilities:
Encode data using xor

Disassembly:
test dword [eax - 0x2c], edi
xor esp, dword [eax - 0x30]
push ebx
out 0x52, eax
loope 0x62442c
adc dword [esi], edx
aam 0xec
cli
inc ecx
push ebx
push esi
rol eax, 0x7a
jp 0x624428
bound esp, qword [ecx]
jge 0x6244b6
mov dl, 0x66
and dword [edi - 0x3f], edx
mov byte [ecx - 0x12], al
adc bh, byte [eax - 0x5b366acf]
invalid

Function at 0x656f71
Capabilities:
Encode data using xor

Disassembly:
stc
or edi, dword [ebx + 0x2290d13a]
add edi, edx
fimul dword [edx - 0x734a55de]
pop ds
push es
in eax, 0x56
add dword [esi + 0x54735756], 0x4ff4c547
mov ch, 0x82
and dword [0x6d938270], 0x89b352f5
daa
mov esi, 0xe5acffa5
pop ss
aam 0xeb
push eax
imul ebx, dword [ebp + eax*4 + 0x47], 0x5b
or ebp, dword [ebx - 0x1a5d50ac]
pop ecx
xor bh, cl
imul edx, edx, 0xd545966b
jae 0x656f78
invalid
je 0x656fce
Function at 0x4010cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4010f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 3
pop ebp
ret

Function at 0x40144a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
call fcn.0040a0d0
xor dl, dl
pop ecx
test eax, eax
jbe 0x401482
xor ecx, ecx
mov cl, byte [ecx + esi]
cmp cl, 0x30
jl 0x401498
cmp cl, 0x36
jle 0x401474
cmp cl, 0x41
jl 0x401498
cmp cl, 0x5a
jg 0x401498
inc dl
movzx ecx, dl
cmp ecx, eax
jb 0x401462
movsx eax, byte [esi + 1]
movsx ecx, byte [esi]
imul eax, eax, 0x1a
lea edi, [eax + ecx - 0x6db]
cmp edi, dword [ebp + 0xc]
jbe 0x40149f
xor eax, eax
jmp 0x401589
push ebx
add esi, 2
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040158d
mov ebx, eax
add esp, 0xc
cmp edi, ebx
jae 0x4014ba
mov ebx, edi
mov edi, 0x100
cmp ebx, edi
jbe 0x4014c5
mov ebx, edi
push edi
call fcn.0040a24b
push edi
mov esi, eax
call fcn.0040a24b
and byte [esi], 0
pop ecx
pop ecx
mov edi, eax
push 1
mov byte [ebp + 0x13], 0x22
pop ecx
cmp ebx, ecx
mov byte [ebp + 0xf], cl
jbe 0x401519
movzx edx, byte [ebp + 0x13]
lea eax, [ecx + 0x37]
xor eax, edx
cdq
idiv ecx
mov byte [ebp - 1], dl
xor dl, byte [ebp + 0xf]
movzx eax, byte [ebp - 1]
add byte [ebp + 0x13], dl
mov dl, byte [eax + esi]
add eax, esi
mov byte [ecx + esi], dl
mov cl, byte [ebp + 0xf]
inc byte [ebp + 0xf]
mov byte [eax], cl
movzx ecx, byte [ebp + 0xf]
cmp ecx, ebx
jb 0x4014e8
and byte [ebp + 0xf], 0
test ebx, ebx
jbe 0x40153b
xor eax, eax
movzx ecx, byte [eax + esi]
mov edx, dword [ebp + 8]
inc byte [ebp + 0xf]
mov al, byte [eax + edx]
mov byte [ecx + edi], al
movzx eax, byte [ebp + 0xf]
cmp eax, ebx
jb 0x401523
xor dl, dl
mov cl, 0x22
test ebx, ebx
jbe 0x401556
xor eax, eax
xor byte [eax + edi], cl
add cl, byte [eax + edi]
add eax, edi
inc dl
movzx eax, dl
cmp eax, ebx
jb 0x401545
and byte [ebp + 0xf], 0
test ebx, ebx
jbe 0x401578
xor eax, eax
movzx ecx, byte [eax + esi]
mov edx, dword [ebp + 8]
inc byte [ebp + 0xf]
mov cl, byte [ecx + edi]
mov byte [eax + edx], cl
movzx eax, byte [ebp + 0xf]
cmp eax, ebx
jb 0x401560
push edi
call fcn.0040a240
push esi
call fcn.0040a240
pop ecx
mov eax, ebx
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4018e8
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
lea eax, [ebp - 4]
push esi
push eax
push 0x40f3d8
xor ebx, ebx
push 1
push ebx
push 0x40f3c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x4019d7
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.0040a150
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.0040a360
add esp, 0x10
cmp eax, ebx
je 0x401958
mov byte [eax], bl
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x40196d
cmp byte [eax], bl
je 0x40196d
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x401981
push dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x40f3e8
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x4019ce
lea eax, [ebp - 0x314]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x314]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402dcb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x208
call fcn.0040a288
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
je 0x402e42
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s__s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push 1
push esi
push esi
push ebx
push esi
mov dword [edi], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x22], si
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
mov dword [ebp + 0xc], eax
call fcn.0040a259
cmp dword [ebp + 0xc], esi
pop ecx
jne 0x402e46
xor eax, eax
jmp 0x402e4e
mov eax, dword [ebp - 0x10]
push 1
mov dword [edi], eax
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e79
Capabilities:
Check for time delay via gettickcount
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, 0x411bb0
push ebx
test eax, eax
je 0x40301d
xor ebx, ebx
xor eax, eax
cmp dword [0x411bcc], ebx
mov dword [ebp - 0xc], eax
jle 0x40301d
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x411044]
je 0x403008
mov ecx, eax
shl ecx, 2
mov eax, dword [ecx + 0x411bb0]
cmp eax, ebx
je 0x403008
cmp dword [eax], ebx
je 0x403008
test byte [eax + 0x1a], 1
je 0x403008
mov eax, dword [ecx + 0x411b98]
mov esi, dword [eax + 4]
cmp esi, ebx
je 0x403008
cmp byte [esi], bl
je 0x403008
lea eax, [ebp - 0x1b4]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.0040a150
lea eax, [ebp - 0x1b4]
push esi
push eax
call fcn.0040a160
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1b4]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403008
mov eax, 0x168
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x1b4]
push ebx
push eax
call fcn.0040a300
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.UninstallString
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
je 0x402f80
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403008
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1b4]
push ebx
push eax
call section..text
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x403008
push eax
call fcn.00401229
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1b4]
push 0x411140
push eax
call fcn.00402dcb
add esp, 0x10
test eax, eax
je 0x403008
lea eax, [ebp - 8]
push eax
call fcn.00402e53
test eax, eax
pop ecx
je 0x402fda
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x402fbc
call edi
mov esi, eax
call edi
sub eax, esi
cmp eax, 0xbb8
jae 0x403008
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4c]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
lea eax, [ebp - 0x1b4]
push eax
call fcn.0040a50d
test eax, eax
pop ecx
jne 0x402fde
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, dword [0x411bcc]
mov dword [ebp - 0xc], eax
jl 0x402eab
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40347f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 0xc]
push edi
push 2
pop edi
push str.Start_Menu
push esi
call fcn.0040a5f0
pop ecx
test eax, eax
pop ecx
jne 0x4034a5
push 0xb
jmp 0x4034b8
push str.Startup
push esi
call fcn.0040a5f0
pop ecx
test eax, eax
pop ecx
jne 0x4034bb
push 7
pop edi
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test esi, esi
je 0x4034fd
cmp byte [esi], 0
je 0x4034fd
lea eax, [ebp - 0x104]
push eax
call fcn.0040832c
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0040a160
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call fcn.00408353
lea eax, [ebp - 0x104]
push eax
call fcn.0040a487
pop ecx
test eax, eax
pop ecx
je 0x40354a
lea eax, [ebp - 0x104]
push eax
call fcn.0040832c
lea eax, [ebp - 0x104]
push eax
call fcn.00408549
lea eax, [ebp - 0x104]
push eax
call fcn.0040a487
add esp, 0xc
test eax, eax
jne 0x4035d0
lea eax, [ebp - 0x104]
push eax
call fcn.0040832c
lea eax, [ebp - 0x104]
push eax
call fcn.0040a0d0
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040a160
lea eax, [ebp - 0x104]
push str..lnk
push eax
call fcn.0040a160
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.004018e8
add esp, 0x28
cmp dword [ebp + 0x1c], 0xffffffff
je 0x4035d0
test esi, esi
je 0x4035ae
and byte [ebp + esi - 0x105], 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x1c]
call fcn.00403443
lea eax, [ebp + esi - 0x104]
push eax
push dword [ebp + 0x1c]
call fcn.00403443
add esp, 0x10
pop edi
pop esi
leave
ret
Function at 0x403ad2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x411044]
push esi
mov esi, dword [eax*4 + 0x411b68]
test esi, esi
je 0x403bd2
movzx eax, word [esi]
add esi, 2
test eax, eax
jbe 0x403bd2
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x14], eax
mov bl, byte [esi]
inc esi
push esi
mov dword [ebp - 0x10], esi
call fcn.0040a0d0
lea esi, [esi + eax + 1]
push esi
mov dword [ebp - 0xc], esi
call fcn.0040a0d0
lea esi, [esi + eax + 1]
push esi
mov dword [ebp - 8], esi
call fcn.0040a0d0
lea esi, [esi + eax + 1]
push esi
mov dword [ebp - 4], esi
call fcn.0040a0d0
push dword [ebp - 0x10]
lea esi, [esi + eax + 1]
push dword [0x411a9c]
call fcn.00403a5a
add esp, 0x18
test bl, 1
je 0x403b78
push dword [0x411a9c]
lea eax, [ebp - 0x28]
and byte [ebp - 0x28], 0
push 0x14
push eax
push 0x411c58
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x403bc7
push reloc.KERNEL32.dll_lstrlenA
push dword [ebp - 4]
push 0
call fcn.00403788
lea ebx, [eax + 1]
push ebx
call fcn.0040a288
push ebx
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push eax
call fcn.00403788
add esp, 0x1c
push dword [0x411a9c]
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
call edi
push dword [0x411a9c]
xor eax, eax
push eax
push eax
push eax
call edi
push dword [ebp - 0x10]
call fcn.0040a259
pop ecx
dec dword [ebp - 0x14]
jne 0x403b06
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403bd5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x411044]
push esi
mov esi, dword [eax*4 + 0x411b50]
test esi, esi
je 0x403d13
movzx eax, word [esi]
add esi, 2
test eax, eax
jbe 0x403d13
push ebx
push edi
mov dword [ebp - 0x1c], eax
mov edi, dword [esi]
mov bl, byte [esi + 4]
add esi, 4
inc esi
push esi
mov dword [ebp - 0x10], esi
call fcn.0040a0d0
lea esi, [esi + eax + 1]
push esi
mov dword [ebp - 0x14], esi
call fcn.0040a0d0
lea esi, [esi + eax + 1]
push esi
mov dword [ebp - 0xc], esi
call fcn.0040a0d0
add esp, 0xc
lea esi, [esi + eax + 1]
mov eax, dword [0x411060]
cmp edi, 0x10
jae 0x403c47
mov eax, dword [edi*4 + 0x41105c]
test bl, 1
mov dword [ebp - 8], eax
je 0x403ca5
lea eax, [ebp - 4]
and byte [ebp - 0x38], 0
push eax
push 0x20019
push 0
mov dword [ebp - 0x18], 1
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c9f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x14
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x38], 0
jne 0x403d08
push reloc.KERNEL32.dll_lstrlenA
push dword [ebp - 0xc]
push 0
call fcn.00403788
mov ebx, eax
lea edi, [ebx + 1]
push edi
call fcn.0040a288
push edi
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
push eax
call fcn.00403788
add esp, 0x1c
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403cff
push ebx
push dword [ebp - 0x18]
push 1
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call fcn.0040a259
pop ecx
dec dword [ebp - 0x1c]
jne 0x403c03
pop edi
pop ebx
pop esi
leave
ret
Function at 0x404327
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [0x411aa0]
push dword [0x411a9c]
call fcn.0040a150
mov esi, dword [ebp + 8]
pop ecx
pop ecx
cmp byte [esi + 0x1a], 2
jne 0x404393
push dword [0x411bf8]
push dword [0x411a9c]
call fcn.0040a150
push 0x5c
push dword [0x411a9c]
call fcn.0040a360
mov edi, eax
add esp, 0x10
test edi, edi
je 0x404376
inc edi
jmp 0x40437c
mov edi, dword [0x411a9c]
push 0
push esi
call fcn.00403753
push eax
push edi
call fcn.0040a150
add esp, 0x10
jmp 0x404565
movzx eax, byte [esi + 0x17]
dec eax
je 0x404532
dec eax
je 0x4043ca
dec eax
jne 0x404543
lea eax, [ebp + 8]
push eax
push 0x14
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push dword [0x411a9c]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
jmp 0x404543
push 1
push 0x30c
call fcn.0040a387
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x404543
lea eax, [edi + 0x104]
push 0
push esi
mov dword [ebp - 4], eax
lea ebx, [edi + 0x208]
call fcn.00403753
push dword [0x411a9c]
mov esi, eax
call fcn.00408353
push 0x5c
push esi
call fcn.0040a360
add esp, 0x14
test eax, eax
je 0x40441b
inc eax
mov dword [ebp + 8], eax
jmp 0x40441e
mov dword [ebp + 8], esi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push dword [0x411a9c]
push ebx
push dword [ebp + 8]
push 1
call sub.VERSION.dll_VerFindFileA
mov ebx, eax
shr ebx, 1
and ebx, 1
cmp byte [edi], 0
je 0x4044bb
push edi
call fcn.0040832c
push dword [ebp + 8]
push edi
call fcn.0040a160
push edi
push dword [0x411a9c]
call fcn.0040a150
push 0
push dword [0x411a9c]
call section..text
add esp, 0x1c
cmp eax, 0xffffffff
je 0x40449d
push eax
call fcn.00401229
push edi
call fcn.0040a259
pop ecx
pop ecx
jmp 0x40452e
mov esi, dword [ebp - 4]
cmp byte [esi], 0
je 0x404565
push esi
call fcn.0040832c
push dword [ebp + 8]
push esi
call fcn.0040a160
push edi
jmp 0x404521
push esi
push dword [0x411a9c]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
call fcn.0040a259
push dword [0x411a9c]
call fcn.0040832c
push dword [ebp + 8]
push dword [0x411a9c]
call fcn.0040a160
push 0
push dword [0x411a9c]
call section..text
add esp, 0x18
cmp eax, 0xffffffff
je 0x404504
push eax
call fcn.00401229
jmp 0x404497
mov esi, dword [ebp - 4]
cmp byte [esi], 0
je 0x404565
push esi
call fcn.0040832c
push dword [ebp + 8]
push esi
call fcn.0040a160
push dword [0x411a9c]
push esi
call fcn.0040a5f0
add esp, 0x14
test eax, eax
jne 0x404565
mov eax, ebx
jmp 0x404567
push 0x104
push dword [0x411a9c]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x411a9c]
call fcn.0040832c
push 0
push esi
call fcn.00403753
push eax
push dword [0x411a9c]
call fcn.0040a160
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret