joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cb60
Capabilities:
Parse pe header

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

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x72e9342b
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x9370dff
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x405fd4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433d2c]
jne 0x405fde
repz ret
jmp fcn.00409c82

Function at 0x40c4ec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407bc9
and dword [ebp - 4], 0
cmp dword [0x435670], 0
mov ebx, eax
jne 0x40c59d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c64e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c64e
push eax
call fcn.00407b57
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435670], eax
call esi
push eax
call fcn.00407b57
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x435674], eax
call esi
push eax
call fcn.00407b57
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435678], eax
call esi
push eax
call fcn.00407b57
pop ecx
mov dword [0x435680], eax
test eax, eax
je 0x40c59d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407b57
pop ecx
mov dword [0x43567c], eax
mov eax, dword [0x43567c]
cmp eax, ebx
je 0x40c5f5
cmp dword [0x435680], ebx
je 0x40c5f5
push eax
call fcn.00407bd2
push dword [0x435680]
mov esi, eax
call fcn.00407bd2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c5f5
test edi, edi
je 0x40c5f5
call esi
test eax, eax
je 0x40c5ec
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c5ec
test byte [ebp - 0xc], 1
jne 0x40c5f5
or dword [ebp + 0x10], 0x200000
jmp 0x40c62e
mov eax, dword [0x435674]
cmp eax, ebx
je 0x40c62e
push eax
call fcn.00407bd2
pop ecx
test eax, eax
je 0x40c62e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c62e
mov eax, dword [0x435678]
cmp eax, ebx
je 0x40c62e
push eax
call fcn.00407bd2
pop ecx
test eax, eax
je 0x40c62e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435670]
call fcn.00407bd2
pop ecx
test eax, eax
je 0x40c64e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c650
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b980
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x10], 0
push ebx
jne 0x41b9a8
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
ret
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.0044a1a0
cmp dword [ebp - 8], 7
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
add esp, 4
lea ecx, [ebp - 0x1c]
test eax, eax
sete bl
call fcn.0041c760
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00563360
mov esp, ebp
pop ebp
ret
Function at 0x429ec0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569954
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5bfd00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x10], ecx
push 0x78
call fcn.00563322
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea edi, [eax + 0x10]
xorps xmm0, xmm0
lea ecx, [edi + 0x18]
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_class_teemo::TargetFile_.0
push esi
mov dword [edi], vtable.teemo::TargetFile.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0040a090
lea eax, [edi + 0x34]
mov dword [edi + 0x30], 0
mov dword [eax], 0
xorps xmm0, xmm0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movups xmmword [eax + 0xc], xmm0
push 0x102
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
mov ecx, dword [ebp - 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x14]
add esp, 8
movq qword [ecx], xmm0
mov dword [ecx + 4], 0
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], 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 0x42eb80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a05c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bfd00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
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
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x42ec34
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
push 9
mov byte [edi + 0x68], 9
call fcn.00428180
cmp byte [edi + 0x68], 1
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jne 0x42ec72
cmp dword [edi + 0x70], 0
jne 0x42ec72
push 0x45b2
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::object__m_value.object___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 2
jne 0x42ec92
cmp dword [edi + 0x70], 0
jne 0x42ec92
push 0x45b3
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::array__m_value.array___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 3
jne 0x42ecb2
cmp dword [edi + 0x70], 0
jne 0x42ecb2
push 0x45b4
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::string__m_value.string___nullptr
call ebx
add esp, 0xc
cmp byte [edi + 0x68], 8
jne 0x42ecd2
cmp dword [edi + 0x70], 0
jne 0x42ecd2
push 0x45b5
push str.D:PROVINCEprovince.launcherBackendSharedShared.json.hpp
push str.m_type___value_t::binary__m_value.binary___nullptr
call ebx
add esp, 0xc
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea ecx, [edi + 0x10]
mov byte [ebp - 0xd], 1
call fcn.004301e0
mov dword [ebp - 4], 7
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x42ed05
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x4469d0
Capabilities:
Print debug messages

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 0x56c5e0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x5bfd00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebx + 0x30], 0
je 0x446b88
xor esi, esi
mov dword [ebp - 0x14], 0x8007007a
or edi, 0xffffffff
nop dword [eax + eax]
add edi, 0x400
test esi, esi
je 0x446a44
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [edi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x446add
lea eax, [edi + 1]
test eax, eax
je 0x446abb
cmp eax, 0x7fffffff
ja 0x446abb
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x34]
push eax
push 0
push dword [ebx + 0x30]
push edi
push esi
call fcn.004136d0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
add esp, 0x1c
mov ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x446aad
cmp eax, edi
ja 0x446aad
mov ecx, dword [ebp - 0x14]
jne 0x446ac7
mov byte [edi + esi], 0
jmp 0x446ac7
mov ecx, 0x8007007a
mov byte [edi + esi], 0
mov dword [ebp - 0x14], ecx
jmp 0x446ac7
mov ecx, 0x80070057
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x446ad5
cmp ecx, 0x8007007a
je 0x446a30
jmp 0x446ae0
mov byte [esi], 0
jmp 0x446b7e
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x446b7a
test esi, esi
je 0x446b88
mov dword [ebp - 0x1c], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
mov ecx, esi
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446b02
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040d5d0
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0044a1a0
cmp dword [eax + 0x14], 7
jbe 0x446b2c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x44]
call fcn.0041c760
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00409f80
cmp dword [ebx + 0x2c], 0
je 0x446b7e
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040a050
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
jne 0x446b67
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
call dword [eax + 8]
lea ecx, [ebp - 0x2c]
call fcn.00409f80
jmp 0x446b7e
test esi, esi
je 0x446b88
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 4], 3
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x446ba7
mov edx, dword [ecx]
lea eax, [ebx + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
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 0x44afe0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cd65
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5bfd00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea esi, [edi + 0x34]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x44b029
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
jne 0x44b03f
dec eax
push 6
mov dword [esi + 0x2c], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [ebp - 4], 0
cmp dword [edi + 0x30], 0
je 0x44b053
mov ecx, edi
call fcn.0044af50
mov edx, ebx
lea ecx, [ebp - 0x44]
call fcn.0044a1a0
mov ebx, eax
mov byte [ebp - 4], 1
cmp dword [ebx + 0x14], 7
jbe 0x44b06b
mov ebx, dword [ebx]
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x2c]
call fcn.0044a1a0
cmp dword [eax + 0x14], 7
jbe 0x44b07e
mov eax, dword [eax]
push 0xb
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x18]
test eax, eax
setne bl
cmp ecx, 7
jbe 0x44b0c3
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44b0b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44b103
push ecx
push edx
call fcn.00563352
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 7
jbe 0x44b113
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44b109
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44b109
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44b9a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x34]
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x44b9c7
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
jne 0x44b9dd
dec eax
push 6
mov dword [esi + 0x2c], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
cmp dword [edi + 0x30], 0
jne 0x44b9fb
push 0x99
push str.D:PROVINCEprovince.launcherBackendVendor_teemo_src_target_file.cpp
push 0x5a5520
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [edi + 0x30]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
test ecx, ecx
je 0x44ba5d
cmp dword [ebp + 0x10], 0
je 0x44ba5d
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
je 0x44ba5d
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jl 0x44ba5d
mov eax, dword [ebp + 8]
jg 0x44ba29
test eax, eax
jb 0x44ba5d
cmp dword [edi + 8], eax
jne 0x44ba33
cmp dword [edi + 0xc], ebx
je 0x44ba8b
push 0
push ebx
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
test eax, eax
je 0x44ba82
push 0xa5
push str.D:PROVINCEprovince.launcherBackendVendor_teemo_src_target_file.cpp
push 0x59e1a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, dword [esp + 0x14]
add esp, 4
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
push dword [edi + 0x30]
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [edi + 0x30]
mov dword [esp + 0x24], eax
xor ebx, ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [esp + 0x24]
add esp, 0x14
add dword [edi + 8], eax
adc dword [edi + 0xc], ebx
jmp 0x44ba69

Function at 0x44bbe0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 8], 1
push esi
mov esi, ecx
mov dword [esi], vtable.teemo::CSHA1.0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
mov dword [esi + 0x14], 0xc3d2e1f0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
je 0x44bc2e
push 0x74
push esi
call fcn.00563352
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x450080
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x498], eax
mov esi, edx
push edi
test ebx, ebx
jne 0x4500bb
lea eax, [ecx + 0x1e]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
xorps xmm0, xmm0
mov byte [ebp - 0x1c], 0
add esp, 0x10
cmp dword [0x5c2e88], 0
movups xmmword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x2c], xmm0
jne 0x4500fb
mov dword [0x5c2e8c], 0
mov dword [0x5c2e88], 1
push 0x400
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x494], 0x67452301
push 0
push eax
mov dword [ebp - 0x490], 0xefcdab89
mov dword [ebp - 0x48c], 0x98badcfe
mov dword [ebp - 0x488], 0x10325476
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x480], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x43c]
push ebx
push 0x400
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4501d1
nop dword [eax + eax]
test esi, esi
je 0x45019e
lea ecx, [esi + 0xf8]
call fcn.00408450
test al, al
jne 0x450220
mov ecx, dword [esi + 0xfc]
test ecx, ecx
je 0x45019e
call fcn.00408450
test al, al
jne 0x450220
push edi
lea edx, [ebp - 0x43c]
lea ecx, [ebp - 0x494]
call fcn.0044fa10
add esp, 4
lea eax, [ebp - 0x43c]
push ebx
push 0x400
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x450170
lea edx, [ebp - 0x494]
lea ecx, [ebp - 0x18]
call fcn.0044fb30
push ecx
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x18]
call fcn.0044fcf0
lea edx, [ebp - 0x3c]
add esp, 4
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4501f4
mov ecx, dword [ebp - 0x498]
lea eax, [ebp - 0x3c]
sub edx, esi
push edx
push eax
call fcn.0040b570
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00563360
mov esp, ebp
pop ebp
ret
Function at 0x450770
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
mov ebx, ecx
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x4507ea
push edi
mov eax, 0x12345678
mov edi, 0x23456789
mov edx, 0x34567890
mov ebx, dword [ebp + 8]
movsx ecx, cl
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebx + ecx*4]
movzx ecx, al
add ecx, edi
mov dword [esi], eax
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 4], edi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ebx + ecx*4]
mov ebx, dword [ebp - 4]
inc ebx
mov dword [esi + 8], edx
mov dword [ebp - 4], ebx
mov cl, byte [ebx]
test cl, cl
jne 0x4507a7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret