joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cbf8
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 0x44cda3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44cd84
mov dl, 1
mov eax, dword [0x411c6c]
call fcn.00403460
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404204
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44cd73
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.0043ab1c
test al, al
je 0x44cd66
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, 0x44cdb4
lea eax, [ebp - 0x254]
call fcn.00408cb8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44cd66
xor eax, eax
push ebp
push 0x44cd5f
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 0x44cdec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44cd48
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404474
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44cd48
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404474
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cd66
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44cc69
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415748
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cdaa
lea eax, [ebp - 0x260]
call fcn.00404204
ret

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

Disassembly:
push ecx
mov eax, dword [0x453bb0]
cmp byte [eax + 0xa5], 0
jne 0x44d75d
cmp dword [0x453bc8], 0
jne 0x44d71e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d6a8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453bc8], eax
cmp dword [0x453bc4], 0
jne 0x44d739
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453bc4], eax
cmp dword [0x453bcc], 0
jne 0x44d75d
push esp
push 0
push 0
push 0x44d64c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453bcc], eax
pop edx
ret
Function at 0x44ddf0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453bb0]
cmp dword [eax + 0x30], 0
je 0x44de9a
cmp dword [ebx + 0x94], 0
jne 0x44de94
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44dd80
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44de94
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 0x44de5a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44de94
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413bb8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44de69
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44e9f8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44ea2d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042f4
jmp 0x44ea3a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404258
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44fb4c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44fb8d
mov eax, esi
call fcn.00436290
test al, al
je 0x44fb8d
mov eax, dword [ebx + 0x84]
call fcn.00435f8c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44fb8d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00435f8c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401843
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x154
mov eax, dword [str.kernel32.dll]
mov dword [esp], eax
call sub.KERNEL32.dll_LoadLibraryW
mov dword [0x40c010], eax
mov eax, dword [0x40400c]
push ebx
or dword [0x404004], eax
lea ebx, [ebp - 0x107]
mov eax, dword [0x404010]
mov dword [esp], ebx
and dword [0x404008], eax
mov dword [esp + 0x44], 0xc8
mov dword [esp + 0x40], 0xfa
mov dword [esp + 0x3c], 0xf1
mov dword [esp + 0x38], 0xf6
mov dword [esp + 0x34], 0xd3
mov dword [esp + 0x30], 0xfb
mov dword [esp + 0x2c], 0xf1
mov dword [esp + 0x28], 0xfe
mov dword [esp + 0x24], 0xf2
mov dword [esp + 0x20], 0xf2
mov dword [esp + 0x1c], 0xf0
mov dword [esp + 0x18], 0xdc
mov dword [esp + 0x14], 0xeb
mov dword [esp + 0x10], 0xfa
mov dword [esp + 0xc], 0xd8
mov dword [esp + 8], 0xf
mov dword [esp + 4], 0xffffff9f
call fcn.004035e0
mov eax, dword [section..data]
and eax, dword [0x404010]
mov dword [esp + 4], ebx
mov dword [0x404008], eax
mov eax, dword [0x40c010]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
mov edx, dword [0x404008]
add edx, dword [0x404004]
xor dword [0x40400c], edx
mov dword [section..data], edx
push ecx
push ecx
call eax
mov dword [esp + 4], 0x40c008
mov dword [esp], eax
call sub.SHELL32.DLL_CommandLineToArgvW
xor dword [0x404014], 0x1f4
xor dword [0x404018], 0x1f4
push edx
push edx
mov edx, dword [0x404008]
mov dword [0x40c00c], eax
mov eax, dword [0x404004]
add eax, edx
mov dword [section..data], eax
mov eax, dword [0x40400c]
sub eax, edx
mov dword [0x40400c], eax
mov dword [0x404004], eax
call fcn.00401447
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 0x10

Function at 0x402da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
Function at 0x402df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x402e16
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402ebb
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x402e90
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x402e09
cmp eax, 0x40
je 0x402e09
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x10
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
je 0x402e40
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x402e40
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402da0
lea esi, [esi]
lea edi, [edi]

Function at 0x403130
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00403110
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x403166
jmp 0x4031b6
add ebx, 1
movzx edx, byte [ebx]
cmp dl, 9
je 0x403163
cmp dl, 0x20
je 0x403163
cmp dl, 0x22
je 0x403200
cmp dl, 9
mov eax, edx
je 0x4031a4
cmp dl, 0x20
je 0x4031a8
test dl, dl
jne 0x40319a
lea esi, [esi]
jmp 0x4031b6
cmp al, 0x20
je 0x4031a8
test al, al
je 0x4031b6
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x403192
cmp al, 0x20
jne 0x40321a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x4031a8
cmp al, 0x20
je 0x4031a8
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x4031c5
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401843
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x40320e
cmp al, 0x22
jne 0x403200
cmp al, 0x22
jne 0x4031a4
add ebx, 1
movzx eax, byte [ebx]
jmp 0x4031a4
cmp al, 9
je 0x4031a8
nop
jmp 0x4031b6
Function at 0x401426
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x401453
test cl, 7
je 0x401453
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x423460]
dec esi
inc ecx
jmp 0x401434
cmp esi, 8
jb 0x4014f6
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x423860]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x423460]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x423c60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x424460]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x424860]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x424c60]
movzx edx, dl
xor edi, dword [edx*4 + 0x424060]
movzx eax, al
xor edi, dword [eax*4 + 0x425060]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x401465
pop ebx
jmp 0x4014f6
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x423460]
dec esi
inc ecx
test esi, esi
ja 0x4014e2
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x403511
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
jne 0x40352b
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40359c
mov ecx, esi
call fcn.0040349f
test al, al
je 0x403566
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x403566
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00403511
jmp 0x40359f
cmp dword [esi + 0xc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40357d
call ebx
cmp eax, 0x6d
jne 0x40357d
xor eax, eax
jmp 0x40359f
cmp dword [esi + 0xc], 0
jne 0x403597
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x403597
call ebx
cmp eax, 0x21
jne 0x403597
push edi
jmp 0x40355a
or eax, 0xffffffff
jmp 0x40359f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040daf0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4038d6
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00406388
test al, al
je 0x4038d6
lea eax, [ebp - 0x1000]
push eax
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x4038de
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040daf0
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
setne bl
test bl, bl
jne 0x40392d
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00406388
test al, al
je 0x40392d
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x403b1a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040daf0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004061b2
movzx eax, word [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ax, 0x2e
je 0x403b50
cmp ax, 0x20
je 0x403b50
push 0
push edi
call esi
test eax, eax
jne 0x403b7f
push edi
call fcn.00403af6
test al, al
jne 0x403b92
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.00406388
test al, al
je 0x403b92
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x403b92
cmp byte [ebp + 0xc], 0
je 0x403b8e
push dword [ebp + 0x10]
push edi
call fcn.004038de
xor eax, eax
jmp 0x403baa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403ba7
cmp eax, 3
je 0x403ba7
xor eax, eax
inc eax
jmp 0x403baa
push 2
pop eax
pop edi
pop esi
leave
ret 0xc

Function at 0x403fdf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x44e13c]
call fcn.00401426
cmp byte [0x4377e1], 0
mov dword [0x44e13c], eax
jne 0x404013
cmp dword [ebp + 0xc], 0
jbe 0x404013
mov ecx, dword [0x44e238]
pop ebp
jmp fcn.00403306
pop ebp
ret 8
Function at 0x40481d
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0040daf0
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x250]
mov edi, 0x800
push eax
jne 0x4048ac
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048d9
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.00406388
test al, al
je 0x404885
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40489f
cmp eax, 3
je 0x40489f
cmp eax, 0x12
je 0x40489f
xor eax, eax
inc eax
jmp 0x4048a1
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x4049a4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4048cf
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp dword [ebp + 8], 0xffffffff
je 0x4049a4
push edi
push dword [ebp + 0xc]
push esi
call fcn.0040b513
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.004066f1
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0040e170
mov ecx, dword [ebp - 0x230]
xor edi, edi
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x23c]
adc edx, edi
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.0040b880
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.0040b880
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.0040b880
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406388
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040daf0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x4063a6
xor al, al
jmp 0x406530
push ebx
push edi
push esi
call fcn.00406205
push esi
call fcn.0040da7a
pop ecx
push esi
mov ebx, eax
call fcn.004062fd
test al, al
je 0x406450
push esi
call fcn.00406205
test al, al
je 0x4063fd
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d654
push edi
call fcn.0040ea04
push esi
add edi, 8
push edi
call fcn.0040dac2
add esp, 0x14
jmp 0x406528
cmp word [esi], 0x5c
jne 0x40652c
add esi, 2
cmp word [esi], 0x5c
jne 0x40652c
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d654
push edi
call fcn.0040ea04
lea eax, [edi + 8]
push 0x41d64c
push eax
call fcn.0040dac2
push esi
add edi, 0xe
push edi
call fcn.0040dac2
add esp, 0x1c
jmp 0x406528
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40652c
cmp eax, edi
ja 0x40652c
movzx eax, word [esi]
push eax
call fcn.004061ed
test al, al
je 0x4064bd
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d654
push edi
call fcn.0040ea04
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040ea04
push esi
add edi, 0xc
push edi
call fcn.0040dac2
add esp, 0x20
jmp 0x406528
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00406231
lea eax, [ebp - 0x1000]
push eax
call fcn.0040da7a
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d654
push edi
call fcn.0040ea04
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040dac2
add esp, 0x14
cmp word [esi], 0x2e
jne 0x40651e
movzx eax, word [esi + 2]
push eax
call fcn.004061ed
test al, al
je 0x40651e
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040b540
mov al, 1
jmp 0x40652e
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x40832e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x42747c], ebx
jne 0x408347
mov ecx, 0x427474
call fcn.004082ef
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
xor edx, edx
sub eax, ecx
cmp byte [ebp + 0x14], bl
setne dl
cmp byte [ebp + 0x10], bl
je 0x408399
mov ecx, dword [0x42747c]
cmp ecx, ebx
je 0x4083b5
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4083d6
push str.CryptProtectMemory_failed
mov esi, 0x4325fc
push esi
call fcn.00401729
pop ecx
pop ecx
mov ecx, esi
call fcn.00416cc5
push 2
mov ecx, esi
call fcn.00401677
jmp 0x4083d6
mov ecx, dword [0x427480]
cmp ecx, ebx
je 0x4083b5
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4083d6
push str.CryptUnprotectMemory_failed
jmp 0x40837a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x4083d6
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x4083c6
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x408526
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x422038], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x408571
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x43bbc4], ax
xor eax, eax
mov word [0x43bbc6], ax
mov dword [0x422038], 0x43bbc4
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b56e
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x422028
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10
Function at 0x40868d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x4304c4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x4304c8], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x4086ef
mov ecx, dword [0x42748c]
call fcn.0040ca17
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41d43c
push 0
push 0xc2
push edi
call esi
mov byte [0x4304c8], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40873f
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x408789
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x41d788
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408c18
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040daf0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408c33
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408c3d
mov byte [eax], 0
test edi, edi
je 0x408ce6
movzx eax, word [edi]
test ax, ax
je 0x408ce6
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408c76
cmp dword [ebp + 0xc], 0
je 0x408c82
test esi, esi
jne 0x408c82
test ebx, ebx
je 0x408c72
mov byte [ebx], 1
mov esi, edx
jmp 0x408c91
cmp ax, 0xd
je 0x408ca4
cmp ax, 0xa
je 0x408ca6
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jge 0x408c9c
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408c56
jmp 0x408ca6
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408ca6
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408ce1
mov word [ebx], ax
test esi, esi
je 0x408ce1
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040b513
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408ce8
xor eax, eax
pop edi
pop ebx
leave
ret 0x10