joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402207
Capabilities:
Write file on windows

Disassembly:
jmp 0x43af40
sub esp, 0x30
mov eax, dword [0x467044]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
mov ebp, 0xffff
mov esi, ecx
cmp bp, di
jne 0x43af77
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00401947
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x43afae
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x43afae
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void_]
mov word [eax], di
mov ax, di
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00401947
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push ebx
je 0x43b0ac
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x43afd9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43b010
push dword [esi + 0x4c]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
cmp ax, bp
movzx eax, di
jne 0x43b0af
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00401947
add esp, 0x30
ret 4
movzx eax, di
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x22]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x43b07b
sub eax, 1
je 0x43b07b
sub eax, 2
jne 0x43b0ac
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.00401406
add esp, 8
test al, al
movzx eax, di
jne 0x43b0af
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00401947
add esp, 0x30
ret 4
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
sub ebx, eax
je 0x43b09b
push dword [esi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x43b0ac
lea eax, [esp + 0x10]
mov byte [esi + 0x3e], 1
cmp dword [esp + 0x18], eax
mov ax, di
jne 0x43b0af
mov ax, bp
mov ecx, dword [esp + 0x3c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00401947
add esp, 0x30
ret 4

Function at 0x402400
Capabilities:
Parse pe header

Disassembly:
jmp 0x4457d4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x445814
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x445814
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x445814
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x445814
cmp dword [ecx + 0x74], 0xe
jbe 0x445814
cmp dword [ecx + 0xe8], 0
je 0x445814
mov al, 1
ret
xor al, al
ret
Function at 0x402473
Capabilities:
Read file on windows

Disassembly:
jmp 0x43d170
mov eax, dword [esp + 0xc]
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x10]
test eax, eax
jg 0x43d18f
jl 0x43d186
test ebp, ebp
jne 0x43d18f
pop ebp
xor eax, eax
xor edx, edx
pop ebx
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x43d1a6
push eax
push ebp
push dword [esp + 0x14]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebp
pop ebx
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x43d1e6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x43d1e6
mov edi, dword [esp + 0x14]
cmp eax, ebp
mov esi, ebp
cmovb esi, eax
push esi
push ecx
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x20], edi
add esp, 0xc
mov edi, ebp
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
mov esi, dword [esp + 0x14]
je 0x43d25c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x43d213
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x43d248
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x43d26e
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x43d222
test ecx, ecx
je 0x43d25c
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov edx, dword [esp + 0x1c]
sub ebp, ecx
pop edi
pop esi
mov eax, ebp
sbb edx, 0
pop ebp
pop ebx
ret 0xc
mov edx, dword [esp + 0x1c]
sub ebp, edi
pop edi
pop esi
mov eax, ebp
sbb edx, 0
pop ebp
pop ebx
ret 0xc
Function at 0x4026da
Capabilities:
Write file on windows

Disassembly:
jmp 0x43d2f0
sub esp, 8
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x43d315
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
add esp, 8
ret 0xc
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x43d338
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x43d33a
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x43d3b5
jg 0x43d34d
test esi, esi
je 0x43d3b5
test eax, eax
jl 0x43d397
jg 0x43d357
test ebp, ebp
je 0x43d397
cmp edi, eax
jg 0x43d367
jl 0x43d361
cmp esi, ebp
jae 0x43d367
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
sub esi, ebp
sbb edi, dword [esp + 0x20]
add ecx, ebp
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
test edi, edi
jl 0x43d3b5
jg 0x43d39b
test esi, esi
je 0x43d3b5
jmp 0x43d39b
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x43d3b5
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1d5864df
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x69b80e4f
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10002da0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100201a5
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1002b080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
push eax
push 0
push 0
push 0x10021200
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x10002dff
mov byte [ebp - 0x30], 0
mov ecx, edi
push dword [ebp - 0x30]
call fcn.10006300
add esp, 4
jmp 0x10002f30
mov edx, dword [ebp - 0x2c]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002e20
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.10005420
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
mov eax, edx
mov ecx, dword [ebp - 0x38]
sub eax, ecx
mov dword [ebp - 0x30], ecx
cmp eax, 0xa
jb 0x10002e84
cmp edx, 7
lea esi, [ebp - 0x48]
lea eax, [ecx + 0xa]
cmova esi, dword [ebp - 0x48]
push 0x14
mov dword [ebp - 0x38], eax
push str.ExitTrial
lea eax, [esi + ecx*2]
push eax
call fcn.1000a5c0
mov eax, dword [ebp - 0x30]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2 + 0x14], cx
lea eax, [ebp - 0x48]
jmp 0x10002e98
push 0xa
push str.ExitTrial
push dword [ebp - 0x30]
lea ecx, [ebp - 0x48]
push 0xa
call fcn.10005290
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
mov edx, eax
call fcn.10006030
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
cmp ecx, 7
jbe 0x10002ee6
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002edc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002f4d
push ecx
push edx
call fcn.1000930c
add esp, 8
push dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x28]
call fcn.10002b20
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10008faa
mov esp, ebp
pop ebp
ret
call fcn.1000f1c9
int3

Function at 0x10003540
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10003569
push 0
push 0
push 0
push 0x10002f60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10003569
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10003ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10003b12
jl 0x10003b05
test ecx, ecx
jne 0x10003b12
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10003bd2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10004c20
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10003b7e
jg 0x10003b3d
test esi, esi
je 0x10003b7e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10003b55
mov eax, dword [esp + 0x10]
jl 0x10003b4f
cmp eax, esi
jae 0x10003b55
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1000a5c0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10003b9f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10003bbb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10003b24
jl 0x10003bbb
test ecx, ecx
jne 0x10003b24
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10003c10
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10003c10
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.1000a5c0
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10003c79
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10003c36
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10003c64
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1000eafc
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10003c79
cmp edi, eax
ja 0x10003c42
test edi, edi
je 0x10003c79
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1000eafc
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10006d50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10029a58
push 0x1000a460
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1002b080]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10006e02
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10006e02
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x10006e02
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x10006e02
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007270
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
cmp dword [0x1002bff0], 0
jne 0x100072e6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x1002bff0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x100072e6
push esi
mov esi, dword [0x1002bfe0]
mov dword [0x1002c000], eax
mov dword [0x1002bffc], eax
mov dword [0x1002bff8], eax
push edi
test esi, esi
je 0x100072cc
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x100072d7
mov esi, dword [esi + 4]
test esi, esi
jne 0x100072b2
xor eax, eax
pop edi
mov dword [0x1002bff4], eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x1002bff4], eax
pop esi
pop ecx
ret
mov eax, 0x10dd
pop ecx
ret
Function at 0x10007770
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1002bff4]
test eax, eax
jne 0x100077ee
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1000778e
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.10008fbd
mov esi, eax
add esp, 4
test esi, esi
jne 0x100077a4
lea edi, [eax + 8]
jmp 0x100077c3
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100077da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 8
push esi
call fcn.1000930c
add esp, 8
pop esi
mov dword [0x1002bff4], edi
mov eax, edi
mov dword [0x1002bff8], 0
pop edi
ret 4
mov eax, dword [0x1002bffc]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x1002bffc], esi
pop esi
pop edi
ret 4

Function at 0x10007f39
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 0x10007f60
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10007f63
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.10007f15
pop esi
leave
ret 8

Function at 0x1001077f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100107be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100107be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100107be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100107be
cmp dword [ecx + 0x74], 0xe
jbe 0x100107be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100151ba
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100243a0
push 0x10024398
push str.FlsAlloc
push 0x1f
call fcn.10015082
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100151ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x100211a0]
call esi
jmp 0x100151f4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015238
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100243b0
push 0x100243a8
push str.FlsGetValue
push 0x21
call fcn.10015082
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001526f
push dword [ebp + 8]
mov ecx, esi
call dword [0x100211a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015277
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100243b8
push 0x100243b0
push str.FlsSetValue
push 0x22
call fcn.10015082
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100152b1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100211a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10015add
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10009df0
mov eax, dword [0x1002b080]
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.10011a52
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10015b1f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10015c7b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001fcc0
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 + 0x1002c8d8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100168de
mov ecx, dword [esi*4 + 0x1002c8d8]
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 0x10015c74
cmp eax, dword [ecx + edi + 0x24]
jne 0x10015c74
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 0x10015c74
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100168de
add esp, 0x14
test edx, edx
jl 0x10015c74
jg 0x10015bea
test eax, eax
jb 0x10015c74
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10015c74
jl 0x10015c04
cmp dword [ebp - 0x1008], eax
ja 0x10015c74
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10015c22
test ebx, ebx
je 0x10015c5b
cmp ecx, edi
jae 0x10015c5b
mov al, byte [ecx]
cmp al, 0xd
jne 0x10015c3c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10015c48
cmp byte [ecx + 1], 0xa
jne 0x10015c48
inc ecx
jmp 0x10015c48
movzx eax, al
movsx eax, byte [eax + 0x1002b328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10015c22
cmp edx, ebx
jne 0x10015c22
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10015c79
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008faa
leave
ret
Function at 0x10015d76
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 + 0x1002c8d8]
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 0x10015db6
cmp byte [ebx], 0xa
jne 0x10015db6
or byte [edi + eax + 0x28], 4
jmp 0x10015dbb
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 0x10015eba
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10015e9d
inc eax
cmp dl, 0xd
je 0x10015de7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10015e0d
cmp eax, ecx
jae 0x10015e1b
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 0x10015dcf
jmp 0x10015eba
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 0x10015e98
cmp dword [ebp - 0x10], 0
je 0x10015e98
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002c8d8]
test byte [eax + edi + 0x28], 0x48
je 0x10015e72
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10015e5d
mov byte [esi], dl
jmp 0x10015e6e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002c8d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10015eba
cmp byte [ebp - 1], 0xa
jne 0x10015e81
cmp esi, ebx
jne 0x10015e81
mov byte [esi], 0xa
jmp 0x10015eb9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100168fc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10015eba
mov byte [esi], 0xd
jmp 0x10015eb9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002c8d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10015eb7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10015eba
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret