joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56ce80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x56ce89
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x56d0cd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, dword [esi]
call fcn.004044cc
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00408bdc
mov eax, dword [ebp - 0x14]
mov edx, 0x56d0e8
call fcn.00404840
jne 0x56ced9
lea eax, [ebp - 8]
call fcn.00404434
mov eax, dword [edi + 0x4a8]
add eax, 0x60
mov edx, dword [ebp - 4]
call fcn.00404488
cmp dword [ebp - 8], 0
je 0x56cf2e
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
je 0x56cf08
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x56d0e8
call fcn.00404740
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00408bdc
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x5aeb50]
mov edx, dword [edx]
mov eax, dword [edi + 0x4a8]
add eax, 0x78
call fcn.00404740
jmp 0x56cf4f
mov edx, dword [0x5aeb50]
mov edx, dword [edx]
mov eax, dword [edi + 0x4a8]
call fcn.0043800c
mov eax, dword [edi + 0x4a8]
add eax, 0x78
call fcn.00404434
mov eax, dword [edi + 0x4a8]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x56d0b2
lea edx, [ebp - 0xc]
mov eax, dword [edi + 0x4a8]
call fcn.00437fa4
lea ecx, [ebp - 8]
mov eax, dword [0x5aeb50]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.004f9008
cmp dword [ebp - 8], 0
jne 0x56d0a6
push 0x24
mov ecx, 0x56d0ec
mov edx, 0x56d0f8
mov eax, dword [0x5ae974]
mov eax, dword [eax]
call fcn.004a15f4
cmp eax, 6
jne 0x56d0b2
lea eax, [ebp - 8]
mov edx, 0x56d140
call fcn.004f8e90
test al, al
je 0x56d0b2
mov eax, dword [ebp - 8]
mov edx, 0x56d0e8
call fcn.00404840
jne 0x56cfd9
lea eax, [ebp - 8]
call fcn.00404434
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00409930
cmp dword [ebp - 0x10], 0
je 0x56d002
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x5c
je 0x56d002
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x56d0e8
call fcn.00404740
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004046fc
mov edx, dword [0x5aeb50]
mov edx, dword [edx]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
call fcn.00404740
mov eax, dword [ebp - 0x1c]
call fcn.00409430
test al, al
je 0x56d068
push 0x24
push 0x56d174
push dword [ebp - 0x10]
push 0x56d180
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004047b4
mov eax, dword [ebp - 0x20]
call fcn.004048f4
mov edx, eax
mov ecx, 0x56d1a0
mov eax, dword [0x5ae974]
mov eax, dword [eax]
call fcn.004a15f4
cmp eax, 6
jne 0x56d0b2
push 0
mov edx, dword [0x5aeb50]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 8]
call fcn.00404740
mov eax, dword [ebp - 0x24]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x56d0b2
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00404488
mov bl, 1
jmp 0x56d0b2
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00404488
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56d0d4
lea eax, [ebp - 0x24]
mov edx, 8
call fcn.00404458
ret
Function at 0x100031f0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, 0x10042008
push edi
push dword [ebp + 0xc]
call fcn.100027e0
push dword [ebp + 8]
mov ecx, 0x10042020
call fcn.100027e0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x10003248
push str.Eosp.
push 0x10043728
call fcn.100012d0
push eax
call fcn.10001830
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 4
call fcn.10014b20
mov esi, eax
mov dword [ebp - 8], eax
add esp, 4
test esi, esi
je 0x10003264
mov dword [esi], 0x2a
jmp 0x10003269
xor esi, esi
mov dword [ebp - 8], esi
push ebx
push 0x40
push 0x1000
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x100032a8
push 0x1003467c
push 0x10043728
call fcn.100012d0
push eax
call fcn.10001830
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 4
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x100032c0
push str.wpms
jmp 0x100032e0
push 0
push 0
push ebx
push 0x100011f0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x10003310
push str.ecreate.
push 0x10043728
call fcn.100012d0
push eax
call fcn.10001830
add esp, 0xc
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0x1770
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call esi
push 0
lea ecx, [ebp - 1]
call fcn.10002900
push 4
push dword [ebp - 8]
call fcn.10014b50
add esp, 8
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10006630
Capabilities:
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret
Function at 0x10007ed0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003298f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10012122
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x10007f5b
push eax
push esi
call fcn.100125bc
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.100122eb
int3
Function at 0x10009de0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10032add
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.10014b20
mov edi, eax
add esp, 4
test edi, edi
je 0x10009e72
push 1
mov dword [ebp - 4], 0
call fcn.100124be
add esp, 4
mov dword [edi + 4], eax
jmp 0x10009e74
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
push ebx
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10007920
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx ebx, ax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10009ed1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x10009ed1
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], bx
pop ebx
jne 0x10009eef
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x10009f10
cmp byte [ebp + 0xc], 0
je 0x10009efe
push esi
call fcn.100142b3
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10009f1c
mov esi, str.ios_base::badbit_set
jmp 0x10009f2c
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.100055c0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.10002320
push 0x1003ed20
lea eax, [ebp - 0x28]
push eax
call fcn.10015f8b
int3
Function at 0x1000b3d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 4]
mov dword [ebp - 0x10], esi
push 8
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebx], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10014b20
mov edi, eax
add esp, 4
test edi, edi
je 0x1000b473
push 1
mov dword [ebp - 4], 0
call fcn.100124be
add esp, 4
mov dword [edi + 4], eax
jmp 0x1000b475
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.10008dd0
mov dword [esi + 0xc], ebx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov dword [esi + 0x1c], ecx
lea edi, [esi + 0x24]
mov dword [esi + 0x2c], edi
lea edx, [esi + 0x18]
mov dword [esi], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
lea ebx, [esi + 0x28]
mov dword [esi + 0x30], ebx
mov byte [esi + 0x48], 0
mov byte [esi + 0x3e], 0
mov dword [esi + 0x20], edx
mov dword [eax], 0
mov dword [edx], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [ecx], 0
mov dword [edi], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x100435c8]
mov ecx, dword [0x100435cc]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 0x38], 0
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1000d7a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10032710
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
push 8
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10014b20
mov edi, eax
add esp, 4
test edi, edi
je 0x1000d83c
push 1
mov dword [ebp - 4], 0
call fcn.100124be
add esp, 4
mov dword [edi + 4], eax
jmp 0x1000d83e
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.10008dd0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100109c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, ecx
mov dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov ebx, dword [eax + 4]
mov dword [ebp - 0x24], eax
or ebx, 0x2001f
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push ebx
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x18]
test esi, esi
jne 0x10010aff
xor esi, esi
test eax, eax
je 0x10010a3b
push eax
call edi
mov esi, eax
mov eax, dword [ebp - 0x20]
and ebx, 0x300
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x10010aff
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x2c]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push ecx
lea ecx, [ebp - 0x22c]
push ecx
push esi
push eax
call ebx
test eax, eax
jne 0x10010ab8
nop dword [eax]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x18]
call fcn.100109c0
mov esi, eax
test esi, esi
jne 0x10010afc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
push dword [ebp - 0x18]
call ebx
test eax, eax
je 0x10010a80
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10010ac9
push eax
call edi
mov dword [ebp - 0x18], 0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], 0
call fcn.100101e0
mov ecx, dword [ebp - 0x18]
mov esi, eax
test ecx, ecx
je 0x10010ae7
push ecx
call edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10010ae7
push eax
jmp 0x10010ae5
Function at 0x10010ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100330d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x420], 0
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
jne 0x10010d1e
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp + 8], eax
test esi, esi
jne 0x10010d1e
call fcn.1000fba0
mov edi, eax
jmp 0x10010e25
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10010d3b
call fcn.1000fba0
jmp 0x10010e18
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp + 0x10], ebx
test ebx, ebx
jne 0x10010d56
call fcn.1000fba0
jmp 0x10010e18
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp + 0xc], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x10010d74
mov edi, 0x8007000e
jmp 0x10010e1a
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x10010e53
jb 0x10010d92
cmp eax, 0xffffffff
ja 0x10010e53
cmp eax, 0x400
jbe 0x10010da7
push eax
lea ecx, [ebp - 0x420]
call fcn.1000f670
jmp 0x10010dc4
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
jmp 0x10010dc4
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x10010ddb
mov edi, 0x8007000e
jmp 0x10010e1a
push edi
push dword [ebp - 0x420]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10010dfb
call fcn.1000fba0
jmp 0x10010e18
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x18]
push dword [ebp - 0x420]
call fcn.10010b10
mov edi, eax
test esi, esi
je 0x10010e25
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10010e3e
lea ecx, [ebp - 0x420]
call fcn.10010300
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.100031d0
int3
Function at 0x10013b39
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10013b5a
jl 0x10013b51
test edi, edi
jne 0x10013b5a
xor eax, eax
xor edx, edx
jmp 0x10013c1b
cmp dword [ebx + 0x38], 0
je 0x10013b6f
push eax
push edi
push dword [ebp + 8]
call fcn.10013c21
jmp 0x10013c1b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10013bb6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10013bb6
cmp eax, edi
jb 0x10013b90
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.100163b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x10013bbc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10013c10
mov ecx, ebx
call fcn.10013322
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10013bfb
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1001ea5a
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10013c10
jmp 0x10013bce
test edx, edx
je 0x10013c10
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1001ea5a
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x10013f04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x10013f2b
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10013f2e
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10013ee0
pop esi
leave
ret 8

Function at 0x1001f9da
Capabilities:
Parse pe header

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

Function at 0x100240c6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10038db8
push 0x10038db0
push str.FlsAlloc
push 0x1f
call fcn.10023f8e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100240fa
push dword [ebp + 8]
mov ecx, esi
call dword [0x10034204]
call esi
jmp 0x10024100
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10024144
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10038dc8
push 0x10038dc0
push str.FlsGetValue
push 0x21
call fcn.10023f8e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002417b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10034204]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10024183
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10038dd0
push 0x10038dc8
push str.FlsSetValue
push 0x22
call fcn.10023f8e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100241bd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10034204]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1002600e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100150c0
mov eax, dword [0x10042100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10023937
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10026050
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100261ac
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10014fd0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10044168]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10026433
mov ecx, dword [esi*4 + 0x10044168]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100261a5
cmp eax, dword [ecx + edi + 0x24]
jne 0x100261a5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100261a5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10026433
add esp, 0x14
test edx, edx
jl 0x100261a5
jg 0x1002611b
test eax, eax
jb 0x100261a5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100261a5
jl 0x10026135
cmp dword [ebp - 0x1008], eax
ja 0x100261a5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10026153
test ebx, ebx
je 0x1002618c
cmp ecx, edi
jae 0x1002618c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1002616d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10026179
cmp byte [ecx + 1], 0xa
jne 0x10026179
inc ecx
jmp 0x10026179
movzx eax, al
movsx eax, byte [eax + 0x100423c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10026153
cmp edx, ebx
jne 0x10026153
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100261aa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001544e
leave
ret
Function at 0x100273f7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10044168]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10027437
cmp byte [ebx], 0xa
jne 0x10027437
or byte [edi + eax + 0x28], 4
jmp 0x1002743c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1002753b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002751e
inc eax
cmp dl, 0xd
je 0x10027468
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1002748e
cmp eax, ecx
jae 0x1002749c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10027450
jmp 0x1002753b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10027519
cmp dword [ebp - 0x10], 0
je 0x10027519
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10044168]
test byte [eax + edi + 0x28], 0x48
je 0x100274f3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100274de
mov byte [esi], dl
jmp 0x100274ef
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10044168]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002753b
cmp byte [ebp - 1], 0xa
jne 0x10027502
cmp esi, ebx
jne 0x10027502
mov byte [esi], 0xa
jmp 0x1002753a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10026451
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002753b
mov byte [esi], 0xd
jmp 0x1002753a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10044168]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10027538
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002753b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret