joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10097788
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1014b7a8
call fcn.10143748
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1008c4ce
xor ebx, ebx
mov dword [esi], vtable.ScObjects::Thread.0
push 0x10
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
call fcn.1013d095
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x100977cf
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x100977d1
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10097990
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
mov edx, eax
add esp, 0x18
cmp edx, 0xffffffff
jne 0x10097801
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
jmp 0x10097809
mov eax, dword [ebp - 0x10]
mov ebx, edx
mov dword [esi + 0xc], eax
mov dword [ecx + 4], ebx
mov eax, esi
call fcn.10143711
ret

Function at 0x10097a80
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x10097a92
mov eax, dword [ecx + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x1009dc82
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x1014c549
call fcn.1014377c
mov esi, dword [ebp + 8]
xor edi, edi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
call fcn.10097c22
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.1009dd82
test eax, eax
jne 0x1009dcc6
push 0xffffffffffffffff
push 0x10155f30
mov ecx, esi
call fcn.1013d095
jmp 0x1009dd0c
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, esi
push 0xffffffffffffffff
push 0x10155f30
test eax, eax
je 0x1009dcbf
call fcn.1013d095
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x10162258
push eax
call fcn.1013d095
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.1013d095
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x1009dce5
mov eax, esi
call fcn.10143726
ret

Function at 0x1009dd82
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [0x107d14a0]
test esi, esi
jne 0x1009ddd7
push esi
push 1
push esi
push esi
push 0x107d14a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1009ddd1
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1009ddd1
push 8
push 1
push esi
push esi
push 0x107d14a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1009ddd1
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x107d14a0], esi
jmp 0x1009ddd7
mov esi, dword [0x107d14a0]
mov eax, esi
pop esi
ret
Function at 0x1009df6e
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x54
mov eax, 0x1014c611
call fcn.1014377c
mov ebx, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], eax
call fcn.1009dd82
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], eax
call fcn.10097c22
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.10097c22
push edi
mov eax, 0x101622e0
mov dword [ebp - 0x44], 1
push eax
push esi
push eax
push edi
push ebx
call fcn.1013d095
pop ecx
pop ecx
push eax
call fcn.1013d095
pop ecx
pop ecx
push eax
call fcn.1013d095
pop ecx
pop ecx
push eax
call fcn.1013d095
pop ecx
pop ecx
push eax
call fcn.1013d095
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
test eax, eax
jne 0x1009e003
push 0xffffffffffffffff
push 0x10155f30
mov ecx, ebx
call fcn.1013d095
jmp 0x1009e0bf
lea ecx, [ebp - 0x3c]
xor esi, esi
push ecx
push esi
push esi
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1009dff0
push esi
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1009dff0
push 4
pop ecx
push esi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x40], esi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
push eax
push ecx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1009dff0
push dword [ebp - 0x40]
call fcn.1013d095
mov edi, eax
pop ecx
test edi, edi
je 0x1009dff0
push esi
lea eax, [ebp - 0x40]
push eax
push edi
push 2
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, ebx
push 0xffffffffffffffff
push 0x10155f30
test eax, eax
jne 0x1009e083
call fcn.1013d095
jmp 0x1009e0b8
call fcn.1013d095
cmp dword [ebp - 0x40], esi
jbe 0x1009e0b8
cmp esi, 0x28
jae 0x1009e0b8
movzx eax, byte [esi + edi]
push eax
lea eax, [ebp - 0x38]
push 0x10162258
push eax
call fcn.1013d095
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.1013d095
add esp, 0x14
inc esi
cmp esi, dword [ebp - 0x40]
jb 0x1009e08d
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
cmp dword [ebp - 0x3c], 0
je 0x1009e0ce
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x60]
call fcn.1013d095
mov eax, ebx
call fcn.10143726
ret
Function at 0x100ab3c5
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x1014e980
call fcn.10143748
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x1018ee8c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100a71a2
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.10097c22
lea eax, [esi + 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1013d095
pop ecx
pop ecx
push eax
call fcn.1013d095
push 0xc
lea edi, [esi + 0x56]
push ebx
push edi
call sub.VCRUNTIME140.dll_memset
push edi
mov ecx, ebx
call fcn.1013d095
add esp, 0x18
test al, al
je 0x100ab438
cmp dword [esi + 0x5a], ebx
cmovne ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CreateMailslotA]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x52], eax
call fcn.1013d095
mov eax, esi
call fcn.10143711
ret 8

Function at 0x100ab5c0
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x1014c080
call fcn.10143748
mov esi, ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.1008c49b
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.10097af3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax + 8]
push dword [eax + 4]
call fcn.1013d095
push 0
xor ecx, ecx
lea eax, [esi + 0x56]
cmp dword [esi + 0x5a], ecx
push 0x80
push 3
cmovne ecx, eax
push ecx
push ebx
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_CreateFileA]
and dword [ebp - 0x10], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x100ab65b
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0
push ecx
push dword [edi + 8]
push dword [edi + 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x100ab65b
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
je 0x100ab65d
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.1013d095
lea ecx, [ebp - 0x18]
call fcn.1013d095
mov al, bl
call fcn.10143711
ret 8
Function at 0x10122f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1012301b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x10122fd2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x10122fd2
cmp esi, ebx
jge 0x10122fd2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10123015
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10123015
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10151b24]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x10151b24]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1012302d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x10123250
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101945dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d1590], 0
mov eax, dword [ebp + 8]
je 0x10123278
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10123292
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1013d095
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10143700
leave
ret 4

Function at 0x10123460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x101945dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d1590], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10123496
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x101234f5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1013d095
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1013d095
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1013d095
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10143700
leave
ret 0x10
Function at 0x10123510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101945dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d1590], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1012353c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1012356d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1012356b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1013d095
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1012356d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10143700
leave
ret 8
Function at 0x10132580
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x101945dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
xor ebx, ebx
inc edx
mov edi, dword [esi]
cmp dword [edi + 0x254], ebx
je 0x101325e1
cmp dword [edi + 0x264], ebx
je 0x101325da
cmp byte [0x107d1590], 0
mov eax, dword [edi + 0x250]
push edi
push eax
je 0x101325c9
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x101325cf
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ecx, dword [esi]
xor edx, edx
inc edx
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
jmp 0x101326c1
mov eax, dword [edi + 0x25c]
test eax, eax
je 0x10132750
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [esi]
cmp dword [ecx + 0x260], ebx
je 0x1013262f
lea eax, [ebp - 0x234]
push eax
call fcn.1013d095
mov eax, dword [esi]
push dword [eax + 0x260]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
mov ecx, dword [esi]
add esp, 0xc
test byte [ecx + 0x268], 1
push 0x10
pop eax
lea edx, [eax + 0x70]
cmove eax, edx
mov dword [ecx], eax
cmp byte [0x107d1590], 0
je 0x1013265b
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x1013267d
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.1013d095
push dword [esi]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
xor eax, eax
mov ecx, dword [esi]
cmp dword [ecx + 0x250], 0xffffffff
setne al
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x101326ab
mov dword [eax + 0x250], ebx
mov eax, dword [esi]
xor edx, edx
inc edx
mov dword [eax + 0x254], edx
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x101326c1
mov dword [esi + 4], edx
mov ecx, eax
cmp dword [eax + 0x264], ebx
je 0x101326e8
cmp byte [0x107d1590], 0
jne 0x101326e8
push dword [eax + 0x258]
add eax, 0x2c
push eax
call fcn.1013d095
mov ecx, dword [esi]
xor edx, edx
inc edx
mov eax, dword [ecx]
mov dword [ecx + 0x26c], eax
mov edi, dword [esi]
mov ebx, dword [edi + 0x26c]
shr ebx, 4
and ebx, edx
je 0x1013271d
push esi
xor ebx, ebx
call fcn.1013d095
xor edx, edx
inc edx
cmp word [eax], 0x2e
je 0x10132719
test byte [edi + 0x268], 3
jne 0x10132727
mov ebx, edx
jmp 0x10132727
test byte [edi + 0x268], 1
cmovne ebx, edx
mov eax, dword [edi + 0x264]
test eax, eax
je 0x1013274b
push 0
test ebx, ebx
pop ebx
jne 0x101325a0
test byte [edi + 0x26c], 2
jne 0x101325a0
test eax, eax
setne al
jmp 0x10132752
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10143700
leave
ret 4
Function at 0x1013d095
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1013d0a4
pop dword [ebp - 0x18]
mov eax, 0x689b2fcc
sub eax, 0x58875f28
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xbb9481
add dword [ebp - 0x28], 0x4d96b0ca
mov dword [ebp - 0x24], 0x1a5a3185
sub dword [ebp - 0x24], 0xe826e540
mov dword [ebp - 0x20], 0x8c7c65f5
sub dword [ebp - 0x20], 0x403021c7
mov dword [ebp - 0x1c], 0x589bfe05
sub dword [ebp - 0x1c], 0x589bfe05
lea eax, [ebp - 0x28]
push eax
mov eax, 0xd9f179eb
sub eax, 0xc9dc6703
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xa7b90f01
add dword [ebp - 0x28], 0xccb95a55
mov dword [ebp - 0x24], 0xd020a850
sub dword [ebp - 0x24], 0x8eb446db
mov dword [ebp - 0x20], 0x9ab820c8
add dword [ebp - 0x20], 0xc8b74ba4
mov dword [ebp - 0x1c], 0xd6849f0e
sub dword [ebp - 0x1c], 0xd6849f0e
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x7077c
push 0
call eax
mov ecx, 0x3d8dba3
sub ecx, 0x3d8995e
xor ebx, ebx
add ebx, eax
mov edi, 0x107e9200
add edi, dword [ebp - 0x18]
mov edx, 0xef457929
xor dword [ebp - 0x10], edx
mov esi, dword [edi]
add dword [ebp - 4], 0x42244b2f
xor esi, edx
xor dword [ebp - 0x14], 0xf7b016d
mov dword [ebx], esi
add dword [ebp - 0xc], 0xaf3f7049
add ebx, 0x2046a360
add ebx, 0xdfb95ca4
add edi, 0x8efc44c2
sub edi, 0x8efc44be
loop 0x1013d1b7
add eax, 0x1be10566
add eax, 0xe41ff681
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x17c3138
Capabilities:
Encode data using xor

Disassembly:
adc al, 9
xor byte [esp + edi*2 + 0x6d], 0xb4
mov bl, 0xa9
int 0xb8
adc dword [ecx], eax
pop ecx
lahf
xor ebx, esi
dec ebx
add byte [edi], al
jno 0x17c3084
aad 0x8d
mov ebx, 0x63b7e199
pushal
xor ecx, dword [0x34214fc]
jge 0x17c30c9
aas
scasd eax, dword es:[edi]
invalid
mov ecx, 0x9e7d734c
dec esp
jae 0x17c3149
sahf
jo 0x17c306b
rcl cl, cl
outsb dx, byte [esi]
scasd eax, dword es:[edi]
retf
push edx
sbb eax, 0x8ccf3137
fbstp tbyte [ebx]
mov bl, 0x4b
mov al, byte [0xa271a704]
jno 0x17c30c8
xchg ebp, eax
or eax, ecx
leave
mov eax, dword [0xbd4543ea]
sbb ch, 0xcd
dec edx
mov bl, byte [eax]
mov dh, 0x4b
jne 0x17c3124
invalid
jmp 0x17c3142
or byte [eax], al
dec esi
rol byte [ecx], 0
add byte [eax], al
add byte [eax - 0x18], ah
add byte [eax], al
add byte [eax], al
pushal
call 0x17c3148
pop ebp
sub ebp, 0x10
sub ebp, 0x13c3138
jmp 0x17c315e
mov eax, 0x13c3138
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c7
mov edx, 0x484d4f83
xor byte [eax], dl
inc eax
dec ecx
jne 0x17c3175
jmp 0x17c3188
or byte [esi + 8], cl
or bh, byte [edi + 0x2838383]
inc edx
jnp 0x17c3117
add dword [ebx - 0x7ac4b180], 0xffffff83
add dword [ebx - 0x7c7c54c7], 0xffffff83
je 0x17c3205
or byte [ebx + 8], 2
pop dword [ebx + 0x46808383]
rcl ebx, cl
jmp 0x17c3149
scasb al, byte es:[edi]
add byte [edx + 0x6bd2a7af], 0x86
add dword [ebx - 0x7e3d957d], 0xffffff83
adc esi, 0xe
out dx, eax
cmpsd dword [esi], dword es:[edi]
cmp dword [esi + esi*8 - 0x71], 0x7c
test byte [ebx - 0x7c7c0e95], 0x83
or byte [esi], bh
mov eax, dword [ebx + 0x72028383]
push edx
push edx
sub dword [edi], ebp
add dh, byte [edx + 0x52]
push edx
sub dword [edi], ebp
mov al, 0x4a
mov al, 0x51
add byte [ebx - 0x7a], ch
retf
Function at 0x403f9c
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.00405ab4
test esi, esi
jne 0x403fd2
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.00405bf0
jmp 0x403ff0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403e80
mov edi, eax
test esi, esi
je 0x403ff0
cmp dword [ebx], 0
je 0x403ff0
dec esi
jmp 0x403fd9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405834
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43804c], 0
je 0x40589b
cmp word [0x438338], 0xd7b2
jne 0x40585d
cmp dword [0x438340], 0
jbe 0x40585d
mov eax, 0x438334
call dword [0x438350]
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, 0x4058c8
call fcn.00405f54
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x433022], 0
jne 0x4058b7
push 0
push 0x43399a
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406ff4
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 0x407159
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405ab4
cmp si, word [0x4339d8]
jb 0x40708c
cmp si, word [0x433bd8]
ja 0x40708c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40708c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4339d8]
jae 0x407066
mov edi, ebx
dec edi
jmp 0x407087
cmp si, word [ebx*8 + 0x4339d8]
jbe 0x407076
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407087
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4339dc]
call fcn.00406f14
jmp 0x40708c
cmp edi, dword [ebp - 8]
jae 0x407050
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40713b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40713b
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.00406090
push dword [ebp - 0x160]
push 0x407174
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x164]
push 0x407184
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407160
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405b14
ret
Function at 0x40730c
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 0x40740f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x43ab7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x43ab94]
jne 0x407358
mov eax, esi
mov edx, 0x43ab96
mov ecx, 0x55
call fcn.00406090
push 0x43ab7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4073f9
push 0x43ab7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405ab4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4073c7
cmp byte [0x43ab78], 0
je 0x40738c
mov edx, esi
mov eax, ebx
call fcn.004071f0
jmp 0x4073c7
mov edx, esi
mov eax, ebx
call fcn.00406ff4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4073c7
cmp dword [esi], 0
je 0x4073b0
mov eax, esi
mov edx, 0x407428
call fcn.00406168
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00406ff4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406168
push 0x43ab7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x43ab94], bx
push 0xaa
mov eax, dword [esi]
call fcn.00405ffc
push eax
push 0x43ab96
call sub.kernel32.dll_lstrcpynW
push 0x43ab7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407416
lea eax, [ebp - 4]
call fcn.00405ab4
ret