joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043da0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10043dd3
push esi
call fcn.10052140
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x10043dcc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x10043e59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10043e42
mov eax, dword [esi + 8]
test eax, eax
je 0x10043df7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x10043e3e
cmp eax, 2
je 0x10043e42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10043dea
cmp eax, 3
je 0x10043e1d
cmp eax, 1
jne 0x10043dea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x10043dea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x10043dea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10043e80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10043e68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10043e80
add esp, 4
pop esi
ret

Function at 0x100446f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x10044711
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x10044711
mov eax, dword [eax + 0x44]
test eax, eax
je 0x10044711
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10044b60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x10044b6b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x10044c6e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x10084f88]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10084f88]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10084f88]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10084f88]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10084f88]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10084f88]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10084f88]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10084f88]
xor eax, edx
inc ecx
dec edi
jne 0x10044b86
pop edi
test esi, esi
je 0x10044c90
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10084f88]
xor eax, edx
inc ecx
dec esi
jne 0x10044c72
pop esi
pop ebx
not eax
ret
Function at 0x100723fa
Capabilities:
Get graphical window text

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

Function at 0x10073ae8
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 0x10073b2a
call fcn.10079484
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10073b2a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10073b21
xor eax, eax
jmp 0x10073b32
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10073b38
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x14
mov eax, dword [0x456008]
movzx ecx, word [0x440034]
mov edi, dword [0x440030]
xor esi, esi
lea edx, [ebp - 0x14]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
mov word [edx + 4], cx
mov dword [edx], edi
mov dword [eax], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401060
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x401068
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40107d
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x1c], 0
xor edi, edi
test esi, esi
jne 0x401086
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004077dd
mov eax, edi
add esp, 0x14
pop esi
pop edi
pop ebp
ret
Function at 0x4012eb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [0x456008]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov dword [eax], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401321
cmp dword [ebp - 0xc], 0x103
jne 0x4013a6
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x401362
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4013a6
mov esi, eax
push str._twait_failure
push 0x458250
call fcn.004013b6
add esp, 8
mov ecx, eax
push esi
call fcn.004015a4
push 0x440138
push eax
jmp 0x40136c
push str._tfailure
push 0x458250
call fcn.004013b6
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
push eax
call fcn.004015a4
mov esi, eax
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add ecx, esi
push 0xa
call fcn.0040613e
movsx eax, al
mov ecx, esi
push eax
call fcn.004060a0
mov ecx, esi
call fcn.004037e4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004077dd
add esp, 8
pop esi
pop ebp
ret
Function at 0x4017c2
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x380
mov eax, dword [0x456008]
lea esi, [esp + 0x360]
xor eax, ebp
mov dword [esp + 0x378], eax
push esi
call fcn.004071dc
add esp, 4
cmp dword [esi + 0x10], 0
je 0x40196d
mov ebx, 0x104
lea eax, [esp + 0x25c]
push 0x440162
push str._sUI.exe
push ebx
push eax
call fcn.0040198f
add esp, 0x10
cmp dword [esp + 0x374], 0xf
jbe 0x40182a
mov esi, dword [esp + 0x360]
lea edi, [esp + 0x158]
lea eax, [esp + 0x25c]
push eax
push esi
push str._s_s
push ebx
push edi
call fcn.0040198f
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401948
lea esi, [esp + 0x54]
push edi
push str.__s__nodisconnect_exit
push 0x104
push esi
call fcn.0040198f
add esp, 0x10
xor eax, eax
cmp dword [esp + 0x374], 0xf
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], 0x44
movaps xmmword [esp], xmm0
jbe 0x4018d4
mov ecx, dword [esp + 0x360]
jmp 0x4018db
lea ecx, [esp + 0x360]
mov edx, esp
lea edi, [esp + 0x10]
push edx
push edi
push ecx
push eax
push 0x8000200
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40193d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str._failed_to_create_process_:
push 0x458250
call fcn.004013b6
add esp, 8
mov ecx, eax
push esi
call fcn.004015a4
mov esi, eax
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add ecx, esi
push 0xa
call fcn.0040613e
movsx eax, al
mov ecx, esi
push eax
call fcn.004060a0
mov ecx, esi
call fcn.004037e4
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x25c]
mov esi, eax
push eax
push str.killProcessHard_:__s_n
call fcn.004011ef
add esp, 8
push esi
push 0x401730
call fcn.00401244
add esp, 8
lea ecx, [esp + 0x360]
call fcn.004035dc
mov ecx, dword [esp + 0x378]
xor ecx, ebp
call fcn.004077dd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4019e7
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x380
mov eax, dword [0x456008]
lea esi, [esp + 0x360]
xor eax, ebp
mov dword [esp + 0x378], eax
push esi
call fcn.004071dc
add esp, 4
cmp dword [esi + 0x10], 0
je 0x401b6d
lea ebx, [esp + 0x25c]
mov eax, 0x104
push 0x440162
push str._sLauncher.exe
push eax
push ebx
call fcn.0040198f
add esp, 0x10
cmp dword [esp + 0x374], 0xf
jbe 0x401a4f
mov esi, dword [esp + 0x360]
lea edi, [esp + 0x158]
push ebx
push esi
push str._s_s
mov eax, 0x104
push eax
push edi
call fcn.0040198f
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401b6d
cmp byte [ebp + 8], 0
mov eax, str.__s__hide
mov ecx, str.__s__firststart
lea esi, [esp + 0x54]
cmovne ecx, eax
push edi
push ecx
push 0x104
push esi
call fcn.0040198f
add esp, 0x10
xor eax, eax
cmp dword [esp + 0x374], 0xf
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], 0x44
movaps xmmword [esp], xmm0
jbe 0x401b04
mov ecx, dword [esp + 0x360]
jmp 0x401b0b
lea ecx, [esp + 0x360]
mov edx, esp
lea edi, [esp + 0x10]
push edx
push edi
push ecx
push eax
push 0x8000200
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401b6d
push str._failed_to_create_process_:
push 0x458250
call fcn.004013b6
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
push eax
call fcn.004015a4
mov esi, eax
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add ecx, esi
push 0xa
call fcn.0040613e
movsx eax, al
mov ecx, esi
push eax
call fcn.004060a0
mov ecx, esi
call fcn.004037e4
lea ecx, [esp + 0x360]
call fcn.004035dc
mov ecx, dword [esp + 0x378]
xor ecx, ebp
call fcn.004077dd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401b8f
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x456008]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x401bfc
mov esi, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test eax, eax
jne 0x401bd0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
push eax
push 0x24
push ecx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ebx, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x401bfc
mov esi, dword [ebp - 0x30]
jmp 0x401bff
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077dd
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401c67
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x456008]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
call fcn.00401b8f
add esp, 4
cmp edi, 0x10
mov bl, 1
jne 0x401c95
cmp eax, 4
je 0x401d0f
cmp edi, 0x20
jne 0x401c9f
cmp eax, 1
je 0x401d0f
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x401d0f
push 0xf01ff
push esi
mov dword [ebp - 0x38], eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test eax, eax
jne 0x401cd1
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x10
jne 0x401ce3
xor eax, eax
push eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x401cfa
cmp edi, 0x20
mov edi, 0
jne 0x401cfc
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 0x38]
call esi
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077dd
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40226d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x118
mov eax, dword [0x456008]
mov esi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x11c]
push eax
push 0x20119
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4022c0
cmp eax, 2
jne 0x4023b1
push str.Key_not_found.
call fcn.0042d99e
add esp, 4
xor ebx, ebx
inc ebx
jmp 0x4023c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax - 1], 0x5c
lea edi, [esi + eax]
je 0x4022d7
mov word [edi], 0x5c
inc edi
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x124]
xor esi, esi
lea edx, [ebp - 0x114]
mov dword [eax], 0x104
push ecx
push esi
push esi
push esi
push eax
push edx
push esi
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402385
mov ecx, 0x208
mov eax, edi
lea edx, [ebp - 0x114]
mov bl, byte [edx]
test bl, bl
je 0x40232c
mov byte [eax], bl
lea ebx, [ebp + 0xf3]
inc eax
dec ecx
cmp edx, ebx
lea edx, [edx + 1]
jne 0x402315
lea edx, [eax - 1]
test ecx, ecx
cmovne edx, eax
mov byte [edx], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040226d
add esp, 8
test eax, eax
je 0x402385
lea eax, [ebp - 0x124]
mov dword [ebp - 0x118], 0x104
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x118]
push eax
lea ebx, [ebp - 0x114]
push ebx
push esi
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
mov eax, edi
mov ecx, 0x208
mov edx, ebx
je 0x402315
mov byte [edi - 1], 0
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x100
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
xor ebx, ebx
test eax, eax
sete bl
jmp 0x4023c0
push str.Error_opening_key.
call fcn.0042d99e
add esp, 4
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077dd
mov eax, ebx
add esp, 0x118
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40243e
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x120
mov eax, dword [0x456008]
lea esi, [ebp - 0x28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
call fcn.00407355
add esp, 4
cmp dword [esi + 0x10], 0
je 0x40251d
cmp dword [ebp - 0x14], 0xf
jbe 0x402473
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4024d7
mov edi, dword [ebp - 0x18]
add edi, 2
push 1
push edi
call fcn.0042c933
add esp, 8
cmp dword [ebp - 0x14], 0xf
mov esi, eax
jbe 0x40249c
mov eax, dword [ebp - 0x28]
jmp 0x40249f
lea eax, [ebp - 0x28]
push eax
push edi
push esi
call fcn.0042e01c
add esp, 0xc
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x12c]
mov word [esi + eax], 0
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], 3
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], eax
mov word [ecx + 0x10], 0x614
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea esi, [ebp - 0x28]
mov edi, 0xf
cmp dword [esi + 0x14], edi
mov eax, esi
jbe 0x4024e9
mov eax, dword [ebp - 0x28]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp - 0x14], edi
jbe 0x4024fb
mov esi, dword [ebp - 0x28]
lea edi, [ebp - 0x12c]
push esi
push str._s_settings
push 0x104
push edi
call fcn.0040198f
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x28]
call fcn.004035dc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077dd
add esp, 0x120
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407355
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x150
mov eax, dword [0x456008]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
push 0x104
push eax
push str._ProgramData_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edi, [ebp - 0x12c]
mov esi, 0xf
xor eax, eax
mov ecx, edi
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], eax
mov byte [edi], al
push 8
push 0x440162
call fcn.0040360a
lea ebx, [ebp - 0x15c]
xor eax, eax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], eax
mov byte [ebx], al
lea eax, [ebp - 0x114]
push eax
call fcn.0042e0d0
add esp, 4
mov ecx, ebx
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0040360a
mov ecx, ebx
push 1
push 0x440688
call fcn.00403c4c
movsd xmm0, qword [eax + 0x10]
mov ecx, 0
movsd qword [ebp - 0x134], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [ebp - 0x13c], xmm1
movsd qword [ebp - 0x144], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], cl
mov ecx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x134]
mov edx, dword [edi + 0x10]
mov ebx, dword [edi + 0x14]
mov esi, ecx
sub esi, eax
cmp edx, esi
jbe 0x40744b
mov esi, ebx
sub esi, edx
cmp esi, eax
jb 0x40744b
cmp ecx, 0xf
jbe 0x407471
mov edx, dword [ebp - 0x144]
jmp 0x407477
cmp ebx, 0xf
jbe 0x407456
mov edi, dword [ebp - 0x12c]
lea ecx, [ebp - 0x144]
push edx
push edi
call fcn.00403c4c
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov esi, dword [ebp + 8]
jmp 0x407492
lea edx, [ebp - 0x144]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x12c]
push eax
push edx
push 0
call fcn.00406ed0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esi], xmm0
movsd qword [esi + 8], xmm1
lea ecx, [ebp - 0x144]
movsd xmm0, qword [eax + 0x10]
movsd qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
call fcn.004035dc
lea ecx, [ebp - 0x15c]
call fcn.004035dc
lea ecx, [ebp - 0x12c]
call fcn.004035dc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077dd
mov eax, esi
add esp, 0x150
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40757a
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.00407bb0
mov edx, dword [0x456008]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x1018]
lea ebx, [ebp - 0x810]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x1014]
mov dword [esi], 0x800
mov dword [edx], 1
push esi
push ebx
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x407633
mov eax, dword [ebp - 0x1014]
mov esi, dword [ebp + 0xc]
cmp eax, 2
je 0x4075f1
mov edi, 0x3f4
cmp eax, 1
jne 0x407633
push ebx
call fcn.0042e552
add esp, 4
mov ecx, esi
push eax
push ebx
jmp 0x40762c
lea eax, [ebp - 0x1010]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
dec eax
mov edi, 0xea
cmp eax, 0x3ff
ja 0x407633
lea eax, [ebp - 0x1010]
mov edi, eax
push eax
call fcn.0042e552
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00406cf4
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077dd
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x40d619
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x43b070
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043b07b
Function at 0x402d63
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x403035
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ebp + 8]
call fcn.00402d63
test eax, eax
pop ecx
je 0x40304f
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x10
test eax, eax
je 0x403084
and byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00403035
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
leave
ret

Function at 0x4030e3
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
lea eax, [ebp - 0x248]
push esi
push eax
push dword [ebp + 0xc]
call fcn.00402fa6
pop ecx
lea eax, [ebp - 0x140]
pop ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40314b
push dword [ebp + 0x10]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [ebp + 8]
test eax, eax
je 0x40313f
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x403115
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 1
pop eax
jmp 0x40314d
xor eax, eax
pop esi
leave
ret

Function at 0x40328b
Capabilities:
Get common file path

Disassembly:
cmp byte [0x40e378], 0
push esi
mov esi, 0x40e378
jne 0x4032ab
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x40e480], eax
push esi
push dword [esp + 0xc]
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x40e480]
pop ecx
pop ecx
pop esi
ret

Function at 0x4032be
Capabilities:
Get common file path

Disassembly:
cmp byte [0x40e484], 0
push esi
mov esi, 0x40e484
jne 0x4032de
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x40e58c], eax
push esi
push dword [esp + 0xc]
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x40e58c]
pop ecx
pop ecx
pop esi
ret

Function at 0x4032f1
Capabilities:
Get common file path
Get file attributes

Disassembly:
cmp byte [0x40e590], 0
push esi
mov esi, 0x40e590
jne 0x40331e
push esi
call fcn.00402eee
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 1
je 0x40331e
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov eax, esi
pop esi
ret

Function at 0x403322
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x40def0
push 5
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret