joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ac88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f34
mov eax, dword [ebp - 8]
call fcn.00404f34
mov eax, dword [ebp - 0xc]
call fcn.00404f34
xor eax, eax
push ebp
push 0x48ae3b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x48ade0
lea eax, [ebp - 0x1c]
mov edx, 0x105
call fcn.004050d0
push 0
push 0x10
mov eax, dword [ebp - 0x1c]
call fcn.00404f44
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
mov eax, dword [ebp - 0x1c]
call fcn.00404f44
mov edx, eax
lea eax, [ebp - 0x128]
call fcn.004037b8
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x28]
call fcn.00404ce8
push dword [ebp - 0x28]
push 0x48ae50
push dword [ebp - 4]
push 0x48ae5c
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404e04
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.0040530c
lea edx, [ebp - 0x10]
mov eax, dword [0x48e62c]
call fcn.00462860
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, 0x48ae64
call fcn.004065bc
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, 0x48ae74
call fcn.004065bc
mov eax, dword [ebp - 0xc]
call fcn.00404f44
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea edx, [ebp - 0x12c]
mov eax, dword [0x48e8ac]
mov eax, dword [eax]
call fcn.004604ac
mov eax, dword [ebp - 0x12c]
call fcn.00404f44
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, dword [ebp - 8]
call fcn.00404f44
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
push 0
mov eax, dword [ebp - 0x20]
call fcn.0040531c
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ae42
lea eax, [ebp - 0x12c]
call fcn.00404a84
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404aa8
lea eax, [ebp - 0x20]
call fcn.004051b8
lea eax, [ebp - 0x1c]
call fcn.00404a84
lea eax, [ebp - 0x18]
call fcn.00406578
lea eax, [ebp - 0x14]
call fcn.00406578
lea eax, [ebp - 0x10]
call fcn.00406578
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404aa8
ret
Function at 0x401488
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x423cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405883
cmp eax, ebx
je 0x401524
push ebx
push dword [0x423cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423cb0], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x402d85
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41ad7c]
sub esi, dword [0x41ed88]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x423c20], eax
jle 0x402ee3
push dword [0x41ed84]
call fcn.00402d6e
push ebx
push ebx
push dword [0x41ed88]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41ad78], esi
mov dword [0x40acec], ebx
mov ebp, 0x412d78
mov eax, dword [0x41ed80]
sub eax, dword [0x41ed84]
mov edi, 0x4000
cmp eax, edi
jg 0x402dfa
mov edi, eax
push edi
mov esi, 0x41ad80
push esi
call fcn.00402d3c
test eax, eax
je 0x402ef5
add dword [0x41ed84], edi
mov dword [0x412d08], esi
mov dword [0x412d0c], edi
cmp dword [0x423bcc], ebx
je 0x402e51
cmp dword [0x423ca0], ebx
jne 0x402e51
mov eax, dword [0x41ad78]
sub eax, dword [0x41ad7c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41ed88]
mov dword [0x40acec], eax
call fcn.00402c9d
pop ecx
mov ecx, 0x412cf0
mov dword [0x412d10], ebp
mov dword [0x412d14], 0x8000
call fcn.00406062
test eax, eax
jl 0x402efa
mov esi, dword [0x412d10]
sub esi, ebp
je 0x402eaf
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402eff
cmp esi, dword [esp + 0x10]
jne 0x402eff
add dword [0x41ed88], esi
cmp dword [0x412d0c], ebx
jne 0x402e20
jmp 0x402ebb
cmp dword [0x412d0c], ebx
jne 0x402efa
cmp edi, ebx
je 0x402efa
mov eax, dword [0x41ad7c]
mov ecx, eax
sub ecx, dword [0x41ed88]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402de4
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402c9d
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402eed
push 0xfffffffffffffffd
pop eax
jmp 0x402eed
push 0xfffffffffffffffe
jmp 0x402efc
Function at 0x405479
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x4211d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4211d0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054b4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4055f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40560d
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405610
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40563f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405683
test edi, edi
jne 0x40564a
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40567d

Function at 0x405687
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4056f8
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4056e7
cmp dword [ebp + 0x14], 1
je 0x4056e9
cmp dword [ebp + 0x14], 2
je 0x4056e9
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405941
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421218
push esi
call fcn.004057a0
push esi
call fcn.0040557f
mov edi, eax
test edi, edi
jne 0x405962
xor eax, eax
jmp 0x4059ba
push edi
call fcn.004057c2
test byte [0x423c28], 0x80
je 0x40597b
mov al, byte [edi]
test al, al
je 0x40595e
cmp al, 0x5c
je 0x40595e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x40599b
push esi
call fcn.0040585c
test eax, eax
je 0x405995
test byte [eax], 0x10
je 0x4059bf
push esi
call fcn.0040591a
push esi
call ebx
cmp eax, edi
jg 0x405986
push esi
call fcn.004058ed
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4059b9
Function at 0x405c6f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405883
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405c93
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405dcc
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x421618], 0x4c554e
mov edi, 0x400
mov ebp, 0x421618
je 0x405cd7
push 1
push 0
push esi
call fcn.00405610
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dd2
cmp eax, edi
jg 0x405dd2
push edi
mov esi, 0x421f58
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dd2
cmp eax, edi
jg 0x405dd2
push esi
push ebp
push str._s_s_r_n
push 0x421a18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x423bcc]
push dword [eax + 0x128]
push esi
call fcn.00405a19
push 4
push 0xc0000000
push esi
call fcn.00405610
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405dcc
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405dc5
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405dc5
cmp edi, dword [esp + 0x18]
jne 0x405dc5
push str._Rename__r_n
push esi
call fcn.004059c3
test eax, eax
jne 0x405dd9
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004057a0
add edi, 0xa
mov eax, edi
push ebx
push 0x421a18
add eax, esi
push eax
call fcn.004055cc
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x407590
add eax, 0xa
push eax
call fcn.004059c3
test eax, eax
je 0x405d90
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e00
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405df5
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405d92
Function at 0x405e08
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405941
mov ecx, dword [ebp + 0xc]
test cl, 8
mov dword [ebp - 8], eax
je 0x405e3d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423c88], eax
jmp 0x405fcf
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405e58
test eax, eax
je 0x405f7a
test cl, 2
je 0x405f7a
push edi
push ebx
mov esi, 0x422358
push esi
call fcn.004057a0
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405e7b
push str..
push esi
call edi
jmp 0x405e81
push ebx
call fcn.0040591a
cmp byte [ebx], 0
jne 0x405e8f
cmp byte [0x422358], 0x5c
jne 0x405e97
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405f6f
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.0040553e
cmp byte [eax], 0
je 0x405eda
cmp byte [ebp - 0x18], 0
je 0x405eda
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405ef0
mov al, byte [esi + 1]
test al, al
je 0x405f4e
cmp al, 0x2e
jne 0x405ef0
cmp byte [esi + 2], 0
je 0x405f4e
push esi
push edi
call fcn.004057a0
test byte [ebp - 0x148], 0x10
je 0x405f15
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f4e
push dword [ebp + 0xc]
push ebx
call fcn.00405e08
jmp 0x405f4e
push ebx
call fcn.004055f0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f46
test byte [ebp + 0xc], 4
je 0x405f3e
push ebx
push 0xfffffffffffffff1
call fcn.00404841
push 0
push ebx
call fcn.00405c6f
jmp 0x405f4e
inc dword [0x423c88]
jmp 0x405f4e
push ebx
push 0xfffffffffffffff2
call fcn.00404841
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ebc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405f79
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405fce
cmp dword [ebp - 8], esi
je 0x405fbe
push ebx
call fcn.0040585c
test eax, eax
je 0x405fce
push ebx
call fcn.004058ed
push ebx
call fcn.004055f0
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405fc6
test byte [ebp + 0xc], 4
je 0x405fbe
push ebx
push 0xfffffffffffffff1
call fcn.00404841
push esi
push ebx
call fcn.00405c6f
jmp 0x405fce
inc dword [0x423c88]
jmp 0x405fce
push ebx
push 0xffffffffffffffe5
call fcn.00404841
pop esi
pop ebx
leave
ret 8
Function at 0x405fd4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42275c], 0
jne 0x40600f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fe8
mov dword [ecx*4 + 0x422758], eax
inc ecx
cmp ecx, 0x100
jl 0x405fe3
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40603c
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x422758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40601d
not eax
pop ebp
ret 0xc
Function at 0x4056f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405adc
mov byte [esp], al
cmp byte [esp], 0
jne 0x405879
test edi, edi
je 0x405879
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4057b0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40578b
cmp edi, 0xffffffff
je 0x40574f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40574f
mov byte [esp], 0
jmp 0x405879
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40578b
test ebx, ebx
jne 0x405784
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402568
test eax, eax
jne 0x405784
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405879
pause
dec ebp
test ebp, ebp
jg 0x405734
cmp edi, 0xffffffff
je 0x4057b0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4057ae
mov byte [esp], 0
jmp 0x405879
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4056fe
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x4057b0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058ec
mov edx, eax
mov ebx, dword [0x4cf8c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405817
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405815
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405817
xor edi, edi
cmp byte [esp], 0
je 0x405840
mov ebx, dword [esi]
test bl, 1
jne 0x405859
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x40581d
mov byte [esp + 1], 1
jmp 0x405859
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405840
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4057ca
cmp byte [esp], 0
je 0x405879
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4065f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cf050], 0
je 0x406655
cmp word [0x4cf32c], 0xd7b2
jne 0x40661d
cmp dword [0x4cf334], 0
jbe 0x40661d
mov eax, 0x4cf328
call dword [0x4cf344]
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 0x406680
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cc028], 0
jne 0x406671
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4cc02c], 0
je 0x40682b
mov edx, edi
mov eax, esi
call dword [0x4cc02c]
mov ebx, eax
jmp 0x40683c
mov eax, 8
call fcn.00404350
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4cf051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4067c8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406871
mov edx, 8
mov eax, ebx
call fcn.0040436c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40898c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408af1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406944
cmp si, word [0x4cc7dc]
jb 0x408a24
cmp si, word [0x4cc9dc]
ja 0x408a24
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408a24
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4cc7dc]
jae 0x4089fe
mov edi, ebx
dec edi
jmp 0x408a1f
cmp si, word [ebx*8 + 0x4cc7dc]
jbe 0x408a0e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408a1f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4cc7e0]
call fcn.0040889c
jmp 0x408a24
cmp edi, dword [ebp - 8]
jae 0x4089e8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408ad3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ad3
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407314
push dword [ebp - 0x160]
push 0x408b0c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407314
push dword [ebp - 0x164]
push 0x408b1c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407314
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040754c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408af8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004069a4
ret
Function at 0x408ca4
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 0x408da7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d1b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d1b6a]
jne 0x408cf0
mov eax, esi
mov edx, 0x4d1b6c
mov ecx, 0x55
call fcn.00407314
push 0x4d1b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d91
push 0x4d1b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406944
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d5f
cmp byte [0x4d1b50], 0
je 0x408d24
mov edx, esi
mov eax, ebx
call fcn.00408b88
jmp 0x408d5f
mov edx, esi
mov eax, ebx
call fcn.0040898c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408d5f
cmp dword [esi], 0
je 0x408d48
mov eax, esi
mov edx, 0x408dc0
call fcn.0040746c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040898c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040746c
push 0x4d1b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d1b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407288
push eax
push 0x4d1b6c
call sub.kernel32.dll_lstrcpynW
push 0x4d1b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dae
lea eax, [ebp - 4]
call fcn.00406944
ret