joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d880
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x512f80]
xor eax, esp
mov dword [esp + 0x104], eax
cmp dword [0x523f3c], 0x10
mov eax, dword [0x523f28]
jae 0x45d8a7
mov eax, 0x523f28
lea ecx, [esp]
push ecx
push 0
push 0x4ed3b4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x45d8de
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0048162f
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor al, al
call fcn.0048162f
add esp, 0x108
ret

Function at 0x45efc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c8796
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
xor ecx, ecx
mov dword [esi], vtable.Grid::IServerAddressCache.0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
push eax
xor ebx, ebx
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x14], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esp + 0x14], 1
mov byte [esi + 0x30], bl
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x46108b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x512f80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4610cb
push 0x4d2bb8
push 4
push eax
call fcn.00488956
push eax
call fcn.0041ca40
add esp, 0x10
jmp 0x4610dd
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x46114b
push edi
call fcn.00483509
mov edi, dword [eax]
call fcn.00483509
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00483b27
add esp, 0x18
mov ebx, eax
call fcn.00483509
cmp dword [eax], 0
je 0x46112b
call fcn.00483509
push dword [eax]
call fcn.0046100c
pop ecx
jmp 0x461132
call fcn.00483509
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x46114b
cmp ebx, esi
jae 0x46114b
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x46114d
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048162f
leave
ret
Function at 0x4620be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4c2016
call fcn.004885c1
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0046a59e
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x462109
call fcn.0046a59e
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x46211a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x462127
or eax, 0xffffffff
jmp 0x462283
mov ecx, esi
call fcn.00461be3
mov dword [ebp - 0x14], eax
call fcn.00466e84
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4621a5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4621a5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4621a5
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0046105c
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4621a5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4621a5
mov ecx, ebx
call fcn.00469c15
test eax, eax
je 0x4621a5
push 0
mov ecx, ebx
call fcn.00469c30
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004687ec
push dword [ebp - 0x14]
call fcn.00466ddc
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00461ec6
xor edi, edi
cmp eax, edi
je 0x462202
test byte [esi + 0x3c], 0x10
je 0x4621ec
push 4
pop edi
mov ecx, esi
call fcn.00469aed
test ax, 0x100
je 0x4621e2
push 5
pop edi
push edi
mov ecx, esi
call fcn.004669a4
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x462202
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00469c97
or dword [ebp - 4], 0xffffffff
jmp 0x46222d
cmp dword [ebp - 0x28], edi
je 0x46223b
push 1
mov ecx, ebx
call fcn.00469c30
cmp dword [ebp - 0x2c], edi
je 0x46224b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x462264
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x462264
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00461c1d
cmp dword [esi + 0x58], edi
je 0x462280
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0048862d
ret
Function at 0x469909
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x46994c
call fcn.0046a59e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46994c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x469967
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004694c0
test ebx, ebx
mov esi, eax
je 0x469965
test edi, edi
je 0x469965
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x46b5d7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46b605
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b623
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046b541
jmp 0x46b623
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46b623
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0046b541
test edi, edi
mov eax, edi
jne 0x46b60d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x51f528]
test ecx, ecx
je 0x46b6e6
jmp 0x46b5d6
ret 8

Function at 0x47f000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c2800
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
xor edi, edi
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0047ee00
mov byte [esp + 0x14], 1
mov dword [esi], vtable.BSL::CTimePrecisionInvalid.0
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x47f077
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x28]
push edx
push ecx
push eax
call fcn.00409970
mov edx, dword [esp + 0x38]
push edx
call fcn.004606bf
add esp, 0x14
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x47f0b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c2800
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
xor edi, edi
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0047ee00
mov byte [esp + 0x14], 1
mov dword [esi], vtable.BSL::CUnpackedTime::CUnpackedTimeException.0
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x47f127
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x28]
push edx
push ecx
push eax
call fcn.00409970
mov edx, dword [esp + 0x38]
push edx
call fcn.004606bf
add esp, 0x14
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x47f240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c2800
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
xor edi, edi
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0047ee00
mov byte [esp + 0x14], 1
mov dword [esi], vtable.BSL::CTime::CPackingException.0
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x47f2b7
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x28]
push edx
push ecx
push eax
call fcn.00409970
mov edx, dword [esp + 0x38]
push edx
call fcn.004606bf
add esp, 0x14
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x480030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c2949
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 8], 1
call fcn.004069e0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004069e0
mov edx, dword [esp + 0x24]
push edx
mov ecx, esi
call fcn.004069e0
mov eax, dword [esp + 0x28]
push eax
mov ecx, esi
call fcn.004069e0
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.004069e0
mov edx, dword [esp + 0x30]
push edx
mov ecx, esi
call fcn.004069e0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4800d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c2949
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 8], 1
call fcn.004069e0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004069e0
mov edx, dword [esp + 0x24]
push edx
mov ecx, esi
call fcn.004069e0
mov eax, dword [esp + 0x28]
push eax
mov ecx, esi
call fcn.004069e0
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.004069e0
mov edx, dword [esp + 0x30]
push edx
mov ecx, esi
call fcn.004069e0
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.004069e0
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call fcn.004069e0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x480180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c29de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x20]
push 0
push 0xa
push eax
lea ecx, [esp + 0xfc]
push ecx
call fcn.0047fde0
mov edi, eax
mov dword [esp + 0x19c], 0
mov edx, dword [esi + 0x1c]
push 0
push 0xa
push edx
lea eax, [esp + 0x128]
push eax
call fcn.0047fde0
mov ebp, eax
mov byte [esp + 0x1ac], 1
mov ecx, dword [esi + 0x18]
push 0
push 0xa
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.0047fde0
mov ebx, eax
mov byte [esp + 0x1bc], 2
mov eax, dword [esi + 0x14]
push 0
push 0xa
push eax
lea ecx, [esp + 0xf4]
push ecx
call fcn.0047fde0
add esp, 0x40
mov dword [esp + 0x1c], eax
mov byte [esp + 0x18c], 3
mov edx, dword [esi + 0x10]
push 0
push 0xa
push edx
lea eax, [esp + 0x134]
push eax
call fcn.0047fde0
mov dword [esp + 0x28], eax
mov byte [esp + 0x19c], 4
mov ecx, dword [esi + 0xc]
push 0
push 0xa
push ecx
lea edx, [esp + 0x9c]
push edx
call fcn.0047fde0
mov dword [esp + 0x30], eax
mov byte [esp + 0x1ac], 5
mov eax, dword [esi + 8]
push 0
push 0xa
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.0047fde0
mov dword [esp + 0x44], eax
mov byte [esp + 0x1bc], 6
mov edx, dword [esi + 4]
push 0
push 0xa
push edx
lea eax, [esp + 0x110]
push eax
call fcn.0047fd80
add esp, 0x40
mov byte [esp + 0x18c], 7
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
push ebp
push ebx
push edx
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
push ecx
call fcn.004800d0
add esp, 0x24
mov byte [esp + 0x19c], 8
push 0x35
push str.e:p4clients_steam2_mi_thirdpartycode_bslBSLTime.h
mov byte [esp + 0x1a4], 7
lea ecx, [esp + 0x15c]
call fcn.0047f630
mov bl, 9
mov byte [esp + 0x18c], bl
push eax
lea ecx, [esp + 0x28]
call fcn.0047f160
mov byte [esp + 0x18c], 0xa
mov dword [esp + 0x24], vtable.BSL::CUnpackedTime::CUnpackedTimeException.0
mov byte [esp + 0x18c], 0xb
mov dword [esp + 0x24], vtable.BSL::CUnpackedTime::COutOfRange.0
mov byte [esp + 0x18c], bl
push 0x4ffc64
lea eax, [esp + 0x28]
push eax
call fcn.00488a7c
int3
Function at 0x48162f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x512f80]
jne 0x481639
repz ret
jmp fcn.0048b102
Function at 0x482f68
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x482fa5
cmp dword [ebp + 0x14], edi
je 0x482fa5
cmp ecx, edi
jne 0x482fac
call fcn.00483509
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00483a5c
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x482fc0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x482fe1
cmp ebx, 0xffffffff
je 0x482fd0
push ebx
push edi
push ecx
call fcn.00488650
add esp, 0xc
cmp esi, edi
je 0x482f8d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x482f8d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x482ffd
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x483004
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4830f5
test word [esi + 0xc], 0x10c
je 0x483058
mov eax, dword [esi + 4]
test eax, eax
je 0x483058
jl 0x483156
cmp ebx, eax
mov edi, ebx
jb 0x483029
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4830fd
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00483a90
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4830ed
cmp ebx, dword [ebp - 0xc]
jb 0x4830c5
cmp dword [ebp - 0xc], 0
je 0x483082
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x483077
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x48307e
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x48308d
mov eax, closesocket
cmp ebx, eax
ja 0x48308d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x483129
push eax
push dword [ebp - 8]
push esi
call fcn.0048f397
pop ecx
push eax
call fcn.0048fe73
add esp, 0xc
test eax, eax
je 0x483168
cmp eax, 0xffffffff
je 0x483156
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4830ed
push esi
call fcn.0048f792
cmp eax, 0xffffffff
pop ecx
je 0x48315a
cmp dword [ebp - 4], 0
je 0x483129
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x48300c
mov eax, dword [ebp + 0x14]
jmp 0x482fa7
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x483114
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00488650
add esp, 0xc
call fcn.00483509
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x482f9d
cmp dword [ebp + 0xc], 0xffffffff
je 0x48313f
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00488650
add esp, 0xc
call fcn.00483509
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x482f9d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x482fa7
or dword [esi + 0xc], 0x10
jmp 0x48315a
Function at 0x484a22
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x484a4f
call fcn.0048351c
mov dword [eax], esi
call fcn.00483509
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00483a5c
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x484a2b
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x484a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048352f
pop ecx
call fcn.00483509
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x484aa5
test al, 1
je 0x484aa5
test byte [esp + 0xc], 2
je 0x484aa5
call fcn.0048351c
mov dword [eax], 5
call fcn.00483509
mov dword [eax], 0xd
jmp 0x484a75
xor eax, eax
pop esi
ret
Function at 0x485418
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x485445
call fcn.0048351c
mov dword [eax], esi
call fcn.00483509
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00483a5c
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x485463
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048352f
pop ecx
jmp 0x485440
test byte [esp + 0xc], 0x80
je 0x48546f
and eax, 0xfffffffe
jmp 0x485472
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x485454
xor eax, eax
pop esi
ret
Function at 0x48c153
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5130e8]
je 0x48c16e
inc edi
cmp edi, 0x17
jb 0x48c15f
cmp edi, 0x17
jae 0x48c2ee
push ebp
push 3
call fcn.0049d7ab
cmp eax, 1
pop ecx
je 0x48c2ba
push 3
call fcn.0049d7ab
test eax, eax
pop ecx
jne 0x48c1a2
cmp dword [0x512f70], 1
je 0x48c2ba
cmp ebx, 0xfc
je 0x48c2ed
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x51fce8
push ebp
call fcn.00488956
add esp, 0xc
test eax, eax
je 0x48c1d8
push esi
push esi
push esi
push esi
push esi
call fcn.00483960
add esp, 0x14
push 0x104
mov esi, 0x51fd01
push esi
push 0
mov byte [0x51fe05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48c21c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00488956
add esp, 0xc
test eax, eax
je 0x48c21c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00483960
add esp, 0x14
push esi
call fcn.004886d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48c261
push esi
call fcn.004886d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x51fffc
push 0x4ecd2c
sub ecx, eax
push ecx
push eax
call fcn.0048a1fc
add esp, 0x14
test eax, eax
je 0x48c261
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00483960
add esp, 0x14
jmp 0x48c263
xor esi, esi
push 0x4ecd28
push ebx
push ebp
call fcn.004889bb
add esp, 0xc
test eax, eax
je 0x48c283
push esi
push esi
push esi
push esi
push esi
call fcn.00483960
add esp, 0x14
push dword [edi*8 + 0x5130ec]
push ebx
push ebp
call fcn.004889bb
add esp, 0xc
test eax, eax
je 0x48c2a5
push esi
push esi
push esi
push esi
push esi
call fcn.00483960
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049d5ee
add esp, 0xc
jmp 0x48c2ed
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48c2ed
cmp ebp, 0xffffffff
je 0x48c2ed
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5130ec]
push dword [esi]
call fcn.004886d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49d5ee
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048c432
xor ebx, ebx
cmp dword [0x52029c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x49d6c4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x49d7a4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d7834
push edi
call esi
cmp eax, ebx
je 0x49d7a4
push eax
call fcn.0048c3c4
mov dword [esp], 0x4d7824
push edi
mov dword [0x52029c], eax
call esi
push eax
call fcn.0048c3c4
mov dword [esp], 0x4d7810
push edi
mov dword [0x5202a0], eax
call esi
push eax
call fcn.0048c3c4
mov dword [0x5202a4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004835f6
test eax, eax
pop ecx
pop ecx
je 0x49d692
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00483960
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x49d6c4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0048c3c4
cmp eax, ebx
pop ecx
mov dword [0x5202ac], eax
je 0x49d6c4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048c3c4
pop ecx
mov dword [0x5202a8], eax
mov eax, dword [0x5202a8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49d749
cmp dword [0x5202ac], ecx
je 0x49d749
push eax
call fcn.0048c43b
push dword [0x5202ac]
mov esi, eax
call fcn.0048c43b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x49d749
cmp edi, ebx
je 0x49d749
call esi
cmp eax, ebx
je 0x49d716
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49d716
test byte [ebp - 0x18], 1
jne 0x49d749
lea eax, [ebp - 0x10]
push eax
call fcn.0048362d
test eax, eax
pop ecx
je 0x49d731
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00483960
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x49d740
or dword [ebp + 0x10], 0x200000
jmp 0x49d784
or dword [ebp + 0x10], 0x40000
jmp 0x49d784
mov eax, dword [0x5202a0]
cmp eax, dword [ebp - 8]
je 0x49d784
push eax
call fcn.0048c43b
cmp eax, ebx
pop ecx
je 0x49d784
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49d784
mov eax, dword [0x5202a4]
cmp eax, dword [ebp - 8]
je 0x49d784
push eax
call fcn.0048c43b
cmp eax, ebx
pop ecx
je 0x49d784
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x52029c]
call fcn.0048c43b
cmp eax, ebx
pop ecx
je 0x49d7a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49d7a6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a54a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [ecx + 0x1c]
mov dword [eax], 0x67452301
mov edx, dword [ecx + 0x1c]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ecx + 0x1c]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ecx + 0x1c]
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4a80e0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [ecx + 0x1c]
mov dword [eax], 0x67452301
mov edx, dword [ecx + 0x1c]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ecx + 0x1c]
mov dword [eax + 8], 0x98badcfe
mov edx, dword [ecx + 0x1c]
mov dword [edx + 0xc], 0x10325476
mov eax, dword [ecx + 0x1c]
mov dword [eax + 0x10], 0xc3d2e1f0
ret