joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441d40
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x441eeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x441ecc
mov dl, 1
mov eax, dword [0x40c278]
call fcn.00402ca0
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403958
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x441ebb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004302c8
test al, al
je 0x441eae
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x441efc
lea eax, [ebp - 0x254]
call fcn.00408594
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x441eae
xor eax, eax
push ebp
push 0x441ea7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x441f34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x441e90
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b88
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x441e90
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441eae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x441db1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040f648
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441ef2
lea eax, [ebp - 0x260]
call fcn.00403958
ret

Function at 0x442738
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46c7d0]
cmp byte [eax + 0x95], 0
jne 0x4427a9
cmp dword [0x46c7ec], 0
jne 0x44276a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4426f4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46c7ec], eax
cmp dword [0x46c7e8], 0
jne 0x442785
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46c7e8], eax
cmp dword [0x46c7f0], 0
jne 0x4427a9
push esp
push 0
push 0
push 0x442698
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46c7f0], eax
pop edx
ret
Function at 0x4428a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4428b7
add esp, 0xfffffff0
call fcn.00402fd0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004125b4
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40bdfc]
call fcn.00402ca0
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40bdfc]
call fcn.00402ca0
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x41440c]
call fcn.0041b9c0
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x442a2c
mov eax, dword [0x46b59c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041bd90
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x444434
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46b59c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040991c
test eax, eax
je 0x4429aa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407f48
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409944
test eax, eax
je 0x4429be
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403b88
mov eax, dword [0x46b488]
cmp byte [eax], 0
jne 0x4429ef
mov eax, ebx
call fcn.00442b18
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x442a21
call fcn.00403028
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442d88
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46c7d0]
cmp dword [eax + 0x24], 0
je 0x442e2b
cmp dword [ebx + 0x84], 0
jne 0x442e25
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x442d18
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x442e25
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x442dee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x442e25
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d63c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x442dfd
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x443838
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x44386d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403a40
jmp 0x443877
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.004039ac
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4447a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4447e0
mov eax, esi
call fcn.0042c03c
test al, al
je 0x4447e0
mov eax, dword [ebx + 0x74]
call fcn.0042bd40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4447e0
push 0
mov eax, dword [ebx + 0x74]
call fcn.0042bd40
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x44a080
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x44a0ae
mov eax, ebx
call fcn.0044ab24
cmp dword [ebx + 0x3c], 0
je 0x44a0a7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x44a11f
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x44a111
cmp dword [ebx + 8], 0
je 0x44a0d0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x44a0e2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x44a111
cmp dword [ebx + 8], 0
je 0x44a0c3
cmp eax, 3
je 0x44a0f5
dec eax
jne 0x44a0c3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x44a0c3
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x44a0c3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x44a13d
cmp dword [ebx + 0x10], 0xcc
je 0x44a13d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0044a148
pop ebx
ret

Function at 0x460700
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4607d8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46c870], 0
jne 0x4607bc
lea eax, [ebp - 4]
mov edx, 0x4607f0
call fcn.004039f0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403d9c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4607bc
mov eax, ebx
call fcn.004026d0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4607b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46079f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x460800
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46079f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x46c870], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4607bc
mov eax, dword [ebp - 0xc]
call fcn.004026e8
ret
mov ebx, dword [0x46c870]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4607df
lea eax, [ebp - 4]
call fcn.00403958
ret

Function at 0x464c84
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x46c894], 0
jne 0x464ca7
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x464c08
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46c894], eax
ret
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push str.RC_BINARYTYPE
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor esi, esi
mov dword [ebp + 8], eax
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp + 0xc]
push esi
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401073
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
push str.SelfClear.dll
push 0xdd
push dword [ebp + 8]
call fcn.00401000
add esp, 0xc
mov ebx, 0x30c
lea eax, [ebp - 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, str._rundll32.exe
lea eax, [ebp - 0x464]
push edi
push eax
call esi
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4010e6
lea eax, [ebp - 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x464]
push edi
push eax
call esi
lea eax, [ebp - 0x464]
push str._SelfClear.dll__MagicDel_16
push eax
call esi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x464]
push eax
call esi
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00409400
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 0x80
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
lea eax, [ebp - 0x464]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4014af
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
push 1
pop ebx
mov esi, 0x104
push esi
lea eax, [ebp - 0x348]
push 0
push eax
call fcn.00409400
mov edi, dword [ebp + 8]
add esp, 0xc
test edi, edi
je 0x401504
push edi
call fcn.00409660
push eax
lea eax, [ebp - 0x348]
push edi
push eax
call fcn.004096e0
lea eax, [ebp - 0x348]
push 0x414484
push eax
call fcn.00409470
add esp, 0x18
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x401528
push 1
pop eax
jmp 0x4015eb
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00409400
push edi
call fcn.00409660
push eax
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004096e0
lea eax, [ebp - 0x104]
push 0x414480
push eax
call fcn.00409470
add esp, 0x24
test byte [ebp - 0x244], 0x10
je 0x401595
cmp byte [ebp - 0x218], 0x2e
je 0x4015bd
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00409470
lea eax, [ebp - 0x104]
push eax
call fcn.004014af
add esp, 0xc
jmp 0x4015b7
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00409470
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4015bd
xor ebx, ebx
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401528
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
and eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e1c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
push 0x40
push eax
xor edi, edi
push 1
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xfffffffffffffff5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x48]
push esi
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 4]
push edi
push eax
push edi
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp dword [ebp - 4], edi
mov dword [ebp - 8], eax
je 0x401ea7
cmp eax, edi
je 0x401ea7
lea ecx, [ebp - 8]
push edi
push ecx
push eax
push dword [ebp - 4]
push ebx
call esi
push 0x40
push str.CCTV_Player_Installer_V1.0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401ee4
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push str.RegDll_Error_0x_x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x48]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x48]
push 0x10
push str.CCTV_Player_Installer_V1.0
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403841
Capabilities:
Get common file path

Disassembly:
mov eax, 0x411ee3
call fcn.00409e38
sub esp, 0x124
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov al, byte [ebp + 0xb]
push 1
pop ebx
lea ecx, [ebp - 0x28]
push edi
mov dword [ebp - 4], ebx
mov byte [ebp - 0x28], al
call fcn.00403792
mov byte [ebp - 4], 2
call fcn.004037ef
test al, al
je 0x4038f7
push str.ieframe.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x4038f7
push str.IEGetWriteableFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4038ee
lea ecx, [ebp - 0x10]
push ecx
push 0x412228
call eax
cmp eax, edi
jl 0x4038ee
cmp dword [ebp - 0x10], edi
je 0x4038ee
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00403a50
mov ecx, dword [ebp - 0x14]
cmp ecx, edi
je 0x4038d2
call fcn.00403b01
mov esi, eax
jmp 0x4038d4
xor esi, esi
push esi
call fcn.00409660
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00403c19
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x20], edi
jne 0x40392e
push ebx
lea eax, [ebp - 0x130]
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40392e
lea eax, [ebp - 0x130]
push eax
call fcn.00409660
pop ecx
push eax
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403c19
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x28]
push edi
mov ecx, esi
mov byte [esi], al
call fcn.00403792
push dword [0x412238]
lea eax, [ebp - 0x28]
mov ecx, esi
push edi
push eax
call fcn.00403b4b
mov dword [ebp - 0x2c], ebx
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00403792
mov ecx, dword [ebp - 0x14]
cmp ecx, edi
je 0x40396b
call fcn.00403ad4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a4d7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a4f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040cb64
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40a518
test byte [esp + 8], 2
je 0x40a518
mov dword [0x419c18], 0xd
mov dword [0x419c1c], 5
jmp 0x40a4f3
xor eax, eax
ret
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406838
test esi, esi
jne 0x404580
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406974
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405dc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b1050], 0
je 0x405e29
cmp word [0x4b132c], 0xd7b2
jne 0x405df1
cmp dword [0x4b1334], 0
jbe 0x405df1
mov eax, 0x4b1328
call dword [0x4b1344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405e54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ae030], 0
jne 0x405e45
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fb4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4ae034], 0
je 0x405fda
mov edx, esi
mov eax, ebx
call dword [0x4ae034]
jmp 0x405fe9
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b1051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f7c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408600
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408767
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406838
cmp si, word [0x4ae7dc]
jb 0x40869a
cmp si, word [0x4ae9dc]
ja 0x40869a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40869a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4ae7dc]
jae 0x408674
mov edi, ebx
dec edi
jmp 0x408695
cmp si, word [ebx*8 + 0x4ae7dc]
jbe 0x408684
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408695
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4ae7e0]
call fcn.00408510
jmp 0x40869a
cmp edi, dword [ebp - 0xc]
jae 0x40865e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408749
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408749
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a20
push dword [ebp - 0x164]
push 0x408784
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a20
push dword [ebp - 0x168]
push 0x408794
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a20
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406dd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40876e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406830
ret
Function at 0x408920
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408a25
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b3b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b3b70]
jne 0x40896c
mov eax, esi
mov edx, 0x4b3b74
mov ecx, 0x55
call fcn.00406a20
push 0x4b3b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a0f
push 0x4b3b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406838
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089dd
cmp byte [0x4b3b54], 0
je 0x4089a2
mov edx, esi
mov eax, ebx
call fcn.00408800
jmp 0x4089dd
mov edx, esi
mov eax, ebx
call fcn.00408600
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4089dd
cmp dword [esi], 0
je 0x4089c6
mov eax, esi
mov edx, 0x408a40
call fcn.00406c34
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408600
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c34
push 0x4b3b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b3b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004068c4
push eax
push 0x4b3b74
call sub.kernel32.dll_lstrcpynW
push 0x4b3b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a2c
lea eax, [ebp - 4]
call fcn.00406828
ret