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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407830
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403da8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004059c4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407837
lea eax, [ebp - 0xc]
call fcn.00403b60
ret

Function at 0x408348
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x43d79c
mov eax, ebx
mov edx, 8
test al, 1
je 0x408364
shr eax, 1
xor eax, 0xedb88320
jmp 0x408366
shr eax, 1
dec edx
jne 0x408357
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x408350
pop ebx
ret

Function at 0x4084cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x10]
mov byte [ebp - 1], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x4085a1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
add eax, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
jne 0x408590
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, ebx
mov dword [ebp - 0xc], eax
jmp 0x408590
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 4
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x408582
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
test edi, 0x80000000
je 0x40855d
and edi, 0xffff
push edi
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [esi]
mov dword [edx], eax
jmp 0x408570
add edi, ebx
add edi, 2
push edi
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [esi]
mov dword [edx], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 4
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
cmp dword [eax], 0
je 0x4085bb
add dword [ebp - 0xc], 4
add dword [esi], 4
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x408526
mov eax, dword [ebp - 8]
add eax, 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
je 0x4085b7
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x4084ea
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412bf0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4447b8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x455100]
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 edi, ecx
mov dword [ebp - 0x5c], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x60], edi
mov dword [edi + 0x24], 0
mov dword [edi], vtable.std::_Func_impl_no_alloc_class__lambda_920bda7b67c89becc371ea3bd95d759c___void__struct_HookParam_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.0
mov dword [edi + 0x24], edi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x2c], eax
lea eax, [ebp - 0x40]
push ebx
push eax
mov dword [ebp - 4], 0
call fcn.0041af30
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push str.EMBED_SHARED_MEM
push eax
call fcn.00411680
add esp, 0x14
cmp dword [eax + 0x14], 7
jbe 0x412c6b
mov eax, dword [eax]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi + 0x30], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x412cb7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412cad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412db9
push ecx
push edx
call fcn.0041f7c3
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x412d09
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412cff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412db9
push ecx
push edx
call fcn.0041f7c3
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x2c], 7
call fcn.0041af30
add esp, 8
push 0
sub esp, 0x18
mov byte [ebp - 4], 4
mov edx, esp
push eax
push str.LUNA_VNR_HOOKMAN_
push edx
call fcn.00411680
add esp, 0xc
lea ecx, [edi + 0x34]
call fcn.00412dd0
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x412d82
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412d78
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412dbe
push ecx
push edx
call fcn.0041f7c3
add esp, 8
push 0xa00
push 0
push 0
push 6
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x28], eax
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.0041fc22
mov esp, ebp
pop ebp
ret 8
call fcn.004246cf
call fcn.004246cf
int3
Function at 0x415950
Capabilities:
Create thread
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444b81
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x455100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4570f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2b0], 0x4570f0
mov byte [ebp - 0x2ac], 0
call fcn.0041f256
add esp, 4
test eax, eax
jne 0x415b4e
cmp dword [0x45711c], 0x7fffffff
je 0x415b55
mov byte [ebp - 0x2ac], 1
mov dword [ebp - 0x2a8], 0x4570d0
movzx eax, byte [ebp + 8]
xor eax, 0x811c9dc5
mov byte [ebp - 4], 1
imul ecx, eax, 0x1000193
movzx eax, byte [ebp + 9]
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x4570d0
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.00411e70
mov eax, dword [eax + 4]
test eax, eax
je 0x415b08
cmp eax, dword [0x4570d4]
je 0x415b08
cmp dword [ebp + 0x2a8], 0
je 0x415a54
lea eax, [ebp + 0x284]
mov ecx, 0x4570d0
push eax
lea eax, [ebp + 8]
push eax
call fcn.00419750
mov ecx, eax
call fcn.00413740
lea eax, [ebp + 8]
mov ecx, 0x4570d0
push eax
call fcn.00419750
mov dword [ebp - 0x530], 2
lea esi, [ebp + 0xc]
mov ecx, 0x9e
mov dword [ebp - 0x298], eax
lea edi, [ebp - 0x528]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xa0
lea esi, [ebp - 0x530]
lea edi, [ebp - 0x290]
rep movsd dword es:[edi], dword [esi]
push 0x288
call fcn.0041f793
add esp, 4
test eax, eax
je 0x415ab7
mov ecx, 0xa2
lea esi, [ebp - 0x298]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x415ab9
xor eax, eax
mov dword [ebp - 0x2a4], eax
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
push 0x4120c0
push 0
push 0
call fcn.0042e505
add esp, 0x18
mov dword [ebp - 0x2a0], eax
test eax, eax
je 0x415b6d
mov ecx, dword [ebp - 0x29c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x415b66
push ecx
push eax
call fcn.0041cfd6
add esp, 8
test eax, eax
jne 0x415b66
push 0x4570f0
call fcn.0041f267
mov ecx, dword [ebp + 0x2a8]
add esp, 4
test ecx, ecx
je 0x415b33
mov edx, dword [ecx]
lea eax, [ebp + 0x284]
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041fc22
mov esp, ebp
pop ebp
ret
push 5
call fcn.0041d2a9
push 6
mov dword [0x45711c], 0x7ffffffe
call fcn.0041d2a9
push 1
call fcn.0041d2a9
push 6
mov dword [ebp - 0x29c], 0
call fcn.0041d2a9
int3
Function at 0x416f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444dbc
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x455100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0
call fcn.00414fe0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
je 0x416fe6
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0041af30
add esp, 8
push 0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push eax
push str.LUNA_VNR_HOOKMAN_
push ecx
call fcn.00411680
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00412dd0
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
test eax, eax
je 0x416fa0
cmp eax, 0xffffffff
je 0x416fa0
push eax
call dword [0x446a80]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00404af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x417023
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x10
movups xmmword [ecx], xmm0
push str.already_injected
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040b510
call fcn.00414e30
add esp, 0x18
mov ecx, dword [ebp + 0x20]
cmp ecx, 7
jbe 0x4170c0
mov edx, dword [ebp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4170b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4170da
jmp 0x4170b6
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2c], esi
push eax
lea ecx, [ebp - 0x28]
call fcn.0040bdb0
push 0x1c
mov byte [ebp - 4], 3
call fcn.0041f793
mov esi, eax
add esp, 4
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x417060
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov dword [esi], ecx
lea ecx, [esi + 4]
push eax
call fcn.0040bdb0
jmp 0x417062
xor esi, esi
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
push 0
push esi
push 0x412140
push 0
push 0
call fcn.0042e505
add esp, 0x18
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4170e6
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x4170df
push ecx
push eax
call fcn.0041cfd6
add esp, 8
test eax, eax
jne 0x4170df
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movlpd qword [ebp - 0x34], xmm0
call fcn.00412e80
jmp 0x416fe6
push ecx
push edx
call fcn.0041f7c3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041fc22
mov esp, ebp
pop ebp
ret
call fcn.004246cf
push 1
call fcn.0041d2a9
push 6
mov dword [ebp - 0x30], 0
call fcn.0041d2a9
int3
Function at 0x417100
Capabilities:
Create thread
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444e16
mov eax, dword fs:[0]
push eax
mov eax, 0x1444
call fcn.0041fc30
mov eax, dword [0x455100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4570f0
mov dword [ebp - 0xa40], 0x4570f0
mov byte [ebp - 0xa3c], 0
call fcn.0041f256
add esp, 4
test eax, eax
jne 0x4172b3
cmp dword [0x45711c], 0x7fffffff
je 0x4172ba
mov byte [ebp - 0xa3c], 1
mov dword [ebp - 0xa38], 0x4570d0
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebp + 9]
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x4570d0
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xa30]
push eax
call fcn.00411e70
mov eax, dword [eax + 4]
test eax, eax
je 0x41728b
cmp eax, dword [0x4570d4]
je 0x41728b
lea eax, [ebp + 8]
mov ecx, 0x4570d0
push eax
call fcn.00419750
mov dword [ebp - 0x1450], 0
lea esi, [ebp + 0xc]
mov ecx, 0x282
mov dword [ebp - 0xa28], eax
lea edi, [ebp - 0x1448]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x284
lea esi, [ebp - 0x1450]
lea edi, [ebp - 0xa20]
rep movsd dword es:[edi], dword [esi]
push 0xa18
call fcn.0041f793
add esp, 4
test eax, eax
je 0x41723e
mov ecx, 0x286
lea esi, [ebp - 0xa28]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x417240
xor eax, eax
mov dword [ebp - 0xa34], eax
lea ecx, [ebp - 0xa2c]
mov byte [ebp - 4], 1
push ecx
push 0
push eax
push 0x412100
push 0
push 0
call fcn.0042e505
add esp, 0x18
mov dword [ebp - 0xa30], eax
test eax, eax
je 0x4172d2
mov ecx, dword [ebp - 0xa2c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4172cb
push ecx
push eax
call fcn.0041cfd6
add esp, 8
test eax, eax
jne 0x4172cb
push 0x4570f0
call fcn.0041f267
add esp, 4
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.0041fc22
mov esp, ebp
pop ebp
ret
push 5
call fcn.0041d2a9
push 6
mov dword [0x45711c], 0x7ffffffe
call fcn.0041d2a9
push 1
call fcn.0041d2a9
push 6
mov dword [ebp - 0xa2c], 0
call fcn.0041d2a9
int3
Function at 0x448780
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x5020a8]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x16c], 0
je 0x448866
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
mov dword [esp + 0x1c], ecx
mov ecx, esi
call dword [eax + 0xc8]
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x170]
mov edi, dword [esi + 0x60]
sub ecx, ebx
sub edi, dword [esi + 0x58]
mov eax, dword [esp + 0x1c]
add edi, ebx
add eax, ecx
xor ecx, ecx
test eax, eax
cmovns ecx, eax
mov eax, dword [esi + 0x150]
sub eax, dword [esi + 0x158]
sub eax, ebx
add eax, edi
cmp ecx, eax
mov dword [esp + 0x14], eax
mov edx, eax
mov eax, dword [esi + 0x164]
cmovle edx, ecx
mov dword [esp + 0xc], eax
test edx, edx
jne 0x448833
xor eax, eax
jmp 0x44884d
mov eax, dword [esi + 0x160]
cmp edx, dword [esp + 0x14]
jne 0x448845
sub eax, edi
add eax, ebx
jmp 0x44884d
imul eax, edx
sub edi, ebx
cdq
idiv edi
mov dword [esi + 0x164], eax
lea ecx, [esp + 0xc]
mov eax, dword [esi]
push ecx
push 0x4b2
mov ecx, esi
call dword [eax + 0x28]
jmp 0x4488b0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
movups xmm0, xmmword [esi + 0x150]
sub esp, 0x10
mov ecx, esi
mov eax, esp
push dword [esp + 0x20]
movups xmmword [eax], xmm0
push dword [esp + 0x20]
call fcn.004489d0
mov ecx, esi
test eax, eax
je 0x4488a9
push 1
jmp 0x4488ab
push 0
call fcn.0043b480
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049fe2d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401030
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40104d
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004010d0
test al, al
je 0x401044
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
mov dword [ebx + 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push esi
push 0
push 0
push eax
call edx
mov edx, dword [ebx]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0x47b
push 7
push 0x1002
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.SHELL32.dll_SHChangeNotifyRegister]
xor ecx, ecx
mov dword [ebx + 4], eax
test eax, eax
setne al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4033a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455fe6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4754f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 2
cmp dword [edi + 0x7c], 0x10
jb 0x4033e2
mov eax, dword [edi + 0x68]
push eax
call fcn.00425770
add esp, 4
xor ebx, ebx
mov dword [edi + 0x7c], 0xf
mov dword [edi + 0x78], ebx
lea ecx, [edi + 0x64]
mov byte [edi + 0x68], bl
call fcn.004089e0
mov byte [ebp - 4], 1
cmp dword [edi + 0x48], 0x10
jb 0x40340f
mov eax, dword [edi + 0x34]
push eax
call fcn.00425770
add esp, 4
mov dword [edi + 0x48], 0xf
mov dword [edi + 0x44], ebx
lea ecx, [edi + 0x30]
mov byte [edi + 0x34], bl
call fcn.004089e0
lea esi, [edi + 0x18]
mov dword [ebp - 0x10], esi
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00408eb0
push esi
mov byte [ebp - 4], bl
call fcn.00409010
mov eax, edi
mov dword [ebp - 4], 4
call fcn.00408e20
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00409010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457428
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4754f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
cmp dword [ebx + 0xd4], edi
je 0x4050a3
lea eax, [ebx + 0xc0]
push eax
lea esi, [ebp - 0x54]
call fcn.00414b50
add esp, 4
mov dword [ebp - 4], 0
cmp dword [eax + 0x18], 8
jb 0x405045
mov eax, dword [eax + 4]
jmp 0x405048
add eax, 4
mov edx, dword [ebp - 0x5c]
push edx
push eax
call fcn.00415e70
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x3c], 8
mov esi, eax
jb 0x405070
mov eax, dword [ebp - 0x50]
push eax
call fcn.00425770
add esp, 4
lea edx, [ebp - 0x54]
xor ecx, ecx
push edx
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], cx
call fcn.00409010
test esi, esi
je 0x405097
inc edi
cmp edi, 3
jb 0x405021
cmp edi, 3
jne 0x4050a3
mov eax, esi
jmp 0x405124
mov eax, dword [ebp - 0x58]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, ebx
mov esi, eax
call fcn.00405150
mov eax, dword [ebp - 0x30]
mov edi, 0x10
cmp dword [ebp - 0x1c], edi
jae 0x4050de
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
push 0
lea edx, [ebp - 0x60]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], edi
jb 0x405108
mov edx, dword [ebp - 0x30]
push edx
call fcn.00425770
add esp, 4
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.004089e0
xor eax, eax
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.00420d00
mov esp, ebp
pop ebp
ret 4
Function at 0x405630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4573f1
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4754f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x228], esi
mov dword [esi], ebx
push 8
mov dword [ebp - 4], ebx
call fcn.00426610
add esp, 4
cmp eax, ebx
je 0x4057a5
mov dword [esi], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], cx
lea edi, [esi + 0x20]
mov dword [ebp - 4], 1
mov dword [ebp - 0x224], edi
mov dword [edi], ebx
push 8
mov byte [ebp - 4], 2
call fcn.00426610
add esp, 4
cmp eax, ebx
je 0x405772
mov dword [edi], eax
xor edx, edx
mov dword [eax + 4], edx
xor ecx, ecx
mov dword [eax], ecx
mov edx, dword [edi]
mov dword [edx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
push 0x1fe
lea ecx, [ebp - 0x20e]
mov byte [ebp - 4], 3
xor eax, eax
push ebx
push ecx
mov dword [esi + 0x34], ebx
mov word [ebp - 0x210], ax
call fcn.0042c300
add esp, 0xc
push ebx
push 0x23
lea edx, [ebp - 0x210]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.FunshionMediaLibrary
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
jmp 0x405730
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405730
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
mov ecx, esi
call fcn.004098d0
lea ecx, [esi + 0x20]
call fcn.00406c70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420d00
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x214], ebx
call fcn.004211a0
push 0x46ffcc
lea edx, [ebp - 0x220]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00432fc0
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x214], ebx
call fcn.004211a0
push 0x46ffcc
lea ecx, [ebp - 0x220]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00432fc0
int3
Function at 0x409ea0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455d4b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4754f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044fc70
push 0x18
push str.C:Program_FilesMicrosoft_Visual_Studio_10.0VCinclude_streambuf
mov dword [ebp - 4], 0
call fcn.0044f000
push eax
push 4
call fcn.0044ef60
mov edi, eax
add esp, 0x10
test edi, edi
je 0x409f29
call fcn.0044f420
mov dword [edi], eax
call fcn.0044f250
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0044fc00
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409f1f
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0044fc40
jmp 0x409f2b
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4