joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483e7d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b7134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x44], 0
movq xmm0, qword [ebp - 0x48]
movq qword [ebx], xmm0
mov dword [ebx + 8], 0x4a7030
mov eax, dword [esi + 0x54]
lea edi, [esi + 0x18]
test eax, eax
jne 0x404060
cmp byte [edi + 0x18], al
je 0x404025
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, 1
jmp 0x404027
xor bl, bl
mov byte [esi + 0x60], 1
cmp byte [edi + 0x18], 0
je 0x40403e
push dword [esi + 0x34]
or dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [esi + 0x50], 0
jne 0x40404e
cmp dword [esi + 0x40], 0
je 0x40404e
mov byte [esi + 0x50], 1
test bl, bl
je 0x404059
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x404165
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x4bef7c]
neg ecx
movq qword [ebp - 0x24], xmm0
lea eax, [esi + 0x14]
mov dword [ebp - 0x28], 0
sbb ecx, ecx
mov dword [ebp - 0x1c], 0
and ecx, eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4bef7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp byte [edi + 0x18], 0
mov dword [ebp - 0x18], edi
je 0x4040d1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
jmp 0x4040d5
mov byte [ebp - 0x14], 0
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
xor edi, edi
call fcn.004041c0
test eax, eax
je 0x404129
nop
cmp edi, 0xffffffff
lea eax, [edi + 1]
cmove eax, edi
mov edi, eax
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x18], 0
je 0x404115
cmp byte [ebp - 0x14], 0
jne 0x404115
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
push ebx
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004041c0
test eax, eax
jne 0x4040f0
cmp byte [ebp - 0x14], 0
je 0x404138
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x1c]
push dword [0x4bef7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [ebp - 0x30]
call fcn.00415c80
xor esi, esi
push dword [ebp + esi*4 - 0x3c]
call fcn.0044ace0
inc esi
add esp, 4
cmp esi, 3
jl 0x404151
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d23f
mov esp, ebp
pop ebp
ret 4
Function at 0x406030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4840e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b7134]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.0044ace0
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x406094
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x4060a5
push 0x48
push esi
call fcn.0045d6e8
add esp, 8
mov eax, esi
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 0x4072c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484431
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x4b7134]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x28], edi
push 0
mov dword [ebp - 0x20], 0
call fcn.00440e10
mov dword [ebp - 4], 0
mov dword [edi], vtable.CryptoPP::BaseN_Decoder.0
mov dword [edi + 4], vtable.CryptoPP::BaseN_Decoder.1.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 + 0x30], 0xffffffff
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004416b0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00443260
mov esi, eax
push 0x14
mov byte [ebp - 4], 3
call fcn.0045d467
mov ecx, eax
xorps xmm0, xmm0
mov eax, dword [ebx + 8]
add esp, 4
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], str.DecodingLookupArray
mov word [ecx + 8], 1
mov dword [ecx + 0xc], 0
mov dword [ecx], vtable.CryptoPP::AlgorithmParametersTemplate_int_const__.0
mov dword [ecx + 0x10], eax
mov byte [ebp - 4], 4
mov eax, dword [esi + 4]
mov dword [esi + 4], 0
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x24], eax
test edx, edx
je 0x4073e6
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0xc], eax
mov edx, dword [esi + 4]
mov dword [ebp - 0x18], 0
test edx, edx
je 0x407402
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 4], ecx
mov byte [esi + 8], 1
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004431e0
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x40742e
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [ebx + 0xc]
mov byte [ebp - 4], 2
push eax
push str.Log2Base
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x34], vtable.CryptoPP::NameValuePairs.0
call fcn.0041a4b0
push eax
mov ecx, edi
call fcn.0044b370
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x407463
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045d23f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x407490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4840e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b7134]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.0044ace0
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x4074e7
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x4074f8
push 0x3c
push esi
call fcn.0045d6e8
add esp, 8
mov eax, esi
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 0x407860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48453d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4b7134]
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
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.softwareSoftwareClient
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov edx, str.Error_opening_key._n
mov ecx, str.Success_opening_key._n
cmovne ecx, edx
push ecx
call fcn.00401560
mov esi, dword [ebp + 0x18]
add esp, 4
push esi
call fcn.00415690
mov edx, str.___:sizeof_key
mov ecx, eax
call fcn.00419f90
push eax
call fcn.0041a7b0
add esp, 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push esi
push eax
push 3
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov edx, str.Error_writing_to_Registry._n
mov ecx, str.Success_writing_to_Registry._n
cmovne ecx, edx
push ecx
call fcn.00401560
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x407958
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40794e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407973
push edx
push ecx
call fcn.0045d6e8
add esp, 8
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.0045d23f
mov esp, ebp
pop ebp
ret
call fcn.0046c28d
int3
Function at 0x40af10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.0045e590
mov eax, dword [0x4b7134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x138c]
push edi
mov edi, dword [ebp + 8]
push 0xff
push 0
mov dword [ebp - 0x1394], edi
push eax
mov dword [ebp - 0x1390], 0x1388
call fcn.0045f490
add esp, 0xc
lea eax, [ebp - 0x1394]
push eax
push 0x20019
push 0
push str.SoftwareSoftwareClient
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x1390]
push eax
lea eax, [ebp - 0x138c]
push eax
push 0
push 8
push esi
push 0x4a475b
push dword [ebp - 0x1394]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x40afcc
lea ecx, [ebp - 0x138c]
mov dword [edi], eax
mov dword [edi + 0x10], eax
lea edx, [ecx + 1]
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40afb2
sub ecx, edx
lea eax, [ebp - 0x138c]
push ecx
push eax
mov ecx, edi
call fcn.004184a0
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045d23f
mov esp, ebp
pop ebp
ret 8
Function at 0x40f7f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48549e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4b7134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov edx, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [edx + 0x14]
cmp eax, 8
jb 0x40f861
mov edi, dword [edx]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x18], ecx
cmp ecx, 7
jne 0x40f89c
mov esi, ecx
mov ecx, str.Desktop
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40f896
add ecx, 2
sub esi, 1
jne 0x40f875
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x48c320
jmp 0x40f98c
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x18]
mov edi, edx
cmp eax, 8
jb 0x40f8a5
mov edi, dword [edx]
cmp ecx, 9
jne 0x40f8da
mov esi, ecx
mov ecx, str.Documents
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40f8d4
add ecx, 2
sub esi, 1
jne 0x40f8b3
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x48c330
jmp 0x40f98c
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x18]
mov edi, edx
cmp eax, 8
jb 0x40f8e3
mov edi, dword [edx]
cmp ecx, 9
jne 0x40f918
mov esi, ecx
mov ecx, str.Downloads
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40f912
add ecx, 2
sub esi, 1
jne 0x40f8f1
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x48c360
jmp 0x40f98c
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x18]
mov edi, edx
cmp eax, 8
jb 0x40f921
mov edi, dword [edx]
cmp ecx, 8
jne 0x40f954
mov esi, ecx
mov ecx, str.Pictures
sub edi, ecx
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40f94e
add ecx, 2
sub esi, 1
jne 0x40f930
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x48c340
jmp 0x40f98c
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x18]
cmp eax, 8
jb 0x40f95b
mov edx, dword [edx]
cmp ecx, 6
jne 0x40f9c1
mov esi, ecx
mov ecx, str.Videos
sub edx, ecx
nop dword [eax]
mov ax, word [edx + ecx]
cmp ax, word [ecx]
jne 0x40f9c1
add ecx, 2
sub esi, 1
jne 0x40f970
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x48c350
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x40f9c1
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f9a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00418060
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d23f
mov esp, ebp
pop ebp
ret 8
Function at 0x412400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4124e6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4124d5
jg 0x412440
test edx, edx
je 0x4124d5
nop dword [eax]
call fcn.00417d80
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x412494
jg 0x412457
test esi, esi
je 0x412494
cmp ebx, eax
jg 0x412467
jl 0x412461
cmp edi, esi
jae 0x412467
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0045ef10
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4124b9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x4124cf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x412440
jl 0x4124cf
test edi, edi
jne 0x412440
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x412508
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x41250a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x412588
jg 0x41251d
test esi, esi
je 0x412588
test eax, eax
jl 0x41256c
jg 0x412527
test ebx, ebx
je 0x41256c
cmp edi, eax
jg 0x412537
jl 0x412531
cmp esi, ebx
jae 0x412537
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0045ef10
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x412588
jg 0x41256f
test esi, esi
je 0x412588
jmp 0x41256f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x412588
push eax
push esi
push 1
push edx
call fcn.0046c855
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4125a0
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 0x4125d2
jl 0x4125c5
test ecx, ecx
jne 0x4125d2
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 0x412692
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00417da0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41263e
jg 0x4125fd
test esi, esi
je 0x41263e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x412615
mov eax, dword [esp + 0x10]
jl 0x41260f
cmp eax, esi
jae 0x412615
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0045ef10
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 0x41265f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x41267b
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 0x4125e4
jl 0x41267b
test ecx, ecx
jne 0x4125e4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x4126d1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x4126d1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0045ef10
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x412740
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x4126f7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x412729
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0046d0af
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x412754
cmp edi, eax
ja 0x412705
test ecx, ecx
je 0x412740
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0046d0af
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x412ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4b7134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x412af0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d23f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x412b2c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x412b2c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d23f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x412c14
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x412b54
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 0x412b87
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0046837c
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.0045d23f
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x412be7
sub eax, 1
je 0x412be7
sub eax, 2
jne 0x412c14
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0046837c
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.0045d23f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x412c04
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0046c855
add esp, 0x10
cmp edi, eax
jne 0x412c14
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x412b17
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d23f
mov esp, ebp
pop ebp
ret 4

Function at 0x413060
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x413080
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x417920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b7134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4179da
cmp byte [esi + 0x3d], 0
je 0x4179da
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4179c8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x417990
sub eax, 1
je 0x417994
sub eax, 2
jne 0x4179c8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d23f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4179b1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0046c855
add esp, 0x10
cmp edi, eax
jne 0x4179c8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d23f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d23f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0045d23f
mov esp, ebp
pop ebp
ret

Function at 0x4199e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4862a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b7134]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0045d467
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0045c09f
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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