joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000655b
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi - 0x6c]
mov ecx, esi
call fcn.100078fd
test eax, eax
jne 0x1000657b
mov eax, 0x80070005
jmp 0x100065ec
push esi
mov ecx, esi
call fcn.100078fd
test eax, eax
js 0x100065ea
cmp dword [edi + 0x44], 0
je 0x100065ea
and dword [ebp + 8], 0
lea eax, [ebp - 0x10]
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
push eax
call esi
lea eax, [ebp - 8]
push eax
call esi
push 0x14
pop ecx
call fcn.100099b8
test eax, eax
je 0x100065c7
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
and dword [eax + 8], 0
mov dword [eax], vtable.CNameShowContactCardJob.0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
jmp 0x100065c9
xor eax, eax
push eax
lea ecx, [ebp + 8]
call fcn.100078fd
mov esi, dword [ebp + 8]
test esi, esi
je 0x100065ea
mov ecx, dword [edi + 0x44]
push esi
call fcn.100078fd
test eax, eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x1000a002
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x1000bfd5
call fcn.1000be6e
mov ebx, ecx
lea eax, [ebp - 0x14]
xor ecx, ecx
push eax
push 0x20019
push ecx
push 0x1000e1a8
mov dword [ebp - 4], ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push SysReAllocString
mov dword [ebp - 0x14], ecx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1000a0aa
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
and dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call edi
push 4
pop ebx
test eax, eax
jne 0x1000a09c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push str.InsecureQI
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000a09c
cmp dword [ebp - 0x18], ebx
jne 0x1000a09c
mov edi, dword [ebp - 0x1c]
cmp edi, 3
ja 0x1000a09c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], eax
je 0x1000a0ac
push dword [ebp - 0x10]
call esi
jmp 0x1000a0ac
mov byte [ebp - 4], bl
cmp dword [ebp - 0x10], 0
je 0x1000a0aa
push dword [ebp - 0x10]
call esi
xor edi, edi
mov dword [ebp - 4], 5
cmp dword [ebp - 0x14], 0
je 0x1000a0be
push dword [ebp - 0x14]
call esi
mov eax, edi
call fcn.1000be4c
ret
Function at 0x68c411c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x2c
test eax, eax
je 0x68c41261
mov dword [esp + 0x14], 0
mov ebx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_MultiByteToWideChar
mov edi, eax
sub esp, 0x18
lea edx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x68c41261
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_MultiByteToWideChar
sub esp, 0x18
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x68c41710
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x68c41734
mov eax, ebx
call fcn.68c411c0
mov ebx, eax
test eax, eax
je 0x68c417c0
test esi, esi
je 0x68c41749
mov eax, esi
call fcn.68c411c0
mov esi, eax
test eax, eax
je 0x68c417d0
test byte [0x68c43018], 1
jne 0x68c417a0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
xor eax, eax
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.68c41620
sub esp, 0xc
jmp 0x68c41752
mov eax, 0xe
jmp 0x68c41795
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov eax, 0xe
sub esp, 0xc
jmp 0x68c41795

Function at 0x68c41840
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x68c4185b
mov eax, ebx
call fcn.68c411c0
mov ebx, eax
test eax, eax
je 0x68c418a8
test byte [0x68c43018], 1
jne 0x68c41890
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
xor eax, eax
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 8
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.68c415d0
sub esp, 8
jmp 0x68c41864
mov eax, 0xe
jmp 0x68c41889
Function at 0x68c418f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x68c4190b
mov eax, ebx
call fcn.68c411c0
mov ebx, eax
test eax, eax
je 0x68c41958
test byte [0x68c43018], 1
jne 0x68c41940
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
xor eax, eax
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 8
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.68c41580
sub esp, 8
jmp 0x68c41914
mov eax, 0xe
jmp 0x68c41939

Function at 0x100010d0
Capabilities:
Delete network filter via wfp api
Enumerate network filters via wfp api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push 0xa
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.fwpuclnt.dll_FwpmEngineOpen0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov esi, dword [eax + 0x10002080]
mov eax, dword [0x1000300c]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x10001153
push str.RtlZeroMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000300c], eax
test eax, eax
je 0x1000115c
push 0x30
lea ecx, [esp + 0x24]
push ecx
call eax
movdqu xmm0, xmmword [esi]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 1
push eax
push edi
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 2
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.fwpuclnt.dll_FwpmFilterCreateEnumHandle0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
push dword [esp + 0x1c]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterEnum0]
mov ebx, eax
test ebx, ebx
jne 0x10001214
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10001214
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10001214
xor esi, esi
test edx, edx
je 0x10001209
mov eax, dword [edi + esi*4]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x100011e6
cmp dword [ecx], 0
jne 0x10001204
push dword [eax + 0x8c]
push dword [eax + 0x88]
push dword [esp + 0x14]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDeleteById0]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc esi
cmp esi, edx
jb 0x100011d7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmFreeMemory0]
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDestroyEnumHandle0]
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
cmp eax, 8
jb 0x10001120
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10001245
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmEngineClose0]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x126c0f90
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x42f314
mov ecx, 0x65c46f71
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4920e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x45b015
lea edi, [esi - 0x5a015]
push edi
or ebp, 0xffffffff
jmp 0x492102
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x492109
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4920f8
mov eax, 1
add ebx, ebx
jne 0x49211b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49212c
jne 0x49214b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49214b
dec eax
add ebx, ebx
jne 0x492138
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x492110
add ebx, ebx
jne 0x492147
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x49219d
xor ecx, ecx
sub eax, 3
jb 0x492163
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4921d2
sar eax, 1
mov ebp, eax
jmp 0x49216e
add ebx, ebx
jne 0x49216e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49213c
inc ecx
add ebx, ebx
jne 0x49217c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49213c
add ebx, ebx
jne 0x492189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49217e
jne 0x49219a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49217e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4921bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4921ae
jmp 0x4920fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4921bc
add edi, ecx
jmp 0x4920fe
pop esi
mov edi, esi
mov ecx, 0x2c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4921da
cmp byte [edi], 0
jne 0x4921da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4921df
lea edi, [esi + 0x90000]
mov eax, dword [edi]
or eax, eax
je 0x49224e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x921e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9226c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49220c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x92274]
or eax, eax
je 0x492248
mov dword [ebx], eax
add ebx, 4
jmp 0x492229
call dword [esi + 0x92270]
mov ebp, dword [esi + 0x92278]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x492282
sub esp, 0xffffff80
jmp 0x401d2a
Function at 0x49cff4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x49d003
pop dword [ebp - 0x14]
mov eax, 0xcafcecbe
add eax, 0x354ce345
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xd1572bdf
sub dword [ebp - 0x24], 0x8304e694
mov dword [ebp - 0x20], 0x36c07c37
sub dword [ebp - 0x20], 0x48d2ff2
mov dword [ebp - 0x1c], 0x276c8031
sub dword [ebp - 0x1c], 0xdb203c03
mov dword [ebp - 0x18], 0x2a532567
sub dword [ebp - 0x18], 0x2a532567
lea eax, [ebp - 0x24]
push eax
mov eax, 0x93764eb2
add eax, 0x6cd532a2
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xa74d6611
add dword [ebp - 0x24], 0xcd250345
mov dword [ebp - 0x20], 0x478e6df2
add dword [ebp - 0x20], 0xf9ddf383
mov dword [ebp - 0x1c], 0xb53c158d
sub dword [ebp - 0x1c], 0x51cca921
mov dword [ebp - 0x18], 0xe8c47a69
sub dword [ebp - 0x18], 0xe8c47a69
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x3c282840
add eax, 0xc4235b0c
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x653ef
push 0
call eax
mov ecx, 0x50e5
mov edx, eax
mov edi, 0xb58ab69f
sub edi, 0xb532b49f
add edi, dword [ebp - 0x14]
mov esi, 0x6271c92e
sub esi, 0x4c26a2c3
mov dword [ebp - 4], 0x9fc02647
mov ebx, dword [edi]
sub dword [ebp - 0x10], 0x846f70cd
xor ebx, esi
sub dword [ebp - 0xc], edx
mov dword [edx], ebx
add dword [ebp - 0x10], esi
add edx, 0xc9f574d5
sub edx, 0xc9f574d1
add edi, 0xedf1a9ee
sub edi, 0xedf1a9ea
loop 0x49d11f
add eax, 0xf42a6517
add eax, 0xbd6d150
mov ebx, eax
add eax, 5
mov ecx, 0x3f7733c9
sub ecx, 0x3f3733c9
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10007073
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007073
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10007073
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10007073
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10007073
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10007073
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10007073
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10007073
push 0xd008
push edi
call fcn.10007073
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10007073
int3

Function at 0x10007073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10007082
pop dword [ebp - 8]
mov eax, 0x10007082
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3365d
push 0
mov eax, 0x4ff8952e
add eax, 0xc008ab36
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x83c7e36b
add ecx, 0x7c384e0e
xor esi, esi
add esi, eax
mov edx, 0x23023ad0
sub edx, 0x1300b4d0
add edx, dword [ebp - 8]
mov ebx, 0xaa4934de
xor dword [ebp - 4], edx
mov edi, dword [edx]
mov dword [ebp - 4], 0x7f00c280
add edi, ebx
mov dword [esi], edi
xor dword [ebp - 4], 0xce19c0ea
add esi, 0x5a2a5b2e
add esi, 0xa5d5a4d6
add edx, 0x1311cba
sub edx, 0x1311cb6
loop 0x100070d8
add eax, 0x5dd48c2
sub eax, 0x5dc900b
xor ebx, ebx
add ebx, eax
add eax, 0x7f7846b5
add eax, 0x8087b950
mov ecx, 0x28e91450
sub ecx, 0x18e91450
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x406b28
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.00409914
test esi, esi
jne 0x406b5e
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.00409a9c
jmp 0x406b7c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406a0c
mov edi, eax
test esi, esi
je 0x406b7c
cmp dword [ebx], 0
je 0x406b7c
dec esi
jmp 0x406b65
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406bb0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x75f008], 0x8088405
inc edx
mov dword [ebx + 0x75f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406bcc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x75f008], 0x8088405
inc edx
mov dword [ebx + 0x75f008], edx
fld qword [ebx + 0x75f798]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret
Function at 0x408540
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.00408924
mov byte [esp], al
cmp byte [esp], 0
jne 0x4086ca
test edi, edi
je 0x4086ca
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40860a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4085e5
cmp edi, 0xffffffff
je 0x4085a5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4085a5
mov byte [esp], 0
jmp 0x4086ca
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4085e5
test ebx, ebx
jne 0x4085d7
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4085d7
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4086ca
lea eax, [esp + 0xc]
call fcn.00408220
dec ebp
test ebp, ebp
jg 0x40858a
cmp edi, 0xffffffff
je 0x40860a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408608
mov byte [esp], 0
jmp 0x4086ca
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40854e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40860a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408738
mov edx, eax
mov ebx, dword [0x7698fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40866e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40866c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40866e
xor edi, edi
cmp byte [esp], 0
je 0x408694
mov ebx, dword [esi]
test bl, 1
jne 0x4086aa
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408674
mov byte [esp + 1], 1
jmp 0x4086aa
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408694
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408621
cmp byte [esp], 0
je 0x4086ca
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 0x4095b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x76905c], 0
je 0x409617
cmp word [0x769348], 0xd7b2
jne 0x4095d9
cmp dword [0x769350], 0
jbe 0x4095d9
mov eax, 0x769344
call dword [0x769360]
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, 0x409644
call fcn.0040a3a8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x75f032], 0
jne 0x409633
push 0
push 0x75f9da
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4097d4
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 [0x75f034], 0
je 0x4097ff
mov edx, edi
mov eax, esi
call dword [0x75f034]
mov ebx, eax
jmp 0x409810
mov eax, 8
call fcn.00406718
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x76905d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40979c
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 0x409840
mov eax, ebx
call fcn.00406734
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40c590
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 0x40c6f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409914
cmp si, word [0x75fa18]
jb 0x40c628
cmp si, word [0x75fc18]
ja 0x40c628
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c628
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x75fa18]
jae 0x40c602
mov edi, ebx
dec edi
jmp 0x40c623
cmp si, word [ebx*8 + 0x75fa18]
jbe 0x40c612
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c623
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x75fa1c]
call fcn.0040c4b0
jmp 0x40c628
cmp edi, dword [ebp - 8]
jae 0x40c5ec
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c6d7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c6d7
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.0040aa00
push dword [ebp - 0x160]
push 0x40c710
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aa00
push dword [ebp - 0x164]
push 0x40c720
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aa00
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ac38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6fc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409974
ret