joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006ce0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
movss xmm0, dword [ebp + 0x14]
mov eax, ecx
movzx ecx, byte [ebp + 0x20]
push ebx
push esi
push edi
push ecx
push dword [ebp + 0x1c]
cvtps2pd xmm0, xmm0
mov ebx, edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ecx
push dword [ebp + 0x18]
movss dword [esp + 0x54], xmm3
sub esp, 0x20
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [ebp + 0x10]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [ebp + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm3
movsd qword [esp], xmm0
push dword [ebp + 8]
push ebx
push eax
push str.CreatePlayer3DTextLabel__d____s____d___f___f___f___f___d___d___d_
call fcn.10002ef0
mov esi, dword [0x10042334]
add esp, 0x3c
test esi, esi
je 0x10006d8a
cmp esi, fcn.10003af0
jne 0x10006d96
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10006d96
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10006d96
mov ecx, str.CreatePlayer3DTextLabel
call fcn.10003b00
mov esi, eax
mov ecx, ebx
mov dword [0x10042334], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006da1
mov esi, dword [0x10042290]
sub ecx, edx
mov eax, dword [0x10042320]
shl eax, 2
lea ebx, [ecx + 1]
lea edi, [esi + ebx*4]
cmp edi, eax
jl 0x10006dd7
lea ecx, [edi + 0x40]
shr ecx, 2
call fcn.100037c0
test eax, eax
jns 0x10006dd7
mov esi, dword [esp + 0x50]
jmp 0x10006e14
mov ecx, esi
mov dword [0x10042290], edi
shr ecx, 2
test ecx, ecx
jns 0x10006dec
add ecx, dword [0x1004231c]
mov eax, dword [0x10042324]
push ebx
imul eax, ecx
push 0
push 0
push dword [esp + 0x4c]
add eax, dword [0x10042318]
push eax
mov eax, dword [0x100423e8]
mov eax, dword [eax + 0x94]
call eax
add esp, 0x14
mov eax, dword [esp + 0x44]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x54]
push eax
push 0x10042278
mov dword [esp + 0x5c], 0x28
mov dword [esp + 0x64], esi
call dword [0x10042334]
mov ecx, dword [0x10042290]
add esp, 8
cmp ecx, esi
cmovg ecx, esi
pop edi
pop esi
mov dword [0x10042290], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006e90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edx
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
push ecx
push str.UpdatePlayer3DTextLabelText__d___d___d____s__
mov dword [ebp - 8], ecx
call fcn.10002ef0
mov esi, dword [0x10042330]
add esp, 0x14
test esi, esi
je 0x10006ee9
cmp esi, fcn.10003af0
jne 0x10006ef5
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10006ef5
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10006ef5
mov ecx, str.UpdatePlayer3DTextLabelText
call fcn.10003b00
mov esi, eax
mov ecx, edi
mov dword [0x10042330], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006f00
mov esi, dword [0x10042290]
sub ecx, edx
mov eax, dword [0x10042320]
shl eax, 2
lea edx, [ecx + 1]
lea ebx, [esi + edx*4]
mov dword [ebp - 4], edx
cmp ebx, eax
jl 0x10006f3b
lea ecx, [ebx + 0x40]
shr ecx, 2
call fcn.100037c0
test eax, eax
jns 0x10006f38
mov esi, dword [ebp - 0x10]
jmp 0x10006f75
mov edx, dword [ebp - 4]
mov ecx, esi
mov dword [0x10042290], ebx
shr ecx, 2
test ecx, ecx
jns 0x10006f50
add ecx, dword [0x1004231c]
mov eax, dword [0x10042324]
push edx
imul eax, ecx
push 0
push 0
push edi
add eax, dword [0x10042318]
push eax
mov eax, dword [0x100423e8]
mov eax, dword [eax + 0x94]
call eax
add esp, 0x14
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push 0x10042278
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x14], esi
call dword [0x10042330]
mov ecx, dword [0x10042290]
add esp, 8
cmp ecx, esi
mov edx, eax
cmovg ecx, esi
xor eax, eax
pop edi
test edx, edx
mov dword [0x10042290], ecx
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002b3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
cmp edi, dword [eax + 4]
je 0x1002b582
mov esi, dword [edi]
cmp dword [esi + 0x14], 0
je 0x1002b3e8
mov eax, dword [esi + 0x10]
mov esi, dword [esi + 0x20]
mov esi, dword [esi + eax*4]
mov eax, dword [ebp + 0xc]
jmp 0x1002b3ea
xor esi, esi
test esi, esi
je 0x1002b572
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
xor ebx, ebx
mov edx, dword [edi + 0x28]
mov edi, dword [ebp + 8]
mov byte [esp + 0xf], 0
lea ecx, [eax + 0x100]
add eax, 0x64
mov dword [esp + 0x1c], eax
mov eax, edx
and eax, 0x3f
mov dword [esp + 0x24], ecx
bts ebx, eax
xor ecx, ecx
cmp eax, 0x20
cmovae ecx, ebx
xor ebx, ecx
cmp eax, 0x40
mov eax, dword [esi + 0xc]
cmovae ecx, ebx
shr edx, 6
and ebx, dword [eax + edx*8 + 0x80]
and ecx, dword [eax + edx*8 + 0x84]
or ebx, ecx
je 0x1002b4b8
mov eax, dword [esp + 0x1c]
cmp dword [eax + 8], 0
je 0x1002b46a
push ecx
lea ecx, [edi + 0x18]
push ecx
push dword [ecx]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.1000b610
cmp dword [esp + 0x20], 0
je 0x1002b4b8
mov eax, dword [esp + 0x24]
cmp dword [eax + 8], 0
je 0x1002b48e
push ecx
lea ecx, [edi + 0x68]
push ecx
push dword [ecx]
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.1000b610
cmp dword [esp + 0x28], 0
je 0x1002b4b8
push ecx
lea eax, [esi + 8]
push eax
push dword [eax]
lea eax, [esp + 0x38]
push eax
lea ecx, [edi + 0x6c]
call fcn.1000b610
cmp dword [esp + 0x2c], 0
jne 0x1002b4b8
lea ecx, [edi + 0x2c]
lea edx, [esi + 0xc]
call fcn.10033a30
mov byte [esp + 0xf], al
push ecx
lea ebx, [esi + 8]
push ebx
push dword [ebx]
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0xb8]
call fcn.1000b610
cmp byte [esp + 0xf], 0
je 0x1002b52a
cmp dword [esp + 0x10], 0
jne 0x1002b50d
push ebx
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [edi + 0xb8]
call fcn.1001cb90
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [ecx + 0x78]
call fcn.1002fbe0
mov eax, dword [esi + 0xc]
cmp dword [eax + 8], 0
je 0x1002b561
mov ecx, dword [edi + 0x5c]
lea eax, [esp + 0x48]
push ebx
push ebx
push eax
add ecx, 0xc
call fcn.10031b90
jmp 0x1002b561
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002b561
push dword [eax]
lea ecx, [edi + 0xb8]
push eax
call fcn.1001f3b0
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [ecx + 0x84]
call fcn.1002fbe0
mov esi, dword [esi]
test esi, esi
jne 0x1002b3f5
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
add edi, 4
mov dword [esp + 0x18], edi
cmp edi, dword [eax + 4]
jne 0x1002b3d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10032f20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10041f70]
push ebx
push esi
push edi
mov eax, dword [eax]
mov ebx, ecx
mov ecx, 0x10041fd4
mov dword [ebp - 0x10], ebx
push dword [eax + 0x5c]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.10014140
mov ecx, dword [0x10041f70]
mov esi, dword [ecx]
cmp dword [esi + 0xd4], 0
je 0x10032f6a
mov eax, dword [esi + 0xd0]
mov esi, dword [esi + 0xe0]
mov esi, dword [esi + eax*4]
jmp 0x10032f6c
xor esi, esi
test esi, esi
je 0x100330c1
mov edi, dword [ebp + 8]
lea ecx, [esi + 0xdc]
push ecx
lea eax, [edi + 8]
push eax
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.1000b610
cmp dword [ebp - 4], 0
je 0x1003309f
mov edi, dword [ebp - 4]
mov ecx, dword [esi + 8]
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0xc]
push eax
push ecx
push str.RemovePlayerMapIcon__d___d_
mov dword [ebp - 0xc], eax
call fcn.10002ef0
mov ebx, dword [0x10042250]
add esp, 0xc
test ebx, ebx
je 0x10032fe7
cmp ebx, fcn.10003af0
jne 0x10032ff3
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10032ff3
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x10032ff3
mov ecx, str.RemovePlayerMapIcon
call fcn.10003b00
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0x10042278
mov dword [0x10042250], ebx
mov dword [ebp - 0x1c], 8
call ebx
mov eax, dword [edi + 0xc]
add esp, 8
cmp dword [esi + 0xe4], 1
mov dword [ebp - 0xc], eax
jbe 0x1003303a
lea eax, [ebp - 0xc]
push eax
lea ecx, [esi + 0x128]
call fcn.100141c0
jmp 0x1003308e
lea ebx, [esi + 0x128]
mov dword [esi + 0x124], 0
lea eax, [ebp - 0x2c]
cmp ebx, eax
je 0x1003308e
mov ecx, dword [ebx]
test ecx, ecx
je 0x1003307a
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.1000ab70
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push dword [edi]
lea ecx, [esi + 0xdc]
push edi
call fcn.1001f3b0
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x68]
add edi, 8
push edi
add ecx, 0x3c
call fcn.10030f50
mov esi, dword [esi]
test esi, esi
jne 0x10032f74
mov ecx, dword [0x10041f70]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 4]
add eax, 0xc
push 0
push eax
call fcn.100100d0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push eax
mov eax, dword [0x10041f70]
mov dword [ebx], ecx
mov ecx, dword [eax]
add ecx, 0x54
call fcn.10011d70
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10033100
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10041f70]
push ebx
push esi
push edi
mov eax, dword [eax]
mov ebx, ecx
mov ecx, 0x10041fac
mov dword [ebp - 0x10], ebx
push dword [eax + 0x74]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.10014140
mov ecx, dword [0x10041f70]
mov esi, dword [ecx]
cmp dword [esi + 0xd4], 0
je 0x1003314a
mov eax, dword [esi + 0xd0]
mov esi, dword [esi + 0xe0]
mov esi, dword [esi + eax*4]
jmp 0x1003314c
xor esi, esi
test esi, esi
je 0x1003322d
mov edi, dword [ebp + 8]
lea ecx, [esi + 0xf4]
push ecx
lea eax, [edi + 8]
push eax
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.1000b610
cmp dword [ebp - 4], 0
je 0x1003320b
mov edi, dword [ebp - 4]
mov ecx, dword [esi + 8]
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0xc]
push eax
push ecx
push str.DestroyPlayerObject__d___d_
mov dword [ebp - 0xc], eax
call fcn.10002ef0
mov ebx, dword [0x100421c0]
add esp, 0xc
test ebx, ebx
je 0x100331c7
cmp ebx, fcn.10003af0
jne 0x100331d3
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x100331d3
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x100331d3
mov ecx, str.DestroyPlayerObject
call fcn.10003b00
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0x10042278
mov dword [0x100421c0], ebx
mov dword [ebp - 0x1c], 8
call ebx
add esp, 8
lea ecx, [esi + 0xf4]
push dword [edi]
push edi
call fcn.1001f3b0
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x68]
add edi, 8
push edi
add ecx, 0x54
call fcn.10030e80
mov esi, dword [esi]
test esi, esi
jne 0x10033154
mov ecx, dword [0x10041f70]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 4]
add eax, 0xc
push 0
push eax
call fcn.100101a0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push eax
mov eax, dword [0x10041f70]
mov dword [ebx], ecx
mov ecx, dword [eax]
add ecx, 0x6c
call fcn.10011e00
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100333e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10041f70]
push ebx
push esi
push edi
mov eax, dword [eax]
mov ebx, ecx
mov ecx, 0x10041fc0
mov dword [ebp - 0x10], ebx
push dword [eax + 0xbc]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.10014140
mov ecx, dword [0x10041f70]
mov esi, dword [ecx]
cmp dword [esi + 0xd4], 0
je 0x1003342d
mov eax, dword [esi + 0xd0]
mov esi, dword [esi + 0xe0]
mov esi, dword [esi + eax*4]
jmp 0x1003342f
xor esi, esi
test esi, esi
je 0x1003351c
nop word [eax + eax]
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x10c]
push ecx
lea eax, [edi + 8]
push eax
push dword [eax]
lea eax, [ebp - 4]
push eax
call fcn.1000b610
cmp dword [ebp - 4], 0
je 0x100334f7
mov edi, dword [ebp - 4]
mov ecx, dword [esi + 8]
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0xc]
push eax
push ecx
push str.DeletePlayer3DTextLabel__d___d_
mov dword [ebp - 0xc], eax
call fcn.10002ef0
mov ebx, dword [0x10042258]
add esp, 0xc
test ebx, ebx
je 0x100334b3
cmp ebx, fcn.10003af0
jne 0x100334bf
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x100334bf
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x100334bf
mov ecx, str.DeletePlayer3DTextLabel
call fcn.10003b00
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0x10042278
mov dword [0x10042258], ebx
mov dword [ebp - 0x1c], 8
call ebx
add esp, 8
lea ecx, [esi + 0x10c]
push dword [edi]
push edi
call fcn.1001f3b0
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x68]
add edi, 8
push edi
add ecx, 0x9c
call fcn.10030db0
mov esi, dword [esi]
test esi, esi
jne 0x10033440
mov ecx, dword [0x10041f70]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 4]
add eax, 0xc
push 0
push eax
call fcn.10010450
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push eax
mov eax, dword [0x10041f70]
mov dword [ebx], ecx
mov ecx, dword [eax]
add ecx, 0xb4
call fcn.10011c40
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4028d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ccf8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4376f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.00418962
add esp, 4
cmp eax, ebx
je 0x4029b4
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.00418962
add esp, 4
cmp eax, ebx
je 0x402990
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
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
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004184b5
push 0x433e28
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.00419f6e
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.004184b5
push 0x433e28
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.00419f6e
int3
Function at 0x407a00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ccab
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4376f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004177ca
push 4
mov dword [ebp - 4], 0
call fcn.00418962
mov edi, eax
add esp, 4
test edi, edi
je 0x407a80
call fcn.004172bb
mov dword [edi], eax
call fcn.0041707a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00416faf
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407a76
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00416fd7
jmp 0x407a82
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
Function at 0x40f2c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x40f2cf
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f2fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40f2fc
cmp dword [ebp + 0x1c], 0x10
jb 0x40f2f8
mov eax, dword [ebp + 8]
push eax
call fcn.004185a3
add esp, 4
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x1c], 0x10
jb 0x40f30e
mov ecx, dword [ebp + 8]
push ecx
call fcn.004185a3
add esp, 4
mov eax, 1
pop ebp
ret
Function at 0x40fd70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, 0x10
cmp dword [ebp + 0x1c], ebx
jae 0x40fd84
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40fda6
cmp dword [ebp + 0x1c], ebx
jb 0x40fdd4
mov eax, dword [ebp + 8]
push eax
call fcn.004185a3
add esp, 4
xor eax, eax
pop ebx
pop ebp
ret
test bl, al
je 0x40fdc3
cmp dword [ebp + 0x1c], ebx
jb 0x40fdbb
mov ecx, dword [ebp + 8]
push ecx
call fcn.004185a3
add esp, 4
mov eax, 1
pop ebx
pop ebp
ret
cmp dword [ebp + 0x1c], ebx
jb 0x40fdd4
mov edx, dword [ebp + 8]
push edx
call fcn.004185a3
add esp, 4
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x412e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4376f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
xor eax, eax
mov dword [ebp - 4], eax
push ecx
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x38], esp
push 0xffffffffffffffff
push eax
lea edx, [ebp + 0xc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
push edx
lea esi, [ebp - 0x34]
mov byte [ecx], al
call fcn.00401b70
mov ebx, dword [ebp + 8]
mov ecx, esi
call fcn.00412900
xor ebx, ebx
add esp, 0x20
cmp eax, ebx
jne 0x412fcb
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x28]
call fcn.00415490
mov eax, dword [ebp - 0x30]
mov esi, 8
add esp, 4
cmp dword [ebp - 0x1c], esi
jae 0x412ed3
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
push ebx
push ebx
push eax
mov eax, dword [ebp - 0x34]
push eax
mov dword [ebp - 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x412f53
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], esi
jb 0x412f0e
mov edx, dword [ebp - 0x30]
push edx
call fcn.004185a3
add esp, 4
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
cmp dword [ebp + 0x20], esi
jb 0x412f34
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004185a3
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], esi
jb 0x412fff
mov edx, dword [ebp + 0x28]
push edx
jmp 0x412ff7
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x38]
mov dword [edi], ecx
cmp dword [ebp - 0x1c], esi
jb 0x412f73
mov edx, dword [ebp - 0x30]
push edx
call fcn.004185a3
add esp, 4
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
cmp dword [ebp + 0x20], esi
jb 0x412f99
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004185a3
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], esi
jb 0x412fb7
mov edx, dword [ebp + 0x28]
push edx
call fcn.004185a3
add esp, 4
mov al, 1
jmp 0x413001
mov esi, 0x10
cmp dword [ebp + 0x20], esi
jb 0x412fe1
mov eax, dword [ebp + 0xc]
push eax
call fcn.004185a3
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], esi
jb 0x412fff
mov ecx, dword [ebp + 0x28]
push ecx
call fcn.004185a3
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041836d
mov esp, ebp
pop ebp
ret