joyce8/EMBER2024-capa huggingface dataset:
Function at 0x853ed8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x853f2b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x853f2b
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push edx
push eax
push str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
push dword [ebp + 8]
call fcn.00853db1
add esp, 0x10
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x854013
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 1
push eax
call fcn.007cc76b
add esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
sub esp, 0xc
push eax
call fcn.007cbaac
add esp, 0x10
cmp eax, 0x64
jne 0x853fd8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
sub esp, 8
push 0
push eax
call fcn.007cc04e
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
sub esp, 8
push 0
push eax
call fcn.007cc015
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cdq
sub esp, 8
push edx
push eax
call fcn.0079bad2
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x853fbb
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 7
jmp 0x853fd8
mov eax, dword [ebp - 0x10]
sub esp, 4
push eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
sub esp, 8
push eax
push dword [ebp + 8]
call fcn.00853d84
add esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x854013
cmp dword [ebp - 0xc], 0
jne 0x854013
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str.Node__lld_missing_from_database
push dword [ebp + 8]
call fcn.00853e2c
add esp, 0x10
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x854018
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov dword [ebp - 0x1c], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add edx, 4
mov eax, dword [eax + edx*4 + 8]
test eax, eax
jne 0x854087
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + eax*4 - 0x20]
push ecx
push edx
push eax
push dword [ebp + 8]
call fcn.00853db1
add esp, 0x10
mov ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add edx, 4
mov dword [eax + edx*4 + 8], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x85418c
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add edx, 4
mov eax, dword [eax + edx*4 + 8]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 1
push dword [ebp - 0xc]
call fcn.007cc76b
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0xc]
call fcn.007cbaac
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x65
jne 0x854103
cmp dword [ebp + 0xc], 0
je 0x8540dc
mov eax, str.__rowid
jmp 0x8540e1
mov eax, str.__parent
sub esp, 4
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push str.Mapping___lld_____lld__missing_from__s_table
push dword [ebp + 8]
call fcn.00853e2c
add esp, 0x20
jmp 0x854179
cmp dword [ebp - 0x10], 0x64
jne 0x854179
sub esp, 8
push 0
push dword [ebp - 0xc]
call fcn.007cc132
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, eax
xor ecx, dword [ebp - 0x38]
mov ebx, ecx
mov eax, edx
xor eax, dword [ebp - 0x34]
mov esi, eax
mov eax, esi
or eax, ebx
test eax, eax
je 0x854179
cmp dword [ebp + 0xc], 0
je 0x854148
mov eax, str.__rowid
jmp 0x85414d
mov eax, str.__parent
sub esp, 4
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push dword [ebp + 8]
call fcn.00853e2c
add esp, 0x30
sub esp, 8
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00853d84
add esp, 0x10
jmp 0x85418d
nop
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x854ce8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov dword [0xcf8500], eax
mov eax, dword [0xcf8500]
test eax, eax
jne 0x854d52
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x3d
mov dword [esp + 4], 1
mov dword [esp], str.runtime:_failed_to_create_runtime_initialization_wait_event._n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
mov dword [esp], 0xcf84e8
mov eax, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call eax
sub esp, 4
nop
leave
ret

Function at 0x85507a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x8550d4
mov eax, dword [sym.imp.msvcrt.dll__beginthread]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x8550d1
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov edx, dword [sym.imp.msvcrt.dll__iob]
add edx, 0x40
mov dword [esp + 8], eax
mov dword [esp + 4], str.runtime:_failed_to_create_new_OS_thread___d__n
mov dword [esp], edx
call sub.msvcrt.dll_fprintf
call sub.msvcrt.dll_abort
nop
leave
ret

Function at 0x855600
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00855660
Function at 0x855660
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0xcf8880]
test esi, esi
jle 0x855764
mov edi, dword [0xcf8884]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x855694
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x855715
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x855680
mov dword [esp], eax
mov ebx, eax
call fcn.00855fb0
test eax, eax
mov edi, eax
je 0x85578b
mov eax, dword [0xcf8884]
lea ebx, [esi + esi*2]
shl ebx, 2
add eax, ebx
mov dword [eax + 8], edi
mov dword [eax], 0
call fcn.008560b0
add eax, dword [edi + 0xc]
mov edx, dword [0xcf8884]
mov dword [edx + ebx + 4], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x85576b
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x85570e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x855720
add dword [0xcf8880], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x20]
add ebx, dword [0xcf8884]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x85570e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00855600
xor esi, esi
jmp 0x85569e
mov eax, dword [0xcf8884]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00855600
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00855600
nop
lea esi, [esi]

Function at 0x855c30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xcf8898
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xcf8890]
sub esp, 4
test ebx, ebx
je 0x855c85
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x855c7e
test esi, esi
je 0x855c7e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x855c60
mov dword [esp], 0xcf8898
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x417b50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x417b72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417b79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417b68
mov eax, 1
add ebx, ebx
jne 0x417b8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417b80
jne 0x417b9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417b80
xor ecx, ecx
sub eax, 3
jb 0x417bb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417c22
mov ebp, eax
add ebx, ebx
jne 0x417bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417bc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417bec
inc ecx
add ebx, ebx
jne 0x417bd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417bcd
jne 0x417be9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417bcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417c0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417bfd
jmp 0x417b6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417c0c
add edi, ecx
jmp 0x417b6e
pop esi
mov edi, esi
mov ecx, 0xeb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417c2a
cmp byte [edi], 1
jne 0x417c2a
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 0x417c2f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417ca7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417c5c
mov ecx, edi
jns 0x417c8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1784c]
or eax, eax
je 0x417ca1
mov dword [ebx], eax
add ebx, 4
jmp 0x417c79
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x417cdb
sub esp, 0xffffff80
jmp 0x401028
Function at 0x43b630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x41d015
lea edi, [esi - 0x1c015]
push edi
or ebp, 0xffffffff
jmp 0x43b652
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43b659
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43b648
mov eax, 1
add ebx, ebx
jne 0x43b66b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43b660
jne 0x43b67c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43b660
xor ecx, ecx
sub eax, 3
jb 0x43b690
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43b702
mov ebp, eax
add ebx, ebx
jne 0x43b69b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43b6a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43b6cc
inc ecx
add ebx, ebx
jne 0x43b6b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43b6ad
jne 0x43b6c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43b6ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43b6ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43b6dd
jmp 0x43b64e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43b6ec
add edi, ecx
jmp 0x43b64e
pop esi
mov edi, esi
mov ecx, 0xaca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43b70a
cmp byte [edi], 7
jne 0x43b70a
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 0x43b70f
lea edi, [esi + 0x39000]
mov eax, dword [edi]
or eax, eax
je 0x43b787
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x41b04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x41ba4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43b73c
mov ecx, edi
jns 0x43b76b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x41ba8]
or eax, eax
je 0x43b781
mov dword [ebx], eax
add ebx, 4
jmp 0x43b759
call dword [esi + 0x41bb8]
mov ebp, dword [esi + 0x41bac]
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 0x43b7bb
sub esp, 0xffffff80
jmp 0x412a92
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x408630
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.00408af0
mov byte [esp], al
cmp byte [esp], 0
jne 0x4087b9
test edi, edi
je 0x4087b9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4086f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4086d4
cmp edi, 0xffffffff
je 0x408695
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408695
mov byte [esp], 0
jmp 0x4087b9
cmp dword [esi], 1
jg 0x4086d4
cmp dword [esi], 0
jne 0x4086c6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4086c6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4087b9
lea eax, [esp + 0xc]
call fcn.004082ec
dec ebp
test ebp, ebp
jg 0x40867a
cmp edi, 0xffffffff
je 0x4086f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4086f7
mov byte [esp], 0
jmp 0x4087b9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40863e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4086f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408834
mov edx, eax
mov ebx, dword [0xa7b8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40875d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40875b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40875d
xor edi, edi
cmp byte [esp], 0
je 0x408783
mov ebx, dword [esi]
test bl, 1
jne 0x408799
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408763
mov byte [esp + 1], 1
jmp 0x408799
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408783
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408710
cmp byte [esp], 0
je 0x4087b9
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 0x409444
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0xa7db98
cmp dword [ebp + 0xc], 2
jl 0x409458
mov ebx, 0xa7dbc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409490
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4050d8
mov dword [0xa7b01c], eax
mov eax, 0x4050e0
mov dword [0xa7b020], eax
mov eax, ebx
call fcn.00409328
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x4094c5
cmp al, 3
jge 0x4094c5
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4094d6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4094e1
call dword [ecx + eax*4]
cmp dword [0xa7b040], 0
jne 0x4094f7
mov byte [0xa7b048], 1
fnstcw word [0xa77024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409790
call fcn.004093d8
ret 4

Function at 0x4096f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0xa7b058], 0
je 0x40975f
cmp word [0xa7b344], 0xd7b2
jne 0x409721
cmp dword [0xa7b34c], 0
jbe 0x409721
mov eax, 0xa7b340
call dword [0xa7b35c]
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, 0x40978c
call fcn.0040a250
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0xa7702e], 0
jne 0x40977b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409920
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 [0xa77030], 0
je 0x40994b
mov edx, edi
mov eax, esi
call dword [0xa77030]
mov ebx, eax
jmp 0x40995c
mov eax, 8
call fcn.00406e10
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0xa7b059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4098e8
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 0x40998c
mov eax, ebx
call fcn.00406e2c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c44c
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 0x40c5b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409a60
cmp si, word [0xa77a00]
jb 0x40c4e4
cmp si, word [0xa77c00]
ja 0x40c4e4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c4e4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0xa77a00]
jae 0x40c4be
mov edi, ebx
dec edi
jmp 0x40c4df
cmp si, word [ebx*8 + 0xa77a00]
jbe 0x40c4ce
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c4df
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0xa77a04]
call fcn.0040c36c
jmp 0x40c4e4
cmp edi, dword [ebp - 8]
jae 0x40c4a8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c593
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c593
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.0040a59c
push dword [ebp - 0x160]
push 0x40c5cc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a59c
push dword [ebp - 0x164]
push 0x40c5dc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a59c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a7d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5b8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409ac0
ret