joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017d0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push ebp
push edi
xor edi, edi
push eax
push edi
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebp, eax
test ebp, ebp
je 0x40184b
push ebx
push edi
push edi
push edi
push 6
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x40183e
mov eax, dword [ebx]
push esi
mov esi, dword [esp + 0x1c]
test eax, eax
mov dword [esi], eax
je 0x401836
add eax, 0x400
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x18]
mov edi, eax
mov dword [ecx], eax
mov ecx, dword [esi]
mov edx, ecx
lea esi, [ebx + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebx
pop edi
pop ebp
ret
mov eax, edi
pop edi
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x434b6f
push 0x14
push 0x44f638
call fcn.00433ff0
push 1
call fcn.00434755
pop ecx
test al, al
jne 0x434a26
push 7
call fcn.00435180
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00434720
mov byte [ebp - 0x24], al
mov eax, dword [0x457c3c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x434a1f
test eax, eax
jne 0x434a90
mov dword [0x457c3c], ecx
push 0x4442cc
push 0x4442b4
call fcn.0043b78d
pop ecx
pop ecx
test eax, eax
je 0x434a73
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x434b69
push 0x4442b0
push 0x444260
call fcn.0043b731
pop ecx
pop ecx
mov dword [0x457c3c], 2
jmp 0x434a95
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004348af
pop ecx
call fcn.0043542a
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x434ac5
push esi
call fcn.00434825
pop ecx
test al, al
je 0x434ac5
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00434ef7
call esi
call fcn.00435430
mov esi, eax
cmp dword [esi], edi
je 0x434ae3
push esi
call fcn.00434825
pop ecx
test al, al
je 0x434ae3
push dword [esi]
call fcn.0043abce
pop ecx
call fcn.0043529b
movzx eax, ax
push eax
call fcn.0043b6de
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0043aadd
test al, al
jne 0x434b0e
push esi
call fcn.0043ac06
test bl, bl
jne 0x434b17
call fcn.0043aba9
push edi
push 1
call fcn.004348cc
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x434b69
call fcn.00434036
ret
call fcn.00435323
jmp 0x434a07
Function at 0x401917
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x401949
test dl, 3
je 0x401946
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
sub ecx, 1
jne 0x40192d
mov dword [ebp - 4], edx
lea eax, [edx + ecx]
mov dword [ebp + 0xc], eax
cmp ecx, 0xc
jb 0x401a15
sub eax, 0xc
mov dword [ebp + 8], eax
xor ebx, dword [edx]
mov edx, dword [edx + 4]
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [edi + ecx*4 + 0x1800]
xor esi, dword [edi + eax*4 + 0x1400]
mov eax, edx
shr eax, 0x18
xor esi, dword [edi + eax*4 + 0x1000]
movzx eax, dl
mov edx, dword [ebp - 4]
xor esi, dword [edi + eax*4 + 0x1c00]
mov eax, ebx
mov edx, dword [edx + 8]
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [edi + ecx*4 + 0x2800]
xor ecx, dword [edi + eax*4 + 0x2400]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x800]
mov eax, edx
shr eax, 0x10
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x400]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [edi + eax*4 + 0x2000]
movzx eax, bl
xor ecx, dword [edi + eax*4 + 0x2c00]
movzx eax, dl
shr edx, 0x18
xor ecx, dword [edi + eax*4 + 0xc00]
xor ecx, dword [edi + edx*4]
mov edx, dword [ebp - 4]
xor ecx, esi
add edx, 0xc
mov ebx, ecx
mov dword [ebp - 4], edx
cmp edx, dword [ebp + 8]
jbe 0x40195e
mov ecx, dword [ebp + 0xc]
xor esi, esi
and dword [ebp + 8], esi
sub ecx, edx
cmp edx, dword [ebp + 0xc]
cmova ecx, dword [ebp + 8]
test ecx, ecx
je 0x401a3e
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
inc esi
cmp esi, ecx
jb 0x401a2a
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401fe3
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x40201a
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x40200d
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x402088
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x4020d5
cmp ebx, 4
jne 0x4020d8
cmp edi, 6
jbe 0x4020d8
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x402029
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402db1
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x451094]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402dfa
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402dfa
push 0xc00
call eax
test eax, eax
jne 0x402e95
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402e95
cmp eax, 0x104
ja 0x402e95
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402e31
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402e94
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x402e5b
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x402e52
push 0x2e
pop eax
push 0x64
mov word [ecx], ax
pop eax
mov word [ecx + 2], ax
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [ecx + 4], bx
mov word [ecx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402e4e
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433f7a
mov esp, ebp
pop ebp
ret
Function at 0x40639f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x406449
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x40642a
push edi
call fcn.00406374
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x40641d
cmp dword [esi + 0x5c], ebx
je 0x406444
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.004071a5
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.0040634e
mov edi, eax
test edi, edi
jne 0x4064c5
lea eax, [ebx + 0x20]
push eax
call fcn.004078c3
mov edi, eax
test edi, edi
jne 0x4064c5
lea eax, [ebx + 0x1c]
push eax
call fcn.004078c3
mov edi, eax
test edi, edi
jne 0x4064c5
push ebx
call fcn.00407115
mov edi, eax
test edi, edi
je 0x4064c5
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.004062cc
add ebx, 0x28
sub esi, 1
jne 0x4064b4
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x4064d9
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x4064ed
cmp dword [esi + 0x40], edx
jne 0x4064ed
cmp dword [esi + 0x3c], edx
jne 0x4064ed
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x407708
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax + 0x20], 0x6a09e667
mov dword [eax + 0x24], 0xbb67ae85
mov dword [eax + 0x28], 0x3c6ef372
mov dword [eax + 0x2c], 0xa54ff53a
mov dword [eax + 0x30], 0x510e527f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
pop ebp
ret 4
Function at 0x4079d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.0043a3ce
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x4079fc
call fcn.004078e2
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409b5c
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x44242d
call fcn.0043422f
cmp byte [0x457910], 0
mov edi, dword [ebp + 8]
jne 0x409b9c
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00408acf
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004341e5
pop ecx
test esi, esi
je 0x409baa
mov al, 1
jmp 0x409bf0
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x409b96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409bbb
xor al, al
jmp 0x409bf0
lea ecx, [ebp - 0x50]
call fcn.0040a404
lea ecx, [ebp - 0x28]
call fcn.00407e5b
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040a620
test al, al
je 0x409be5
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004341e5
pop ecx
mov al, bl
call fcn.004341f8
ret 4

Function at 0x409bf8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457910], 0
jne 0x409c32
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004341e5
pop ecx
test esi, esi
pop esi
je 0x409c41
mov al, 1
jmp 0x409c43
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x409c2c
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x409dd3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040ac3f
cmp eax, 0xffffffff
je 0x409e00
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x409e00
and eax, 0xfffffffe
push eax
push esi
call fcn.0040a374
test al, al
je 0x409e38
cmp byte [0x457910], 0
push esi
jne 0x409e2e
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004341e5
pop ecx
test esi, esi
je 0x409e38
mov al, 1
jmp 0x409e3a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x409e28
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a0b5
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457910], 0
jne 0x40a0ed
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004341e5
pop ecx
test esi, esi
pop esi
je 0x40a0fa
mov al, 1
jmp 0x40a0fc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40a0e7
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x40a2c8
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457910], 0
jne 0x40a2ff
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004341e5
test esi, esi
pop ecx
setne al
pop esi
jmp 0x40a30e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40a374
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457910], 0
jne 0x40a3af
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004341e5
pop ecx
test esi, esi
pop esi
je 0x40a3bf
mov al, 1
jmp 0x40a3c1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40a3a9
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40ac3f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457910], 0
jne 0x40ac73
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408acf
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004341e5
pop ecx
mov eax, esi
pop esi
jmp 0x40ac86
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae71
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ae9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ae9b
xor al, al
jmp 0x40aeaf
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41859f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443366
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x451094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.0041864e
lea ecx, [esi + 0x78]
call fcn.0041864e
push dword [esi + 0x30]
call fcn.004341e5
push dword [esi + 0x24]
call fcn.004341e5
push dword [esi + 0x18]
call fcn.004341e5
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x418603
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x418617
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x41862b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x41863e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ae78
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442c7f
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x451094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00419ff2
lea ecx, [esi + 0x30]
call fcn.0041864e
push dword [esi + 0x24]
call fcn.004341e5
pop ecx
lea ecx, [esi + 0xc]
call fcn.00407a27
mov ecx, esi
call fcn.0041ae3e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41b502
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x442537
call fcn.0043422f
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.0041b071
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.0041a0fe
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040bece
push dword [ebp - 0x18]
call fcn.004341e5
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.004341f8
ret 8
Function at 0x432fab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x451094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
push esi
push eax
call fcn.00435ad0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x433047
push edi
push esi
call fcn.004332fe
push dword [edi]
and dword [ebp - 0x210], 0
call fcn.004341dc
pop ecx
push 0
lea ecx, [ebp - 0x210]
mov dword [ebx], eax
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00433f7a
mov esp, ebp
pop ebp
ret 8

Function at 0x4332fe
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x433329
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x433329
xor al, al
jmp 0x43333d
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x104e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0104e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x104e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104e06a
add dl, dl
jne 0x104e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104e0dc
xor eax, eax
add dl, dl
jne 0x104e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104e17d
add dl, dl
jne 0x104e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104e075
mov eax, 1
add dl, dl
jne 0x104e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104e0e1
sub eax, ebx
mov ebx, 1
jne 0x104e128
mov ecx, 1
add dl, dl
jne 0x104e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104e136
cmp eax, 0x7d00
jae 0x104e16d
cmp eax, 0x500
jb 0x104e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104e075
cmp eax, 0x7f
ja 0x104e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x104e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40744f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040c632
push 0x4405fc
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0041bf57
add esp, 0xc
test eax, eax
je 0x407497
cmp dword [ebp - 4], 0
je 0x407485
push dword [ebp - 4]
call fcn.0041bab6
pop ecx
push str._n_BIN_file_not_found._n
call fcn.00401036
pop ecx
xor al, al
jmp 0x407531
imul eax, dword [esi + 0xc6898], 0x4c
push ebx
xor ebx, ebx
push edi
mov edi, ebx
movzx eax, byte [eax + esi + 0x298]
mov dword [ebp + 8], eax
mov byte [ebp + 0xf], bl
jmp 0x407506
imul eax, dword [esi + 0xc6894], 0x120
cmp ebx, dword [eax + esi + 0xc00]
jge 0x40751e
movzx ecx, byte [ebp + 0xf]
or ecx, 0xffffff00
test edi, edi
jle 0x4074e5
mov eax, edi
shl ecx, 8
or ecx, 0xff
sub eax, 1
jne 0x4074d7
mov eax, dword [esi + 0xb63dc]
mov eax, dword [eax]
and dword [eax + ebx*4], ecx
lea ecx, [edi + 1]
cmp ecx, dword [ebp + 8]
lea eax, [ebx + 1]
cmovl eax, ebx
xor edi, edi
cmp ecx, dword [ebp + 8]
mov ebx, eax
cmovl edi, ecx
push dword [ebp - 4]
lea eax, [ebp + 0xf]
push 1
push 1
push eax
call fcn.0041c337
add esp, 0x10
cmp eax, 1
je 0x4074b4
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x40752f
push dword [ebp - 4]
call fcn.0041bab6
pop ecx
mov al, 1
pop esi
leave
ret 8

Function at 0x408159
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x4406bc
push dword [ebp + 8]
lea eax, [ebp + 8]
mov byte [ebp - 1], 0
push eax
call fcn.0041bf57
add esp, 0xc
test eax, eax
je 0x40819b
cmp dword [ebp + 8], 0
je 0x408189
push dword [ebp + 8]
call fcn.0041bab6
pop ecx
push str._nError_Opening_save_file._n
call fcn.00401036
pop ecx
xor al, al
jmp 0x408235
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
imul eax, dword [esi + 0xc6898], 0x4c
movzx ecx, byte [eax + esi + 0x298]
imul eax, dword [esi + 0xc6894], 0x120
mov dword [ebp - 8], ecx
cmp dword [eax + esi + 0xc00], edi
jle 0x408221
xor ebx, ebx
test ecx, ecx
je 0x40820d
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [esi + 0xb63dc]
push dword [ebp + 8]
push 1
mov eax, dword [eax]
push 1
mov eax, dword [eax + edi*4]
shr eax, cl
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.0041be3e
add esp, 0x10
cmp eax, 1
jne 0x408239
mov ecx, dword [ebp + 0xc]
inc ebx
add ecx, 8
mov dword [ebp + 0xc], ecx
cmp ebx, dword [ebp - 8]
jl 0x4081d3
mov ecx, dword [ebp - 8]
imul eax, dword [esi + 0xc6894], 0x120
inc edi
cmp edi, dword [eax + esi + 0xc00]
jl 0x4081c8
cmp dword [ebp + 8], 0
je 0x408230
push dword [ebp + 8]
call fcn.0041bab6
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
push str._nError_writing_to_save_file._n
call fcn.00401036
cmp dword [ebp + 8], 0
pop ecx
je 0x408253
push dword [ebp + 8]
call fcn.0041bab6
pop ecx
xor al, al
jmp 0x408232