joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10065086
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x1006520d
je 0x10065234
sub eax, 0xa1
je 0x10065234
sub eax, 1
je 0x10065234
dec eax
sub eax, 1
je 0x10065234
sub eax, 1
je 0x10065234
dec eax
sub eax, 1
je 0x10065234
sub eax, 1
je 0x10065234
sub eax, 0x58
jne 0x10065272
cmp dword [edi + 0xc0], 0xffffffff
je 0x10065234
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10065234
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x10065162
sub eax, 1
jne 0x10065234
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x10065151
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x1016b960]
mov ecx, edi
call esi
test eax, eax
jne 0x100651ae
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x10065127
jmp 0x1006528c
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x1006528c
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x1016b960]
mov ecx, edi
call esi
test eax, eax
jne 0x100651ae
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x10065179
jmp 0x1006528c
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x1016b960]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x1016b960]
mov ecx, edi
call esi
mov ecx, eax
call fcn.10016aa6
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x1016b960]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x1006528c
sub eax, 0x200
je 0x10065234
sub eax, 1
je 0x10065234
sub eax, 1
je 0x10065234
dec eax
sub eax, 1
je 0x10065234
sub eax, 1
je 0x10065234
dec eax
sub eax, 1
je 0x10065234
sub eax, 1
jne 0x10065272
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x10065253
cmp dword [eax + 0x20], ebx
je 0x10065253
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x10065272
cmp dword [eax + 0x20], ebx
je 0x10065272
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x10065291
lea eax, [edi + 0x2250]
test eax, eax
je 0x10065288
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x10065291
xor eax, eax
inc eax
jmp 0x10065299
push esi
mov ecx, edi
call fcn.1005cfeb
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100834cd
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101b6e80]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x100834f9
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10083524
cmp dword [0x101bd47c], 0
jne 0x10083524
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x10083520
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x10083520
push edi
call fcn.1014da32
pop ecx
jmp 0x10083599
mov eax, edi
jmp 0x10083599
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x100835a8
push esi
call fcn.10005370
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push esi
push 1
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1013bd6b
leave
ret 4
call fcn.10007922
int3
Function at 0x1009ff51
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x100a00af
push esi
push edi
push 0x1017f74c
call fcn.10009a90
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x1009ffea
mov edi, dword [ebx + 0x168]
jmp 0x1009ffd6
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1009ffd6
push esi
call fcn.100118af
push eax
push 0x101b6700
call fcn.100099f1
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x1009ffd6
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x1016b960]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x1009ffd6
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x1009ff85
lea ecx, [ebx + 0x164]
call fcn.1000952a
jmp 0x100a00ad
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100a00ad
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.100094b1
mov edi, dword [eax]
test edi, edi
jne 0x100a0016
xor esi, esi
jmp 0x100a0019
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100a009d
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100a009d
cmp dword [ebp - 0x10], 0
jne 0x100a0072
push edi
push 0x101b6700
call fcn.100099f1
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x1016b960]
mov ecx, edi
call esi
push eax
push 0x101766ac
call fcn.100099f1
pop ecx
pop ecx
test eax, eax
je 0x100a009d
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.1009f0c2
test eax, eax
jne 0x100a009d
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.1009d1f7
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x100a0001
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100d95dd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100d960a
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x100d961f
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100d961f
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.100118af
jmp 0x100d96f0
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.100118af
cmp eax, edi
jne 0x100d96fa
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x100d968c
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x100d96d0
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x100d96fa
cmp eax, 0x205
je 0x100d96fa
cmp eax, 0x201
je 0x100d96fa
cmp eax, 0x204
je 0x100d96fa
cmp eax, 0x100
jne 0x100d96b8
cmp dword [ebp - 0x18], 0x1b
je 0x100d96fa
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x100d96f0
ja 0x100d96e9
cmp eax, dword [0x101be8d8]
jbe 0x100d96f0
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x100d9641
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100d9ad2
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x100d9b08
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.10002ee1
test eax, eax
je 0x100d9af0
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100e0359
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x101b65f4], 0
push esi
push edi
je 0x100e03e1
cmp dword [0x101b6930], 0xfffffffe
jne 0x100e03cd
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x100e03e1
mov edi, 0x101be904
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x101be91c], 0
jne 0x100e03e5
push 0
push 0
push 0x100e03eb
call fcn.10145c45
add esp, 0xc
mov dword [0x101be91c], eax
test eax, eax
je 0x100e03bd
cmp eax, 0xffffffff
je 0x100e03bd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x101b6930], esi
jmp 0x100e03c4
and dword [0x101be91c], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100e03e1
mov eax, dword [ebp + 8]
mov dword [0x101b6930], eax
cmp eax, 0xffffffff
jne 0x100e03e1
and dword [0x101be91c], 0
pop edi
pop esi
pop ebp
ret
call fcn.10007922
int3
Function at 0x100e99b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x100e9a4f
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x100e9a4b
mov eax, dword [eax + 0x20]
test eax, eax
je 0x100e9a4b
cmp dword [ebx], eax
jne 0x100e9a4b
mov eax, dword [ebx + 4]
sub eax, 1
je 0x100e9a25
sub eax, 1
je 0x100e99f5
sub eax, 1
jne 0x100e9a4b
mov edi, 0x428e
jmp 0x100e9a2a
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100e9a2a
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x1016b960]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x100e9a2a
add edi, 3
jmp 0x100e9a2a
mov edi, 0x3ea0
push edi
mov ecx, 0x101be960
call fcn.100039c5
test eax, eax
je 0x100e9a4f
mov eax, dword [0x101be960]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x100e9a44
call fcn.10007922
int3

Function at 0x100f391b
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.1014da62
pop ecx
test eax, eax
jne 0x100f395d
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1000635d
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100f3923
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x100f3b82
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x100f3bcf
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.101416b0
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x100f3bc6
mov edx, ecx
movsx ecx, byte [esi + edi]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x100f3bb4
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
call fcn.10007922
int3
Function at 0x100faea2
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x1015c702
call fcn.1013c459
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x100faf83
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100faf83
cmp esi, 0x43
je 0x100faee4
cmp esi, 0x2d
jne 0x100faf83
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100faf83
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.10001fee
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.100035b2
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100faf71
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x100faf71
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.10002648
push ebx
mov ecx, edi
call fcn.100f8328
call fcn.1013c427
ret 4
Function at 0x1014e5d1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1014e610
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1014e610
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1014e610
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1014e610
cmp dword [ecx + 0x74], 0xe
jbe 0x1014e610
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1015118d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10197ca0
push 0x10197c98
push str.FlsAlloc
push 0x1f
call fcn.1015100c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101511c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1016b960]
call esi
jmp 0x101511c7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1015120b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10197cb0
push 0x10197ca8
push str.FlsGetValue
push 0x21
call fcn.1015100c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10151242
push dword [ebp + 8]
mov ecx, esi
call dword [0x1016b960]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1015124a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10197cb8
push 0x10197cb0
push str.FlsSetValue
push 0x22
call fcn.1015100c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10151284
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1016b960]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1015648e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1015652b
push ebx
push esi
call fcn.10156457
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10153e71
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101564d8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1015652a
push edi
push eax
call fcn.1014fcbd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101564f8
call fcn.1014f462
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10156529
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10153e71
add esp, 0x20
test eax, eax
jne 0x10156517
push edi
call fcn.1014f462
jmp 0x1015651f
push ebx
call fcn.1014f462
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1015652e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1015653f
pop esi
ret
push ebx
push edi
push esi
call fcn.10156457
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1014fcbd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10156567
push ebx
push esi
push edi
call fcn.1013d940
add esp, 0xc
push 0
call fcn.1014f462
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10156937
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1015657c

Function at 0x1015bd10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1015bd3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1015bd3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4057e8
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.00407cd0
test esi, esi
jne 0x40581e
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.00407e58
jmp 0x40583c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040572c
mov edi, eax
test esi, esi
je 0x40583c
cmp dword [ebx], 0
je 0x40583c
dec esi
jmp 0x405825
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406920
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.00406de0
mov byte [esp], al
cmp byte [esp], 0
jne 0x406aa9
test edi, edi
je 0x406aa9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4069e9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4069c4
cmp edi, 0xffffffff
je 0x406985
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406985
mov byte [esp], 0
jmp 0x406aa9
cmp dword [esi], 1
jg 0x4069c4
cmp dword [esi], 0
jne 0x4069b6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4069b6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406aa9
lea eax, [esp + 0xc]
call fcn.00406600
dec ebp
test ebp, ebp
jg 0x40696a
cmp edi, 0xffffffff
je 0x4069e9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4069e7
mov byte [esp], 0
jmp 0x406aa9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40692e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4069e9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406b24
mov edx, eax
mov ebx, dword [0x5de8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x406a4d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406a4b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x406a4d
xor edi, edi
cmp byte [esp], 0
je 0x406a73
mov ebx, dword [esi]
test bl, 1
jne 0x406a89
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406a53
mov byte [esp + 1], 1
jmp 0x406a89
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406a73
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406a00
cmp byte [esp], 0
je 0x406aa9
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 0x407968
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5de05c], 0
je 0x4079cf
cmp word [0x5de348], 0xd7b2
jne 0x407991
cmp dword [0x5de350], 0
jbe 0x407991
mov eax, 0x5de344
call dword [0x5de360]
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, 0x4079fc
call fcn.004084c0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5d5032], 0
jne 0x4079eb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407b90
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 [0x5d5034], 0
je 0x407bbb
mov edx, edi
mov eax, esi
call dword [0x5d5034]
mov ebx, eax
jmp 0x407bcc
mov eax, 8
call fcn.00405468
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5de05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407b58
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 0x407bfc
mov eax, ebx
call fcn.00405484
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40a8d8
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 0x40aa3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407cd0
cmp si, word [0x5d5a08]
jb 0x40a970
cmp si, word [0x5d5c08]
ja 0x40a970
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a970
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5d5a08]
jae 0x40a94a
mov edi, ebx
dec edi
jmp 0x40a96b
cmp si, word [ebx*8 + 0x5d5a08]
jbe 0x40a95a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a96b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5d5a0c]
call fcn.0040a7f8
jmp 0x40a970
cmp edi, dword [ebp - 8]
jae 0x40a934
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40aa1f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40aa1f
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.0040880c
push dword [ebp - 0x160]
push 0x40aa58
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040880c
push dword [ebp - 0x164]
push 0x40aa68
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040880c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408a44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa44
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407d30
ret