joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064e5
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x4633d0
call fcn.004414e8
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x71]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x70], 0x4745e4
mov dword [ebp - 0x48], 0x46ef78
call fcn.004033a0
mov edi, 0x104
lea eax, [ebp - 0x80]
push edi
lea ecx, [ebp - 0x70]
push eax
mov dword [ebp - 4], ebx
call fcn.004076d5
cmp dword [ebp + 0xc], 1
jne 0x40659d
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.0040767a
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00406d8b
inc bl
je 0x406576
lea ecx, [ebp - 0x2c]
call fcn.00406af4
push 0x47b3c0
lea eax, [ebp - 0x2c]
push eax
call fcn.0044006f
push 0
lea eax, [ebp - 0x71]
push eax
push 0x46d6a0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.00406761
mov byte [ebp - 4], 2
jmp 0x4065f6
cmp dword [ebp + 0xc], 2
jne 0x406610
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.0040767a
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00406d8b
inc bl
jne 0x406560
push 0
lea eax, [ebp - 0x71]
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.00406761
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.00406e92
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401500
jmp 0x406642
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.0040767a
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00406d8b
inc bl
jne 0x406560
push 0x46d690
lea ecx, [ebp - 0x70]
call fcn.00406e3b
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4745e4
mov dword [esi + 0x28], 0x46ef78
call fcn.00406676
lea ecx, [ebp - 0x70]
call fcn.00401500
mov eax, esi
call fcn.00441497
ret
Function at 0x406ee4
Capabilities:
Check if file exists
Create process on windows
Self delete

Disassembly:
push 0x158
mov eax, 0x4634c1
call fcn.004414e8
xor ebx, ebx
push ebx
lea eax, [ebp - 0x101]
mov edi, 0x4745e4
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x18], 0x46ef78
call fcn.004033a0
mov esi, 0x400
push esi
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.00402660
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.004034e0
push esi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x120]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00403240
inc bl
jne 0x40711d
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40711d
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402b20
push ebx
lea eax, [ebp - 0x101]
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x78], 0x46ef78
call fcn.004033a0
push 0x40
lea eax, [ebp - 0x160]
push ebx
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x164], ebx
call fcn.004400d0
xor eax, eax
mov dword [ebp - 0x114], ebx
lea edi, [ebp - 0x110]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop esi
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x164]
push ebx
push eax
call fcn.004400d0
xor eax, eax
mov word [ebp - 0x134], ax
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x138], 1
call fcn.004064e5
add esp, 0x20
push ebx
lea eax, [ebp - 0x101]
push eax
push str.cmd.exe
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
mov dword [ebp - 0xd0], 0x4745e4
mov dword [ebp - 0xa8], 0x46ef78
call fcn.00406761
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.0040773f
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.00401500
lea eax, [ebp - 0x6c]
cmp byte [ebp + 8], bl
je 0x40708f
cmp dword [ebp - 0xe8], 8
lea ecx, [ebp - 0xfc]
cmovae ecx, dword [ebp - 0xfc]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push eax
push str.__s___c_rmdir__s__q___s_
jmp 0x4070a9
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push eax
push str.__s___c_del___s_
lea eax, [ebp - 0xa0]
push eax
call fcn.00403190
add esp, 0x10
lea ecx, [ebp - 0xa0]
call fcn.004034e0
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x164]
push ecx
push ebx
push ebx
push 0x40
push ebx
push ebx
push ebx
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4070fd
push dword [ebp - 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x114]
call esi
mov bl, 1
lea ecx, [ebp - 0x70]
call fcn.00401500
lea ecx, [ebp - 0xa0]
call fcn.00401500
lea ecx, [ebp - 0x100]
call fcn.00401500
jmp 0x40711f
xor ebx, ebx
lea ecx, [ebp - 0x40]
call fcn.00401500
mov al, bl
call fcn.00441497
ret
Function at 0x407969
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4079ec
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4079a1
push 0
push 0
jmp 0x4079ee
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x40799b
lea edi, [eax + 0x40]
push edi
call fcn.0043fd86
pop ecx
mov dword [esi], eax
test eax, eax
je 0x40799b
push edi
push 0
push eax
call fcn.004400d0
add esp, 0xc
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.004403a0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push ebx
push ebx
call fcn.0044006f
int3
Function at 0x407e82
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x3c4
mov eax, 0x4635bf
call fcn.004414e8
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
xor ebx, ebx
push 0x104
mov dword [ebp - 0x3d0], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x407ece
lea ecx, [ebp - 0x234]
call fcn.00406af4
push 0x47b3c0
lea eax, [ebp - 0x234]
push eax
call fcn.0044006f
push pe_nt_image_headers32
lea eax, [ebp - 0x3c4]
push ebx
push eax
call fcn.004400d0
add esp, 0xc
lea eax, [ebp - 0x3c8]
push eax
mov dword [ebp - 0x3c8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, 0x4745e4
test eax, eax
je 0x40802e
cmp dword [ebp - 0x3b8], 1
jne 0x40802e
push ebx
lea eax, [ebp - 0x3c9]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x220], 0x46ef78
call fcn.00406761
push str.123.tmp
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.0040834b
cmp dword [ebp - 0x230], 8
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x407ffd
lea eax, [ebp - 0x278]
push ebx
push eax
call fcn.00408094
pop ecx
pop ecx
lea ecx, [ebp - 0x2b4]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040a297
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00406e0f
lea ecx, [ebp - 0x2b4]
call fcn.00401500
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], bl
call fcn.00401500
push str.temp
lea ecx, [ebp - 0x248]
call fcn.0040834b
push ebx
lea eax, [ebp - 0x248]
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], 0x46ef78
call fcn.00406676
lea ecx, [ebp - 0x248]
jmp 0x408087
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x230], 8
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00401500
push ebx
lea eax, [ebp - 0x3c9]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x250], 0x46ef78
call fcn.00406761
push 0x46d690
lea ecx, [ebp - 0x278]
mov dword [ebp - 4], 3
call fcn.0040834b
push ebx
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], 0x46ef78
call fcn.00406676
lea ecx, [ebp - 0x278]
call fcn.00401500
mov eax, esi
call fcn.00441497
ret

Function at 0x409f55
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x487db8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x74736e49
mov dword [ebp - 0x18], 0x536c6c61
mov dword [ebp - 0x14], 0x6c656968
mov word [ebp - 0x10], 0x64
cmp byte [ebp + 0xc], al
je 0x409f9c
mov dword [ebp - 0xf], 0x7a695720
mov dword [ebp - 0xb], 0x647261
push 1
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00406872
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00440060
leave
ret 8
Function at 0x40bf01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463fb7
mov eax, dword fs:[0]
push eax
mov eax, 0x10ac
call fcn.004424d0
mov eax, dword [0x487db8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10a9]
push eax
lea ecx, [ebp - 0x1050]
mov dword [ebp - 0x10b8], ebx
mov dword [ebp - 0x1050], 0x4745e4
mov dword [ebp - 0x1028], 0x46ef78
call fcn.004033a0
or dword [ebp - 0x10b0], 0xffffffff
mov dword [ebp - 4], ebx
add esi, 4
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x40bf81
mov esi, dword [esi]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c079
lea ecx, [ebp - 0x10b0]
call fcn.0040f8d7
lea eax, [ebp - 0x10a8]
push eax
mov dword [ebp - 0x10b0], esi
call fcn.0043b9b4
pop ecx
push ebx
lea eax, [ebp - 0x10b4]
push eax
push 0x1000
lea eax, [ebp - 0x1020]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c005
push dword [ebp - 0x10b4]
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x10a8]
push eax
call fcn.0043c099
add esp, 0xc
cmp dword [ebp - 0x10b4], 0
ja 0x40bfc1
lea eax, [ebp - 0x10a8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0043b937
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
lea eax, [ebp - 0x1050]
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call fcn.00403190
add esp, 0x50
push ebx
lea eax, [ebp - 0x1050]
push eax
mov ecx, edi
mov dword [edi], 0x4745e4
mov dword [edi + 0x28], 0x46ef78
call fcn.004043d0
lea ecx, [ebp - 0x10b0]
call fcn.0040f8d7
lea ecx, [ebp - 0x1050]
call fcn.00401500
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 - 0x10]
xor ecx, ebp
call fcn.00440060
leave
ret 8
Function at 0x40f4e6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x487db8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
movzx ecx, word [eax + 0x50]
cmp ecx, dword [ebp + 8]
jne 0x40f50e
movzx eax, word [eax + 0x56]
cmp ax, 0xffff
jne 0x40f54f
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40f549
lea eax, [ebp - 0x2c]
push eax
call fcn.00442209
pop ecx
push 2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x40f55e
mov ecx, dword [esi]
mov ax, word [ebp - 0x4c]
mov word [ecx + 0x56], ax
mov eax, dword [esi]
mov ax, word [eax + 0x56]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00440060
leave
ret 4
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40f549
xor eax, eax
jmp 0x40f54f
Function at 0x4152f8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x52]
push edi
mov word [esi + 0xc], 0
call fcn.004182c0
test al, al
je 0x41531f
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x50], ax
jmp 0x415397
mov ax, word [ebp + 8]
test ax, ax
jne 0x41533a
cmp dword [esi + 0x40], 4
jne 0x41533a
mov ecx, esi
lea edi, [esi + 0x50]
call fcn.004160b0
jmp 0x41533d
lea edi, [esi + 0x50]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.004182c0
test al, al
je 0x415352
mov byte [esi + 0xd], 1
jmp 0x415397
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.004182c0
test al, al
jne 0x415397
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.004182c0
test al, al
jne 0x415397
call fcn.00436a1d
push edi
mov ecx, esi
mov word [edi], ax
call fcn.004182c0
test al, al
jne 0x415397
mov ax, word [esi + 0x54]
mov word [edi], ax
pop edi
pop esi
pop ebp
ret 4
Function at 0x415aa4
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebx + 0xa8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp + 0x10], edi
test edi, edi
je 0x415bdf
push 0x1c
pop eax
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
mov ecx, esi
cmovne ecx, dword [ebp - 0x1c]
push ebx
push str..debug
mov dword [ebp - 0xc], ecx
call fcn.0041660a
pop ecx
pop ecx
test eax, eax
je 0x415b11
cmp dword [eax + 0xc], edi
jne 0x415b11
mov ecx, dword [eax + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebx + 0xac]
mov dword [ebp + 0x10], ecx
add edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
jmp 0x415b73
push ebx
push str..rdata
call fcn.0041660a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x415b3b
push ebx
push str..text
call fcn.0041660a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x415bdf
mov eax, dword [ebx + 0xac]
push 0x1c
xor edx, edx
pop ecx
mov dword [ebp - 8], eax
div ecx
mov ebx, eax
test ebx, ebx
je 0x415bdf
mov ecx, dword [edi + 0x10]
add ecx, dword [edi + 0xc]
mov edx, dword [ebp + 0x10]
cmp edx, ecx
ja 0x415bdf
sub edx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 0x10], eax
lea edi, [eax + ecx]
mov eax, edi
sub eax, ecx
cmp eax, dword [ebp - 0xc]
jbe 0x415bc4
cmp dword [ebp + 8], esi
je 0x415bc4
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
imul eax, dword [ebp - 0x30]
add ecx, edx
push ecx
push eax
push esi
push 4
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x415bdf
lea ecx, [ebp - 4]
call fcn.0041ed0d
mov dword [ebp - 4], edi
sub edi, dword [ebp - 0xc]
add edi, dword [ebp + 0x10]
test ebx, ebx
je 0x415bdf
add edi, 0x10
mov eax, dword [edi + 8]
add eax, dword [edi]
cmp eax, dword [ebp + 0x14]
jbe 0x415bd7
add esi, dword [edi]
push 0x1c
pop eax
add edi, eax
dec ebx
jne 0x415bcb
lea ecx, [ebp - 4]
call fcn.0041ed0d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418238
Capabilities:
Read .ini file

Disassembly:
push 0x38
mov eax, 0x465901
call fcn.004414e8
mov edi, ecx
lea esi, [edi + 4]
lea eax, [ebp - 0x40]
xor ebx, ebx
mov dword [ebp - 0x44], ebx
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00409b17
add eax, 4
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x44], 1
jb 0x418275
mov eax, dword [eax]
push eax
push ebx
push str.AllUsers
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x418294
cmp byte [edi + 0x258], 0
je 0x4182a1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp byte [eax + 0x1c], 0
je 0x4182a3
mov bl, 1
lea ecx, [ebp - 0x40]
call fcn.00401500
xor eax, eax
mov ecx, 0x80042002
test bl, bl
cmovne eax, ecx
call fcn.00441497
ret
Function at 0x418632
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov edi, ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x41867d
lea ecx, [ebp - 0xc]
call fcn.00403220
mov edi, esi
mov dword [ebp - 0xc], edi
cmp esi, 0xffffffff
je 0x4187a4
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4187a4
lea ecx, [ebp - 8]
call fcn.00403220
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
push eax
push ebx
push ebx
push 4
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4187a4
lea ecx, [ebp - 4]
call fcn.0041ed0d
mov eax, 0x5a4d
mov dword [ebp - 4], esi
cmp word [esi], ax
jne 0x41876f
mov eax, dword [esi + 0x3c]
add eax, esi
push 0xf8
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x418768
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
jne 0x418768
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x18], ecx
jae 0x418772
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
push ebx
push ebx
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
cmp esi, eax
je 0x41873b
lea ecx, [ebp - 4]
call fcn.0041ed0d
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], esi
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x418768
mov eax, dword [esi + 0x3c]
add eax, esi
push 0xf8
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x418768
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
je 0x418772
mov ebx, 0xc1
jmp 0x4187ac
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41877e
mov dword [ecx], esi
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41878a
mov dword [ecx], edi
mov dword [ebp - 0xc], ebx
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x418799
mov ecx, dword [ebp - 0x14]
mov dword [edx], ecx
mov dword [ebp - 8], ebx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4187ac
mov dword [ecx], eax
jmp 0x4187ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.0041ed0d
lea ecx, [ebp - 8]
call fcn.00403220
lea ecx, [ebp - 0xc]
call fcn.00403220
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41b0be
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x487db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x41c], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004400d0
movzx eax, word [esi]
add esp, 0xc
push 0x5c
pop ecx
cmp ax, cx
jne 0x41b148
cmp word [esi + 2], cx
jne 0x41b148
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x46d690
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x41b16a
mov word [ebp - 0x414], ax
mov ax, word [esi + 2]
mov word [ebp - 0x412], ax
xor eax, eax
mov word [ebp - 0x410], cx
mov word [ebp - 0x40e], ax
push dword [ebp - 0x41c]
cmp word [ebp - 0x20c], di
push dword [ebp - 0x428]
lea ecx, [ebp - 0x414]
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp word [ebp - 0x20c], di
mov esi, eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
lea ecx, [ebp - 0x20c]
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x41b1e7
mov ecx, dword [ebp - 0x420]
imul ecx, dword [ebp - 0x418]
mov dword [ebx], ecx
test esi, esi
je 0x41b1f2
test eax, eax
je 0x41b1f2
xor edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440060
leave
ret
Function at 0x41b8d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x466050
call fcn.00441554
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x41b955
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41b955
call fcn.004141d7
mov esi, eax
jmp 0x41ba2c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41b978
call fcn.004141d7
jmp 0x41ba1f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x41b96e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x41b9a8
mov esi, 0x8007000e
jmp 0x41ba21
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00413ea2
jmp 0x41b9ce
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x41b9a1
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x41b96e
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0041b79f
mov esi, eax
test edi, edi
je 0x41ba2c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41ba45
lea ecx, [ebp - 0x418]
call fcn.004157ac
mov eax, esi
call fcn.004414a6
ret 0x10