joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c8e0
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100cde0
call fcn.0100cad4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1030664
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x100c697
cmp eax, esi
jne 0x100c68a
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100c69a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100c671
xor esi, esi
inc esi
mov eax, dword [0x1030660]
cmp eax, esi
jne 0x100c6ad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100c6dc
mov eax, dword [0x1030660]
test eax, eax
jne 0x100c6d6
mov dword [0x1030660], esi
push 0x10013a0
push 0x1001394
call fcn.0100c5d6
pop ecx
pop ecx
test eax, eax
je 0x100c6dc
jmp 0x100c804
mov dword [0x1030324], esi
mov eax, dword [0x1030660]
cmp eax, esi
jne 0x100c700
push 0x1001390
push 0x1001388
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1030660], 2
test ebx, ebx
jne 0x100c70c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1030668], 0
je 0x100c730
push 0x1030668
call fcn.0100ca49
pop ecx
test eax, eax
je 0x100c730
push 0
push 2
push 0
call dword [0x1030668]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x100c78c
test al, al
je 0x100c74a
cmp dword [ebp - 0x1c], 0
jne 0x100c78c
mov al, byte [esi]
test al, al
je 0x100c75a
cmp al, 0x20
ja 0x100c75a
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100c74a
test byte [ebp - 0x3c], 1
je 0x100c766
movzx eax, word [ebp - 0x38]
jmp 0x100c769
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1030320], eax
cmp dword [0x1030314], 0
jne 0x100c7e0
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x100c79b
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x100c7ae
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x100c737
cmp dword [0x1030324], 0
jne 0x100c7ef
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1030320]
jmp 0x100c810
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100cb19
ret
call fcn.0100cc21
jmp 0x100c637
Function at 0x6b801570
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
sub esp, 0x14
mov dword [esp], str.LIBUSB_DEBUG
call sym._getenv
test eax, eax
je 0x6b8015a1
mov dword [esp], eax
call sym._atoi
mov edx, 4
cmp eax, 4
cmovg eax, edx
test eax, eax
cmovns ebx, eax
add esp, 0x14
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x6b807df0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop edi
lea eax, [ebp - 0x58]
push eax
call fcn.6b807b59
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.6b807b0e
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x6b807e37
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.6b807b49
ljmp 0xc045

Function at 0x6b807f60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edi + edi*8 - 1], eax
dec dword [ebp + 0x5d88d445]
aam 0x50
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.6b807b59
push eax
push esi
push dword [ebp + 8]
call fcn.6b807b0e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.6b807b49
bound ecx, qword [ebp + 7]
cmp cl, byte [eax - 0x8363]
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid

Function at 0x6b8086b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
wait
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.6b807b59
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.6b807b0e
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
invalid
test ebx, esp
cli
invalid
Function at 0x6b80a1d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x11c]
sub esp, 0x12c
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
sub eax, 1
sub esp, 8
cmp eax, 0x102
ja 0x6b80a280
mov eax, dword [ebp + 0xc]
lea edi, [ebx + esi]
mov dword [esp], eax
call sym._strlen
lea eax, [esi + eax + 6]
cmp eax, 0x103
ja 0x6b80a250
mov eax, dword [ebp + 0xc]
mov dword [esp], edi
mov dword [esp + 4], str._s.dll
mov dword [esp + 8], eax
call sym._sprintf
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.program_assertion_failed___library_path_buffer_overflow
mov eax, dword [ebp + 8]
mov dword [esp + 8], str.load_system_library
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.program_assertion_failed___could_not_get_system_directory
jmp 0x6b80a258
Function at 0x6b80a290
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 8]
test edx, edx
je 0x6b80a4a5
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
movsx eax, byte [eax]
test al, al
je 0x6b80a4af
mov ecx, 0x1505
lea esi, [esi]
mov ebx, ecx
add edx, 1
shl ebx, 5
add eax, ebx
add ecx, eax
movsx eax, byte [edx - 1]
test al, al
jne 0x6b80a2c0
test ecx, ecx
mov ebx, 8
mov edi, 1
jne 0x6b80a450
mov dword [esp], 0x6b820144
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x6b82015c]
sub esp, 4
add ebx, edx
mov eax, dword [ebx]
test eax, eax
jne 0x6b80a360
mov ebx, edi
cmp dword [0x6b820140], 0x3fc
jbe 0x6b80a415
mov dword [esp + 0x10], 0x3fd
mov dword [esp + 0xc], str.hash_table_is_full___lu_entries_
xor ebx, ebx
mov dword [esp + 8], str.htab_hash
mov dword [esp + 4], 1
mov dword [esp], 0
call sym.libusb_1.0.dll_usbi_log
mov dword [esp], 0x6b820144
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edi, eax
mov esi, dword [ebx + 4]
jne 0x6b80a37c
mov eax, dword [ebp + 8]
mov dword [esp + 4], esi
mov ebx, edi
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x6b80a344
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], esi
mov esi, edi
mov dword [esp + 0xc], str.hash_collision___s_vs__s_
mov dword [esp + 8], str.htab_hash
mov ebx, edi
mov dword [esp + 4], 4
mov dword [esp], 0
mov dword [esp + 0x10], eax
call sym.libusb_1.0.dll_usbi_log
mov eax, edi
mov edx, 0x14191f7
mul edx
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [0x6b82015c]
shr eax, 9
imul eax, eax, 0x3fb
sub esi, eax
mov eax, 0x3fd
add esi, 1
sub eax, esi
mov dword [ebp - 0x1c], eax
nop
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
sub ecx, esi
add eax, ebx
cmp ebx, esi
cmova eax, ecx
cmp edi, eax
mov ebx, eax
je 0x6b80a306
lea ecx, [edx + eax*8]
mov eax, dword [ecx]
cmp edi, eax
je 0x6b80a480
test eax, eax
jne 0x6b80a3e0
cmp dword [0x6b820140], 0x3fc
ja 0x6b80a316
lea esi, [ebx*8]
mov ecx, dword [ebp + 8]
lea eax, [edx + esi]
mov dword [esp], ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.msvcrt.dll__strdup]
add esi, dword [0x6b82015c]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x6b80a4c0
mov dword [esi], edi
add dword [0x6b820140], 1
jmp 0x6b80a344
mov eax, ecx
mov edx, 0xc0906d
mul edx
mov eax, ecx
sub eax, edx
shr eax, 1
add edx, eax
shr edx, 9
imul edx, edx, 0x3fd
sub ecx, edx
je 0x6b80a2e6
mov edi, ecx
jmp 0x6b80a4b4
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strcmp
test eax, eax
mov edx, dword [ebp - 0x20]
jne 0x6b80a3e0
jmp 0x6b80a344
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 0x114
lea ebx, [edi*8]
jmp 0x6b80a2e6
mov dword [esp + 0xc], str.could_not_duplicate_string_for_hash_table
mov dword [esp + 8], str.htab_hash
xor ebx, ebx
mov dword [esp + 4], 1
mov dword [esp], 0
call sym.libusb_1.0.dll_usbi_log
jmp 0x6b80a344
Function at 0x6b814ea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x24]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], ecx
je 0x6b814f30
mov edx, eax
shl edx, 6
mov eax, dword [edx + eax*4 + 0x6b820200]
test eax, eax
je 0x6b814f9d
mov eax, dword [ebp - 0x1c]
xor esi, esi
lea ebx, [eax + 0x64]
jmp 0x6b814eeb
add esi, 1
add ebx, 0x1c
cmp esi, 0x20
je 0x6b814f20
mov edx, dword [ebx]
test edx, edx
je 0x6b814ee0
mov eax, dword [ebx + 4]
cmp byte [eax], 3
jne 0x6b814ee0
mov eax, dword [edi + 0x24]
mov ecx, 0xc0000000
mov eax, dword [eax + 0x1c]
call sym._windows_open.isra.23
cmp eax, 0xffffffff
je 0x6b814f35
mov dword [edi + esi*8 + 0x30], eax
add esi, 1
add ebx, 0x1c
cmp esi, 0x20
jne 0x6b814eeb
lea esi, [esi]
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ecx + 0x60]
jmp 0x6b814eba
mov dword [esp], 0
call sym._windows_error_str
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
imul esi, esi, 0x1c
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi + 0x64]
mov dword [esp + 0xc], str.could_not_open_device__s__interface__d_:__s
mov dword [esp + 8], str.winusbx_open
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call sym.libusb_1.0.dll_usbi_log
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, 0xfffffffc
cmp edx, 2
je 0x6b814f22
xor eax, eax
cmp edx, 5
setne al
lea eax, [eax + eax - 3]
jmp 0x6b814f22
mov eax, 0xfffffffd
jmp 0x6b814f22
Function at 0x6b815f90
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], 0x6b81f56c
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._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 sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x6b815ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6b820758]
test esi, esi
jle 0x6b8160dd
mov edi, dword [0x6b82075c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6b816024
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6b8160d6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6b816010
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x6b81611a
lea ebx, [esi + esi*2]
mov esi, dword [0x6b82075c]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6b82075c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6b8160fa
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6b8160cf
sub eax, 0x40
and eax, 0xffffffbf
je 0x6b8160cf
mov eax, dword [esp + 0x20]
add ebx, dword [0x6b82075c]
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
je 0x6b8160e4
add dword [0x6b820758], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x6b81602e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x6b82075c]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]

Function at 0x6b8166a0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x6b8166d8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x6b8166ce
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6b8166da
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6b8166c0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x406b44
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.00409d38
test esi, esi
jne 0x406b7a
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.00409ec0
jmp 0x406b98
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406a28
mov edi, eax
test esi, esi
je 0x406b98
cmp dword [ebx], 0
je 0x406b98
dec esi
jmp 0x406b81
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408e84
mov byte [esp], al
cmp byte [esp], 0
jne 0x408c2c
test edi, edi
je 0x408c2c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408b6c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x408b47
cmp edi, 0xffffffff
je 0x408b0b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408b0b
mov byte [esp], 0
jmp 0x408c2c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408b47
test ebx, ebx
jne 0x408b3d
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408b3d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408c2c
call 0x408fa4
dec ebp
test ebp, ebp
jg 0x408af0
cmp edi, 0xffffffff
je 0x408b6c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408b6a
mov byte [esp], 0
jmp 0x408c2c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408aba
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408b6c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408c98
mov edx, eax
mov ebx, dword [reloc.kernel32.dll_CreateEventW]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408bd0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408bce
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408bd0
xor edi, edi
cmp byte [esp], 0
je 0x408bf6
mov ebx, dword [esi]
test bl, 1
jne 0x408c0c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408bd6
mov byte [esp + 1], 1
jmp 0x408c0c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408bf6
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408b83
cmp byte [esp], 0
je 0x408c2c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4099d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x617058], 0
je 0x409a3b
cmp word [0x617344], 0xd7b2
jne 0x4099fd
cmp dword [reloc.user32.dll_SetWindowsHookExW], 0
jbe 0x4099fd
mov eax, 0x617340
call dword [0x61735c]
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, 0x409a68
call fcn.0040a608
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x60d034], 0
jne 0x409a57
push 0
push 0x60d9ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409bf8
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 [0x60d038], 0
je 0x409c23
mov edx, edi
mov eax, esi
call dword [0x60d038]
mov ebx, eax
jmp 0x409c34
mov eax, 8
call fcn.00406730
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x617059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409bc0
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 0x409c64
mov eax, ebx
call fcn.0040674c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c4e8
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 0x40c64d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409d38
cmp si, word [0x60da08]
jb 0x40c580
cmp si, word [0x60dc08]
ja 0x40c580
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c580
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x60da08]
jae 0x40c55a
mov edi, ebx
dec edi
jmp 0x40c57b
cmp si, word [ebx*8 + 0x60da08]
jbe 0x40c56a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c57b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x60da0c]
call fcn.0040c408
jmp 0x40c580
cmp edi, dword [ebp - 8]
jae 0x40c544
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c62f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c62f
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.0040a9c4
push dword [ebp - 0x160]
push 0x40c668
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a9c4
push dword [ebp - 0x164]
push 0x40c678
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a9c4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040abfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c654
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409d98
ret
Function at 0x40c800
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 0x40c904
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x619b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x619ba0]
jne 0x40c84c
mov eax, esi
mov edx, 0x619ba2
mov ecx, 0x55
call fcn.0040a9c4
push 0x619b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c8ee
push 0x619b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409d38
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c8bb
cmp byte [0x619b84], 0
je 0x40c880
mov edx, esi
mov eax, ebx
call fcn.0040c6e4
jmp 0x40c8bb
mov edx, esi
mov eax, ebx
call fcn.0040c4e8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c8bb
cmp dword [esi], 0
je 0x40c8a4
mov eax, esi
mov edx, 0x40c91c
call fcn.0040ab1c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c4e8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ab1c
push 0x619b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x619ba0], bx
mov eax, dword [esi]
call fcn.0040a908
mov ecx, eax
mov eax, 0x619ba2
mov edx, 0xaa
call fcn.0040c368
push 0x619b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c90b
lea eax, [ebp - 4]
call fcn.00409d38
ret