joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f30
Capabilities:
Delete registry value
Persist via run registry key
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
cmp dword [edi + 0x20], ebp
je 0x406f60
cmp dword [edi + 0x24], 8
jb 0x406f51
mov eax, dword [edi + 0x10]
jmp 0x406f54
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x406f60
mov ecx, edi
call fcn.004068c0
cmp eax, ebp
jne 0x406fc3
mov ebx, dword [edi + 4]
push 0x2d
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea esi, [esp + 0x3c]
mov dword [esp + 0x1c], 0x80000002
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], bp
call fcn.004028e0
lea ecx, [esp + 0x14]
mov eax, esi
call fcn.004047d0
cmp dword [esp + 0x4c], 8
jb 0x406fb6
mov eax, dword [esp + 0x38]
push eax
call fcn.0040772e
add esp, 4
push 0x1b7740
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406f60
call fcn.00406c10
mov esi, edi
call fcn.00406a50
mov eax, 1
test byte [0x41c5b0], al
jne 0x407017
or dword [0x41c5b0], eax
push 0x10
push str.HP_OrderReminder
mov esi, 0x41c574
mov dword [0x41c58c], 7
mov dword [0x41c588], ebp
mov word [0x41c578], bp
call fcn.004028e0
push 0x414730
call fcn.00407e1d
add esp, 4
call fcn.00403c30
call fcn.00406b20
mov esi, edi
call fcn.00406980
mov ecx, edi
call fcn.00406cc0
test eax, eax
je 0x4070c9
push 0x2d
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebp
mov word [esp + 0x24], bp
call fcn.004028e0
mov eax, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
mov dword [esp + 0x10], ebp
jae 0x40706f
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 2
push ebp
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4070b6
mov eax, dword [esp + 0x10]
cmp eax, 0x80000002
mov esi, eax
je 0x4070b6
cmp dword [0x41b2a0], edi
mov ecx, dword [0x41b28c]
jae 0x4070a7
mov ecx, 0x41b28c
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x30], edi
jb 0x4070c9
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040772e
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407472
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a2d4]
jne 0x40747c
repz ret
jmp fcn.0040aa2c
Function at 0x410071
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040b12d
xor ebx, ebx
cmp dword [0x41c438], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x410146
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4100b1
xor eax, eax
jmp 0x41020a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4100aa
push eax
call fcn.0040b0ca
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41c438], eax
call esi
push eax
call fcn.0040b0ca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41c43c], eax
call esi
push eax
call fcn.0040b0ca
mov dword [0x41c440], eax
lea eax, [ebp - 8]
push eax
call fcn.004080ef
test eax, eax
pop ecx
pop ecx
je 0x410114
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004075f9
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x410146
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040b0ca
cmp eax, ebx
pop ecx
mov dword [0x41c448], eax
je 0x410146
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b0ca
pop ecx
mov dword [0x41c444], eax
mov eax, dword [0x41c444]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4101bf
cmp dword [0x41c448], esi
je 0x4101bf
push eax
call fcn.0040b136
pop ecx
call eax
cmp eax, ebx
je 0x41018c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41c448]
call fcn.0040b136
pop ecx
call eax
test eax, eax
je 0x41018c
test byte [ebp - 0x18], 1
jne 0x4101bf
lea eax, [ebp - 0xc]
push eax
call fcn.00408126
test eax, eax
pop ecx
je 0x4101a7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004075f9
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4101b6
or dword [ebp + 0x10], 0x200000
jmp 0x4101f0
or dword [ebp + 0x10], 0x40000
jmp 0x4101f0
mov eax, dword [0x41c43c]
cmp eax, esi
je 0x4101f0
push eax
call fcn.0040b136
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4101f0
mov eax, dword [0x41c440]
cmp eax, esi
je 0x4101f0
push dword [ebp - 4]
push eax
call fcn.0040b136
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41c438]
call fcn.0040b136
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4155b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x47d080]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [esp + 0x1c], esi
cmp dword [edi + 0x14], 7
jbe 0x4155db
mov eax, dword [edi]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x41564c
mov edx, str.ERROR:_Unable_to_open_file__
mov ecx, 0x47ec10
call fcn.00421490
cmp dword [edi + 0x14], 7
mov ecx, dword [edi + 0x10]
jbe 0x415614
mov edi, dword [edi]
push ecx
mov edx, edi
mov ecx, eax
call fcn.0042cf70
add esp, 4
mov edx, 0x4728f8
mov ecx, eax
call fcn.00421490
push eax
call fcn.00421730
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0043c5a8
mov esp, ebp
pop ebp
ret 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4156b9
mov edx, str.ERROR:_Unable_to_get_file_size_for__
mov ecx, 0x47ec10
call fcn.00421490
cmp dword [edi + 0x14], 7
mov ecx, dword [edi + 0x10]
jbe 0x415676
mov edi, dword [edi]
push ecx
mov edx, edi
mov ecx, eax
call fcn.0042cf70
add esp, 4
mov edx, 0x4728f8
mov ecx, eax
call fcn.00421490
push eax
call fcn.00421730
mov ebx, dword [esp + 0x1c]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0043c5a8
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], eax
cmp ebx, ecx
jae 0x4156d4
lea eax, [edx + ebx]
jmp 0x41570b
jbe 0x41570e
mov eax, dword [esi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x4156ee
lea eax, [esp + 0x13]
mov ecx, esi
push eax
push ebx
call fcn.0042f630
jmp 0x41570e
mov esi, ebx
sub esi, ecx
push esi
push 0
push dword [esp + 0x1c]
call fcn.0043e210
mov eax, dword [esp + 0x20]
add esp, 0xc
add eax, esi
mov esi, dword [esp + 0x1c]
mov dword [esi + 4], eax
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push ebx
push dword [esi]
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x41578a
mov edx, str.ERROR:_Unable_to_read_file__
mov ecx, 0x47ec10
call fcn.00421490
cmp dword [edi + 0x14], 7
mov ecx, dword [edi + 0x10]
jbe 0x415752
mov edi, dword [edi]
push ecx
mov edx, edi
mov ecx, eax
call fcn.0042cf70
add esp, 4
mov edx, 0x4728f8
mov ecx, eax
call fcn.00421490
push eax
call fcn.00421730
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0043c5a8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x24]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043c5a8
mov esp, ebp
pop ebp
ret 8
Function at 0x4157a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x47d080]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov esi, ecx
mov edx, str.Seeds:
push edi
mov dword [esp + 0xc], esi
mov ecx, dword [esi + 0x14]
add ecx, dword [esi + 0x10]
mov dword [esp + 0x14], ecx
movzx eax, byte [ecx]
mov byte [esp + 0x18], al
movzx eax, byte [ecx + 3]
mov byte [esp + 0x19], al
movzx eax, byte [ecx + 9]
mov ecx, 0x47e980
mov byte [esp + 0x1a], al
call fcn.004218e0
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.0041edd0
lea edi, [esp + 0x18]
mov edx, 0x4729d0
mov ecx, 0x47e980
call fcn.004218e0
movzx ecx, byte [edi]
push ecx
mov ecx, eax
call fcn.00419bf0
mov edx, 0x47281c
mov ecx, eax
call fcn.004218e0
mov ecx, eax
call fcn.0041edd0
inc edi
lea eax, [esp + 0x1b]
cmp edi, eax
jne 0x415811
mov eax, dword [0x47e980]
push 0x47e980
mov ecx, dword [eax + 4]
add ecx, 0x47e994
mov eax, dword [ecx]
and eax, 0xfffff3ff
or eax, 0x200
mov dword [ecx], eax
call fcn.00421b80
add esp, 4
xor ebx, ebx
mov dword [esp + 0x10], ebx
nop word [eax + eax]
movzx eax, byte [esp + ebx + 0x18]
push eax
call fcn.00447dc9
add esp, 4
lea edi, [ebx - 1]
neg edi
mov eax, 5
sbb edi, edi
add edi, 2
cmp ebx, 2
cmove edi, eax
cmp dword [esi + 0x18], 0x14
jbe 0x4158ce
mov ebx, dword [esp + 0xc]
lea esi, [eax + 0xf]
call fcn.00447da8
mov ecx, dword [esp + 0x14]
sar eax, 0xc
xor byte [esi + ecx], al
add esi, edi
cmp esi, dword [ebx + 0x18]
jb 0x4158b0
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, 3
jb 0x415880
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043c5a8
mov esp, ebp
pop ebp
ret
Function at 0x4158f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x47d080]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov edi, ecx
mov edx, str.Seeds:
mov ecx, dword [edi + 0xf8]
mov dword [esp + 0x10], ecx
movzx eax, byte [ecx + 9]
mov byte [esp + 0x18], al
movzx eax, byte [ecx + 3]
mov byte [esp + 0x19], al
movzx eax, byte [ecx]
mov ecx, 0x47e980
mov byte [esp + 0x1a], al
call fcn.004218e0
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + eax + 0x14], ecx
mov ecx, eax
call fcn.0041edd0
lea esi, [esp + 0x18]
nop dword [eax]
mov edx, 0x4729d0
mov ecx, 0x47e980
call fcn.004218e0
movzx ecx, byte [esi]
push ecx
mov ecx, eax
call fcn.00419bf0
mov edx, 0x47281c
mov ecx, eax
call fcn.004218e0
mov ecx, eax
call fcn.0041edd0
inc esi
lea eax, [esp + 0x1b]
cmp esi, eax
jne 0x415960
mov eax, dword [0x47e980]
push 0x47e980
mov ecx, dword [eax + 4]
add ecx, 0x47e994
mov eax, dword [ecx]
and eax, 0xfffff3ff
or eax, 0x200
mov dword [ecx], eax
call fcn.00421b80
add esp, 4
xor ebx, ebx
mov dword [esp + 0xc], ebx
lea esi, [ebx + 5]
nop dword [eax + eax]
movzx eax, byte [esp + ebx + 0x18]
push eax
call fcn.00447dc9
add esp, 4
mov eax, 2
cmp ebx, 1
mov ecx, 1
cmovne eax, esi
cmp ebx, 2
cmove eax, ecx
cmp dword [edi + 0x34], 0
mov dword [esp + 0x14], eax
jb 0x415a3b
ja 0x415a06
cmp dword [edi + 0x30], 0x14
jbe 0x415a3b
mov esi, 0x14
xor ebx, ebx
nop dword [eax]
call fcn.00447da8
mov ecx, dword [esp + 0x10]
sar eax, 0xc
xor byte [esi + ecx], al
add esi, dword [esp + 0x14]
adc ebx, 0
cmp ebx, dword [edi + 0x34]
jb 0x415a10
ja 0x415a32
cmp esi, dword [edi + 0x30]
jb 0x415a10
mov ebx, dword [esp + 0xc]
mov esi, 5
inc ebx
mov dword [esp + 0xc], ebx
cmp ebx, 3
jb 0x4159d0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043c5a8
mov esp, ebp
pop ebp
ret
Function at 0x418e40
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 0x418e72
jl 0x418e65
test ecx, ecx
jne 0x418e72
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 0x418f32
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0041d100
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x418ede
jg 0x418e9d
test esi, esi
je 0x418ede
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x418eb5
mov eax, dword [esp + 0x10]
jl 0x418eaf
cmp eax, esi
jae 0x418eb5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0043dc90
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 0x418eff
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x418f1b
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 0x418e84
jl 0x418f1b
test ecx, ecx
jne 0x418e84
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 0x418f70
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x418f70
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0043dc90
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 0x418fd9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x418f96
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 0x418fc4
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0044f0f5
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x418fd9
cmp edi, eax
ja 0x418fa2
test edi, edi
je 0x418fd9
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0044f0f5
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 0x41cf80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464570
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x14], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.0043c5c7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043a6da
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.0041eca0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], esi
mov esi, eax
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x47f880]
mov edx, dword [0x47f884]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41ed00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4644e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x47d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0043c5c7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043a6da
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0041eca0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x439f11
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 0x439f38
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x439f3b
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.00439eed
pop esi
leave
ret 8

Function at 0x43d25d
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045659f

Function at 0x45690f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045672e

Function at 0x456d4e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e9c8
push 0x46e9c0
push str.FlsAlloc
push 0x1e
call fcn.00456bbb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x456d82
push dword [ebp + 8]
mov ecx, esi
call dword [0x46a164]
call esi
jmp 0x456d88
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x456dcc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e9d8
push 0x46e9d0
push str.FlsGetValue
push 0x20
call fcn.00456bbb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x456e03
push dword [ebp + 8]
mov ecx, esi
call dword [0x46a164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x45753e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043d3d0
mov eax, dword [0x47d080]
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.00453693
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x457580
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4576dc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00463d00
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 + 0x47f468]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00458d03
mov ecx, dword [esi*4 + 0x47f468]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4576d5
cmp eax, dword [edi + ecx + 0x24]
jne 0x4576d5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4576d5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00458d03
add esp, 0x14
test edx, edx
jl 0x4576d5
jg 0x45764b
test eax, eax
jb 0x4576d5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4576d5
jl 0x457665
cmp dword [ebp - 0x1008], eax
ja 0x4576d5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x457683
test ebx, ebx
je 0x4576bc
cmp ecx, edi
jae 0x4576bc
mov al, byte [ecx]
cmp al, 0xd
jne 0x45769d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4576a9
cmp byte [ecx + 1], 0xa
jne 0x4576a9
inc ecx
jmp 0x4576a9
movzx eax, al
movsx eax, byte [eax + 0x47d340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x457683
cmp edx, ebx
jne 0x457683
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4576da
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043c5a8
leave
ret
Function at 0x4581bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x47f468]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4581fb
cmp byte [ebx], 0xa
jne 0x4581fb
or byte [eax + edi + 0x28], 4
jmp 0x458200
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4582fe
mov al, byte [edx]
cmp al, 0x1a
je 0x4582e0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x45822f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x458254
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x45825e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x458211
jmp 0x4582fe
push 0
lea eax, [ebp - 0xc]
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 0x4582db
cmp dword [ebp - 0xc], 0
je 0x4582db
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47f468]
test byte [eax + edi + 0x28], 0x48
je 0x4582b5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4582a0
mov byte [esi], dl
jmp 0x4582b1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47f468]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4582fe
cmp byte [ebp - 1], 0xa
jne 0x4582c4
cmp esi, ebx
jne 0x4582c4
mov byte [esi], 0xa
jmp 0x4582fd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00458d21
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4582fe
mov byte [esi], 0xd
jmp 0x4582fd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47f468]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4582fa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4582fe
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret