joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a40
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x408a5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x408a66
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x408a7d
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040db60
add esp, 4
or eax, 0xffffffff
jmp 0x408a7f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4099f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48c1c8]
jne 0x4099fa
repz ret
jmp fcn.004171a0
Function at 0x478620
Capabilities:
Create directory
Get common file path
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x97c
cmp dword [0x494860], 0x37
jne 0x478700
push str.teliyemukodosixu
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x978]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea ecx, [ebp - 0x520]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
push 0
lea edx, [ebp - 0x758]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0
push str.civovilibabewofosujolafigojiduju_xusohehexozojeririmacefoxecib
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.tucehebehorulojibovep_punawuconewojejojotayegib
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.lojikuvuhetesewiwowic_tasokubad
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x408]
push eax
push 0
push str.konasuozikak
push str.wowupava_kizexec_wibogohicamuselixik
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push str.pudepol_den_wepobhenewoperez
push str.moyoyxpotaru_lonusegofexulimovhadaxucas_valoluduhatirazicerayorid_coz
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push str.yohapuwagezizogiluwuvi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push str.filasefigalimurimupunut
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 4], 0
mov eax, dword [0x494864]
add dword [ebp - 4], eax
mov eax, 0x8c456
add dword [ebp - 4], eax
mov ecx, dword [0x4934a4]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
add edx, dword [ebp + 8]
mov al, byte [edx]
mov byte [ecx], al
mov esp, ebp
pop ebp
ret 4
Function at 0x478a40
Capabilities:
Copy file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
cmp dword [0x494860], 0x2ab
jne 0x478a61
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lwrite]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x494860], 0x12e
jne 0x478acb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnfix]
xor ecx, ecx
mov word [ebp - 0x41c], cx
xor edx, edx
mov word [ebp - 0x41a], dx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x41c]
push ecx
push 0
lea edx, [ebp - 0x418]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
shr ecx, 3
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
jmp 0x478aec
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jae 0x478bb2
cmp dword [0x494860], 0x29
jne 0x478b13
push 0
push str.vexuze_weyewufarajifaliwihulavo
push str.duberaxuxuzohirujenoco_nipacadivubuhixunabo_pegepen_vononexowudepi_toguhaludibowaludonud
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
cmp dword [0x494860], 0xe1b
jne 0x478b2d
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov edx, dword [ebp - 0x10]
shl edx, 1
mov dword [ebp - 0x10], edx
cmp dword [0x494860], 0x1c
jne 0x478b62
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*4]
push eax
call fcn.00478750
cmp dword [0x494860], 0x4fa
jne 0x478bad
xor ecx, ecx
mov word [ebp - 0x424], cx
xor edx, edx
mov word [ebp - 0x422], dx
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x424]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
jmp 0x478ae3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10001f50
Capabilities:
Create thread
Move file

Disassembly:
push ebp
mov ebp, esp
dec dword [ebp + 0xc]
jne 0x10001f9c
push 0
push 0
push 0
push 0x10006e20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.10003980
push str.miles_HS
push str.XMShield
call dword [sym.imp.KERNEL32.dll_MoveFileW]
call fcn.10002560
push 0
push 0
push 0
push 0x100024c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10002560
Capabilities:
Hash data with md5
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x1002d67c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0xe0], 0
xor edi, edi
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xf4], 0x67452301
mov dword [ebp - 0xf0], 0xefcdab89
mov dword [ebp - 0xec], 0x98badcfe
mov dword [ebp - 0xe8], 0x10325476
jmp 0x100025c0
push dword [edi*8 + 0x10029bd0]
mov esi, dword [edi*8 + 0x10029bd4]
lea ecx, [ebp - 0xf4]
call fcn.10002f20
lea esp, [esp]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10002600
test cl, cl
je 0x100025fc
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10002600
add eax, 2
add esi, 2
test cl, cl
jne 0x100025e0
xor eax, eax
jmp 0x10002605
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000261f
inc edi
cmp edi, 0x58
jb 0x100025c0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000796f
mov esp, ebp
pop ebp
ret
push dword [edi*8 + 0x10029bd0]
lea eax, [ebp - 0x68]
push str.A_File_named___s__is_missing_or_has_been_modified.
push 0x64
push eax
call fcn.10008bed
add esp, 0x10
lea eax, [ebp - 0x68]
push 0
push str._kev
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.10008664
int3
Function at 0x10002f20
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x1002d67c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
push 0x10029bb0
push ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.10008bd8
mov edi, eax
add esp, 8
test edi, edi
jne 0x10002f88
push ebx
push str._s_cant_be_opened_n
call fcn.10008a65
add esp, 8
jmp 0x10002fdd
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.100089a4
add esp, 0x10
test eax, eax
je 0x10002fcd
push eax
lea eax, [ebp - 0x404]
mov ecx, esi
push eax
call fcn.10002d70
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.100089a4
add esp, 0x10
test eax, eax
jne 0x10002fa3
mov ecx, esi
call fcn.10002e20
push edi
call fcn.100086e4
add esp, 4
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000796f
mov esp, ebp
pop ebp
ret 4
Function at 0x10003080
Capabilities:
Encode data using xor
Hash data using crc32b
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push ebx
push esi
push 0x10029bb0
push eax
call fcn.10008bd8
mov esi, eax
add esp, 8
test esi, esi
jne 0x100030b1
xor ebx, ebx
jmp 0x10003274
push edi
push 2
push 0
push esi
call fcn.10008d28
push esi
call fcn.1000913b
push 0
mov edi, eax
push 0
push esi
mov dword [ebp - 8], edi
call fcn.10008d28
push 0x1002f926
push edi
call fcn.100091a7
push esi
push edi
push 1
push eax
mov dword [ebp - 4], eax
call fcn.100089a4
push esi
call fcn.100086e4
add esp, 0x38
mov eax, 0x80
xor ebx, ebx
lea esp, [esp]
xor edx, edx
test bl, 1
cmovne edx, eax
mov eax, ebx
shr eax, 1
test al, 1
je 0x10003113
or edx, 0x40
shr eax, 1
test al, 1
je 0x1000311c
or edx, 0x20
shr eax, 1
test al, 1
je 0x10003125
or edx, 0x10
shr eax, 1
test al, 1
je 0x1000312e
or edx, 8
shr eax, 1
test al, 1
je 0x10003137
or edx, 4
shr eax, 1
test al, 1
je 0x10003140
or edx, 2
test al, 2
je 0x10003147
or edx, 1
shl edx, 0x18
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
xor esi, esi
mov dword [ebp + ebx*4 - 0x408], edx
lea ecx, [esi + 0x1f]
lea edi, [esi + 0x20]
test dl, 1
je 0x1000321f
mov eax, 1
shl eax, cl
or esi, eax
shr edx, 1
dec ecx
dec edi
jne 0x10003211
mov dword [ebp + ebx*4 - 0x408], esi
mov eax, 0x80
inc ebx
cmp ebx, 0xff
jbe 0x10003100
mov esi, dword [ebp - 8]
or ebx, 0xffffffff
mov edi, dword [ebp - 4]
xor edx, edx
test esi, esi
je 0x10003268
lea ecx, [ecx]
movzx ecx, byte [edx + edi]
inc edx
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ebp + ecx*4 - 0x408]
cmp edx, esi
jb 0x10003250
push edi
call fcn.100091b0
add esp, 4
not ebx
pop edi
cmp dword [ebp + 0x1c], 0x10
jb 0x10003285
push dword [ebp + 8]
call fcn.10008126
add esp, 4
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003290
Capabilities:
Encode data using xor
Hash data using crc32b
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push ebx
push esi
push 0x10029f48
push eax
call fcn.100091b5
mov esi, eax
add esp, 8
test esi, esi
jne 0x100032c1
xor ebx, ebx
jmp 0x10003484
push edi
push 2
push 0
push esi
call fcn.10008d28
push esi
call fcn.1000913b
push 0
mov edi, eax
push 0
push esi
mov dword [ebp - 8], edi
call fcn.10008d28
push 0x1002f926
push edi
call fcn.100091a7
push esi
push edi
push 1
push eax
mov dword [ebp - 4], eax
call fcn.100089a4
push esi
call fcn.100086e4
add esp, 0x38
mov eax, 0x80
xor ebx, ebx
lea esp, [esp]
xor edx, edx
test bl, 1
cmovne edx, eax
mov eax, ebx
shr eax, 1
test al, 1
je 0x10003323
or edx, 0x40
shr eax, 1
test al, 1
je 0x1000332c
or edx, 0x20
shr eax, 1
test al, 1
je 0x10003335
or edx, 0x10
shr eax, 1
test al, 1
je 0x1000333e
or edx, 8
shr eax, 1
test al, 1
je 0x10003347
or edx, 4
shr eax, 1
test al, 1
je 0x10003350
or edx, 2
test al, 2
je 0x10003357
or edx, 1
shl edx, 0x18
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
xor esi, esi
mov dword [ebp + ebx*4 - 0x408], edx
lea ecx, [esi + 0x1f]
lea edi, [esi + 0x20]
test dl, 1
je 0x1000342f
mov eax, 1
shl eax, cl
or esi, eax
shr edx, 1
dec ecx
dec edi
jne 0x10003421
mov dword [ebp + ebx*4 - 0x408], esi
mov eax, 0x80
inc ebx
cmp ebx, 0xff
jbe 0x10003310
mov esi, dword [ebp - 8]
or ebx, 0xffffffff
mov edi, dword [ebp - 4]
xor edx, edx
test esi, esi
je 0x10003478
lea ecx, [ecx]
movzx ecx, byte [edx + edi]
inc edx
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ebp + ecx*4 - 0x408]
cmp edx, esi
jb 0x10003460
push edi
call fcn.100091b0
add esp, 4
not ebx
pop edi
cmp dword [ebp + 0x1c], 8
jb 0x10003495
push dword [ebp + 8]
call fcn.10008126
add esp, 4
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100037a0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001fc8b
mov eax, dword fs:[0]
push eax
sub esp, 0x774
mov eax, dword [0x1002d67c]
xor eax, esp
mov dword [esp + 0x76c], eax
push esi
push edi
mov eax, dword [0x1002d67c]
xor eax, esp
push eax
lea eax, [esp + 0x780]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10003908
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x10003901
mov edi, dword [sym.imp.KERNEL32.dll_Module32NextW]
lea eax, [esp + 0x2c]
push eax
push esi
call edi
test eax, eax
je 0x10003901
lea ecx, [ecx]
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [esp + 0x24c], ax
jne 0x10003855
xor ecx, ecx
jmp 0x1000386f
lea ecx, [esp + 0x24c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003860
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x1c]
call fcn.10006cb0
sub esp, 0x18
mov dword [esp + 0x7a0], 0
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x34]
push eax
call fcn.10006a00
call fcn.10003290
add esp, 0x18
xor ecx, ecx
jmp 0x100038c0
cmp eax, dword [ecx + 0x10029eb0]
je 0x1000392d
add ecx, 4
cmp ecx, 0x88
jbe 0x100038c0
mov dword [esp + 0x788], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x100038f1
push dword [esp + 0x14]
call fcn.10008126
add esp, 4
lea eax, [esp + 0x2c]
push eax
push esi
call edi
test eax, eax
jne 0x10003830
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x780]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x76c]
xor ecx, esp
call fcn.1000796f
mov esp, ebp
pop ebp
ret
push 0x10029f6c
push 0x10029f70
call fcn.100091b5
mov esi, eax
lea eax, [esp + 0x45c]
push esi
push eax
call fcn.100096a8
push esi
call fcn.100086e4
add esp, 0x14
lea eax, [esp + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call fcn.10008664
int3
Function at 0x10004a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001fdd8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1002d67c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x1002d67c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x10004b64
cmp byte [ebx + 0x45], 0
je 0x10004b64
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x10004a70
xor al, al
jmp 0x10004b66
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x10004ab0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10004af1
dec eax
je 0x10004af5
sub eax, 2
je 0x10004b4b
xor bl, bl
jmp 0x10004b4d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x10004b2c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10009c88
add esp, 0x10
cmp esi, eax
jne 0x10004aed
cmp byte [ebx + 0x45], 0
je 0x10004b4b
test esi, esi
jne 0x10004ab0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.100045d0
jmp 0x10004ab0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x10004b60
push dword [esp + 0x18]
call fcn.10008126
add esp, 4
mov al, bl
jmp 0x10004b66
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000796f
mov esp, ebp
pop ebp
ret
Function at 0x100059b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ff8a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1002d67c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.100075e9
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10005a56
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.1000978b
push 0x1002bd00
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.1000ae6b
push edi
push esi
call fcn.100074bc
add esp, 8
mov eax, esi
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.1000796f
mov esp, ebp
pop ebp
ret 4
Function at 0x450591
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x4505a0
pop dword [ebp - 0x28]
mov eax, 0xd2be94d3
sub eax, 0xd2798f33
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3932e
push 0
mov eax, 0xd543c3a8
add eax, 0x2b055a78
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x4942
xor edx, edx
add edx, eax
mov ebx, 0xd92513c6
add ebx, 0x2724b23a
add ebx, dword [ebp - 0x28]
mov edi, 0xf08ce6b3
add edi, 0xcf4c9a1f
mov esi, dword [ebx]
sub dword [ebp - 8], eax
xor esi, edi
mov dword [edx], esi
sub dword [ebp - 0xc], 0x5730b4f
add edx, 0xefc670c3
add edx, 0x10398f41
add ebx, 0x910583f9
add ebx, 0x6efa7c0b
loop 0x4505fb
add eax, 0xa2bcdfe8
sub eax, 0xa2bbc80d
xor ebx, ebx
add ebx, eax
add eax, 0x6555703b
add eax, 0x9aaa8fca
mov ecx, 0xc8ecd459
sub ecx, 0xc8acd459
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x10001ac0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10194040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 0x2e484e5c
push eax
xor ebx, ebx
mov dword [ebp - 0x10c], 0x747874
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x110]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10001b14
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10001b24
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebx
push 0x80
push 3
push ebx
push 1
mov ecx, edx
and ecx, 3
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001b95
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.10002992
and dword [ebp - 0x10c], 0
mov edi, eax
pop ecx
push 0
lea eax, [ebp - 0x10c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x10001b95
push edi
call fcn.10001bbd
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011dfc2
mov esp, ebp
pop ebp
ret