joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027840
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [0x100655c8]
mov dword [ebp - 4], eax
jmp 0x10027867
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10027880
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1002787e
mov eax, dword [ebp - 4]
jmp 0x10027904
jmp 0x1002785f
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.10029029
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10027901
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x100278c3
mov edx, dword [ebp - 4]
mov eax, dword [0x100655c8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100655c8], ecx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.10029029
mov esp, ebp
pop ebp
ret

Function at 0x10027df0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x10027e40
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x10027e40
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x10027e40
xor eax, eax
jmp 0x10027e81
mov dword [ebp - 4], 1
jmp 0x10027e52
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10027e7c
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x10027e7a
xor eax, eax
jmp 0x10027e81
jmp 0x10027e49
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402b50
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi + 0x4fe0]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0x4fd8]
mov ebx, dword [esi + 0x4fdc]
shr ecx, 0x1c
mov eax, edi
and eax, 0xf
shl ebx, 4
add ecx, ebx
mov edx, edi
shr edx, 4
shl eax, 0x1c
cmp edi, ecx
sbb ecx, ecx
and ecx, 0x10000000
push ecx
push eax
push edx
mov edx, dword [esi + 0x28]
push 4
push edx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x4fe0], eax
je 0x402bb2
mov dword [esi + 0x18], edi
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x488ae8]
push 0x477f94
push 0x477f88
push edi
mov esi, eax
call fcn.0043bf85
mov eax, dword [edi]
push esi
push esi
push str.LastError
push str._s_d__x__n
push eax
call fcn.0043c301
mov ecx, dword [edi]
push ecx
call fcn.0043c6cc
mov edx, dword [0x489b08]
mov eax, dword [0x488a6c]
add esp, 0x24
push 0x100
shl edx, 9
add edx, 0x488b08
push edx
push 0xdf
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x489b08]
lea ecx, [eax + 1]
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x402c2a
dec ecx
or ecx, 0xfffffff8
inc ecx
shl eax, 9
add eax, 0x488b08
push eax
mov dword [0x489b08], ecx
call fcn.00418f90
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x40d2d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ee48
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x484004]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x30]
call fcn.00419200
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x14], eax
mov ebx, esi
mov dword [esi], vtable.TAG_Plot.0
mov dword [esi + 0x10cc078], ecx
mov dword [esi + 0x1097a10], eax
call fcn.0040fa60
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x41c4c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4c
push esi
xor esi, esi
cmp word [0x48a118], si
push edi
mov edi, eax
jne 0x41c4e4
push 0x48a118
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x41c4fa
push 0x5c
push 0x48a118
call fcn.0043c9b7
add esp, 8
cmp eax, esi
je 0x41c4fa
mov word [eax], si
mov eax, 0x48a118
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41c502
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x41c527
cmp word [0x48a11c], 0x5c
jne 0x41c527
mov word [0x48a11c], si
cmp edi, esi
je 0x41c53e
push edi
push 0x208
push 0x48a118
call fcn.0043c5ed
add esp, 0xc
mov eax, dword [esp + 0x64]
push eax
push 0x208
push 0x48a118
call fcn.0043d70c
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], eax
add esp, 0xc
mov dword [esp + 8], 0x4c
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x48a118
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 0x88002c
mov word [esp + 0x40], si
mov word [esp + 0x42], si
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0x41c390
mov dword [esp + 0x50], esi
mov ecx, str.OPEN
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c5fc
cmp dx, si
je 0x41c5f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c5fc
add eax, 4
add ecx, 4
cmp dx, si
jne 0x41c5d6
xor eax, eax
jmp 0x41c601
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x41c612
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
jmp 0x41c616
mov eax, dword [esp + 0x58]
mov edx, str.SAVE
mov ecx, ebx
lea ecx, [ecx]
mov di, word [ecx]
cmp di, word [edx]
jne 0x41c646
cmp di, si
je 0x41c642
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x41c646
add ecx, 4
add edx, 4
cmp di, si
jne 0x41c620
xor ecx, ecx
jmp 0x41c64b
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, esi
jne 0x41c65a
lea edx, [esp + 8]
push edx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
cmp eax, esi
jne 0x41c666
pop edi
xor eax, eax
pop esi
add esp, 0x4c
ret
mov ecx, str.SAVE
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c696
cmp dx, si
je 0x41c692
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c696
add eax, 4
add ecx, 4
cmp dx, si
jne 0x41c670
xor eax, eax
jmp 0x41c69b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x41c6eb
cmp word [esp + 0x42], si
mov edx, dword [esp + 0x14]
jne 0x41c6eb
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + ecx - 1]
xor eax, eax
cmp ecx, esi
jbe 0x41c6d5
jmp 0x41c6c0
mov si, word [edx]
add edx, 2
test si, si
jne 0x41c6c0
add eax, 1
movzx esi, ax
cmp esi, ecx
jb 0x41c6c0
add edx, 2
push edx
push 0x208
push 0x48a118
call fcn.0043d70c
add esp, 0xc
pop edi
mov eax, 0x48a118
pop esi
add esp, 0x4c
ret
Function at 0x42754c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x427585
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041d811
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041d7a8
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4294a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4294e7
call fcn.0041eb40
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4294e7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x429502
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042905e
test ebx, ebx
mov esi, eax
je 0x429500
test edi, edi
je 0x429500
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43b563
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x484004]
jne 0x43b56d
repz ret
jmp fcn.00442fe2
Function at 0x461658
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044c4ec
xor ebx, ebx
cmp dword [0x4889a0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x46172d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x461698
xor eax, eax
jmp 0x4617f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x461691
push eax
call fcn.0044c489
mov dword [esp], 0x475920
push edi
mov dword [0x4889a0], eax
call esi
push eax
call fcn.0044c489
mov dword [esp], 0x47590c
push edi
mov dword [0x4889a4], eax
call esi
push eax
call fcn.0044c489
mov dword [0x4889a8], eax
lea eax, [ebp - 8]
push eax
call fcn.00442187
test eax, eax
pop ecx
pop ecx
je 0x4616fb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00443bd0
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x46172d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044c489
cmp eax, ebx
pop ecx
mov dword [0x4889b0], eax
je 0x46172d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044c489
pop ecx
mov dword [0x4889ac], eax
mov eax, dword [0x4889ac]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4617a6
cmp dword [0x4889b0], esi
je 0x4617a6
push eax
call fcn.0044c4f5
pop ecx
call eax
cmp eax, ebx
je 0x461773
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4889b0]
call fcn.0044c4f5
pop ecx
call eax
test eax, eax
je 0x461773
test byte [ebp - 0x18], 1
jne 0x4617a6
lea eax, [ebp - 0xc]
push eax
call fcn.00442236
test eax, eax
pop ecx
je 0x46178e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00443bd0
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x46179d
or dword [ebp + 0x10], 0x200000
jmp 0x4617d7
or dword [ebp + 0x10], 0x40000
jmp 0x4617d7
mov eax, dword [0x4889a4]
cmp eax, esi
je 0x4617d7
push eax
call fcn.0044c4f5
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4617d7
mov eax, dword [0x4889a8]
cmp eax, esi
je 0x4617d7
push dword [ebp - 4]
push eax
call fcn.0044c4f5
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4889a0]
call fcn.0044c4f5
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4695fc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x484004]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00469474
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043e850
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46964b
cmp dword [ebp - 0x1c], 5
jb 0x469663
jmp 0x46965f
cmp dword [ebp - 0x10], 1
jne 0x469663
cmp dword [ebp - 0x1c], 4
ja 0x46965f
jne 0x469663
cmp dword [ebp - 0x18], 0
jbe 0x469663
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4759cc
call fcn.00469268
test eax, eax
jge 0x469684
mov byte [0x488a38], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043b563
add ebp, 0x78
leave
ret
Function at 0xde2108
Capabilities:
Encode data using xor

Disassembly:
jmp 0xde2112
pushal
call 0xde2118
pop ebp
sub ebp, 0x10
sub ebp, 0x9e2108
jmp 0xde212e
mov eax, 0x9e2108
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ab
mov edx, 0xf66f7fb2
xor byte [eax], dl
inc eax
dec ecx
jne 0xde2145
jmp 0xde2158
cmp dword [edi + 0x39], edi
cmp ecx, dword [esi + 0x33b2b2b2]
jae 0xde21ad
mov dl, 0xb2
mov dl, 0xb1
jg 0xde2173
mov bh, 0xb2
mov dl, 0xb2
or byte [edx + 0x45b2b2b2], bl
push eax
mov cl, 0x7a
cmp dword [ebx], esi
mov esi, 0xb1b2b2b2
jp 0xde21b0
xor edi, dword [esi - 0x4e4d4d4e]
ja 0xde2161
aas
salc
xchg esi, eax
dec esi
cmp esi, dword [esi + 0x33eda96]
xchg ebx, eax
mov dl, 0xda
into
invalid
mov esi, 0x39b2b2b2
mov dl, 0x39
aas
mov byte [0x73b2b2b2], al
pop ebx
mov al, 0x83
mov al, 0x31
jo 0xde2175
sti
mov ebp, 0x4d4d4637
dec ebp
cmp dword [esi - 0x6929c06a], ebx
mov dh, 0x70
mov esi, 0x963e39b2
mov dh, 0xb2
mov dl, 0xb2
fidivr dword [esi]
add edx, dword [ebx - 0x2231254e]
into
mov dl, 0xb3
sahf
xchg esi, eax
jecxz 0xde2240
mov bh, 0xb2
mov dl, 0xb2
pop ebx
div dword [eax - 0x29c04d4e]
xchg esi, eax
dec esi
cmp ebx, dword [esi + 0x4defe696]
invalid
pop edx
mov bh, 0xfa
mov ebp, 0xb2b2fc36
mov dl, 0xbd
cmp bh, dl
mov dl, 0xb2
mov dl, 0xd4
cmp dword [esi + 0x5a49328b], ebp
mov ebp, 0xb2b2a836
mov dl, 0x32
dec ecx
pop ebx
test al, 0xb2
mov dl, 0xb2
xor cl, byte [ecx + 0x5b]
mov ebp, 0xb2b2a336
mov dl, 0xd4
xor ecx, dword [ecx + 0x4d]
xchg edi, eax
mov ebp, 0xb2b2a736
mov dl, 0xf3
pop ebx
jle 0xde229b
dec ebp
dec ebp
wait
dec byte [ebx - 0x488cce4d]
xor dword [edx - 0x4a], ebx
pop ebx
cmovge ecx, dword [ebp + 0x4d]
wait
out 0x8b, al
mov al, 0x31
jae 0xde221a
xor dword [eax - 0x4a], ebx
xor dword [edx - 0x49], ebx
pop ebx
sbb dword [ebp + 0x4d], ecx
dec ebp
out dx, eax
jo 0xde2232
mov dl, 0xe7
cmp dword [esi - 0x1c], ebx
in eax, 0xe7
cmp edi, eax
mov esi, 0x4ebacf39
add byte [edx], dh
cmp byte [ebx + esi - 0x4d4d4c8c], dh
mov dl, 0x3a
mov ch, 0x33
jne 0xde2244
mov dl, 0xb2
mov dl, 9
mov al, 0xb2
mov dl, 0xb2
mov al, 0x60
mov ebp, 0xb2b2b737
mov dl, 0x38
movsb byte es:[edi], byte [esi]
hlt
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via createthreadpoolwait

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
push eax
push 0x40
push 0x719
push 0x10003058
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0x10003058
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10001068
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x13695aef
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x208c359c
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4c704c], 1
mov dword [0x4c7050], 1
mov dword [0x4c7054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401818
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00402830
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00402830
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x4023ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40240b
mov eax, 0
jmp 0x40244f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40242e
mov eax, 0
jmp 0x40244f
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40244a
mov eax, 0
jmp 0x40244f
mov eax, 1
leave
ret
Function at 0x402451
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4024b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4024a8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4024a8
mov eax, dword [ebp - 4]
jmp 0x4024c4
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402485
mov eax, 0
leave
ret

Function at 0x4016ee
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4050b2], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4051a0], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x405134], eax
mov dword [0x4050aa], eax
mov dword [0x405120], 0x30
mov dword [0x405124], 2
jmp 0x401733
mov dword [0x405128], 0x4030e0
mov dword [0x40512c], 0
mov dword [0x405130], 0
mov dword [0x405148], 0x404182
mov dword [0x405140], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x405138], eax
mov dword [0x40514c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40513c], eax
push 0x405120
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4050aa]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push str.5_minutes
push str.return
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405198], eax
push 5
push dword [0x405198]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405198]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x405150]
jmp 0x401807
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x4017f9
mov eax, dword [0x405158]
jmp 0x401822
call 0x402c71
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 0x40aa10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
xor ecx, ecx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov edx, ecx
sub edx, eax
mov al, byte [edx + edi]
mov byte [ebp + ecx - 0x106], cl
mov byte [ebp + ecx - 0x208], al
inc ecx
cmp ecx, 0x100
jl 0x40aa22
xor eax, eax
lea ebx, [ebx]
movzx ecx, byte [ebp + eax - 0x208]
movzx edx, byte [ebp + eax - 0x106]
add ecx, esi
lea esi, [ecx + edx]
and esi, 0x800000ff
jns 0x40aa85
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [ebp + eax - 0x106]
mov dl, byte [ebp + esi - 0x106]
mov byte [ebp + eax - 0x106], dl
inc eax
mov byte [ebp + esi - 0x106], cl
cmp eax, 0x100
jl 0x40aa60
xor eax, eax
xor cl, cl
mov byte [ebp - 0x107], 0
cmp dword [ebp + 0xc], eax
jbe 0x40ab31
mov edi, dword [ebp + 8]
push ebx
jmp 0x40aac6
mov cl, byte [ebp - 0x108]
mov dl, byte [eax + edi]
inc cl
mov byte [ebp - 0x108], cl
movzx esi, cl
movzx ebx, byte [ebp + esi - 0x106]
movzx ecx, byte [ebp - 0x107]
add ecx, ebx
mov byte [ebp - 0x107], cl
movzx ebx, byte [ebp + esi - 0x106]
movzx ecx, cl
lea ecx, [ebp + ecx - 0x106]
mov byte [ebp - 1], bl
movzx ebx, byte [ecx]
mov byte [ebp + esi - 0x106], bl
movzx ebx, byte [ebp - 1]
mov byte [ecx], bl
movzx ebx, byte [ebp + esi - 0x106]
add bl, byte [ecx]
inc eax
movzx ecx, bl
mov cl, byte [ebp + ecx - 0x106]
xor cl, dl
mov byte [eax + edi - 1], cl
cmp eax, dword [ebp + 0xc]
jb 0x40aac0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x77
push esi
mov dword [ebp - 0x20], 0x6f726863
mov dword [ebp - 0x1c], 0x635f656d
mov dword [ebp - 0x18], 0x646c6968
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
call fcn.00409c10
add esp, 8
test eax, eax
jne 0x40b9a3
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x1c]
push ecx
call fcn.0040acf0
add esp, 8
test eax, eax
je 0x40ba2e
push ebx
push edi
push eax
push esi
call fcn.00406b10
mov edx, dword [esi + 0xca0]
push 0x15db1ddc
push 0
push 0
mov edi, eax
push edx
lea eax, [esi + 0xc94]
push eax
call fcn.00414e50
add esp, 0x1c
mov ebx, eax
call fcn.0041f1aa
mov dword [eax + 3], esi
call fcn.0041f1bc
mov dword [eax + 3], esi
test edi, edi
je 0x40ba01
push 1
push 2
call fcn.0041f1aa
add eax, 2
push eax
lea ecx, [esi + 0x1938]
push ecx
push edi
push esi
call fcn.004055a0
add esp, 0x18
test ebx, ebx
je 0x40ba23
push 0
push 0
call fcn.0041f1bc
add eax, 2
push eax
lea edx, [esi + 0x19b8]
push edx
push ebx
push esi
call fcn.004055a0
add esp, 0x18
push esi
call fcn.004175e0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret