joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ac3c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x1000f820
cmp dword [edi], 0
jne 0x1000acb8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x1000f81c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x1000e0e8
mov ecx, 2
call fcn.10002604
mov edx, 0x1000ac1c
lea eax, [esi + 5]
call fcn.1000ac14
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.1000ac14
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x1000ac8d
mov dword [0x1000f81c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1000cf04
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, ebx
call fcn.10005ca4
test al, al
je 0x1000cf68
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], edx
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push eax
push esi
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.00401507
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x689e7556
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
cmp eax, 8
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
not esi
mov edx, 0xff
jb 0x689e761f
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [ecx]
sub eax, 8
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x689e1ee8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x689e1ee8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x689e1ee8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x689e1ee8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x689e1ee8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x689e1ee8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x689e1ee8]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x689e1ee8]
inc ecx
dec edi
jne 0x689e757c
pop edi
test eax, eax
je 0x689e7639
xor ebx, ebx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x689e1ee8]
inc ecx
dec eax
jne 0x689e7623
mov eax, esi
pop esi
not eax
pop ebx
pop ebp
ret 0xc

Function at 0x689e7648
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x58]
add dword [esi + 0x5c], ecx
test ecx, ecx
not eax
jbe 0x689e768b
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov edx, ecx
mov ecx, dword [ebp + 0x10]
mov bl, byte [ecx]
mov byte [edi], bl
xor ebx, ebx
mov bl, byte [ecx]
inc edi
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x689e1ee8]
inc ecx
dec edx
jne 0x689e766a
pop edi
pop ebx
not eax
mov dword [esi + 0x58], eax
pop esi
pop ebp
ret 0x10
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40596d
pop dword [ebp - 0x24]
mov eax, 0xc4bdf926
add eax, 0x3b826047
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xdcb6362b
sub dword [ebp - 0x34], 0x8e63f0e0
mov dword [ebp - 0x30], 0xe8b96591
sub dword [ebp - 0x30], 0xb686194c
mov dword [ebp - 0x2c], 0xbe6b8247
sub dword [ebp - 0x2c], 0x721f3e19
mov dword [ebp - 0x28], 0x38d1383b
add dword [ebp - 0x28], 0xc72ec7c5
lea eax, [ebp - 0x34]
push eax
mov eax, 0xee30af5
add eax, 0xf15d656b
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x2ed649d1
add dword [ebp - 0x34], 0x459c1f85
mov dword [ebp - 0x30], 0x6315a827
sub dword [ebp - 0x30], 0x21a946b2
mov dword [ebp - 0x2c], 0xcf269657
add dword [ebp - 0x2c], 0x9448d615
mov dword [ebp - 0x28], 0x47499573
sub dword [ebp - 0x28], 0x47499573
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xf5893532
add eax, 0xab73bce
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3778b
push 0
call eax
mov ecx, 0x4b05
xor esi, esi
add esi, eax
mov edi, 0x4c2d8e57
sub edi, 0x4bec8e57
add edi, dword [ebp - 0x24]
mov edx, 0x5610fefd
sub edx, 0xd72580d8
sub dword [ebp - 0x10], ebx
mov ebx, dword [edi]
sub dword [ebp - 4], esi
add ebx, edx
add dword [ebp - 0x18], 0xf9f944c7
mov dword [esi], ebx
xor dword [ebp - 0x18], 0x75789d3a
add esi, 0x52b7fcc5
sub esi, 0x52b7fcc1
add edi, 0xe0f08ea3
add edi, 0x1f0f7161
loop 0x405a8b
add eax, 0xb1512663
sub eax, 0xb150077c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x403110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.005a585b
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x14]
movzx ecx, word [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x403137
pop edi
pop esi
pop ecx
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x403155
pop ebx
pop edi
pop esi
pop ecx
ret
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.005c3120
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4031ac
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x4031ae
xor esi, esi
mov eax, dword [esp + 0x1c]
push edi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x404070
Capabilities:
Read .ini file

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x104
push eax
push 0x6190bc
push 0x609f40
push str.setup
call edi
test eax, eax
jne 0x404097
xor al, al
pop edi
ret
mov ecx, dword [esp + 8]
push esi
push 0x104
push ecx
push 0x6190bc
push str.ExeIcon
push str.setup
call edi
mov edx, dword [esp + 0xc]
push esi
push 0x104
push edx
push 0x6190bc
push str.ExeName
push str.setup
call edi
test eax, eax
je 0x404093
mov eax, dword [esp + 0x10]
push esi
push 0x104
push eax
push 0x6190bc
push str.ExeDir
push str.setup
call edi
mov ecx, dword [esp + 0x14]
push esi
push 0x104
push ecx
push 0x6190bc
push str.ExeParam
push str.setup
call edi
mov edx, dword [esp + 0x18]
push esi
push 0x104
push edx
push 0x6190bc
push str.Lastdate
push str.update
call edi
push esi
push 0xffffffffffffffff
push str.BoxId
push str.setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
mov al, 1
pop edi
ret
Function at 0x40c140
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5e4818
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00402580
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c194
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00402670
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00402580
cmp dword [esp + 0x24], 8
jb 0x40c1da
mov eax, dword [esp + 0x10]
push eax
call fcn.0059b877
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x40cd70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40cd89
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40cdc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40cdc0
lea ebx, [ebx]
cmp esi, eax
jae 0x40cdc4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40cdb0
cmp esi, eax
jb 0x40cdca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40cf10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5dcc28
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], 0
cmp dword [eax + 0x18], 8
jb 0x40cf4d
mov eax, dword [eax + 4]
jmp 0x40cf50
add eax, 4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x50], ebp
je 0x40cfdc
lea edi, [esp + 0x14]
lea eax, [esp + 0x50]
call fcn.00431680
test al, al
je 0x40cfd5
mov edi, dword [esp + 0x14]
push edi
call fcn.0059b872
mov esi, eax
add esp, 4
test esi, esi
je 0x40cfd5
push edi
push 0
push esi
call fcn.005be600
add esp, 0xc
push 0
lea eax, [esp + 0x20]
push eax
push edi
push esi
push ebp
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cfcc
cmp dword [esp + 0x1c], 0
seta al
test al, al
jne 0x40cff1
push esi
call fcn.0059b877
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
push edi
call fcn.0059b872
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40d027
push esi
call fcn.0059b877
add esp, 4
lea esi, [esp + 0x50]
call fcn.004315a0
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
push edi
push 0
push ebp
call fcn.005be600
add esp, 0xc
lea eax, [esp + 0x20]
call fcn.00431780
push ebp
mov ecx, eax
push esi
push ecx
mov eax, edi
call fcn.00431800
test al, al
push esi
jne 0x40d079
call fcn.0059b877
push ebp
call fcn.0059b877
add esp, 8
lea esi, [esp + 0x50]
call fcn.004315a0
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
call fcn.0059b877
mov eax, dword [esp + 0x58]
add esp, 4
push 0
push 0x40000000
lea edx, [esp + 0x1c]
mov ecx, 0x80
push edx
lea edx, [ecx - 0x7e]
mov dword [esp + 0x20], 0xffffffff
call fcn.004315c0
test al, al
jne 0x40d0da
push ebp
call fcn.0059b877
add esp, 4
lea esi, [esp + 0x14]
call fcn.004315a0
lea esi, [esp + 0x50]
call fcn.004315a0
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x20]
mov ecx, ebp
call fcn.00431630
test al, al
push ebp
je 0x40d0ab
call fcn.0059b877
add esp, 4
lea esi, [esp + 0x14]
call fcn.004315a0
lea esi, [esp + 0x50]
call fcn.004315a0
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
Function at 0x417300
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
sub esp, 0x418
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
mov ebx, ecx
xor ebp, ebp
cmp dword [ebx + 0x38], 8
lea esi, [ebx + 0x20]
push edi
mov edi, dword [esp + 0x42c]
mov dword [esp + 0x10], ebp
jb 0x417335
mov eax, dword [esi + 4]
jmp 0x417338
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4173ad
lea eax, [esp + 0x14]
push eax
push ebp
push ebp
push 0x1a
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x417360
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00402770
push 0x16
push str.TheWorldTheWorld.ini
mov ecx, esi
call fcn.00402670
cmp dword [esi + 0x18], 8
jb 0x417393
mov eax, dword [esi + 4]
jmp 0x417396
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4173ad
mov dword [ebx + 0x3c], 1
lea eax, [ebx + 4]
jmp 0x417412
cmp dword [esi + 0x18], 8
jb 0x4173b8
mov esi, dword [esi + 4]
jmp 0x4173bb
add esi, 4
push esi
push 0x104
lea edx, [esp + 0x224]
push edx
push 0x6190bc
push str.HomePage
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x21c]
lea edx, [eax + 2]
jmp 0x4173f0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4173f0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x220]
lea esi, [ebx + 4]
push eax
call fcn.00402770
mov eax, esi
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebp
push ebp
mov ecx, edi
mov word [edi + 4], bp
call fcn.00402580
mov ecx, dword [esp + 0x424]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b88a9
add esp, 0x418
ret 4
Function at 0x41c990
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
push eax
push 1
push ecx
push edi
call fcn.005ba628
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
test bl, bl
mov byte [esp + 0xe], bl
mov dword [esi + 0x1c], eax
je 0x41cae4
mov edx, dword [esi + 0x24]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov eax, esp
mov dword [eax], edx
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x28], eax
call fcn.0041aaf0
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0xf]
test ebx, ebx
je 0x41ca9a
xor edx, edx
sub ebx, 1
cmp byte [esp + 0xf], dl
je 0x41ca1c
cmp byte [edi], dl
jmp 0x41ca20
cmp word [edi], 0
sete dl
test edx, edx
je 0x41ca4c
test eax, eax
je 0x41ca43
cmp edi, eax
je 0x41ca43
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.005ba680
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
add ebp, 1
add edi, ecx
test ebx, ebx
jne 0x41ca0d
test eax, eax
je 0x41ca6f
cmp edi, eax
je 0x41ca6f
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.005ba680
add esp, 0xc
test ebp, ebp
je 0x41ca9a
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.0041aaf0
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x41cad7
test byte [esi + 4], 0x80
je 0x41cad7
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
call fcn.0041b7b0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x24]
push eax
call fcn.0041aaf0
add esp, 0x18
mov al, byte [esp + 0xe]
pop edi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.0041c420
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x41cf70
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
test ebp, ebp
push edi
mov dword [esi + 8], ecx
jne 0x41cf8c
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x41d008
test edx, edx
jne 0x41cfc5
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059b872
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.005c3120
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x41cfe4
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
sub eax, 1
rol cx, 8
test eax, eax
mov word [edx + eax*2], cx
jne 0x41cfd0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.0041aaf0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.005b9984
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x41d02d
push edi
call fcn.0059b877
add esp, 4
test bl, bl
je 0x41d065
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, dword [esi + 0x24]
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.0041aaf0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.0041c420
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x427cc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ddffb
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.GMRepairElement.0
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov dl, byte [edi + 0x10]
mov byte [esi + 0x10], dl
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
lea ecx, [esi + 0x30]
mov dword [esi + 0x2c], edx
xor ebx, ebx
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0x30]
push ebx
mov word [ecx + 4], bx
call fcn.00402580
lea ecx, [esi + 0x4c]
mov dword [esp + 0x14], ebx
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
lea eax, [edi + 0x4c]
push ebx
mov word [ecx + 4], bx
call fcn.00402580
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
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 0x428260
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.005be600
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x4282b3
cmp dword [esp + 4], 6
jne 0x4282b3
mov eax, 1
cmp dword [esp + 8], eax
je 0x4282b5
xor al, al
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005b88a9
add esp, 0x120
ret
Function at 0x42a480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5e4988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
call fcn.00402580
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.00429af0
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x42a4f7
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a51a
cmp dword [esp + 0x20], esi
jb 0x42a516
mov eax, dword [esp + 0xc]
push eax
call fcn.0059b877
add esp, 4
mov al, 1
jmp 0x42a52f
cmp dword [esp + 0x20], esi
jb 0x42a52d
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0059b877
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005b88a9
add esp, 0x2c
ret

Function at 0x42a550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5e4988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
call fcn.00402580
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.00429af0
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x42a5c7
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a5ee
test al, 0x10
jne 0x42a5ee
cmp dword [esp + 0x20], esi
jb 0x42a5ea
mov eax, dword [esp + 0xc]
push eax
call fcn.0059b877
add esp, 4
mov al, 1
jmp 0x42a603
cmp dword [esp + 0x20], esi
jb 0x42a601
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0059b877
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005b88a9
add esp, 0x2c
ret