joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478600
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x478626
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x47865e
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.00426500
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x4786b5
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x4786c4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x4786d5
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x479310
Capabilities:
Encode data using xor

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

Function at 0x47a4b1
Capabilities:
Parse pe header

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

Disassembly:
mov al, byte [esp + 8]
test al, al
jne 0x401294
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
ret
mov ecx, dword [esp + 4]
push ecx
call fcn.00401a60
add esp, 4
mov eax, 1
ret

Function at 0x4012b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4012ca
test al, 0x10
jne 0x4012ca
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4012e0
Capabilities:
Move file

Disassembly:
sub esp, 0x98
mov eax, dword [0x414110]
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x401349
push esi
mov esi, dword [esp + 0xa4]
test esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
je 0x401327
push 5
push 0
push esi
call edi
mov ecx, dword [esp + 0xa4]
push 5
push esi
push ecx
call edi
pop edi
pop esi
mov ecx, dword [esp + 0x94]
call fcn.00405500
add esp, 0x98
ret
test eax, eax
push str.wininit.ini
jne 0x401364
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
push edx
push eax
jmp 0x401374
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
push ecx
push edx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x94]
call fcn.00405500
add esp, 0x98
ret

Function at 0x4013a0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
push esi
mov esi, dword [esp + 0xc]
jne 0x4013c1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4013c1
test al, 0x10
jne 0x4013c1
xor eax, eax
pop esi
ret
mov eax, dword [esp + 8]
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop esi
ret
Function at 0x4013e0
Capabilities:
Check if file exists
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x40f9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd48
mov eax, dword [0x414110]
mov dword [esp + 0xd44], eax
mov eax, dword [esp + 0xd58]
push edi
push eax
lea ecx, [esp + 0x94c]
push str._s.
push ecx
call fcn.0040628e
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x94c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40155b
push ebp
push esi
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0xd68]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esp + 0xd5c], 0
lea ecx, [esp + 0x3c]
push 0x410260
push ecx
call fcn.00405b73
add esp, 8
test eax, eax
je 0x40153a
lea edx, [esp + 0x3c]
push 0x41025c
push edx
call fcn.00405b73
add esp, 8
test eax, eax
je 0x40153a
mov ecx, dword [esp + 0xd64]
lea eax, [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0x558]
push str._s_s
push edx
call fcn.0040628e
lea eax, [esp + 0x4c]
push eax
push esi
lea ecx, [esp + 0x168]
push str._s_s
push ecx
call fcn.0040628e
mov al, byte [esp + 0x30]
add esp, 0x20
test al, 0x10
lea edx, [esp + 0x550]
je 0x401529
push esi
push edx
call fcn.00405c07
add esp, 8
test eax, eax
je 0x40153a
lea eax, [esp + 0x150]
push eax
call ebp
cmp eax, 0xffffffff
je 0x4014ff
test al, 0x10
jne 0x40150f
push 0
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x150]
push edx
lea eax, [esp + 0x554]
push eax
call fcn.004013e0
add esp, 8
jmp 0x40153a
push 3
lea ecx, [esp + 0x154]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401461
test edi, edi
pop esi
pop ebp
je 0x40155b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xd4c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xd48]
pop edi
call fcn.00405500
add esp, 0xd54
ret
Function at 0x401640
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x414110]
push ebx
push esi
push edi
mov dword [esp + 0x414], eax
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0xff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea esi, [esp + 0x10]
je 0x401726
mov al, byte [ecx]
test al, al
je 0x401726
lea esp, [esp]
cmp al, 0x2f
je 0x40169c
cmp al, 0x5c
je 0x40169c
mov byte [esi], al
jmp 0x40169f
mov byte [esi], 0x5c
mov al, byte [ecx + 1]
inc esi
inc ecx
test al, al
jne 0x401690
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov byte [esi], al
mov ebx, esi
mov al, byte [esi - 1]
dec esi
test al, al
je 0x40170e
lea ebx, [ebx]
cmp byte [esi], 0x5c
je 0x4016cd
mov al, byte [esi - 1]
dec esi
test al, al
jne 0x4016c0
cmp byte [esi], 0
je 0x40170e
lea ecx, [esp + 0x10]
push ecx
mov byte [esi], 0
call edi
cmp eax, 0xffffffff
je 0x4016b2
test al, 0x10
je 0x4016b2
mov byte [esi], 0x5c
inc esi
cmp esi, ebx
jae 0x40170e
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi], 0
jne 0x401709
push 0
lea edx, [esp + 0x14]
push edx
call edi
cmp eax, 1
jne 0x401726
mov byte [esi], 0x5c
inc esi
cmp esi, ebx
jb 0x4016f3
mov eax, 1
mov ecx, dword [esp + 0x414]
call fcn.00405500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x414]
xor eax, eax
call fcn.00405500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401740
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
ret
Function at 0x401a60
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x544
mov eax, dword [0x414110]
push esi
mov esi, dword [esp + 0x54c]
push edi
push esi
mov dword [esp + 0x54c], eax
lea eax, [esp + 0x14c]
push str._s.
push eax
call fcn.0040628e
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401b4a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x38]
push 0x410260
push eax
call fcn.00405b73
add esp, 8
test eax, eax
je 0x401b2b
lea ecx, [esp + 0x38]
push 0x41025c
push ecx
call fcn.00405b73
add esp, 8
test eax, eax
je 0x401b2b
lea edx, [esp + 0x38]
push edx
push esi
lea eax, [esp + 0x154]
push str._s_s
push eax
call fcn.0040628e
mov al, byte [esp + 0x1c]
add esp, 0x10
test al, 0x10
je 0x401b17
lea ecx, [esp + 0x14c]
push ecx
call fcn.00401a60
add esp, 4
jmp 0x401b2b
push 0
lea edx, [esp + 0x150]
push 0
push edx
call fcn.00401760
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push edi
call ebp
test eax, eax
jne 0x401ab6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
mov ecx, dword [esp + 0x548]
pop edi
pop esi
call fcn.00405500
add esp, 0x544
ret

Function at 0x402120
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4102c8
push 0x406b78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1c]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4021ad
push 1
push str.SeDebugPrivilege
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00402070
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, edi
je 0x4021ad
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4021ad
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004021d2
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4021f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x33c
mov eax, dword [0x414110]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x33c], eax
push esi
xor eax, eax
test ebx, ebx
push edi
je 0x40237a
mov byte [esp + 0x140], al
mov ecx, 0x7f
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x140]
stosb byte es:[edi], al
mov eax, ebx
sub edx, ebx
jmp 0x402240
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402240
mov eax, ebx
xor edi, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402251
sub eax, edx
mov dword [esp + 0x10], eax
je 0x4022ad
mov eax, ebx
lea ecx, [esp + 0x140]
sub eax, ecx
mov dword [esp + 0x10], eax
jmp 0x402280
mov eax, dword [esp + 0x10]
jmp 0x402280
lea esi, [esp + edi + 0x140]
movsx edx, byte [eax + esi]
push edx
call fcn.00406dce
mov byte [esi], al
mov eax, ebx
add esp, 4
inc edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022a0
sub eax, edx
cmp edi, eax
jb 0x402271
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x40237a
mov ecx, 0x49
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40236f
lea ecx, [ecx]
lea eax, [esp + 0x3c]
xor esi, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402300
sub eax, edx
mov dword [esp + 0x14], eax
je 0x40233d
nop
movsx ecx, byte [esp + esi + 0x3c]
push ecx
call fcn.00406dce
mov byte [esp + esi + 0x40], al
lea eax, [esp + 0x40]
add esp, 4
inc esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402330
sub eax, edx
cmp esi, eax
jb 0x402310
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00406c80
add esp, 8
test eax, eax
jne 0x402367
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4022f0
jmp 0x40236f
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x344]
call fcn.00405500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402390
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4102d8
push 0x406b78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [0x414110]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x14c], esi
cmp esi, 0xffffffff
jne 0x4023dc
xor eax, eax
jmp 0x40247c
mov dword [ebp - 0x148], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x144], edi
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x140]
rep stosd dword es:[edi], eax
mov ebx, 0x128
mov dword [ebp - 0x144], ebx
lea eax, [ebp - 0x144]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40246a
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x120]
push edx
call fcn.00405c07
add esp, 8
test eax, eax
jne 0x402444
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x13c]
mov dword [eax], ecx
mov dword [ebp - 0x148], 1
jmp 0x40246a
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x144]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x144], ebx
lea edx, [ebp - 0x144]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402416
mov dword [ebp - 4], 0xffffffff
call fcn.0040249b
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00405500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4024b0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4024b9
ret
lea ecx, [esp + 4]
push ecx
push eax
mov dword [esp + 0xc], 0
call fcn.00402390
add esp, 8
test eax, eax
jne 0x4024d9
mov eax, 1
ret
mov edx, dword [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00402120

Function at 0x402690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc14
mov eax, dword [0x414110]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc14], eax
push esi
xor eax, eax
test ebx, ebx
push edi
mov edx, ecx
je 0x402727
mov edx, dword [edx]
mov ecx, 0x300
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
xor esi, esi
push esi
push ecx
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0xbff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402722
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov esi, 1
call fcn.004055fe
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0xc1c]
call fcn.00405500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebx], 0
mov eax, esi
mov ecx, dword [esp + 0xc1c]
call fcn.00405500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402a40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x18]
push edx
push eax
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x74]
or eax, 0x8000000
push eax
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x44], str.winsta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x402aa3
add esp, 0x54
ret
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x402ab7
mov edx, dword [esp]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret

Function at 0x402ae0
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
ret

Function at 0x402b00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x414110]
mov dword [esp + 0x400], eax
lea eax, [esp]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x400
ja 0x402b5d
test eax, eax
je 0x402b5d
mov edx, dword [esp + 0x408]
lea eax, [esp]
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402b40
mov ecx, dword [esp + 0x400]
call fcn.00405500
add esp, 0x404
ret
mov edx, dword [str.c:_temp]
mov eax, dword [esp + 0x408]
mov dword [eax], edx
mov ecx, dword [0x41030c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x400]
call fcn.00405500
add esp, 0x404
ret

Function at 0x402cb0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
push edi
call fcn.004024b0
add esp, 4
test eax, eax
jne 0x402d01
call ebx
push eax
push edi
push 0x41039c
push 0x41037c
push 0x4150f8
call fcn.00401fb0
add esp, 0x14
push 0xa
call ebp
inc esi
cmp esi, 2
jl 0x402cc6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x4047a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fb58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x414110]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x50]
xor ecx, ecx
mov edi, 0x10
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ecx
jb 0x4047e1
mov eax, dword [esi + 0x3c]
jmp 0x4047e4
lea eax, [esi + 0x3c]
cmp eax, ecx
jbe 0x404862
push 0xffffffffffffffff
push ecx
lea eax, [esi + 0x1c]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00401d50
push 7
push str.id.log
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004030d0
cmp dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x2c]
jae 0x404822
lea ecx, [ebp - 0x2c]
cmp dword [esi + 0x50], edi
jb 0x40482c
mov eax, dword [esi + 0x3c]
jmp 0x40482f
lea eax, [esi + 0x3c]
push 1
push ecx
push eax
call fcn.00401740
mov eax, dword [esi + 0x50]
add esp, 0xc
cmp eax, edi
jb 0x404847
mov esi, dword [esi + 0x3c]
jmp 0x40484a
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x18], edi
jb 0x404862
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406a56
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00405500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40fb7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x414110]
push ebx
push esi
push edi
mov esi, ecx
push str.id.log
mov dword [esp + 0x138], eax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00403280
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ebx, 0x10
cmp eax, ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x144], 0
jae 0x4048f5
lea eax, [esp + 0x10]
push eax
call fcn.004012b0
add esp, 4
test eax, eax
je 0x40497e
lea edx, [esp + 0x28]
push edx
xor eax, eax
mov byte [esp + 0x2c], 0
mov ecx, 0x41
lea edi, [esp + 0x2d]
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
jmp 0x404930
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404930
sub eax, edx
push eax
lea eax, [esp + 0x2c]
add esi, 0x38
push eax
mov ecx, esi
call fcn.00401e40
push 7
push str.id.log
mov ecx, esi
call fcn.004030d0
cmp dword [esi + 0x18], ebx
jb 0x404961
mov esi, dword [esi + 4]
jmp 0x404964
add esi, 4
cmp dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
jae 0x404972
lea eax, [esp + 0x10]
push 0
push esi
push eax
call fcn.00401740
add esp, 0xc
cmp dword [esp + 0x24], ebx
jb 0x404991
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00406a56
add esp, 4
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x134]
call fcn.00405500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404ca0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x414110]
mov dword [esp + 0x424], eax
push esi
push edi
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0xff
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x400
push eax
call section..text
lea edi, [esp + 0x30]
add esp, 8
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404ce6
mov ecx, dword [str._bmploader.log]
mov edx, dword [0x410aa0]
mov eax, dword [0x410aa4]
mov dword [edi], ecx
mov cx, word [0x410aa8]
mov dword [edi + 4], edx
mov dl, byte [0x410aaa]
mov dword [edi + 8], eax
mov word [edi + 0xc], cx
push 0x2c
mov byte [edi + 0xe], dl
call fcn.00404e40
add esp, 4
test eax, eax
je 0x404d34
mov ecx, eax
call fcn.00404bd0
mov esi, eax
jmp 0x404d36
xor esi, esi
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00404c10
push str.SIM_D95AF572_67E0_4751_9F03_547DE35B77B9
push 0
push 0
mov dword [0x4150f8], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404d83
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x42c]
call fcn.00405500
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.00402ec0
mov esi, eax
test esi, esi
jne 0x404dbc
push 0x410a58
push 0x41037c
push 0x4150f8
call fcn.00401fb0
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [esp + 0x42c]
call fcn.00405500
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
mov edx, dword [ebp + 0x10]
push edx
mov ecx, esi
call fcn.00402ba0
test eax, eax
jne 0x404e01
mov ecx, esi
call fcn.00403d30
test eax, eax
je 0x404e18
push 0x410a44
jmp 0x404e06
push 0x410a2c
push 0x41037c
push 0x4150f8
call fcn.00401fb0
add esp, 0xc
mov ecx, dword [esp + 0x42c]
xor eax, eax
call fcn.00405500
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10