joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4075e0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x41c30b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x422f80]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
push 0x8a8
call fcn.0040b684
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x407514
mov eax, dword [edi + 0x84]
mov dword [esi + 8], eax
lea eax, [edi + 0x88]
mov ecx, esi
mov dword [esi + 0x850], eax
mov dword [esi], 1
mov dword [esi + 0x8a4], 0
call fcn.00407fa0
jmp 0x407516
xor esi, esi
mov dword [0x424420], esi
cmp dword [esi], 0
mov dword [esp + 0x1c], 0xffffffff
jne 0x407589
mov ecx, dword [edi + 0x84]
push 0x41da14
push 0x400
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x424420]
test ecx, ecx
je 0x40756b
cmp dword [ecx], 0
mov esi, ecx
je 0x407562
push 1
push str._Normal_Termination
call fcn.00407ee0
push esi
call fcn.0040b621
add esp, 4
mov dword [0x424420], 0
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
lea edx, [esp + 0x10]
push edx
push 0
push edi
push 0x4073f0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [edi + 0x80], eax
nop
push 0x64
call esi
mov eax, dword [0x424420]
cmp dword [eax + 0x31c], 0
je 0x4075b0
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
jmp 0x4074a0
Function at 0x409960
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push edi
push 0x1000
lea ecx, [esi + 0x2110]
push 0
push ecx
mov dword [esi], vtable.CTRL_BOX.0
mov dword [esi + 0x2004], 0
mov dword [esi + 0x2008], 0
mov dword [esi + 0x200c], 0xffffff9c
mov dword [esi + 0x512c], eax
call fcn.0040a8a0
add esp, 0xc
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
call edi
push 0x80ffff
mov dword [esi + 0x4124], eax
call edi
push 0x41d3cc
push 0
push 2
push 0
push 0
push 0
push 0
push 0
push 0
push 0x258
push 0
push 0
push 0
push 0x10
mov dword [esi + 0x5128], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
idiv dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [esi + 0x3120], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x409920
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
pop edi
mov eax, esi
pop esi
ret 8

Function at 0x409964
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push edi
push 0x1000
lea ecx, [esi + 0x2110]
push 0
push ecx
mov dword [esi], vtable.CTRL_BOX.0
mov dword [esi + 0x2004], 0
mov dword [esi + 0x2008], 0
mov dword [esi + 0x200c], 0xffffff9c
mov dword [esi + 0x512c], eax
call fcn.0040a8a0
add esp, 0xc
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
call edi
push 0x80ffff
mov dword [esi + 0x4124], eax
call edi
push 0x41d3cc
push 0
push 2
push 0
push 0
push 0
push 0
push 0
push 0
push 0x258
push 0
push 0
push 0
push 0x10
mov dword [esi + 0x5128], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
idiv dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [esi + 0x3120], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x409920
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x40a080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
push 0x443b18
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, 0x443b18
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a0a1
sub eax, edx
cmp eax, 3
jne 0x40a0c0
cmp byte [0x443b1a], 0x5c
jne 0x40a0c0
mov byte [0x443b1a], bl
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x40a0dc
mov edx, 0x443b18
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x40a0d0
mov eax, dword [esp + 0x70]
mov esi, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a0e2
mov edi, 0x443b18
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x40a0f5
mov ebp, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov edi, 0x41d88c
mov esi, ebp
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x10], 0x4c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x443b18
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x200
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0x88002c
mov word [esp + 0x48], bx
mov word [esp + 0x4a], bx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0x409f40
mov dword [esp + 0x58], ebx
jne 0x40a1aa
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
jmp 0x40a1ae
mov eax, dword [esp + 0x74]
mov edi, 0x41d8c8
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a1cb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
cmp eax, ebx
jne 0x40a1d9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov edi, 0x41d8c8
mov esi, ebp
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40a24b
cmp word [esp + 0x4a], bx
mov edi, dword [esp + 0x1c]
jne 0x40a24b
mov esi, dword [esp + 0x28]
lea esi, [esi + esi - 1]
xor eax, eax
cmp esi, ebx
jbe 0x40a217
mov cl, byte [edi]
add edi, 1
test cl, cl
jne 0x40a204
add eax, 1
movzx edx, ax
cmp edx, esi
jb 0x40a204
lea eax, [edi + 1]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a220
mov edi, 0x443b18
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x40a233
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 0x443b18
pop ebx
add esp, 0x4c
ret

Function at 0x40a665
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422f80]
jne 0x40a66f
repz ret
jmp fcn.0040cb0d
Function at 0x410019
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x410046
call fcn.0040cadc
mov dword [eax], esi
call fcn.0040cac9
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040ca6a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x410022
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410075
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040caef
pop ecx
call fcn.0040cac9
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x41009c
test al, 1
je 0x41009c
test byte [esp + 0xc], 2
je 0x41009c
call fcn.0040cadc
mov dword [eax], 5
call fcn.0040cac9
mov dword [eax], 0xd
jmp 0x41006c
xor eax, eax
pop esi
ret
Function at 0x417dac
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004112a3
xor ebx, ebx
cmp dword [0x444620], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x417e81
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x417dec
xor eax, eax
jmp 0x417f45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f1e8
push edi
call esi
cmp eax, ebx
je 0x417de5
push eax
call fcn.00411240
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x444620], eax
call esi
push eax
call fcn.00411240
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x444624], eax
call esi
push eax
call fcn.00411240
mov dword [0x444628], eax
lea eax, [ebp - 8]
push eax
call fcn.0040fae7
test eax, eax
pop ecx
pop ecx
je 0x417e4f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c96e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x417e81
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00411240
cmp eax, ebx
pop ecx
mov dword [0x444630], eax
je 0x417e81
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411240
pop ecx
mov dword [0x44462c], eax
mov eax, dword [0x44462c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x417efa
cmp dword [0x444630], esi
je 0x417efa
push eax
call fcn.004112ac
pop ecx
call eax
cmp eax, ebx
je 0x417ec7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x444630]
call fcn.004112ac
pop ecx
call eax
test eax, eax
je 0x417ec7
test byte [ebp - 0x18], 1
jne 0x417efa
lea eax, [ebp - 0xc]
push eax
call fcn.0040fb5a
test eax, eax
pop ecx
je 0x417ee2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c96e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x417ef1
or dword [ebp + 0x10], 0x200000
jmp 0x417f2b
or dword [ebp + 0x10], 0x40000
jmp 0x417f2b
mov eax, dword [0x444624]
cmp eax, esi
je 0x417f2b
push eax
call fcn.004112ac
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x417f2b
mov eax, dword [0x444628]
cmp eax, esi
je 0x417f2b
push dword [ebp - 4]
push eax
call fcn.004112ac
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x444620]
call fcn.004112ac
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420826
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440480]
jne 0x420830
repz ret
jmp fcn.004253b1

Function at 0x432a11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00426493
and dword [ebp - 0x14], 0
cmp dword [0x44395c], 0
mov dword [ebp - 0x18], eax
jne 0x432ac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432b6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432b6c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44395c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443964], eax
call edi
push eax
call esi
mov dword [0x44396c], eax
test eax, eax
je 0x432ac4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443968], eax
mov eax, dword [0x443968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432b1d
cmp dword [0x44396c], ecx
je 0x432b1d
push eax
call esi
push dword [0x44396c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432b1d
test ebx, ebx
je 0x432b1d
call edi
test eax, eax
je 0x432b14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432b14
test byte [ebp - 8], 1
jne 0x432b1d
or dword [ebp + 0x10], 0x200000
jmp 0x432b50
mov eax, dword [0x443960]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432b50
mov eax, dword [0x443964]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44395c]
call esi
test eax, eax
je 0x432b6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432b6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420826
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10011cb8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10011cc7
pop dword [ebp - 0x2c]
mov eax, 0xd9234163
add eax, 0x36dddb64
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x90158bf8
sub dword [ebp - 0x3c], 0x41c346ad
mov dword [ebp - 0x38], 0xc73f2bde
add dword [ebp - 0x38], 0x6af42067
mov dword [ebp - 0x34], 0x6aebb907
sub dword [ebp - 0x34], 0x1e9f74d9
mov dword [ebp - 0x30], 0xefb35cff
sub dword [ebp - 0x30], 0xefb35cff
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x2eb4d68d
sub eax, 0x1eb235c1
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xdd3b93cb
add dword [ebp - 0x3c], 0x9736d58b
mov dword [ebp - 0x38], 0x96c51bc6
add dword [ebp - 0x38], 0xaaa745af
mov dword [ebp - 0x34], 0x964cfd0d
add dword [ebp - 0x34], 0xcd226f5f
mov dword [ebp - 0x30], 0xb67d6579
add dword [ebp - 0x30], 0x49829a87
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x414b5
push 0
call eax
mov ecx, 0xc5771d48
add ecx, 0x3a8929b7
mov edi, eax
mov ebx, 0x6123fcf6
sub ebx, 0x51200ef6
add ebx, dword [ebp - 0x2c]
mov esi, 0xcf228da3
add esi, 0x43e4e127
xor dword [ebp - 0xc], edx
mov edx, dword [ebx]
add dword [ebp - 0xc], 0x2109139
xor edx, esi
xor dword [ebp - 0xc], 0xd6b74bea
mov dword [edi], edx
mov dword [ebp - 4], 0xba3f361d
add edi, 4
add ebx, 0x2d3b92bd
sub ebx, 0x2d3b92b9
loop 0x10011de4
add eax, 0x46c00db0
sub eax, 0x46befee1
mov ebx, eax
add eax, 0xc0fdffe4
sub eax, 0xc0fdffdf
mov ecx, 0x6d4fff57
add ecx, 0xa2b000a9
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10024795
Capabilities:
Print debug messages

Disassembly:
push 0x28
mov eax, 0x10029018
call fcn.100265a9
cmp byte [0x10036ee8], 0
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCR120.dll_sprintf]
mov dword [ebp - 0x30], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], esi
mov esi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
je 0x100247f9
call fcn.10011cb8
test al, al
mov edx, 0x1002a665
mov ecx, str._in_AppContaner
cmove ecx, edx
push ecx
push str.ASM_Retrieve_retrieving_shared_memory_in_Plug_in_s
push 0x100386f8
call edi
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x100247f9
push 0x100386f8
call esi
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
and dword [eax], 0
mov eax, dword [ebp - 0x30]
and dword [eax], 0
lea eax, [ebx + 4]
push eax
call fcn.10011cb8
push dword [ebx + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1000229e
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], eax
call fcn.10011cb8
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x10024862
cmp byte [0x10036ee8], cl
je 0x100248ae
push str.ASM_Retrieve_ERROR__finding_memory_mapped_file_
mov ebx, 0x100386f8
push ebx
call edi
cmp byte [0x10036ee8], 0
pop ecx
pop ecx
je 0x100248ae
push ebx
call esi
jmp 0x100248ae
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [ebx + 0x44], eax
test eax, eax
jne 0x1002487d
cmp byte [0x10036ee8], al
je 0x100248ae
push str.ASM_Retrieve_ERROR__getting_memory_mapped_file_handle_
jmp 0x1002484a
mov ecx, dword [ebp - 0x34]
push dword [ebx + 0x48]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebx + 0x4c], eax
test eax, eax
jne 0x1002489e
cmp byte [0x10036ee8], al
je 0x100248ae
push str.ASM_Retrieve_ERROR__mapping_for_writing_
jmp 0x1002484a
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebx + 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x4c]
mov dword [ecx], eax
call fcn.10026558
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40325b
pop dword [ebp - 0x1c]
mov eax, 0xb25212da
add eax, 0x4dee1f81
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x516fb912
sub dword [ebp - 0x2c], 0x31d73c7
mov dword [ebp - 0x28], 0x2dd6aa11
sub dword [ebp - 0x28], 0xfba35dcc
mov dword [ebp - 0x24], 0xe57b1464
add dword [ebp - 0x24], 0x66d12fca
mov dword [ebp - 0x20], 0x302391f7
add dword [ebp - 0x20], 0xcfdc6e09
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x80c109e2
sub eax, 0x8080896a
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xf70bd54
add dword [ebp - 0x2c], 0x6501ac02
mov dword [ebp - 0x28], 0xac4fbc64
sub dword [ebp - 0x28], 0x6ae35aef
mov dword [ebp - 0x24], 0xe480be00
add dword [ebp - 0x24], 0x7eeeae6c
mov dword [ebp - 0x20], 0xf7cc5883
add dword [ebp - 0x20], 0x833a77d
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xc8154187
add eax, 0x382b3ef5
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x376f0
push 0
call eax
mov ecx, 0x6b3729be
sub ecx, 0x6b36e022
xor ebx, ebx
add ebx, eax
mov edx, 0x459200
add edx, dword [ebp - 0x1c]
mov edi, 0x95bcfd71
add dword [ebp - 8], 0x3252d41d
mov esi, dword [edx]
mov dword [ebp - 0xc], 0xcb7f74f5
xor esi, edi
sub dword [ebp - 0x18], 0x51b80221
mov dword [ebx], esi
add ebx, 4
add edx, 0x276a204d
sub edx, 0x276a2049
loop 0x403373
add eax, 0xf09f934
sub eax, 0xf08dff1
mov ebx, eax
add eax, 5
mov ecx, 0xcd5ed2e
sub ecx, 0xc95ed2e
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4045e4
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.00406af8
test esi, esi
jne 0x40461c
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.00406c34
jmp 0x40463a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404528
mov edi, eax
test esi, esi
je 0x40463a
cmp dword [ebx], 0
je 0x40463a
dec esi
jmp 0x404623
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405e8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x57b054], 0
je 0x405eed
cmp word [0x57b330], 0xd7b2
jne 0x405eb5
cmp dword [0x57b338], 0
jbe 0x405eb5
mov eax, 0x57b32c
call dword [0x57b348]
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 0x405f18
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x56c034], 0
jne 0x405f09
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406078
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 [0x56c038], 0
je 0x40609e
mov edx, esi
mov eax, ebx
call dword [0x56c038]
jmp 0x4060ad
mov eax, 8
call fcn.00404238
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x57b055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406040
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 0x40763c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40767e
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40769e
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406cf8
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x408ccc
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 0x408e33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406af8
cmp si, word [0x56c7e0]
jb 0x408d66
cmp si, word [0x56c9e0]
ja 0x408d66
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408d66
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x56c7e0]
jae 0x408d40
mov edi, ebx
dec edi
jmp 0x408d61
cmp si, word [ebx*8 + 0x56c7e0]
jbe 0x408d50
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408d61
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x56c7e4]
call fcn.00408bdc
jmp 0x408d66
cmp edi, dword [ebp - 0xc]
jae 0x408d2a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408e15
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e15
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.00406cf8
push dword [ebp - 0x164]
push 0x408e50
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406cf8
push dword [ebp - 0x168]
push 0x408e60
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406cf8
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004070b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e3a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406af0
ret
Function at 0x408fec
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 0x4090f1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x57db5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x57db74]
jne 0x409038
mov eax, esi
mov edx, 0x57db78
mov ecx, 0x55
call fcn.00406cf8
push 0x57db5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4090db
push 0x57db5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406af8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4090a9
cmp byte [0x57db58], 0
je 0x40906e
mov edx, esi
mov eax, ebx
call fcn.00408ecc
jmp 0x4090a9
mov edx, esi
mov eax, ebx
call fcn.00408ccc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4090a9
cmp dword [esi], 0
je 0x409092
mov eax, esi
mov edx, 0x40910c
call fcn.00406f0c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408ccc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406f0c
push 0x57db5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x57db74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406b84
push eax
push 0x57db78
call sub.kernel32.dll_lstrcpynW
push 0x57db5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090f8
lea eax, [ebp - 4]
call fcn.00406ae8
ret