joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x6c]
mov ebx, dword [edi + 0x34]
mov edx, dword [edi + 0x64]
sub ebx, edx
sub ebx, ecx
jne 0x41f38b
test edx, edx
jne 0x41f39a
test ecx, ecx
jne 0x41f39a
mov ebx, esi
jmp 0x41f417
cmp ebx, 0xffffffff
jne 0x41f39a
mov ebx, 0xfffffffe
jmp 0x41f417
mov eax, dword [edi + 0x24]
add eax, 0xfffffefa
add eax, esi
cmp edx, eax
jb 0x41f417
mov ecx, dword [edi + 0x30]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00426460
mov eax, dword [edi + 0x44]
add esp, 0xc
sub dword [edi + 0x68], esi
sub dword [edi + 0x64], esi
sub dword [edi + 0x54], esi
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x3c]
mov edi, dword [ebp - 4]
lea edx, [eax + edi*2]
movzx eax, word [edx - 2]
lea edx, [edx - 2]
mov ecx, eax
sub ecx, esi
cmp eax, esi
sbb eax, eax
not eax
and eax, ecx
mov word [edx], ax
sub edi, 1
jne 0x41f3d1
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x38]
mov edi, esi
lea edx, [eax + esi*2]
movzx eax, word [edx - 2]
lea edx, [edx - 2]
mov ecx, eax
sub ecx, esi
cmp eax, esi
sbb eax, eax
not eax
and eax, ecx
mov word [edx], ax
sub edi, 1
jne 0x41f3f7
mov edi, dword [ebp + 8]
add ebx, esi
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x41f472
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.0041f720
add dword [edi + 0x6c], eax
add esp, 0xc
mov ecx, dword [edi + 0x6c]
cmp ecx, 3
jb 0x41f45e
mov eax, dword [edi + 0x30]
add eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x50]
movzx edx, byte [eax]
mov dword [edi + 0x40], edx
movzx eax, byte [eax + 1]
shl edx, cl
mov ecx, dword [edi + 0x6c]
xor edx, eax
and edx, dword [edi + 0x4c]
mov dword [edi + 0x40], edx
cmp ecx, 0x106
jae 0x41f472
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x41f370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 4], 0
je 0x4248cc
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [ebx + 4], esi
jbe 0x4248c7
lea esp, [esp]
mov eax, esi
mov ecx, dword [ebx]
xor edx, edx
div dword [edi + 4]
mov eax, dword [edi]
mov al, byte [edx + eax]
xor byte [ecx + esi], al
inc esi
cmp esi, dword [ebx + 4]
jb 0x4248b0
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x106
push 0x455990
push 0x444568
lea ecx, [ebp + 0xc]
call fcn.0040dc70
push 0x45be5c
lea eax, [ebp + 0xc]
push eax
call fcn.00426f54
int3

Function at 0x424900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0x10]
push 0x454e54
push dword [ebp + 0xc]
call fcn.0040ea70
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42496d
push ebx
push esi
push 2
push 0
push edi
call fcn.0043151a
push edi
call fcn.00431a8c
push 0
push 0
push edi
mov ebx, eax
call fcn.0043151a
add esp, 0x1c
test ebx, ebx
je 0x42497c
mov ecx, dword [ebp + 8]
push edi
push ebx
push 1
push ebx
call fcn.0040d170
push eax
call fcn.0042b57e
push edi
mov esi, eax
call fcn.0042b054
add esp, 0x14
cmp esi, ebx
pop esi
pop ebx
je 0x42496d
push 0x157
jmp 0x424981
mov eax, dword [ebp + 8]
pop edi
cmp dword [eax + 4], 0
setne al
pop ebp
ret 0xc
push 0x152
push 0x455990
push 0x444568
lea ecx, [ebp + 8]
call fcn.0040dc70
push 0x45be5c
lea eax, [ebp + 8]
push eax
call fcn.00426f54
int3

Function at 0x4372be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043713d
Function at 0x601770
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + edx*2]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
inc esi
invalid
xchg dword [esi], ecx
sub dword [edi - 0x54629ed], ecx
jnp 0x601740
and edx, dword [edi + 0x64]
sar ecx, 1
scasb al, byte es:[edi]
in eax, dx
cmp ebp, edx
mov ah, 0xdd
and byte [edi + esi*2 + 0x72b74a31], dl
fdivr st(7), st(0)
cli
xor dword [edx - 0x49], ecx
jb 0x60176b
idiv edx
loope 0x60178a
invalid
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407290
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407290
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407290
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407290
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407290
mov dword [0x41203c], eax
call fcn.00407290
test eax, eax
jge 0x402550
push 8
call fcn.00407290
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407290
pop ecx
push 1
call fcn.00407290
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407290
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407290
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407290
jmp 0x402495

Function at 0x407290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40729f
pop dword [ebp - 0x40]
mov eax, 0x2e0868d8
add eax, 0xd23809c7
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x375a0
push 0
mov eax, 0x5afdbd3b
add eax, 0xa543239d
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x4047
mov edx, eax
mov edi, 0x5493a8bb
sub edi, 0x54526cf7
add edi, dword [ebp - 0x40]
mov esi, 0xee5ee2b3
sub dword [ebp - 0xc], 0xf2e49d62
mov ebx, dword [edi]
xor dword [ebp - 0x34], 0x351bee27
sub ebx, esi
xor dword [ebp - 0x18], ecx
mov dword [edx], ebx
sub dword [ebp - 4], ecx
add edx, 4
add edi, 0x59a4f0f6
sub edi, 0x59a4f0f2
loop 0x4072f2
add eax, 0xbd018090
sub eax, 0xbd008ca1
mov ebx, eax
add eax, 5
mov ecx, 0x20551f2f
add ecx, 0xdfeae0d1
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x10012247
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x1002dc29
call fcn.10016e01
mov ebx, ecx
mov eax, dword [ebx]
xor edi, edi
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x100304d0]
mov ecx, ebx
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.1000fb0e
and dword [ebp - 4], edi
lea esi, [ebx + 0x44]
cmp dword [esi], edi
je 0x100122f2
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.1000fb0e
mov ecx, dword [esi]
test al, al
je 0x100122d4
push 0xb
pop eax
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x18], ax
sub esp, 0x10
mov byte [ebp - 4], 1
mov edi, esp
lea esi, [ebp - 0x20]
push 1
movsd dword es:[edi], dword [esi]
push str.Close
push ecx
push eax
movsd dword es:[edi], dword [esi]
push 1
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1000fb0e
add esp, 0x28
mov byte [ebp - 4], 0
mov edi, eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.oleaut32.dll_VariantCopy]
lea esi, [ebx + 0x44]
jmp 0x100122eb
push 0
push str.Close
push ecx
push 0
push 1
push ebx
call fcn.1000fb0e
add esp, 0x18
mov edi, eax
mov ecx, esi
call fcn.10009b23
cmp dword [ebx + 0x24], 0
je 0x10012312
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.1000fb0e
test al, al
je 0x10012312
push dword [ebx + 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileW]
push dword [ebp - 0x10]
call dword [sym.imp.oleaut32.dll_SysStringLen]
mov eax, edi
call fcn.10016dca
ret
Function at 0x401240
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0xc23ed8]
shr eax, 3
push esi
mov esi, dword [0xc22e28]
test eax, eax
jbe 0x4012b1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [ebp - 4], eax
jmp 0x401270
cmp dword [0xc23ed8], 0x959
jne 0x4012a0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call fcn.00401050
add esi, 8
sub dword [ebp - 4], 1
jne 0x401270
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401640
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
cmp dword [0xc23ed8], 0x400
push ebx
push esi
push edi
jne 0x4016a3
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
mov eax, dword [esp + 0x10]
push eax
push ecx
push str.savuficukupa
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
lea eax, [esp + 0x1c]
call fcn.00401790
lea esi, [esp + 0x1c]
call fcn.004017b0
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
nop
call edi
cmp esi, 0x2af2a3
jle 0x4016c2
cmp ebx, 0x78abdb45
jne 0x4016cb
inc esi
cmp esi, 0x1c5d
jl 0x4016b0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x4016fd
inc esi
cmp esi, 0x4f6a4
jl 0x4016e0
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40171d
cmp ebx, 0x785074d5
jne 0x401726
inc esi
cmp esi, 0x11915
jl 0x401709
mov edx, dword [0x804e9c]
mov dword [0xc23ed8], edx
call fcn.004013b0
mov esi, dword [sym.imp.KERNEL32.dll_SetSystemTime]
mov edi, 0x3078f
cmp dword [0xc23ed8], 0x51f
jne 0x40176d
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
mov word [esp + 0x10], ax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
call esi
sub edi, 1
jne 0x401742
mov eax, dword [0xc22e28]
mov dword [0xc2346c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402790
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8040c8]
jne 0x40279a
repz ret
jmp fcn.00405f5e
Function at 0x405b8a
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.004034fa
and dword [ebp - 4], 0
cmp dword [0x8058a4], 0
mov ebx, eax
jne 0x405c3b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405cec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405cec
push eax
call fcn.00403488
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x8058a4], eax
call esi
push eax
call fcn.00403488
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x8058a8], eax
call esi
push eax
call fcn.00403488
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x8058ac], eax
call esi
push eax
call fcn.00403488
pop ecx
mov dword [0x8058b4], eax
test eax, eax
je 0x405c3b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403488
pop ecx
mov dword [0x8058b0], eax
mov eax, dword [0x8058b0]
cmp eax, ebx
je 0x405c93
cmp dword [0x8058b4], ebx
je 0x405c93
push eax
call fcn.00403503
push dword [0x8058b4]
mov esi, eax
call fcn.00403503
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405c93
test edi, edi
je 0x405c93
call esi
test eax, eax
je 0x405c8a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405c8a
test byte [ebp - 0xc], 1
jne 0x405c93
or dword [ebp + 0x10], 0x200000
jmp 0x405ccc
mov eax, dword [0x8058a8]
cmp eax, ebx
je 0x405ccc
push eax
call fcn.00403503
pop ecx
test eax, eax
je 0x405ccc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405ccc
mov eax, dword [0x8058ac]
cmp eax, ebx
je 0x405ccc
push eax
call fcn.00403503
pop ecx
test eax, eax
je 0x405ccc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8058a4]
call fcn.00403503
pop ecx
test eax, eax
je 0x405cec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405cee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [edx]
push ebx
push esi
mov esi, ecx
mov bh, byte [edx + 0x1d]
mov cl, byte [edx + 0x1e]
push edi
mov byte [esi + 0x1d], bh
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
movzx eax, byte [edx + 6]
mov byte [esi + 6], al
movzx eax, byte [edx + 7]
mov byte [esi + 7], al
movzx eax, byte [edx + 8]
mov byte [esi + 8], al
movzx eax, byte [edx + 9]
mov byte [esi + 9], al
movzx eax, byte [edx + 0xa]
mov byte [esi + 0xa], al
movzx eax, byte [edx + 0xb]
mov byte [esi + 0xb], al
movzx eax, byte [edx + 0xc]
mov byte [esi + 0xc], al
movzx eax, byte [edx + 0xd]
mov byte [esi + 0xd], al
movzx eax, byte [edx + 0xe]
mov byte [esi + 0xe], al
movzx eax, byte [edx + 0xf]
mov byte [esi + 0xf], al
movzx eax, byte [edx + 0x10]
mov byte [esi + 0x10], al
movzx eax, byte [edx + 0x11]
mov byte [esi + 0x11], al
movzx eax, byte [edx + 0x12]
mov byte [esi + 0x12], al
movzx eax, byte [edx + 0x13]
mov byte [esi + 0x13], al
movzx eax, byte [edx + 0x14]
mov byte [esi + 0x14], al
movzx eax, byte [edx + 0x15]
mov byte [esi + 0x15], al
movzx eax, byte [edx + 0x16]
mov byte [esi + 0x16], al
movzx eax, byte [edx + 0x17]
mov byte [esi + 0x17], al
movzx eax, byte [edx + 0x18]
mov byte [esi + 0x18], al
movzx eax, byte [edx + 0x19]
mov byte [esi + 0x19], al
movzx eax, byte [edx + 0x1a]
mov byte [esi + 0x1a], al
movzx eax, byte [edx + 0x1b]
mov byte [esi + 0x1b], al
movzx eax, byte [edx + 0x1c]
mov byte [esi + 0x1e], cl
mov cl, byte [edx + 0x1f]
mov byte [esi + 0x1c], al
lea eax, [esi + 0x1d]
mov byte [esi + 0x1f], cl
mov esi, 8
nop dword [eax]
mov cl, byte [eax + 1]
mov edi, esi
mov dl, byte [eax + 2]
mov bl, byte [eax - 1]
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
and edi, 7
jne 0x40113e
movzx ecx, cl
movzx edx, bh
mov bh, byte [ecx + str.cw]
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 1], cl
movzx ecx, bl
mov cl, byte [ecx + str.cw]
mov byte [ebp - 2], cl
mov ecx, esi
shr ecx, 3
mov bl, byte [ecx + 0x403300]
xor bl, byte [edx + str.cw]
jmp 0x40116e
cmp edi, 4
jne 0x40116e
movzx ecx, bl
mov bl, byte [ecx + str.cw]
movzx ecx, bh
mov bh, byte [ecx + str.cw]
movzx ecx, byte [ebp - 1]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 1], cl
movzx ecx, dl
mov cl, byte [ecx + str.cw]
mov byte [ebp - 2], cl
mov cl, byte [eax - 0x1d]
inc esi
xor cl, bl
mov byte [eax + 3], cl
mov cl, byte [eax - 0x1c]
xor cl, bh
mov byte [ebp - 3], cl
mov bh, byte [ebp - 3]
mov byte [eax + 4], cl
mov cl, byte [eax - 0x1b]
xor cl, byte [ebp - 1]
mov byte [eax + 5], cl
mov cl, byte [eax - 0x1a]
xor cl, byte [ebp - 2]
mov byte [eax + 6], cl
add eax, 4
cmp esi, 0x3c
jb 0x4010f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4013b0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, edx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 8], eax
mov esi, ebx
lea edi, [eax + 0xe0]
mov edx, 4
nop dword [eax]
mov ecx, 4
mov al, byte [edi]
inc edi
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x4013d5
sub edx, 1
jne 0x4013d0
mov byte [ebp - 1], 0xd
nop dword [eax]
movzx eax, byte [ebx + 9]
mov esi, ebx
mov cl, byte [ebx + 0xd]
mov edi, 4
mov byte [ebx + 0xd], al
movzx eax, byte [ebx + 5]
mov byte [ebx + 9], al
movzx eax, byte [ebx + 1]
mov byte [ebx + 5], al
movzx eax, byte [ebx + 0xa]
mov byte [ebx + 1], cl
mov cl, byte [ebx + 2]
mov byte [ebx + 2], al
movzx eax, byte [ebx + 0xe]
mov byte [ebx + 0xa], cl
mov cl, byte [ebx + 6]
mov byte [ebx + 6], al
movzx eax, byte [ebx + 7]
mov byte [ebx + 0xe], cl
mov cl, byte [ebx + 3]
mov byte [ebx + 3], al
movzx eax, byte [ebx + 0xb]
mov byte [ebx + 7], al
movzx eax, byte [ebx + 0xf]
mov byte [ebx + 0xb], al
mov byte [ebx + 0xf], cl
nop word [eax + eax]
mov ecx, esi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x403200]
mov byte [ecx - 4], al
sub edx, 1
jne 0x401460
inc esi
sub edi, 1
jne 0x401450
mov ch, byte [ebp - 1]
mov eax, ebx
movzx edx, ch
mov edi, 4
shl edx, 4
add edx, dword [ebp - 8]
nop dword [eax]
mov esi, 4
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub esi, 1
jne 0x401495
sub edi, 1
jne 0x401490
test ch, ch
je 0x4014b8
mov ecx, ebx
call fcn.004011b0
dec byte [ebp - 1]
jmp 0x4013f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402035
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402074
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402074
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402074
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402074
cmp dword [ecx + 0x74], 0xe
jbe 0x402074
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x5e700c47
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x65c00706
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

Function at 0x4ba841
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3398
cmp edx, dword [eax]
je 0x4ba863
add eax, 8
inc ecx
cmp eax, 0x4c3428
jl 0x4ba854
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3398]
jne 0x4ba991
mov eax, dword [0x4c7d2c]
cmp eax, 1
je 0x4ba96b
test eax, eax
jne 0x4ba894
cmp dword [0x4c32c4], 1
je 0x4ba96b
cmp edx, 0xfc
je 0x4ba991
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba8cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bb220
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb6b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba90e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb6b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfaf4
push edi
call fcn.004bd580
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bb220
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb230
lea eax, [ebp - 0xa0]
push 0x4bfad4
push eax
call fcn.004bb230
push dword [esi + 0x4c339c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb230
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd4f4
add esp, 0x2c
pop edi
jmp 0x4ba991
lea eax, [ebp + 8]
lea esi, [esi + 0x4c339c]
push 0
push eax
push dword [esi]
call fcn.004bb6b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x405060
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ef20
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4823c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004334f9
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00432aa5
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.004052f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x408c82
jl 0x408c75
test ecx, ecx
jne 0x408c82
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x408d42
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00404de0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x408cee
jg 0x408cad
test esi, esi
je 0x408cee
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x408cc5
mov eax, dword [esp + 0x10]
jl 0x408cbf
cmp eax, esi
jae 0x408cc5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00435140
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x408d0f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x408d2b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x408c94
jl 0x408d2b
test ecx, ecx
jne 0x408c94
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x408d86
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x408d86
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00435140
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x408df7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x408dac
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x408de2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00440bca
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x408df7
cmp edi, eax
ja 0x408dc0
test edi, edi
je 0x408df7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00440bca
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc