joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452560
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4c883b
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
mov ax, word [eax - 4]
test ax, ax
push edi
je 0x4526cb
mov eax, dword [esi + 0x25c]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x801a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [esp + 0x1c]
lea edi, [esi + 0x8c]
push edx
mov ecx, edi
call fcn.0042ab70
push str.Genimo
mov ecx, edi
call fcn.0042abd0
mov eax, dword [esi + 0x90]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebx
cmp eax, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x4525f7
mov eax, dword [esi + 0x90]
push 0
push eax
call ebp
test eax, eax
je 0x4526cb
push 0x4d3d58
mov ecx, edi
call fcn.0042abd0
mov eax, dword [esi + 0x90]
push eax
call ebx
or ebx, 0xffffffff
cmp eax, ebx
jne 0x452626
mov eax, dword [esi + 0x90]
push 0
push eax
call ebp
test eax, eax
je 0x4526cb
push 0x4d3e00
mov ecx, edi
call fcn.0042abd0
push edi
lea ecx, [esp + 0x14]
call fcn.0042a910
sub esp, 8
lea eax, [esi + 0x74]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x134], 0
call fcn.0042a910
lea ecx, [esp + 0x18]
call fcn.00401640
push 0x4d3df8
lea ecx, [esp + 0x14]
call fcn.0042abd0
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
je 0x4526bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x130]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x58]
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], ebx
call fcn.0042a980
mov al, 1
jmp 0x4526cd
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], ebx
call fcn.0042a980
xor al, al
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x11c
ret 4

Function at 0x452850
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c8980
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
mov ax, word [eax - 4]
xor ebx, ebx
cmp ax, bx
jne 0x45288d
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x58]
lea eax, [esi + 0x8c]
push eax
lea ecx, [esp + 0xc]
call fcn.0042a910
add esi, 0x74
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
call fcn.0042a910
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0042abd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.0042a980
push 0x4d3df8
lea ecx, [esp + 0xc]
call fcn.0042abd0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
lea ecx, [esp + 8]
inc bl
mov dword [esp + 0x20], 0xffffffff
call fcn.0042a980
mov ecx, dword [esp + 0x18]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x452a40
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c8980
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
mov ax, word [eax - 4]
xor ebx, ebx
cmp ax, bx
jne 0x452a7d
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esi + 0x8c]
push ecx
lea ecx, [esp + 0xc]
call fcn.0042a910
add esi, 0x74
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
call fcn.0042a910
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0042abd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call fcn.0042a980
push str..prefs
lea ecx, [esp + 0xc]
call fcn.0042abd0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
lea ecx, [esp + 8]
inc bl
mov dword [esp + 0x20], 0xffffffff
call fcn.0042a980
mov ecx, dword [esp + 0x18]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x452bd0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4c888e
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x25c]
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0x8023
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [esp + 0x34]
lea esi, [edi + 0x344]
push edx
mov ecx, esi
call fcn.0042ab70
push str.Genimo
mov ecx, esi
call fcn.0042abd0
mov eax, dword [edi + 0x348]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebx
cmp eax, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x452c57
mov eax, dword [edi + 0x348]
push 0
push eax
call ebp
test eax, eax
je 0x452de2
push 0x4d3d58
mov ecx, esi
call fcn.0042abd0
mov eax, dword [edi + 0x348]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x452c84
mov eax, dword [edi + 0x348]
push 0
push eax
call ebp
test eax, eax
je 0x452de2
push str.High.score
mov ecx, esi
call fcn.0042abd0
mov eax, dword [edi + 0x348]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x452de2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2c
call fcn.0047fffa
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x140], ebx
je 0x452ce7
push 1
push 1
push 1
push esi
mov ecx, eax
call fcn.0042be20
mov ebx, eax
mov ecx, ebx
mov dword [esp + 0x140], 0xffffffff
call fcn.0042c140
test al, al
je 0x452dcf
push str.Version
push 0x4d3da4
mov ecx, ebx
call fcn.0042bdb0
mov eax, dword [edi + 0x334]
mov esi, 1
cmp eax, esi
jl 0x452dbe
mov dword [esp + 0x10], 0x14
lea ecx, [ecx]
mov eax, dword [edi + 0x330]
mov ecx, dword [esp + 0x10]
push esi
lea edx, [esp + 0x18]
push str.Player_dName
push edx
lea ebp, [eax + ecx - 0x14]
call fcn.0048025b
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push ebp
mov ecx, ebx
call fcn.0042bd90
push esi
lea ecx, [esp + 0x18]
push str.Player_dLevel
push ecx
call fcn.0048025b
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.0042bd90
push esi
lea ecx, [esp + 0x18]
push str.Player_dScore
push ecx
call fcn.0048025b
mov eax, dword [ebp + 0x10]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, ebx
call fcn.0042cef0
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x334]
inc esi
add ecx, 0x14
cmp esi, eax
mov dword [esp + 0x10], ecx
jle 0x452d30
push str.VersionFooter
push 0x4d3da4
mov ecx, ebx
call fcn.0042bdb0
test ebx, ebx
je 0x452de2
mov ecx, ebx
call fcn.0042c170
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x455680
Capabilities:
Get session user name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c8bab
push eax
mov dword fs:[0], esp
sub esp, 0x90
push esi
mov esi, ecx
mov ecx, dword [esi + 0xb0]
test ecx, ecx
push edi
je 0x455775
cmp dword [esi + 0x178], 0x3f800000
je 0x45573f
fld dword [0x4cc304]
fld dword [esi + 0x1b8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4556eb
mov eax, dword [esi + 0x1b8]
push 0xc0d00000
push 0
push eax
lea ecx, [esi + 0x180]
call fcn.0042b720
mov eax, dword [esp + 0xa8]
test eax, eax
mov byte [esi + 0x244], 1
mov dword [esi + 0xb4], eax
jne 0x45590e
fld dword [esi + 0x178]
fcomp dword [0x4cc304]
fnstsw ax
test ah, 0x41
jne 0x455733
mov ecx, dword [esi + 0x178]
push 0xbfa66666
push 0
push ecx
lea ecx, [esi + 0x140]
call fcn.0042b720
mov byte [esi + 0x244], 1
jmp 0x45590e
lea edi, [ecx + 0x10]
call fcn.0045e0b0
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x78]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
push eax
push ecx
mov ecx, esi
mov dword [esi + 0xb0], 0
call fcn.00455680
jmp 0x45590e
mov eax, dword [esp + 0xa8]
test eax, eax
mov dword [esi + 0xb0], eax
je 0x455907
push ebx
mov bl, byte [esp + 0xb0]
test bl, bl
je 0x45579d
mov ecx, esi
call fcn.004523e0
mov ecx, dword [esi + 0xb0]
push esi
call fcn.0045fd10
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x90]
fld dword [0x4cc30c]
fld dword [esi + 0x1b8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4557ea
mov eax, dword [esi + 0x1b8]
push 0x40d00000
mov ecx, eax
push 0x3f800000
push ecx
lea ecx, [esi + 0x180]
mov dword [esp + 0x18], eax
call fcn.0042b720
test bl, bl
mov byte [esi + 0x244], 1
pop ebx
je 0x455832
fld dword [esi + 0x178]
fcomp dword [0x4d3f24]
fnstsw ax
test ah, 5
jp 0x45582b
mov edx, dword [esi + 0x178]
push 0x3fa66666
push 0x3f48c8c9
mov eax, edx
push eax
lea ecx, [esi + 0x140]
mov dword [esp + 0x14], edx
call fcn.0042b720
mov byte [esi + 0x244], 1
mov eax, dword [esi + 0xb0]
lea edi, [eax + 0x10]
push str.CreatePlayer
mov ecx, edi
call fcn.004027d0
test al, al
je 0x4558c3
mov ecx, dword [esi + 0x88]
cmp word [ecx - 4], 0
jne 0x4558b3
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x14], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x455878
mov byte [esp + 0x18], al
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0042aa80
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov dword [esp + 0xa4], 0
call fcn.00455160
lea ecx, [esp + 0x10]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0042a980
jmp 0x45590e
lea eax, [esi + 0x84]
push eax
mov ecx, esi
call fcn.00455160
jmp 0x45590e
push str.DeletePlayer
mov ecx, edi
call fcn.004027d0
test al, al
je 0x4558e0
lea ecx, [esi + 0x74]
push ecx
mov ecx, esi
call fcn.00455160
jmp 0x45590e
push str.SelectPlayer
mov ecx, edi
call fcn.004027d0
test al, al
je 0x45590e
lea edx, [esi + 0x74]
push edx
lea ecx, [esi + 0x54]
call fcn.00453350
push eax
push eax
mov ecx, esi
call fcn.004552a0
jmp 0x45590e
mov ecx, esi
call fcn.00456230
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov ecx, dword [esp + 0x98]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x9c
ret 8
Function at 0x457330
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c8d78
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x248]
push eax
mov ecx, edi
call fcn.0042a9d0
mov ecx, dword [esp + 0x38]
lea ebp, [esi + 0x250]
push ecx
mov ecx, ebp
call fcn.0042a9d0
mov edx, dword [esi + 0x78]
mov ax, word [edx - 4]
test ax, ax
jne 0x4573dd
push str.Welcome_
lea ecx, [esp + 0x18]
call fcn.0042aa80
mov eax, dword [esi + 0xa8]
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.00455940
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042a980
mov edx, dword [esi + 0xa8]
push 0
push ebp
push edx
mov ecx, esi
call fcn.00455b00
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push str.Welcome
lea ecx, [esp + 0x10]
call fcn.0042aa80
lea eax, [esi + 0x74]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 1
call fcn.0042a910
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.0042abd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.0042a980
push 0x4d3fb0
lea ecx, [esp + 0x10]
call fcn.0042abd0
mov eax, dword [esi + 0xa8]
lea edx, [esp + 0xc]
push edx
push edi
push eax
mov ecx, esi
call fcn.00455940
mov eax, dword [esi + 0xa8]
push 1
push ebp
push eax
mov ecx, esi
call fcn.00455b00
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042a980
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x45a810
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4c92fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov ecx, edi
mov dword [esp + 0x10], esi
call fcn.00430560
lea ebx, [esi + 0x18]
mov ecx, ebx
call fcn.00430560
lea ebp, [esi + 0x34]
mov ecx, ebp
call fcn.0042a870
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x4eadcc]
mov dword [edi], eax
mov ecx, dword [0x4eadd0]
mov dword [edi + 4], ecx
mov edx, dword [0x4eadd4]
mov dword [edi + 8], edx
mov eax, dword [0x4eadd8]
mov dword [edi + 0xc], eax
mov ecx, dword [0x4eadcc]
mov dword [ebx], ecx
mov edx, dword [0x4eadd0]
mov dword [ebx + 4], edx
mov eax, dword [0x4eadd4]
mov dword [ebx + 8], eax
mov ecx, dword [0x4eadd8]
mov dword [ebx + 0xc], ecx
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x28]
mov dword [edx], eax
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, ebp
mov dword [edx + 8], eax
call fcn.0042a9d0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
pop edi
mov dword [esi + 0x3c], edx
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x45fe50
Capabilities:
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4c9811
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], esi
mov dword [esi], fcn.0045d2b0
call fcn.0042a870
lea ebp, [esi + 0x18]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x24], edi
call fcn.00430560
lea ebx, [esi + 0x24]
mov ecx, ebx
call fcn.00430560
mov dword [esi + 0x4c], 0x4d4418
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 0x20
mov dword [esi + 0x60], 0x10
lea ecx, [esi + 0x64]
mov byte [esp + 0x24], 1
call fcn.00430560
mov dword [esi + 0x78], 0x4d441c
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], 0x20
mov dword [esi + 0x8c], 0x10
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.00430640
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
or ebp, 0xffffffff
push ebp
push ebp
lea ecx, [esp + 0x1c]
mov byte [esi + 0x20], 1
call fcn.00430640
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x74], edi
pop edi
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], ebp
mov byte [esi + 0x3c], 1
mov dword [esi + 0x48], 1
mov byte [esi + 0x90], 1
mov dword [esi + 0x94], 0x3f800000
mov eax, esi
pop esi
mov dword [ebx + 4], edx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x465840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ca0ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004610a0
xor edi, edi
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], edi
mov dword [esi], 0x4d4f00
call fcn.0042a870
mov dword [esi + 0x30], 0x4d4ac4
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], 0x10
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 2
call fcn.00430560
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x14], 9
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4658e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c9c83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x4d4f00
mov eax, dword [esi + 0x3c]
xor ebx, ebx
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x18], 1
mov dword [esi + 0x30], 0x4d4ac4
jge 0x46592a
push ebx
call fcn.0042e150
add esp, 4
mov ebp, eax
push edi
mov edi, dword [esi + 0x38]
cmp edi, ebx
jge 0x46594e
mov ecx, edi
neg ecx
shl ecx, 4
mov edx, ecx
shl edi, 4
shr ecx, 2
add edi, ebp
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x34]
cmp eax, ebx
pop edi
je 0x46595f
push eax
call fcn.0042df40
add esp, 4
lea ecx, [esi + 0x1c]
mov dword [esi + 0x34], ebp
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov byte [esp + 0x18], bl
call fcn.0042a980
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0045a550
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x467db0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ca735
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esi], 0x4d4fe8
mov eax, dword [esi + 0x3c]
xor ebp, ebp
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x24], 2
mov dword [esi + 0x30], 0x4d4ac0
mov dword [esp + 0xc], ebx
jge 0x467e04
push ebp
call fcn.0042e150
mov ebx, eax
add esp, 4
mov dword [esp + 0xc], ebx
push edi
mov edi, dword [esi + 0x38]
cmp edi, ebp
jge 0x467e56
mov ecx, edi
neg ecx
shl ecx, 4
shl edi, 4
mov edx, ecx
shr ecx, 2
add edi, ebx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esi + 0x38]
cmp edi, ebp
mov dword [esp + 0x14], edi
jge 0x467e56
mov ecx, edi
shl ecx, 4
add ecx, ebx
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x28], 4
je 0x467e4a
call fcn.0042a870
inc edi
mov byte [esp + 0x28], 2
mov dword [esp + 0x14], edi
js 0x467e33
cmp dword [esi + 0x38], ebp
jle 0x467e77
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [esi + 0x34]
add ecx, ebp
call fcn.0042a980
mov eax, dword [esi + 0x38]
inc edi
add ebp, 0x10
cmp edi, eax
jl 0x467e60
xor ebp, ebp
mov eax, dword [esi + 0x34]
cmp eax, ebp
pop edi
je 0x467e88
push eax
call fcn.0042df40
add esp, 4
lea ecx, [esi + 0x24]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x38], ebp
mov byte [esp + 0x24], 1
call fcn.0042a980
lea ecx, [esi + 0x1c]
mov byte [esp + 0x24], 0
call fcn.0042a980
mov ecx, esi
mov dword [esp + 0x24], 0xffffffff
call fcn.0045a550
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x482782
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4d8180
call fcn.004839ec
push 8
call fcn.00487cae
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x5011ac], esi
jne 0x4827b6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x5011a8], esi
mov al, byte [ebp + 0x10]
mov byte [0x5011a4], al
cmp dword [ebp + 0xc], edi
jne 0x482800
cmp dword [0x5025e8], edi
je 0x4827f0
mov eax, dword [0x5025e4]
sub eax, 4
mov dword [0x5025e4], eax
cmp eax, dword [0x5025e8]
jb 0x4827f0
mov eax, dword [eax]
cmp eax, edi
je 0x4827d1
call eax
jmp 0x4827d1
push 0x4e90f8
mov eax, 0x4e90f0
call fcn.00482700
pop ecx
push 0x4e9104
mov eax, 0x4e90fc
call fcn.00482700
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x482831
cmp dword [ebp + 0x10], edi
jne 0x48283f
mov dword [0x5011ac], esi
push dword [ebp + 8]
call fcn.004826be
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x48283e
push 8
call fcn.00487bf9
pop ecx
ret
call fcn.00483a27
ret

Function at 0x4850b3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4fa698]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4facc8]
je 0x4850ea
inc eax
cmp eax, 0x13
jb 0x4850db
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4facc8]
jne 0x48520d
mov eax, dword [0x50115c]
cmp eax, 1
je 0x4851e8
cmp eax, edx
jne 0x48511a
cmp dword [0x4fa684], 1
je 0x4851e8
cmp ecx, 0xfc
je 0x48520d
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x485150
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0048b7a0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00487ad0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x485184
mov eax, edi
push eax
call fcn.00487ad0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4d88f8
push edi
call fcn.00480c30
add esp, 0x10
push edi
call fcn.00487ad0
push dword [esi + 0x4faccc]
mov ebx, eax
call fcn.00487ad0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00480bf0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0048b7a0
push edi
push ebx
call fcn.0048b7b0
push 0x4d88d8
push ebx
call fcn.0048b7b0
push dword [esi + 0x4faccc]
push ebx
call fcn.0048b7b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0048de60
add esp, 0x2c
jmp 0x48520d
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4faccc]
push dword [esi]
call fcn.00487ad0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00480be0
add ebp, 0x90
leave
ret