joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422da9
Capabilities:
Get geographical location

Disassembly:
pushfd
popfd
push ebp
push esp
pop ebp
sub esp, 0xc
mov eax, dword [0x42c520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
sub esi, esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call edi
push eax
pop ecx
mov dword [ebp - 0xc], ecx
cmp ecx, esi
jne 0x422deb
sub eax, eax
jmp 0x422e71
jle 0x422e32
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ecx
cmp eax, 2
jb 0x422e32
lea eax, [ecx + ecx + 8]
cmp eax, 0x400
ja 0x422e1a
call fcn.0041c320
mov ebx, esp
cmp ebx, esi
je 0x422de4
mov dword [ebx], 0xcccc
add ebx, 8
jmp 0x422e34
push eax
call fcn.00412589
pop ecx
cmp eax, esi
je 0x422e2e
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
jmp 0x422e34
sub ebx, ebx
cmp ebx, esi
je 0x422de4
push dword [ebp - 0xc]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x422e68
push esi
push esi
cmp dword [ebp + 0x18], esi
jne 0x422e53
push esi
push esi
jmp 0x422e59
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push eax
pop esi
push ebx
call fcn.00413853
pop ecx
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412178
leave
ret
Function at 0x423402
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
sub ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0041c595
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x42348a
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.0041c595
push eax
pop ecx
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x42348a
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x42351f
jg 0x423463
cmp esi, ebx
jbe 0x42351f
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [ebp - 4], eax
or eax, eax
jne 0x423496
call fcn.004189a8
mov dword [eax], 0xc
call fcn.004189a8
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.004235b8
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x4234b6
jg 0x4234b2
cmp esi, ebx
jb 0x4234b6
mov eax, ebx
jmp 0x4234b8
push esi
pop eax
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0041acf2
add esp, 0xc
cmp eax, 0xffffffff
je 0x423502
cdq
sub esi, eax
sbb edi, edx
js 0x4234d9
jg 0x4234a8
or esi, esi
jne 0x4234a8
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004235b8
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor ebx, ebx
jmp 0x423588
call fcn.004189bb
cmp dword [eax], 5
jne 0x423517
call fcn.004189a8
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x4234dc
cmp edi, ebx
jg 0x423594
jl 0x423529
cmp esi, ebx
jae 0x423594
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041c595
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x42348a
push dword [ebp + 8]
call fcn.00422772
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x423594
call fcn.004189a8
mov dword [eax], 0xd
call fcn.004189bb
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x42348a
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0041c595
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x42348a
sub eax, eax
jmp 0x423491
Function at 0x10037ea2
Capabilities:
Delete directory

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c582a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x1012f058]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esi], 0x100e3ec0
cmp dword [esi + 0x24], edi
je 0x10037f67
lea eax, [esi + 0x1e4]
mov dword [ebp - 0x18], edi
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.kernel32.dll_TryEnterCriticalSection]
test eax, eax
je 0x10037f0d
lea ecx, [ebp - 0x18]
call fcn.100020c8
call dword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [ebp - 0x14], eax
je 0x10037f2a
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a6f78
call dword [eax + 4]
cmp byte [esi + 0x20c], 0
je 0x10037f45
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a6f79
call dword [eax + 4]
cmp dword [esi + 0x208], edi
je 0x10037f5f
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a6f7a
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.10001ee8
mov eax, dword [esi + 0x218]
cmp eax, 0xffffffff
je 0x10037f80
or dword [esi + 0x218], 0xffffffff
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [esi + 0x21c], edi
je 0x10037fb6
lea edi, [esi + 0x220]
push edi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10037fab
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a7030
call dword [eax + 4]
xor eax, eax
mov word [edi], ax
and dword [esi + 0x21c], eax
mov edi, dword [esi + 0x1e0]
test edi, edi
je 0x10037fd9
push ecx
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10082c53
and dword [edi + 8], 0
lea ecx, [ebp - 0x1c]
call fcn.10001ee8
mov edi, dword [esi + 8]
and dword [esi + 8], 0
test edi, edi
je 0x10037ff2
mov ecx, edi
call fcn.10082c53
push edi
call fcn.10082c53
pop ecx
mov eax, dword [esi + 0x218]
cmp eax, 0xffffffff
je 0x1003800b
or dword [esi + 0x218], 0xffffffff
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [esi + 0x1e4]
push eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
mov ecx, dword [esi + 0x1e0]
test ecx, ecx
je 0x1003802e
and dword [esi + 0x1e0], 0
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x2c]
call fcn.10082c53
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1003804b
and dword [esi + 0xc], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esi, dword [esi + 8]
test esi, esi
je 0x10038060
mov ecx, esi
call fcn.10082c53
push esi
call fcn.10082c53
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10082c53
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10082c62
pop dword [ebp - 0x24]
mov eax, 0xb5a4671f
add eax, 0x5a63c543
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xf4e0ae5b
add dword [ebp - 0x34], 0x597196f0
mov dword [ebp - 0x30], 0xb4ad4b7c
sub dword [ebp - 0x30], 0x8279ff37
mov dword [ebp - 0x2c], 0x37d1c434
add dword [ebp - 0x2c], 0x147a7ffa
mov dword [ebp - 0x28], 0xb9a38b94
add dword [ebp - 0x28], 0x465c746c
lea eax, [ebp - 0x34]
push eax
mov eax, 0x83568aec
add eax, 0x8cb60660
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x55fad6a5
add dword [ebp - 0x34], 0x1e7792b1
mov dword [ebp - 0x30], 0x3b0b7ff8
add dword [ebp - 0x30], 0x660e17d
mov dword [ebp - 0x2c], 0xd2155666
sub dword [ebp - 0x2c], 0x6ea5e9fa
mov dword [ebp - 0x28], 0xa3e37995
sub dword [ebp - 0x28], 0xa3e37995
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x6044d
push 0
call eax
mov ecx, 0x4eba
mov edi, eax
mov esi, 0xd886d0f2
add esi, 0x378d850e
add esi, dword [ebp - 0x24]
mov ebx, 0x7c7af468
sub dword [ebp - 0x20], 0x1bcfeed4
mov edx, dword [esi]
xor dword [ebp - 0x20], 0xae38a488
add edx, ebx
add dword [ebp - 4], 0x629ed76c
mov dword [edi], edx
xor dword [ebp - 4], 0xe94dcda1
add edi, 4
add esi, 0xf9af98cc
sub esi, 0xf9af98c8
loop 0x10082d73
add eax, 0x2a742a9e
add eax, 0xd58d031d
xor ebx, ebx
add ebx, eax
add eax, 0x4c571a35
sub eax, 0x4c571a30
mov ecx, 0x57ab2b64
add ecx, 0xb854d49c
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x1008652d
Capabilities:
Get common file path

Disassembly:
xor eax, eax
mov word [ecx], ax
cmp dword [0x10137368], eax
je 0x10086592
push ecx
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
test eax, eax
setne al
ret
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov edi, ecx
xor ecx, ecx
push eax
push ecx
push ecx
push 0x100c96f8
mov dword [ebp - 4], ecx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov esi, eax
test esi, esi
js 0x100865cb
push dword [ebp - 4]
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
test esi, esi
mov ecx, dword [ebp - 4]
setns bl
test ecx, ecx
je 0x100865e0
and dword [ebp - 4], 0
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x100043c0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006534f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1009a8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 0xe0000000
cmp eax, 0x20000000
jg 0x1000449c
je 0x10004497
cmp eax, 0x80000000
je 0x10004497
test eax, eax
jne 0x100044a3
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_void_]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Heap::constructor_void_]
mov eax, dword [0x1009bddc]
mov dword [ebp - 0x10], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x1000444b
add ecx, 0x28
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::acquire_void_]
mov ecx, dword [edi]
push esi
mov byte [ebp - 4], 1
call fcn.1005cda0
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_unsigned_short_int_const__]
mov eax, dword [0x1009bddc]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
test ecx, ecx
je 0x1000447c
mov eax, dword [ebp - 0x10]
lea ecx, [ecx + eax*4]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::release_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_double___thiscall_ScCore::Variant::getDouble_void_const]
lea ecx, [ebp - 0x2c]
fstp qword [ebp - 0x14]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::destructor_void_]
jmp 0x100044bf
xorps xmm0, xmm0
jmp 0x100044ba
cmp eax, 0x40000000
je 0x100044af
and esi, 0x1fffffff
movd xmm0, esi
jmp 0x100044b6
movzx eax, si
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1005cda0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1005cdaf
pop dword [ebp - 0x34]
mov eax, 0x1005cdaf
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x78577234
sub dword [ebp - 0x44], 0x2a052ce9
mov dword [ebp - 0x40], 0xc2f2a224
sub dword [ebp - 0x40], 0x90bf55df
mov dword [ebp - 0x3c], 0x99a86584
add dword [ebp - 0x3c], 0xb2a3deaa
mov dword [ebp - 0x38], 0x36a06d7a
add dword [ebp - 0x38], 0xc95f9286
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xa647847a
sub dword [ebp - 0x44], 0x31d51b24
mov dword [ebp - 0x40], 0x2c560f7d
add dword [ebp - 0x40], 0x151651f8
mov dword [ebp - 0x3c], 0x9c6b36b7
add dword [ebp - 0x3c], 0xc70435b5
mov dword [ebp - 0x38], 0xc295ddc6
add dword [ebp - 0x38], 0x3d6a223a
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xdd137b94
sub eax, 0xcd0c6b8c
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x4af23
push 0
call eax
mov ecx, 0x59c9
mov esi, eax
mov edx, 0xe4d3d8ce
sub edx, 0xd4c912ce
add edx, dword [ebp - 0x34]
mov ebx, 0xf246d93d
add ebx, 0xb66d886
add dword [ebp - 0x1c], 0xf2d01a40
mov edi, dword [edx]
mov dword [ebp - 0x14], 0x1b1aa85d
xor edi, ebx
add dword [ebp - 0x28], 0xb008e592
mov dword [esi], edi
sub dword [ebp - 0x18], edi
add esi, 0x9d27ae60
add esi, 0x62d851a4
add edx, 0xd6fe97ea
add edx, 0x2901681a
loop 0x1005cec1
add eax, 0x4b0f7428
sub eax, 0x4b0e1a31
mov ebx, eax
add eax, 0x9c56a0cc
add eax, 0x63a95f39
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x10007090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e7d80
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x101258d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.Microsoft::Applications::Events::Variant.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0xf
mov byte [edi + 0x10], 0
lea esi, [edi + 0x28]
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x68
mov dword [ebp - 0x14], esi
lfence
call fcn.1000afd0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000afd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x1000afdf
pop dword [ebp - 4]
mov eax, 0xfe599356
add eax, 0x11a71c89
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xe5432540
add dword [ebp - 0x14], 0x690f200b
mov dword [ebp - 0x10], 0xb93ef972
sub dword [ebp - 0x10], 0x870bad2d
mov dword [ebp - 0xc], 0xe4f61e61
sub dword [ebp - 0xc], 0x98a9da33
mov dword [ebp - 8], 0x88bd0c66
sub dword [ebp - 8], 0x88bd0c66
lea eax, [ebp - 0x14]
push eax
mov eax, 0x3925877d
sub eax, 0x2916566d
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xd1d4420a
add dword [ebp - 0x14], 0xa29e274c
mov dword [ebp - 0x10], 0x36ce2845
add dword [ebp - 0x10], 0xa9e3930
mov dword [ebp - 0xc], 0x180d4cbd
add dword [ebp - 0xc], 0x4b621faf
mov dword [ebp - 8], 0xab2f4101
sub dword [ebp - 8], 0xab2f4101
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x87bc3
push 0
call eax
mov ecx, 0x9d1d070c
sub ecx, 0x9d1cb74b
mov edi, eax
mov esi, 0x10136a00
add esi, dword [ebp - 4]
mov ebx, 0xde41bcc9
sub ebx, 0x798bf294
mov edx, dword [esi]
xor edx, ebx
mov dword [edi], edx
add edi, 4
add esi, 0xfe5106a3
sub esi, 0xfe51069f
loop 0x1000b0f6
add eax, 0x131d7
xor ebx, ebx
add ebx, eax
add eax, 0xd4d53116
add eax, 0x2b2aceef
mov ecx, 0x83217837
sub ecx, 0x73217837
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x1005ad60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101258d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1005ad90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1005adc0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1005adc0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1005aebe
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1005ade9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1005ae1d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1005ae7c
sub eax, 1
je 0x1005ae7c
sub eax, 2
jne 0x1005aebe
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1000afd0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1005ae9d
lfence
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1005aebe
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1005aebe
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e5f10
mov esp, ebp
pop ebp
ret 4
Function at 0x404755
Capabilities:
Parse pe header

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

Function at 0x40a246
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x40a289
call fcn.0040b81c
mov dword [eax], 0xf
call fcn.0040b82f
mov dword [eax], 0xd
call fcn.004096e0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403ea8
leave
ret
test eax, eax
jne 0x40a290
inc eax
jmp 0x40a27d
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x40a27b
xor eax, eax
cmp ecx, 1
setne al
jmp 0x40a27d

Function at 0x40d6ca
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ac00
push 0x41abf8
push str.FlsAlloc
push 0x1f
call fcn.0040d589
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x419190]
call esi
jmp 0x40d704
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d748
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ac10
push 0x41ac08
push str.FlsGetValue
push 0x21
call fcn.0040d589
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d77f
push dword [ebp + 8]
mov ecx, esi
call dword [0x419190]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d787
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ac18
push 0x41ac10
push str.FlsSetValue
push 0x22
call fcn.0040d589
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d7c1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x419190]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40faec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40fb89
push ebx
push esi
call fcn.0040fab5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040e971
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40fb36
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40fb88
push edi
push eax
call fcn.0040b87c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40fb56
call fcn.0040b842
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40fb87
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e971
add esp, 0x20
test eax, eax
jne 0x40fb75
push edi
call fcn.0040b842
jmp 0x40fb7d
push ebx
call fcn.0040b842
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x418130
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41815d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41815d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret