joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41419f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45dfa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407a86
mov dword [ebp - 0x14], eax
cmp dword [0x6958a4], esi
jne 0x414292
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41421f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x414372
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x414372
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414372
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x6958a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x6958a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x6958ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6958b4], eax
test eax, eax
je 0x41428f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6958b0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4142b7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4142aa
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4142cc
push 4
pop eax
jmp 0x414374
cmp dword [ebp - 0x14], esi
je 0x4142cc
push dword [0x6958a4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4142b1
mov eax, dword [0x6958b0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41432a
cmp dword [0x6958b4], edi
je 0x41432a
push eax
call ebx
push dword [0x6958b4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41432a
test eax, eax
je 0x41432a
call ecx
test eax, eax
je 0x41431f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41431f
test byte [ebp - 8], 1
jne 0x41432a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41435a
mov eax, dword [0x6958a8]
cmp eax, edi
je 0x414357
push eax
call ebx
test eax, eax
je 0x414357
call eax
mov esi, eax
test esi, esi
je 0x414357
mov eax, dword [0x6958ac]
cmp eax, edi
je 0x414357
push eax
call ebx
test eax, eax
je 0x414357
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x6958a4]
call ebx
test eax, eax
je 0x414372
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x414374
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406cc0
mov esp, ebp
pop ebp
ret
Function at 0x1003518
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1002388
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10035e3
push esi
mov esi, 0x100afa0
push esi
push 0x1002378
push 0x100ad60
call fcn.01002a1f
push ebx
push 0x4000002
push 1
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x10035e2
push ebp
push edi
mov ebp, 0x100a5a0
xor eax, eax
push ebx
mov ecx, 0xc5
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x314
push edi
push ebp
push edx
mov dword [0x100a5a0], 0x6e776453
mov dword [0x100a5a4], 0x10000
mov dword [0x100a5a8], 0xc0000013
mov byte [0x100a7b0], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10035cd
cmp dword [esp + 0x10], edi
jne 0x10035cd
push esi
push 0x1002388
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10035e0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10035e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101b0c0], 0
jne 0x1003661
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.0125c000
lea eax, [ebp - 0x280]
push eax
call fcn.0100323e
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002baa
test esi, esi
jne 0x100366b
inc esi
cmp dword [0x100a060], 0
je 0x1003686
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404f30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe14
xor edx, edx
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403c28
xor eax, eax
push ebp
push 0x4050d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1dc]
mov eax, dword [ebp - 4]
call fcn.004048a4
mov eax, dword [ebp - 0x1dc]
call fcn.0040492c
test eax, eax
jne 0x4050ad
lea edx, [ebp - 0x1e0]
xor eax, eax
call fcn.004026dc
mov edx, dword [ebp - 0x1e0]
mov eax, dword [ebp - 4]
call fcn.00403b84
je 0x4050ad
lea eax, [ebp - 8]
call fcn.00403910
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00404d90
cmp dword [ebp - 8], 0
je 0x4050ad
mov edx, dword [ebp - 8]
mov eax, 0x4050ec
call fcn.00403d20
test eax, eax
jg 0x4050ad
push 0
mov eax, dword [ebp - 4]
call fcn.00403c38
push eax
lea edx, [ebp - 0x1e4]
xor eax, eax
call fcn.004026dc
mov eax, dword [ebp - 0x1e4]
call fcn.00403c38
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4050ad
push 0x405120
lea eax, [ebp - 0x1e8]
call fcn.00404ea4
push dword [ebp - 0x1e8]
push 0x40512c
mov eax, dword [ebp - 8]
call fcn.00403a38
lea edx, [ebp - 0x1ec]
call fcn.004048e8
push dword [ebp - 0x1ec]
push 0x405138
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00403af8
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d8]
call fcn.00402a2c
lea eax, [ebp - 0x1d8]
call fcn.004027c8
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d8]
call fcn.00403dcc
call fcn.00402adc
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x1d8]
call fcn.00403dcc
call fcn.00402adc
lea eax, [ebp - 0x1d8]
call fcn.00402b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4050df
lea eax, [ebp - 0x1ec]
mov edx, 5
call fcn.00403934
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403934
ret

Function at 0x405c80
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
xor eax, eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x405d5f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x100
call fcn.00403a20
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 4]
mov ecx, 0x405d74
call fcn.00403a84
push 0
mov eax, dword [ebp - 4]
call fcn.00403c38
push eax
lea edx, [ebp - 0x10c]
xor eax, eax
call fcn.004026dc
mov eax, dword [ebp - 0x10c]
call fcn.00403c38
push eax
call sub.kernel32.dll_CopyFileA
push 0x405d80
push 0x405d8c
push 0x405da4
push 0x405dac
call sub.kernel32.dll_WritePrivateProfileStringA
mov eax, 0x405dbc
call fcn.00405b9c
test al, al
jne 0x405d39
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d66
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00403934
lea eax, [ebp - 4]
call fcn.00403910
ret
Function at 0x405dd0
Capabilities:
Copy file
Create process on windows
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x405e56
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x405e64
lea edx, [ebp - 4]
xor eax, eax
call fcn.004026dc
mov eax, dword [ebp - 4]
call fcn.00403c38
push eax
call sub.kernel32.dll_CopyFileA
push 0
push 0x405e84
call sub.kernel32.dll_WinExec
push 0
push 0x405f10
lea edx, [ebp - 8]
xor eax, eax
call fcn.004026dc
mov eax, dword [ebp - 8]
call fcn.00403c38
push eax
call sub.kernel32.dll_CopyFileA
push 0
push 0x405f28
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e5d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403934
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001f80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x40
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x10001f9e
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x40
ret
mov ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
push 0x1000a010
push eax
lea ebx, [ebp + ebp*2 + 3]
and ebx, 0xfffffffc
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, esi
mov dword [esp + 0x54], edi
jne 0x10001fd4
mov ebx, 0xfffffffe
jmp 0x1000206f
mov ecx, ebx
push edi
imul ecx, dword [esp + 0x60]
push 0xe
lea edx, [esp + 0x20]
add ecx, 0x36
push 1
push edx
mov word [esp + 0x28], 0x4d42
mov dword [esp + 0x2a], ecx
mov word [esp + 0x30], si
mov word [esp + 0x2e], si
mov dword [esp + 0x32], 0x36
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x6c]
push edi
mov dword [esp + 0x44], eax
push 0x28
lea ecx, [esp + 0x40]
mov eax, 0x48
push 1
push ecx
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x4c], ebp
mov word [esp + 0x54], 1
mov word [esp + 0x56], 0x18
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x10002087
mov ebx, 0xfffffffd
cmp edi, esi
je 0x1000207d
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x40
ret
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x5c]
lea ecx, [eax - 1]
test ecx, ecx
jl 0x1000212f
mov eax, ecx
mov edx, dword [esp + 0x60]
imul eax, ebp
lea edi, [ebp*4]
sub edi, ebp
lea edx, [edx + eax*2]
neg edi
lea eax, [eax + edx + 2]
inc ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], ecx
test ebp, ebp
jle 0x10002108
mov eax, dword [esp + 0x60]
lea ecx, [esi + 2]
mov edi, ebp
mov bl, byte [eax - 1]
mov dl, byte [eax - 2]
mov byte [esp + 0x5c], bl
mov bl, byte [eax]
mov byte [ecx - 2], bl
mov bl, byte [esp + 0x5c]
mov byte [ecx - 1], bl
mov byte [ecx], dl
add eax, 3
add ecx, 3
dec edi
jne 0x100020df
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
push ecx
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
add esp, 0x10
add ecx, edi
dec eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x58], eax
jne 0x100020d2
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x100064e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov esi, ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x10006520
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x208
ret 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x10006547
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x208
ret 8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
push ebx
mov ebx, dword [esp + 0x220]
stosw word es:[edi], ax
test ebx, ebx
stosb byte es:[edi], al
je 0x100065b7
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x114]
push ebp
push ecx
stosb byte es:[edi], al
call fcn.10007e40
add esp, 8
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push ebx
push edx
push 0x1000a044
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
jmp 0x100065c5
lea ecx, [esp + 0x10]
push ebp
push ecx
call fcn.10007e40
add esp, 8
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
pop ebx
jne 0x100065fb
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x208
ret 8
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x10006630
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi]
push eax
call edi
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x208
ret 8
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [eax + 0x10]
cmp ecx, edx
ja 0x10006674
mov edx, dword [esi + 0x10]
add edx, eax
lea eax, [esi + 0x1c]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x18]
add eax, 0x10
mov dword [esi + 0x18], eax
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x208
ret 8

Function at 0x10006ae0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push esi
push 1
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x10006b0e
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x10006d5a
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100085f1
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
cmp eax, ebx
je 0x10006d74
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
add esp, 4
test eax, eax
jg 0x10006dab
mov edi, dword [esp + 0x50]
mov ebp, dword [sym.imp.MSVCRT.dll__open]
push 0x8002
push edi
call ebp
add esp, 8
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x10006dab
push 0x8002
push edi
call ebp
add esp, 8
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x10006dab
mov dword [esi], ebx
xor al, al
jmp 0x10006e48
mov ecx, dword [esi]
lea eax, [esi + 0x14]
push 0x10
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__read]
mov dl, byte [esp + 0x5c]
add esp, 0xc
mov byte [esp + 0x10], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov al, byte [esp + 0x50]
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
push ecx
mov ecx, esi
call fcn.10006fe0
test al, al
je 0x10006e22
lea edi, [esi + 4]
mov eax, dword [edi + 8]
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov ecx, edi
call fcn.100076d0
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.10007010
test al, al
jne 0x10006e00
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x10006e46
mov al, byte [ecx - 1]
cmp al, bl
je 0x10006e3c
cmp al, 0xff
je 0x10006e3c
dec al
mov byte [ecx - 1], al
jmp 0x10006e46
dec ecx
push ecx
call fcn.10002150
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x10007010
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x18]
inc edx
mov eax, edx
mov dword [ebx + 0x24], edx
cmp eax, ecx
jl 0x10007035
xor al, al
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx]
push ebp
push esi
push edi
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__lseek]
mov eax, dword [ebx]
mov esi, dword [sym.imp.MSVCRT.dll__read]
lea edx, [esp + 0x1e]
push 2
push edx
push eax
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
movsx ecx, word [esp + 0x2a]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
call esi
movsx edi, word [esp + 0x36]
add esp, 0x24
cmp edi, 0xfffffffd
mov dword [esp + 0x14], edi
jbe 0x10007095
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebp, dword [esp + 0x120]
xor edx, edx
mov ecx, dword [ebp + 4]
cmp ecx, edx
je 0x100070c4
mov al, byte [ecx - 1]
test al, al
je 0x100070c4
cmp al, 0xff
je 0x100070c4
cmp edi, edx
jne 0x100070ea
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
jmp 0x1000711e
cmp edi, edx
jne 0x100070d4
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x1000711e
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x100070e0
cmp eax, edi
jae 0x100070f3
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov ecx, edi
mov edi, dword [ebp + 4]
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov esi, dword [sym.imp.MSVCRT.dll__read]
mov dword [ebp + 8], eax
mov byte [ecx + eax], 0
mov eax, dword [ebx]
lea edx, [ebp + 0x10]
push 4
push edx
push eax
call esi
mov edx, dword [ebx]
lea ecx, [ebp + 0x14]
push 4
push ecx
push edx
call esi
mov ecx, dword [ebx]
lea eax, [ebp + 0x18]
push 4
push eax
push ecx
call esi
mov edx, dword [ebx]
add ebp, 0x1c
push 4
push ebp
push edx
call esi
mov eax, dword [ebx]
push eax
call dword [sym.imp.MSVCRT.dll__tell]
add esp, 0x34
mov dword [ebx + 0x28], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1c070b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01c07200
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 0x1c070d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1c070c2
add dl, dl
jne 0x1c070e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1c07134
xor eax, eax
add dl, dl
jne 0x1c070ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1c071d5
add dl, dl
jne 0x1c070fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c07108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c07113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c0711e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1c0712a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1c070cd
mov eax, 1
add dl, dl
jne 0x1c07142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1c0714d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1c07139
sub eax, ebx
mov ebx, 1
jne 0x1c07180
mov ecx, 1
add dl, dl
jne 0x1c07166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1c07171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1c0715d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1c070cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1c07197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1c071a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1c0718e
cmp eax, 0x7d00
jae 0x1c071c5
cmp eax, 0x500
jb 0x1c071c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1c070cd
cmp eax, 0x7f
ja 0x1c071c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1c070cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1c071f6
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 0x1c070cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401340
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x47aed0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
lea edx, [esp]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401360
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esp + 4], cl
je 0x40139b
push esi
lea esi, [esp + 8]
lea esp, [esp]
cmp byte [esi], 0x5c
jne 0x401394
push 0
lea eax, [esp + 0xc]
push eax
mov byte [esi], 0
call edi
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x401380
pop esi
push 0
lea ecx, [esp + 8]
push ecx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.0043ee6a
add esp, 0x108
ret