joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016f1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
xor edi, edi
push 0x94
lea eax, [ebp - 0x94]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40175a
mov eax, dword [ebp - 0x84]
dec eax
je 0x401757
dec eax
jne 0x40175a
cmp dword [ebp - 0x90], 5
push 1
pop edi
je 0x40174e
cmp dword [ebp - 0x90], 4
jne 0x40175a
cmp dword [ebp - 0x8c], 0
jne 0x40175a
push 1
pop edi
mov eax, edi
pop edi
leave
ret

Function at 0x40175f
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
push edi
push 2
movzx eax, byte [ecx + 0x3c]
movzx edi, byte [eax + ecx]
add eax, ecx
pop esi
cmp dword [ebp + 0xc], esi
movzx eax, byte [eax + 1]
mov dword [ebp + 8], eax
jle 0x4017b9
push ebx
mov eax, esi
push 5
cdq
pop ebx
idiv ebx
test edx, edx
je 0x4017b2
mov eax, esi
push 7
cdq
pop ebx
idiv ebx
test edx, edx
je 0x4017b2
mov eax, esi
push 3
cdq
pop ebx
idiv ebx
test edx, edx
je 0x4017b2
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add al, byte [ebp + 8]
xor byte [esi + ecx], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x401781
pop ebx
movzx eax, byte [ecx + 0x3c]
mov byte [ecx], 0x4d
mov byte [ecx + 1], 0x5a
mov byte [eax + ecx], 0x50
push 1
movzx eax, byte [ecx + 0x3c]
mov byte [eax + ecx + 1], 0x45
pop eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x4017da
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x401fc7
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x10c
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call sub.MFC42.DLL_CString::CString
push 1
xor eax, eax
pop esi
lea edi, [ebp - 0x117]
push 0x40
mov byte [ebp - 0x118], bl
pop ecx
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x118]
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00401b1a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x401864
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x40200c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
push 0x40412c
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x24]
mov edi, eax
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CException::CException
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
or dword [ebp - 0x2c], 0xffffffff
mov esi, 0x4035b4
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
call sub.MFC42.DLL_CString::operator
push edi
mov byte [ebp - 4], 4
call sub.MFC42.DLL_operatornew
mov ebx, eax
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
push edi
push dword [ebp - 0x10]
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0x1c
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x24]
push eax
push 0x1001
push dword [ebp + 8]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x401952
cmp dword [ebp + 0xc], 0x81
jne 0x401933
mov ecx, dword [ebp - 0x14]
push edi
push ebx
call fcn.0040175f
mov eax, dword [ebp - 0x24]
push edi
push ebx
lea ecx, [ebp - 0x24]
call dword [eax + 0x40]
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Close
mov dword [ebp - 0x38], esi
push 1
mov byte [ebp - 4], 5
pop esi
jmp 0x401962
push ebx
call sub.MFC42.DLL_operatordelete
pop ecx
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 6
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00401b1a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x38], 0x4035a0
call fcn.00401c70
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401b1a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x418528
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x4185fa
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 0xc], edx
cmp dword [0x88b174], 0x319
jne 0x4185e2
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
push esi
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
push esi
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push esi
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.00417b51
add ebx, 8
dec dword [ebp - 0xc]
jne 0x418546
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x418606
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push ebx
push esi
push edi
push 0x40145c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40146c
push eax
mov dword [0x8234d4], eax
call esi
push 0x401478
push dword [0x8234d4]
mov dword [0x8234cc], eax
call esi
push dword [0x88b174]
xor esi, esi
push esi
mov dword [0x8202ac], eax
call dword [0x8234cc]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x88b174]
mov dword [0x8202c4], eax
push eax
call dword [0x8202ac]
xor edi, edi
cmp edi, 0x85b4
jge 0x41867e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoA]
cmp edi, 0x11c825e
jg 0x4186a3
inc edi
mov eax, edi
cdq
cmp edx, 0x6d
jl 0x418670
jg 0x4186a3
cmp eax, 0xd69e5f85
jb 0x418670
mov eax, dword [0x422724]
mov dword [0x88b178], eax
xor eax, eax
cmp dword [0x88b174], esi
jbe 0x4186d6
mov ecx, dword [0x88b178]
mov cl, byte [ecx + eax + 0xb2d3b]
mov edx, dword [0x8202c4]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [0x88b174]
jb 0x4186b7
xor edi, edi
mov eax, dword [0x88b174]
add eax, edi
cmp eax, 0x5e
jne 0x418713
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapCompact]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push esi
lea eax, [ebp - 0x834]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
inc edi
cmp edi, 0xa69b
jl 0x4186d8
mov edx, dword [0x88b174]
mov ecx, dword [0x8202c4]
push 0x422008
call fcn.00418528
xor eax, eax
cmp eax, 0x59d8
jne 0x418745
mov ecx, 0x8202c4
call fcn.004185ff
inc eax
cmp eax, 0x356d83
jl 0x418734
push 0x7b
pop ebx
cmp dword [0x88b174], 0x54d
jne 0x41878d
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x401488
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec ebx
jne 0x418750
mov eax, dword [0x8202c4]
mov dword [0x8234dc], eax
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4187a1
Capabilities:
Create thread
Get disk size
Get hostname
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
cmp dword [0x88b174], 0x598
push ebx
push esi
jne 0x41882b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4014a8
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
xor ebx, ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSize]
lea eax, [ebp - 8]
push eax
push ebx
push 0x4014b0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push ebx
call fcn.004192a3
push ebx
push ebx
push ebx
call fcn.00419081
add esp, 0x10
call fcn.00418ee0
push ebx
call fcn.00418e48
mov esi, 0xa4808
xor ebx, ebx
cmp dword [0x88b174], 0x57c
jne 0x418884
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetMailslotInfo]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
dec esi
jne 0x418832
mov esi, dword [0x4236d4]
add esi, 0xb2d3b
mov eax, 0x4257e0
mov dword [0x88b174], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4188a1
sub eax, edx
cmp eax, 0x1515
jne 0x418916
cmp esi, 0x18
jne 0x4188dc
push ebx
push ebx
push ebx
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov esi, dword [0x88b174]
cmp esi, 0x9e6
jne 0x418900
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
call fcn.00418ade
push ebx
push ebx
call fcn.00418a4f
push ebx
call fcn.004192a3
add esp, 0x10
call fcn.00418606
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x419729
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424a6c]
jne 0x419733
repz ret
jmp fcn.0041d0f5
Function at 0x41e553
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041a22b
and dword [ebp - 4], 0
cmp dword [0x88bc5c], 0
mov ebx, eax
jne 0x41e604
push 0x402cfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41e6b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402cf0
push edi
call esi
test eax, eax
je 0x41e6b5
push eax
call fcn.0041a1b9
mov dword [esp], 0x402ce0
push edi
mov dword [0x88bc5c], eax
call esi
push eax
call fcn.0041a1b9
mov dword [esp], 0x402ccc
push edi
mov dword [0x88bc60], eax
call esi
push eax
call fcn.0041a1b9
mov dword [esp], 0x402cb0
push edi
mov dword [0x88bc64], eax
call esi
push eax
call fcn.0041a1b9
pop ecx
mov dword [0x88bc6c], eax
test eax, eax
je 0x41e604
push 0x402c98
push edi
call esi
push eax
call fcn.0041a1b9
pop ecx
mov dword [0x88bc68], eax
mov eax, dword [0x88bc68]
cmp eax, ebx
je 0x41e65c
cmp dword [0x88bc6c], ebx
je 0x41e65c
push eax
call fcn.0041a234
push dword [0x88bc6c]
mov esi, eax
call fcn.0041a234
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41e65c
test edi, edi
je 0x41e65c
call esi
test eax, eax
je 0x41e653
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41e653
test byte [ebp - 0xc], 1
jne 0x41e65c
or dword [ebp + 0x10], 0x200000
jmp 0x41e695
mov eax, dword [0x88bc60]
cmp eax, ebx
je 0x41e695
push eax
call fcn.0041a234
pop ecx
test eax, eax
je 0x41e695
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41e695
mov eax, dword [0x88bc64]
cmp eax, ebx
je 0x41e695
push eax
call fcn.0041a234
pop ecx
test eax, eax
je 0x41e695
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x88bc5c]
call fcn.0041a234
pop ecx
test eax, eax
je 0x41e6b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41e6b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x750ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
lea edi, [ebp - 0x5c]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x34
call fcn.0077d930
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x750b24
mov ecx, dword [ebp - 0x18]
call fcn.007391f9
mov dword [ebp - 0x1c], eax
jmp 0x750b2b
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], reloc.KERNEL32.dll_FreeEnvironmentStringsA
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x2c], ecx
mov esi, esp
push 0xfffffffffffffffc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79b4]
cmp esi, esp
call fcn.0077d8f0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], eax
mov esi, esp
push 0x10001b4f
push 0xfffffffffffffffc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79b8]
cmp esi, esp
call fcn.0077d8f0
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
push 0x10099040
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79bc]
cmp esi, esp
call fcn.0077d8f0
mov esi, esp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
push edx
push 0x10099030
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [0x100a79bc]
cmp esi, esp
call fcn.0077d8f0
mov esi, esp
push 0x10001b4f
push 0x10099020
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79bc]
cmp esi, esp
call fcn.0077d8f0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, 0x100a34b8
call fcn.00738c95
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x5c
cmp ebp, esp
call fcn.0077d8f0
mov esp, ebp
pop ebp
ret
Function at 0x797260
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b178
push 0x1004d448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x79729d
push 0
call dword [0x100a77a8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x7972d5
push 0xc1
call dword [0x100a76c8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], reloc.KERNEL32.dll_FreeEnvironmentStringsA
mov eax, dword [ebp - 0x34]
jmp 0x797439
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], reloc.KERNEL32.dll_FreeEnvironmentStringsA
je 0x79730d
push 0xbf
call dword [0x100a76c8]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], reloc.KERNEL32.dll_FreeEnvironmentStringsA
mov eax, dword [ebp - 0x38]
jmp 0x797439
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
test ecx, ecx
jne 0x79733b
push 0xc0
call dword [0x100a76c8]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], reloc.KERNEL32.dll_FreeEnvironmentStringsA
mov eax, dword [ebp - 0x3c]
jmp 0x797439
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x797360
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x797413
push 0x100a2838
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.00783370
add esp, 8
test eax, eax
jne 0x79740e
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x7973af
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x7973b1
jmp 0x797413
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0x30
jb 0x7973de
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x727444
je 0x7973e0
jmp 0x797413
mov eax, dword [ebp - 0x30]
cmp dword [eax + 8], 0
jne 0x7973f4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [0x100a76c8]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], reloc.KERNEL32.dll_FreeEnvironmentStringsA
mov eax, dword [ebp - 0x40]
jmp 0x797439
jmp 0x797357
mov dword [ebp - 4], reloc.KERNEL32.dll_FreeEnvironmentStringsA
jmp 0x79742c
push 0xc0
call dword [0x100a76c8]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x87e278
Capabilities:
Encode data using xor

Disassembly:
mov word [esp + 2], di
lea esp, [esp + 8]
jne 0x856209
je 0x8561d8
add dword [ebx + reloc.KERNEL32.dll_FreeEnvironmentStringsA], ebx
jle 0x87e2b9
nop
popal
stosd dword es:[edi], eax
mov bh, 0x5e
fidivr dword [ebx]
adc eax, 0xb88e0d41
out 0xd9, eax
dec esp
adc byte [edx + esi*2 - 0x5e01289a], ah
xchg dword [0x43c3c15], ebx
invalid
bound ecx, qword [ebx - 0x46f92c92]
mov al, byte [0x104f68a0]
mov al, 0x78
cmc
mov al, byte [0xb0104f68]
js 0x87e325
cmc
add byte [ebp + 0x30346c6c], 8
shr dword [esi - reloc.KERNEL32.dll_FreeEnvironmentStringsA], 1
xchg ecx, eax
nop
outsb dx, byte [esi]
sub eax, 0xd9604a57
xor al, 0xef
mul dword [eax + 0x4b]
out dx, al
fild qword [ecx]
xor dword [ebx + 0xd], ebx
jnp 0x87e2b2
stc
push cs
mov dh, 0x8b
clc
mov ah, 0xfa
xchg byte [edi - 0x1a8be5d5], dh
imul ecx, dword [eax], reloc.KERNEL32.dll_FreeEnvironmentStringsA
ret 0x7ff8
cmp al, 0xd2
mov ch, 0x44
cmc
xchg edx, eax
or dword [ecx + reloc.KERNEL32.dll_FreeEnvironmentStringsA], ebx
stosb byte es:[edi], al
cmp byte [edi - 0x56], bl
outsb dx, byte [esi]
push esi
iretd
Function at 0x1010e6cb
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.1010e74a
jae 0x1010e6d7
xor ecx, ecx
call fcn.1010e74a
jae 0x1010e701
xor eax, eax
call fcn.1010e74a
jae 0x1010e712
mov al, 0x10
call fcn.1010e74a
adc al, al
jae 0x1010e6f3
jne 0x1010e73f
stosb byte es:[edi], al
jmp 0x1010e6d8
call fcn.1010e756
dec ecx
loop 0x1010e71e
mov eax, ebp
call fcn.1010e754
jmp 0x1010e740
lodsb al, byte [esi]
shr eax, 1
je 0x1010e766
adc ecx, 2
mov ebp, eax
jmp 0x1010e740
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.1010e754
cmp eax, 0x7d00
jae 0x1010e73e
cmp eax, 0x500
jae 0x1010e73f
cmp eax, 0x7f
ja 0x1010e740
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1010e6d8
pop ebp
ret 8
Function at 0x40fef0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40ff12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ff19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ff08
mov eax, 1
add ebx, ebx
jne 0x40ff2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ff20
jne 0x40ff3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ff20
xor ecx, ecx
sub eax, 3
jb 0x40ff50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ffc2
mov ebp, eax
add ebx, ebx
jne 0x40ff5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ff68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40ff8c
inc ecx
add ebx, ebx
jne 0x40ff78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40ff6d
jne 0x40ff89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ff6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ffac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ff9d
jmp 0x40ff0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ffac
add edi, ecx
jmp 0x40ff0e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40ffca
cmp byte [edi], 5
jne 0x40ffca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40ffcf
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x41003e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11400]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x114b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40fffc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x114b8]
or eax, eax
je 0x410038
mov dword [ebx], eax
add ebx, 4
jmp 0x410019
call dword [esi + 0x114c8]
mov ebp, dword [esi + 0x114bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x410072
sub esp, 0xffffff80
jmp section.UPX0