joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41b2d0]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401c34
mov al, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004024f5
add esp, 0x20c
ret
xor al, al
jmp 0x401c1f

Function at 0x401f10
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push 0
push 0
push str.PATH
call ebx
mov esi, eax
test esi, esi
je 0x401faf
xor ecx, ecx
mov edx, 2
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402367
add esp, 4
mov edi, eax
push esi
push edi
push str.PATH
call ebx
dec esi
cmp esi, eax
jne 0x401fa5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push edi
call ebp
mov ebx, eax
test ebx, ebx
je 0x401fa4
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402367
add esp, 4
mov esi, eax
push ebx
push esi
push edi
call ebp
test eax, eax
je 0x401f9b
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040288d
add esp, 4
pop ebp
push edi
call fcn.0040288d
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4097d7
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b2d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079a3
mov dword [ebp - 0x14], eax
cmp dword [0x41d1d0], esi
jne 0x4098ca
push 0x800
push esi
push 0x4166b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x409857
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4099aa
push esi
push esi
push 0x4166b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4099aa
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4099aa
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41d1d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41d1d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41d1d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d1e0], eax
test eax, eax
je 0x4098c7
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d1dc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4098ef
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4098e2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x409904
push 4
pop eax
jmp 0x4099ac
cmp dword [ebp - 0x14], esi
je 0x409904
push dword [0x41d1d0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4098e9
mov eax, dword [0x41d1dc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x409962
cmp dword [0x41d1e0], edi
je 0x409962
push eax
call ebx
push dword [0x41d1e0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x409962
test eax, eax
je 0x409962
call ecx
test eax, eax
je 0x409957
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x409957
test byte [ebp - 8], 1
jne 0x409962
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x409992
mov eax, dword [0x41d1d4]
cmp eax, edi
je 0x40998f
push eax
call ebx
test eax, eax
je 0x40998f
call eax
mov esi, eax
test esi, esi
je 0x40998f
mov eax, dword [0x41d1d8]
cmp eax, edi
je 0x40998f
push eax
call ebx
test eax, eax
je 0x40998f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41d1d0]
call ebx
test eax, eax
je 0x4099aa
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4099ac
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004024f5
mov esp, ebp
pop ebp
ret
Function at 0x414806
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x414860
push 0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esi], eax
test eax, eax
je 0x414860
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x41482f
mov ecx, 0x20
mov eax, 0x20
cdq
idiv ecx
push 0x40
push 0x3000
lea eax, [edx + ecx]
mov dword [esi + 8], eax
shl eax, 7
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esi + 4], eax
test eax, eax
jne 0x414860
mov dword [esi], eax
pop esi
ret 8

Function at 0x414a43
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0xfffffffb
lea esp, [esp]
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x414a60
cmp dl, 0xcc
jne 0x414aaa
inc eax
cmp eax, 0xffffffff
jle 0x414a53
mov al, byte [ecx]
cmp al, 0x8b
je 0x414a70
cmp al, 0x89
jne 0x414aaa
cmp byte [ecx + 1], 0xff
jne 0x414aaa
mov eax, 0x414aae
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x41e670], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
ret 0xc
xor al, al
jmp 0x414aa7

Function at 0x438cb7
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
add eax, 0x4995f2eb
add eax, ebx
inc eax
call fcn.00438cf1
push ebx
mov ebx, dword [esp]
add esp, 4
xor dword [edx], edi
sub eax, 0x77c2c466
and eax, eax
inc edx
and ebx, eax
and eax, eax
and ebx, eax
cmp edx, esi
jne fcn.00438cb7
and ebx, eax
ret
Function at 0x411460
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00411414
test al, al
jne 0x411481
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4114cd
xor eax, eax
push ebp
push 0x4114bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404f68
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4114c4
lea eax, [ebp - 0xc]
call fcn.00411450
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41170c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x411714
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x411801
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040ecf8
mov edx, dword [ebp - 8]
mov ecx, 0x41181c
xor eax, eax
call fcn.004115f0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4117cf
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x41172e
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00411218
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004084bc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040f2a0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.004111e8
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406f50]
call fcn.0040c1fc
call fcn.004040b0
jmp 0x41172e
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411808
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404ed4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ed4
ret

Function at 0x411830
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x417d90]
cmp dword [eax], 2
jne 0x411898
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x411853
xor eax, eax
jmp 0x4118a7
lea eax, [esp + 8]
push eax
push 0x4118ac
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x411898
xor eax, eax
jmp 0x4118a7
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x4118d4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x41192e
inc esi
xor edi, edi
cmp edi, 1
jne 0x4118fa
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x411908
cmp edi, 1
jle 0x411908
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00411460
test eax, eax
jne 0x41192e
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x41192e
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x41192e
inc edi
dec esi
jne 0x4118ea
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x41516c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415241
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41525c
push ebx
push 0x41526c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405380
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4151ec
mov al, 0x62
call fcn.00414d48
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00415140
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4151f5
call fcn.00415140
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415248
lea eax, [ebp - 4]
call fcn.00404ecc
ret
Function at 0x41535c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x415427
jmp 0x41541b
cmp dword [esi + 0x10], 0x1000
jne 0x415407
test byte [esi + 0x15], 1
jne 0x415407
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4153b8
cmp ebp, 2
je 0x4153b8
cmp ebp, 0x10
je 0x4153b8
cmp ebp, 0x20
jne 0x4153d4
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4153d4
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4153e5
mov eax, dword [esi]
add eax, ebx
call fcn.00415354
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4153d8
cmp byte [esp + 4], 0
je 0x415407
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x415427
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x41538d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5007e33
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x334e0330
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x2c6a4d6f
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x615d6f72
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4046d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004068e0
test esi, esi
jne 0x40470e
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.00406a48
jmp 0x40472c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040461c
mov edi, eax
test esi, esi
je 0x40472c
cmp dword [ebx], 0
je 0x40472c
dec esi
jmp 0x404715
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405640
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.00405a2c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057c9
test edi, edi
je 0x4057c9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4056db
cmp edi, 0xffffffff
je 0x40569f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40569f
mov byte [esp], 0
jmp 0x4057c9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4056db
test ebx, ebx
jne 0x4056d4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402568
test eax, eax
jne 0x4056d4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057c9
pause
dec ebp
test ebp, ebp
jg 0x405684
cmp edi, 0xffffffff
je 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056fe
mov byte [esp], 0
jmp 0x4057c9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40564e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405700
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040583c
mov edx, eax
mov ebx, dword [0x4e28c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405767
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405765
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405767
xor edi, edi
cmp byte [esp], 0
je 0x405790
mov ebx, dword [esi]
test bl, 1
jne 0x4057a9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x40576d
mov byte [esp + 1], 1
jmp 0x4057a9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405790
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40571a
cmp byte [esp], 0
je 0x4057c9
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 0x406544
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e2050], 0
je 0x4065a5
cmp word [0x4e232c], 0xd7b2
jne 0x40656d
cmp dword [0x4e2334], 0
jbe 0x40656d
mov eax, 0x4e2328
call dword [0x4e2344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x4df792
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 0x4065d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4df028], 0
jne 0x4065c1
push 0
push 0x4df78c
push 0x4df792
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40679c
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 [0x4df02c], 0
je 0x4067c7
mov edx, edi
mov eax, esi
call dword [0x4df02c]
mov ebx, eax
jmp 0x4067d8
mov eax, 8
call fcn.00404350
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4e2051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406764
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 0x40680d
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 0x408934
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 0x408a99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004068e0
cmp si, word [0x4df7dc]
jb 0x4089cc
cmp si, word [0x4df9dc]
ja 0x4089cc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4089cc
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4df7dc]
jae 0x4089a6
mov edi, ebx
dec edi
jmp 0x4089c7
cmp si, word [ebx*8 + 0x4df7dc]
jbe 0x4089b6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4089c7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4df7e0]
call fcn.00408844
jmp 0x4089cc
cmp edi, dword [ebp - 8]
jae 0x408990
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408a7b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a7b
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.004072e4
push dword [ebp - 0x160]
push 0x408ab4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004072e4
push dword [ebp - 0x164]
push 0x408ac4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072e4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040751c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408aa0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406940
ret
Function at 0x408c4c
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 0x408d4f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e4b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e4b6a]
jne 0x408c98
mov eax, esi
mov edx, 0x4e4b6c
mov ecx, 0x55
call fcn.004072e4
push 0x4e4b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d39
push 0x4e4b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004068e0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d07
cmp byte [0x4e4b50], 0
je 0x408ccc
mov edx, esi
mov eax, ebx
call fcn.00408b30
jmp 0x408d07
mov edx, esi
mov eax, ebx
call fcn.00408934
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408d07
cmp dword [esi], 0
je 0x408cf0
mov eax, esi
mov edx, 0x408d68
call fcn.0040743c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408934
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040743c
push 0x4e4b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e4b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407258
push eax
push 0x4e4b6c
call sub.kernel32.dll_lstrcpynW
push 0x4e4b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d56
lea eax, [ebp - 4]
call fcn.004068e0
ret