joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b3c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x492f3b
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x33c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34c]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
call fcn.00402950
push 0x207
lea eax, [esp + 0x131]
push ebx
mov dword [esp + 0x34c], ebx
push eax
mov byte [esp + 0x138], bl
call fcn.004553e0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push ebx
push ecx
mov dword [esp + 0x2c], 0x208
mov dword [esp + 0x28], ebx
call fcn.004553e0
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00417a50
lea eax, [esp + 0x24]
or edi, 0xffffffff
add eax, edi
nop
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40b470
mov edx, dword [0x4aeb0c]
mov ecx, dword [0x4aeb10]
mov dword [eax], edx
mov edx, dword [0x4aeb14]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x24]
push eax
call fcn.00417bb0
cmp eax, ebx
jg 0x40b4c7
push 0x4aefa4
mov ecx, ebp
call fcn.00402950
mov dword [esp + 0x344], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
jmp 0x40b5a2
mov esi, eax
sub esi, 6
neg esi
sbb esi, esi
and esi, 0x100
lea ecx, [eax + eax*2]
shl ecx, 6
add esi, 0x100
add ecx, 0x4c7720
jne 0x40b4ee
xor eax, eax
jmp 0x40b4ff
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40b4f3
sub eax, edi
or edi, 0xffffffff
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402570
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40b52b
push ebx
lea ecx, [esp + 0x18]
call fcn.00402b30
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
or esi, 0x20019
push esi
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40b54f
push 0x4aefa4
jmp 0x40b585
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
push str.DisplayVersion
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40b57d
push 0x4aefa4
jmp 0x40b585
lea ecx, [esp + 0x12c]
push ecx
mov ecx, ebp
call fcn.00402950
mov dword [esp + 0x344], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x40b5b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x33c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.0044e1ea
add esp, 0x334
ret
Function at 0x40ce10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x55c
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x558], eax
push ebp
mov ebp, dword [esp + 0x564]
push esi
push edi
call fcn.0041fa90
push 0
push 0x20
lea eax, [esp + 0x260]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40ce5f
push 0
lea ecx, [esp + 0x25c]
push 0
push ecx
call fcn.0041fb30
add esp, 0xc
push 0x18c
lea edx, [esp + 0x14]
push 0
push edx
call fcn.004553e0
add esp, 0xc
push 0x1ff
lea eax, [esp + 0x365]
push 0
push eax
mov byte [esp + 0x36c], 0
call fcn.004553e0
add esp, 0xc
push 0xb4
lea ecx, [esp + 0x1a4]
push 0
push ecx
mov dword [esp + 0xa4], 0
call fcn.004553e0
add esp, 0xc
mov esi, str.IDS_DELETE_TEMP_FILE
mov ecx, str.CheckRes
call fcn.0041c800
lea edx, [esp + 0x1a0]
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x40ced0
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x1a0]
mov byte [esp + eax + 0x9c], cl
inc eax
test cl, cl
jne 0x40cee0
lea eax, [esp + 0x360]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cf00
lea edi, [esp + 0x9c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40cf11
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
je 0x40cf3c
lea edx, [esp + 0x10]
push edx
mov eax, ebp
call fcn.00417900
add esp, 4
mov ecx, dword [esp + 0x564]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0044e1ea
add esp, 0x55c
ret 4

Function at 0x40e280
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0x10]
push esi
push eax
mov dword [esp + 0x14], 0x3c
call fcn.004553e0
mov ecx, dword [esp + 0x54]
add esp, 0xc
lea edx, [esp + 8]
push edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], str.__S
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40e2f6
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e2ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
pop esi
add esp, 0x40
ret 4
mov edx, dword [esp + 0x40]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
call esi
cmp dword [esp + 4], 0x103
jne 0x40e33e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 8]
push eax
push ecx
call esi
push 0x1f4
call edi
cmp dword [esp + 8], 0x103
je 0x40e320
pop edi
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e35e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
pop esi
add esp, 0x40
ret 4
Function at 0x40e370
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x49246b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.004553e0
add esp, 0xc
push 0
push 0x2a
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x4aefa4
lea ecx, [esp + 8]
call fcn.00402950
lea eax, [esp + 8]
mov dword [esp + 0x118], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e3f1
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
call fcn.00402570
push 0x1a
push 0x4b06d4
lea ecx, [esp + 0xc]
call fcn.00402570
mov eax, dword [esp + 4]
cmp dword [eax - 4], 1
jle 0x40e434
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 8]
call fcn.00402a70
mov eax, dword [esp + 4]
push 1
push 0
push eax
push str.explorer.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [esp + 0x118], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e476
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0044e1ea
add esp, 0x118
ret

Function at 0x40f0b0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491470
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c3aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 1
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x40f116
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4bb830
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], eax
call fcn.0045578e
xor eax, eax
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x20]
push 8
push eax
mov byte [ebp - 0x1c], bl
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x40f160
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4bb830
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], eax
call fcn.0045578e
mov eax, 0x40f15b
ret
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x40f16f
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044e1ea
mov esp, ebp
pop ebp
ret 4
Function at 0x40ff60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xd4]
sub esp, 0xc
push ebx
push esi
push edi
push ecx
lea ecx, [esp + 0x14]
call fcn.00442d85
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x100
cmp dword [esi + 4], edi
jne 0x40ffb9
push 0x74
call ebx
test ax, ax
jge 0x40ffb9
cmp dword [esp + 0x14], 0
je 0x40ffae
mov edx, dword [esp + 0x10]
push edx
push 0
call fcn.00442496
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x410031
cmp dword [esi + 4], edi
jne 0x410031
push 0x4f
call ebx
test ax, ax
jl 0x40ff9b
cmp dword [esi + 4], edi
jne 0x410031
push 0x50
call ebx
test ax, ax
jge 0x410005
cmp dword [esp + 0x14], 0
je 0x40fffa
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00442496
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 4], edi
jne 0x410031
push 0x4e
call ebx
test ax, ax
jge 0x410031
cmp dword [esp + 0x14], 0
je 0x410026
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.00442496
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 8], 8
je 0x40ff9b
cmp dword [esp + 0x14], 0
je 0x41004e
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00442496
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411e80
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push edi
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x411e98
pop edi
pop ebx
pop ecx
ret
push esi
push edi
call fcn.0042e6a6
mov esi, eax
add esp, 4
test esi, esi
je 0x411f26
push edi
push 0
push esi
call fcn.004553e0
add esp, 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411f1d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x411f1d
push edi
push eax
push esi
call fcn.00457530
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x411f1d
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
jne 0x411f2d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042e69b
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp edi, dword [esp + 0x10]
jne 0x411f1e
call fcn.0042e69b
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x412c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49351b
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x4c3aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x117]
push ebx
push eax
mov dword [ebp - 0x324], ebx
mov byte [ebp - 0x118], bl
call fcn.004553e0
add esp, 0xc
push 0x207
lea ecx, [ebp - 0x31f]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp - 0x320], bl
call fcn.004553e0
add esp, 0xc
push 0x208
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x320]
dec eax
jmp 0x412cb0
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x412cb0
mov ecx, dword [str.Driversetchosts]
mov edx, dword [0x4b0dd0]
mov dword [eax], ecx
mov ecx, dword [0x4b0dd4]
mov dword [eax + 4], edx
mov edx, dword [0x4b0dd8]
mov dword [eax + 8], ecx
mov cx, word [0x4b0ddc]
mov dword [eax + 0xc], edx
mov dl, byte [0x4b0dde]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
lea eax, [ebp - 0x320]
push 0x4b0cb8
push eax
call fcn.0044f946
mov esi, eax
add esp, 8
mov dword [ebp - 0x328], esi
cmp esi, ebx
jne 0x412d32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4bb7fc
lea ecx, [ebp - 0x330]
push ecx
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x330], eax
call fcn.0045578e
mov edi, 0xf
jmp 0x412d46
mov esi, dword [ebp - 0x328]
push esi
call fcn.0045036f
add esp, 4
test eax, eax
jne 0x412e45
push esi
lea edx, [ebp - 0x118]
push 0x100
push edx
call fcn.004503d7
sub esp, 0x10
mov ecx, esp
lea eax, [ebp - 0x118]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x32c], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x412d86
sub eax, esi
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00402450
call fcn.00412840
add esp, 0x1c
cmp eax, ebx
jne 0x412d40
sub esp, 0x1c
mov ecx, esp
mov eax, str.cqrcb.com
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x32c], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x412dc4
sub eax, esi
push eax
mov eax, str.cqrcb.com
push eax
call fcn.00402450
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 1
lea eax, [ebp - 0x118]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x334], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x412e00
sub eax, esi
push eax
lea edx, [ebp - 0x118]
push edx
call fcn.00402450
mov byte [ebp - 4], bl
call fcn.004129a0
add esp, 0x38
cmp eax, ebx
jne 0x412e2c
mov eax, 3
jmp 0x412e58
mov dword [ebp - 0x324], ebx
jmp 0x412d40
cmp esi, ebx
je 0x412e52
push esi
call fcn.0044fdf3
add esp, 4
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044e1ea
mov esp, ebp
pop ebp
ret
Function at 0x413860
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x492021
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x28]
xor edx, edx
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x44]
mov byte [esi + 0x3f], dl
lea ecx, [esi + 0x40]
mov dword [ecx], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], edx
lea ecx, [esi + 0x60]
mov byte [esp + 0x18], 1
call fcn.00413d50
mov ecx, dword [esp + 0x30]
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x20], 2
call fcn.0047f270
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x18

Function at 0x413be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491fb1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x14], edi
mov edi, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x38]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x5c]
mov byte [esi + 0x57], cl
mov dword [esi + 0x58], eax
lea edx, [esi + 0x58]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1c], 1
call fcn.00413d50
mov ecx, dword [esp + 0x3c]
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x24], 2
call fcn.00480630
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x24
Function at 0x417790
Capabilities:
Create directory

Disassembly:
sub esp, 0x114
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x110], eax
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.004553e0
add esp, 0xc
lea ecx, [esp + 4]
call fcn.00417a50
lea eax, [esp + 4]
dec eax
jmp 0x4177d0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4177d0
mov ecx, dword [str.Log_]
mov dl, byte [0x4b1130]
mov dword [eax], ecx
lea ecx, [esp + 4]
mov byte [eax + 4], dl
call fcn.0041c1c0
test eax, eax
jne 0x417802
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
je 0x41781a
lea eax, [esp + 4]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417810
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0044e1ea
add esp, 0x114
ret

Function at 0x417830
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x84
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x80], eax
push 0x7f
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.004553e0
push 0x7f
lea ecx, [esp + 0x10]
push 0x20
push ecx
call fcn.004553e0
mov eax, edi
add esp, 0x18
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x417870
sub eax, ecx
push eax
lea edx, [esp + 4]
push edi
push edx
call fcn.00457530
lea eax, [esp + 0xc]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417890
mov ecx, dword [esi]
push ecx
sub eax, edx
push eax
lea edx, [esp + 8]
push 1
push edx
call fcn.00450a4c
mov eax, dword [esi]
push eax
push 1
push 1
push str._t_t_t_t_t_t
call fcn.00450a4c
mov eax, ebx
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4178c2
mov ecx, dword [esi]
push ecx
sub eax, edx
push eax
push 1
push ebx
call fcn.00450a4c
mov edx, dword [esi]
push edx
push 1
push 2
push 0x4afe28
call fcn.00450a4c
mov ecx, dword [esp + 0xa0]
add esp, 0x20
xor ecx, esp
call fcn.0044e1ea
add esp, 0x84
ret
Function at 0x417900
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
test edi, edi
jne 0x417a2e
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
mov edi, vtable.CWindowIterator.0
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
neg ecx
or ecx, eax
push ecx
call fcn.0042e6a6
add esp, 4
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push 0x41c4e0
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x10], vtable.CMainWindowIterator.0
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], 0
test eax, eax
je 0x4179e9
cmp dword [esp + 0x14], 0
jbe 0x4179e9
mov eax, dword [eax]
mov dword [esp + 0x18], 1
test eax, eax
je 0x4179e9
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
push ecx
push 0x8907
push 0x8907
push eax
call esi
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x417a1b
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x14]
jae 0x417a1b
mov eax, dword [ecx + edx*4]
inc edx
mov dword [esp + 0x18], edx
test eax, eax
jne 0x4179a7
push ecx
mov dword [esp + 0xc], edi
call fcn.0042e69b
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00439baf
test eax, eax
je 0x4179fd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x4179ff
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x20]
push ecx
push 0x8907
push 0x8907
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0xc]
push ecx
mov dword [esp + 0xc], edi
call fcn.0042e69b
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
push 0x8907
push 0x8907
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417a50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x10], 0
call fcn.004553e0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test esi, esi
je 0x417add
lea eax, [esp + 4]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417aa1
dec esi
mov eax, esi
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x417ab0
mov edx, dword [str.cqrcbAssist_]
mov dword [eax], edx
mov ecx, dword [0x4b1140]
mov dword [eax + 4], ecx
mov edx, dword [0x4b1144]
mov dword [eax + 8], edx
mov cx, word [0x4b1148]
mov word [eax + 0xc], cx
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044e1ea
add esp, 0x108
ret