joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100056c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c22b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10023470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10007f2d
push 4
mov dword [ebp - 4], 0
call fcn.10009e10
mov edi, eax
add esp, 4
test edi, edi
je 0x1000573c
call fcn.10007d28
mov dword [edi], eax
call fcn.10007ae7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10007eee
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10005732
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10007f16
jmp 0x1000573e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10005fe0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x82
xor ecx, ecx
jmp 0x10005ff0
mov al, byte [edi + ecx + 0x2e62e9b2]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x19
jb 0x10005ff0
mov byte [esi + 0x19], 0
mov eax, esi
ret

Function at 0x10006010
Capabilities:
Encode data using xor

Disassembly:
mov edx, 9
xor ecx, ecx
jmp 0x10006020
mov al, byte [edi + ecx - 0x7bd60ae8]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x1a
jb 0x10006020
mov byte [esi + 0x1a], 0
mov eax, esi
ret

Function at 0x100062a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x1b
xor ecx, ecx
jmp 0x100062b0
mov al, byte [edi + ecx - 0x56714f1a]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x1b
jb 0x100062b0
mov byte [esi + 0x1b], 0
mov eax, esi
ret

Function at 0x100064e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1012ae9c]
push esi
xor esi, esi
cmp eax, esi
je 0x100064fb
lea esp, [esp]
cmp dword [eax + 4], esi
jne 0x10006543
mov eax, dword [eax]
cmp eax, esi
jne 0x100064f0
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
je 0x10006543
lea ecx, [eax + 0x20]
mov edx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
sub edx, eax
nop
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], ecx
add edx, 0x20
add ecx, 0x20
cmp edx, 0xfe0
jbe 0x10006520
mov ecx, dword [0x1012ae9c]
mov dword [eax], ecx
mov dword [0x1012ae9c], eax
pop esi
ret
Function at 0x10006ee0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10023470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10006fc4
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10006fbd
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [ebp - 0x20], 0x10
jb 0x10006fa2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10006fa2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10006fa2
mov eax, dword [esi]
test eax, eax
jne 0x10006f67
mov ecx, dword [0x10129c08]
push 0x200
push eax
push ecx
mov dword [esi + 4], 0x80
call edi
mov dword [esi], eax
test eax, eax
je 0x10006fbc
jmp 0x10006f94
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jb 0x10006f94
lea edx, [ecx*8]
push edx
push eax
mov eax, dword [0x10129c08]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10006fbc
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx*4], ecx
inc dword [esi + 8]
lea edx, [ebp - 0x20]
push edx
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10006f27
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000836e
mov esp, ebp
pop ebp
ret

Function at 0x10006fe0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.10006ee0
cmp dword [esi], ebx
je 0x1000703b
cmp dword [esi + 8], ebx
jbe 0x1000703b
push edi
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10007034
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push edi
call fcn.10006d80
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10007000
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10007040
Capabilities:
Resume thread

Disassembly:
cmp dword [ebx], 0
je 0x1000708d
push edi
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x1000707b
push esi
mov edi, edi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10007074
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebx + 8]
jb 0x10007050
pop esi
mov edx, dword [ebx]
mov eax, dword [0x10129c08]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret
Function at 0x10007090
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
imul esi, esi, 0x2c
add esi, dword [0x1012ae90]
push edi
test byte [esi + 0x14], 1
mov edi, dword [esi]
mov ebx, 5
je 0x100070b6
sub edi, ebx
mov ebx, 7
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100070d4
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov ecx, dword [esi + 4]
sub ecx, edi
sub ecx, 5
mov dword [edi + 1], ecx
test byte [esi + 0x14], 1
je 0x100070ef
mov eax, dword [esi]
mov word [eax], 0xf9eb
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007120
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [0x1012ae98]
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [ebp - 4], esi
test ecx, ecx
je 0x1000727d
mov eax, dword [0x1012ae90]
add eax, 0x14
test byte [eax], 2
je 0x1000715a
inc edi
add eax, 0x2c
cmp edi, ecx
jb 0x10007145
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x1000727d
push ebx
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
call fcn.10006fe0
add esp, 8
cmp edi, dword [0x1012ae98]
jae 0x10007233
mov eax, edi
imul eax, eax, 0x2c
mov dword [ebp - 0x10], eax
lea ebx, [ebx]
mov ecx, dword [0x1012ae90]
test byte [eax + ecx + 0x14], 2
lea esi, [eax + ecx]
jne 0x10007211
test byte [esi + 0x14], 1
mov edi, dword [esi]
mov ebx, 5
je 0x100071b4
sub edi, ebx
mov ebx, 7
lea edx, [ebp - 0xc]
push edx
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10007229
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100071e1
mov eax, dword [esi]
mov word [eax], 0xf9eb
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
push ecx
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov dword [ebp - 4], 0
inc edi
add eax, 0x2c
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], eax
cmp edi, dword [0x1012ae98]
jb 0x10007190
jmp 0x10007230
mov dword [ebp - 4], 0xa
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x1000727c
xor edi, edi
cmp dword [ebp - 0x14], edi
jbe 0x1000726c
mov eax, dword [ebx + edi*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10007263
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x10007241
mov esi, dword [ebp - 4]
mov ecx, dword [0x10129c08]
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000836e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10023470]
jne 0x10008378
repz ret
jmp fcn.1000cdc1

Function at 0x10016e44
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10023470]
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.1000ef4d
and dword [ebp - 0x14], 0
cmp dword [0x101297b8], 0
mov dword [ebp - 0x18], eax
jne 0x10016ef7
push 0x1001f964
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10016f9f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10016f9f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x101297b8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x101297bc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x101297c0], eax
call edi
push eax
call esi
mov dword [0x101297c8], eax
test eax, eax
je 0x10016ef7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x101297c4], eax
mov eax, dword [0x101297c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10016f50
cmp dword [0x101297c8], ecx
je 0x10016f50
push eax
call esi
push dword [0x101297c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10016f50
test ebx, ebx
je 0x10016f50
call edi
test eax, eax
je 0x10016f47
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10016f47
test byte [ebp - 8], 1
jne 0x10016f50
or dword [ebp + 0x10], 0x200000
jmp 0x10016f83
mov eax, dword [0x101297bc]
cmp eax, dword [ebp - 0x18]
je 0x10016f83
push eax
call esi
test eax, eax
je 0x10016f83
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10016f83
mov eax, dword [0x101297c0]
cmp eax, dword [ebp - 0x18]
je 0x10016f83
push eax
call esi
test eax, eax
je 0x10016f83
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x101297b8]
call esi
test eax, eax
je 0x10016f9f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10016fa1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000836e
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1180af8
call fcn.0040121c
mov edi, 0x94
mov eax, edi
call fcn.004011dc
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1180af8], ecx
mov eax, dword [esi + 4]
mov dword [0x1180afc], eax
mov edx, dword [esi + 8]
mov dword [0x1180b00], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1180b04], esi
cmp ecx, 2
je 0x401060
or esi, 0x8000
mov dword [0x1180b08], esi
shl eax, 8
add eax, edx
mov dword [0x1180af8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40109b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40109b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010b3
cmp eax, 0x20b
je 0x4010a0
mov dword [ebp - 0x1c], esi
jmp 0x4010c7
cmp dword [ecx + 0x84], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010c1
cmp dword [ecx + 0x74], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401224
pop ecx
test eax, eax
jne 0x4010f3
cmp dword [0x1180af8], 1
jne 0x4010e0
call fcn.00401224
push 0x1c
call fcn.00401224
push 0xff
call fcn.00401224
pop ecx
pop ecx
call fcn.00401224
mov dword [ebp - 4], esi
call fcn.00401224
test eax, eax
jge 0x40110c
push 0x1b
call fcn.00401224
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1180af8], eax
call fcn.00401224
mov dword [0x1180afc], eax
call fcn.00401224
test eax, eax
jge 0x401132
push 8
call fcn.00401224
pop ecx
call fcn.00401224
test eax, eax
jge 0x401143
push 9
call fcn.00401224
pop ecx
push 1
call fcn.00401224
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401159
push eax
call fcn.00401224
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401224
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40117a
movzx eax, word [ebp - 0x40]
jmp 0x40117d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401228
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40119b
push edi
call fcn.00401220
call fcn.00401224
jmp 0x4011cd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401224
ret

Function at 0x401228
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1b9000
push section..rdata
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401252
push 0xfc837c
jmp 0x40125e
pop ebx
pop edi
pop esi
leave
ret 0x14
ret
Function at 0x4071f0
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.00409c7c
test esi, esi
jne 0x407226
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.00409e04
jmp 0x407244
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407134
mov edi, eax
test esi, esi
je 0x407244
cmp dword [ebx], 0
je 0x407244
dec esi
jmp 0x40722d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408914
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408da0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408a9d
test edi, edi
je 0x408a9d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4089dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4089b8
cmp edi, 0xffffffff
je 0x408979
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408979
mov byte [esp], 0
jmp 0x408a9d
cmp dword [esi], 1
jg 0x4089b8
cmp dword [esi], 0
jne 0x4089aa
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4089aa
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408a9d
lea eax, [esp + 0xc]
call fcn.004085d0
dec ebp
test ebp, ebp
jg 0x40895e
cmp edi, 0xffffffff
je 0x4089dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089db
mov byte [esp], 0
jmp 0x408a9d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408922
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b0c
mov edx, eax
mov ebx, dword [0x5f18fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a41
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a3f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a41
xor edi, edi
cmp byte [esp], 0
je 0x408a67
mov ebx, dword [esi]
test bl, 1
jne 0x408a7d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a47
mov byte [esp + 1], 1
jmp 0x408a7d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a67
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4089f4
cmp byte [esp], 0
je 0x408a9d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409914
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f105c], 0
je 0x40997b
cmp word [0x5f1348], 0xd7b2
jne 0x40993d
cmp dword [0x5f1350], 0
jbe 0x40993d
mov eax, 0x5f1344
call dword [0x5f1360]
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
mov eax, 0x4099a8
call fcn.0040a424
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5eb032], 0
jne 0x409997
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409b3c
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 [0x5eb034], 0
je 0x409b67
mov edx, edi
mov eax, esi
call dword [0x5eb034]
mov ebx, eax
jmp 0x409b78
mov eax, 8
call fcn.00406e70
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5f105d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b04
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 0x409ba8
mov eax, ebx
call fcn.00406e8c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c820
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 0x40c985
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409c7c
cmp si, word [0x5eba00]
jb 0x40c8b8
cmp si, word [0x5ebc00]
ja 0x40c8b8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c8b8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5eba00]
jae 0x40c892
mov edi, ebx
dec edi
jmp 0x40c8b3
cmp si, word [ebx*8 + 0x5eba00]
jbe 0x40c8a2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c8b3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5eba04]
call fcn.0040c740
jmp 0x40c8b8
cmp edi, dword [ebp - 8]
jae 0x40c87c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c967
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c967
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.0040a7c4
push dword [ebp - 0x160]
push 0x40c9a0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a7c4
push dword [ebp - 0x164]
push 0x40c9b0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a7c4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a9fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c98c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409cdc
ret
Function at 0x40cb38
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 0x40cc3c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5f3c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5f3c2c]
jne 0x40cb84
mov eax, esi
mov edx, 0x5f3c2e
mov ecx, 0x55
call fcn.0040a7c4
push 0x5f3c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cc26
push 0x5f3c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409c7c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cbf3
cmp byte [0x5f3c10], 0
je 0x40cbb8
mov edx, esi
mov eax, ebx
call fcn.0040ca1c
jmp 0x40cbf3
mov edx, esi
mov eax, ebx
call fcn.0040c820
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cbf3
cmp dword [esi], 0
je 0x40cbdc
mov eax, esi
mov edx, 0x40cc54
call fcn.0040a91c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c820
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a91c
push 0x5f3c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5f3c2c], bx
mov eax, dword [esi]
call fcn.0040a720
mov ecx, eax
mov eax, 0x5f3c2e
mov edx, 0xaa
call fcn.0040c6a0
push 0x5f3c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc43
lea eax, [ebp - 4]
call fcn.00409c7c
ret
Function at 0x40d380
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d60
xor eax, eax
push ebp
push 0x40d440
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a7c4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a974
mov eax, dword [ebx]
call fcn.0040d248
test al, al
jne 0x40d41d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a7c4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a974
mov eax, dword [ebx]
call fcn.0040d248
test al, al
jne 0x40d41d
mov eax, ebx
call fcn.00409c7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d447
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409cdc
lea eax, [ebp - 4]
call fcn.00409c7c
ret

Function at 0x40f170
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret