joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5125c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x512610
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5125d0
sub eax, esi
sar eax, 1
pop esi
je 0x512610
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x512610
cmp eax, 0xffffffff
jne 0x51260c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x44
je 0x51260c
cmp eax, 0x20
je 0x51260c
cmp eax, 0x45
je 0x51260c
cmp eax, 0x24
jne 0x512610
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x512880
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x51299d
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5128b0
sub eax, edx
sar eax, 1
je 0x51299d
test edi, edi
je 0x51299d
test ebx, ebx
je 0x5129aa
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0055aed0
push 0x103
lea edx, [ebp - 0x20c]
push esi
push edx
call fcn.005614b1
push 0x25
push esi
call fcn.0056165f
add esp, 0x20
test eax, eax
je 0x512924
push 0x103
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [ebp - 0x20c], 0x2e
jne 0x512979
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.0055aed0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push edi
push ebx
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
push ebx
lea edx, [ebp - 0x20c]
push edx
push edi
call fcn.005614b1
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x5129aa
test edi, edi
je 0x5129aa
xor eax, eax
mov word [edi], ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x5129c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [edx], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebp - 0x218], eax
xor eax, eax
push 0x206
mov dword [ebp - 0x224], ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x21c], edx
mov dword [ebx], 0
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.0055aed0
push 0x104
lea edx, [ebp - 0x20c]
push edi
push edx
call fcn.005614b1
add esp, 0x18
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
xor eax, eax
push edx
mov word [ebp - 6], ax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x512acd
lea eax, [ebp - 0x20c]
push 0x25
push eax
call fcn.0056165f
add esp, 8
test eax, eax
je 0x512b69
push 0x208
lea ecx, [ebp - 0x20c]
push esi
push ecx
call fcn.0055aed0
push 0x104
lea edx, [ebp - 0x20c]
push edx
push edi
call fcn.00512880
add esp, 0x18
test al, al
je 0x512b69
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x512b69
mov eax, esi
call fcn.0055b590
mov edx, dword [ebp - 0x210]
mov edi, esp
push edi
push esi
push edx
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
jne 0x512b69
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x214]
push edx
xor eax, eax
push 0x5d6af8
push edi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x214], eax
call sub.VERSION.dll_VerQueryValueW
cmp eax, 1
jne 0x512b69
mov esi, dword [ebp - 0x214]
mov ecx, 0xd
lea edi, [ebp - 0x258]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x250]
mov ecx, eax
movzx edx, ax
mov eax, dword [ebp - 0x218]
shr ecx, 0x10
mov dword [ebx], ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x224]
mov ecx, eax
shr ecx, 0x10
movzx eax, ax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x21c]
mov dword [ecx], eax
mov al, 1
jmp 0x512b6b
xor al, al
lea esp, [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x512c90
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x512e0d
mov eax, esi
lea edx, [eax + 2]
jmp 0x512cc0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x512cc0
sub eax, edx
sar eax, 1
je 0x512e0d
push esi
call fcn.005125c0
add esp, 4
test al, al
je 0x512e0d
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x512d3f
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x512d3f
push 0
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x220]
push edx
push esi
call eax
test eax, eax
je 0x512d3f
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
mov dword [ebx], eax
pop esi
mov dword [ebx + 4], ecx
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.005127f0
movzx edi, ax
add esp, 4
test di, di
jne 0x512d93
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.0055aed0
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x20c]
push edx
call fcn.005127f0
add esp, 4
movzx edi, ax
mov eax, 0x5d8f2c
mov edx, esi
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x512da0
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x214]
push eax
push esi
mov word [esi], di
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
pop edi
test eax, eax
je 0x512e0d
mov eax, dword [ebp - 0x214]
mul dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
push 0
push ecx
push edx
push eax
call fcn.0055db50
mov dword [ebx], eax
pop esi
mov dword [ebx + 4], edx
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x51c9d0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x2ae], 0
je case.0x51ca11.4
mov eax, dword [ebp + 0x10]
cmp eax, dword [ecx + 0x168]
jle 0x51c9f4
cmp eax, 5
jne case.0x51ca11.4
mov ecx, dword [ecx + 0x158]
test ecx, ecx
je case.0x51ca11.4
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x10], edx
cmp eax, 5
ja case.0x51ca11.4
jmp dword [eax*4 + 0x51caa0]
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x51ca24
mov eax, 0xefff2710
push 0
lea edx, [ebp + 0x10]
push edx
push 0
push 1
push 0
push eax
push 0
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x51ca4c
mov eax, 0xafff4e20
push 0
lea edx, [ebp + 0x10]
push edx
push 0
push 1
push 0
push eax
push 0
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x51ca82
mov eax, 0x6fff7530
jmp 0x51ca82
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x51ca82
mov eax, 0x6fffc350
push 0
lea edx, [ebp + 0x10]
push edx
push 0
push 1
push 0
push eax
push 0
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop ebp
ret 0x14
Function at 0x520c50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2da8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x62d12c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004ff440
xor ecx, ecx
mov dword [ebp - 4], ecx
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int__.0
mov byte [esi + 0x50], cl
mov byte [esi + 0x4a], cl
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov edx, dword [ebp + 8]
mov dword [eax], ecx
mov dword [esi + 0x54], edx
mov eax, dword [0x634d38]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x44], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x522600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3188
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x522738
cmp byte [edi + 0x4a], bl
je 0x522738
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x5226ca
mov ecx, 0xf
mov dword [ebp - 0x18], ecx
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x52267f
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x522697
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x5226ce
dec eax
je 0x5226d2
sub eax, 2
je 0x522729
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00421b10
xor al, al
jmp 0x52273a
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x5226e2
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x52270b
cmp ebx, 0x10
jae 0x5226f1
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0055d5db
add esp, 0x10
cmp esi, eax
jne 0x5226bb
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x522729
test esi, esi
jne 0x52268b
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00414850
jmp 0x522685
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00421b10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
Function at 0x53a090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
or eax, 0xffffffff
or edx, 0xffffffff
test edi, edi
je 0x53a0c9
movzx ecx, byte [esi]
xor ecx, eax
shrd eax, edx, 8
and ecx, 0xff
xor eax, dword [ecx*8 + 0x629978]
shr edx, 8
xor edx, dword [ecx*8 + 0x62997c]
inc esi
dec edi
jne 0x53a0a5
pop edi
not eax
not edx
pop esi
pop ebp
ret

Function at 0x53a120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x53a14b
mov edx, dword [ebp + 0xc]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x62a178]
inc edx
dec ecx
jne 0x53a131
pop esi
pop ebp
ret
Function at 0x5417c2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x6359c4], 0
push esi
push edi
jne 0x541733
call fcn.0054168d
test eax, eax
je 0x541778
mov eax, dword [0x6359c4]
cmp eax, 1
jne 0x541754
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x541778
jmp 0x5417ba
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x5417ba
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x54177c
xor eax, eax
jmp 0x5417ba
mov eax, dword [esi]
push dword [0x6359c4]
call edi
mov edi, eax
test edi, edi
je 0x54179e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x5417ba
lea edi, [esi + 0xff0]
push esi
push dword [0x6359c4]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x5417a4
mov eax, esi
pop edi
pop esi
ret
jmp 0x54171f

Function at 0x558b78
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x62d12c]
jne 0x558b82
repz ret
jmp fcn.00570a68

Function at 0x56006f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x560097
call fcn.005612d2
and dword [eax], 0
call fcn.005612bf
mov dword [eax], 0x16
call fcn.0056db14
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5600b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005612e5
pop ecx
jmp 0x560092
test byte [ebp + 0xc], 0x80
je 0x5600bf
and eax, 0xfffffffe
jmp 0x5600c2
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x5600a5
xor eax, eax
pop ebp
ret

Function at 0x562af3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x562b1a
call fcn.005612d2
mov dword [eax], esi
call fcn.005612bf
push 0x16
pop esi
mov dword [eax], esi
call fcn.0056db14
mov eax, esi
jmp 0x562b6f
test dword [ebp + 0xc], 0xfffffff9
jne 0x562b00
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x562b47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005612e5
pop ecx
call fcn.005612bf
mov eax, dword [eax]
jmp 0x562b6f
test al, 0x10
jne 0x562b6d
test al, 1
je 0x562b6d
test byte [ebp + 0xc], 2
je 0x562b6d
call fcn.005612d2
mov dword [eax], 5
call fcn.005612bf
mov dword [eax], 0xd
jmp 0x562b3e
xor eax, eax
pop esi
pop ebp
ret
Function at 0x588222
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00570b6e
and dword [ebp - 0x14], 0
cmp dword [0x636c1c], 0
mov dword [ebp - 0x18], eax
jne 0x5882d5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x58837d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5e2114
push ebx
call edi
test eax, eax
je 0x58837d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5e2104
push ebx
mov dword [0x636c1c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x636c20], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x636c24], eax
call edi
push eax
call esi
mov dword [0x636c2c], eax
test eax, eax
je 0x5882d5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x636c28], eax
mov eax, dword [0x636c28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x58832e
cmp dword [0x636c2c], ecx
je 0x58832e
push eax
call esi
push dword [0x636c2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x58832e
test ebx, ebx
je 0x58832e
call edi
test eax, eax
je 0x588325
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x588325
test byte [ebp - 8], 1
jne 0x58832e
or dword [ebp + 0x10], 0x200000
jmp 0x588361
mov eax, dword [0x636c20]
cmp eax, dword [ebp - 0x18]
je 0x588361
push eax
call esi
test eax, eax
je 0x588361
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x588361
mov eax, dword [0x636c24]
cmp eax, dword [ebp - 0x18]
je 0x588361
push eax
call esi
test eax, eax
je 0x588361
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x636c1c]
call esi
test eax, eax
je 0x58837d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x58837f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00558b78
leave
ret

Function at 0x58fad7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x58fafe
call fcn.005612d2
mov dword [eax], esi
call fcn.005612bf
push 0x16
pop esi
mov dword [eax], esi
call fcn.0056db14
mov eax, esi
jmp 0x58fb53
test dword [ebp + 0xc], 0xfffffff9
jne 0x58fae4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58fb2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005612e5
pop ecx
call fcn.005612bf
mov eax, dword [eax]
jmp 0x58fb53
test al, 0x10
jne 0x58fb51
test al, 1
je 0x58fb51
test byte [ebp + 0xc], 2
je 0x58fb51
call fcn.005612d2
mov dword [eax], 5
call fcn.005612bf
mov dword [eax], 0xd
jmp 0x58fb22
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], str.VirtualProtect
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], str.kernel32.dll
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7665c0], eax
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x7665c0]
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret

Function at 0x4072a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x765f20]
jne 0x4072ae
repz ret
jmp fcn.0040b1ac

Function at 0x407b2c
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.00405185
and dword [ebp - 4], 0
cmp dword [0x766c60], 0
mov ebx, eax
jne 0x407bdd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407c8e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407c8e
push eax
call fcn.00405113
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x766c60], eax
call esi
push eax
call fcn.00405113
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x766c64], eax
call esi
push eax
call fcn.00405113
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x766c68], eax
call esi
push eax
call fcn.00405113
pop ecx
mov dword [0x766c70], eax
test eax, eax
je 0x407bdd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405113
pop ecx
mov dword [0x766c6c], eax
mov eax, dword [0x766c6c]
cmp eax, ebx
je 0x407c35
cmp dword [0x766c70], ebx
je 0x407c35
push eax
call fcn.0040518e
push dword [0x766c70]
mov esi, eax
call fcn.0040518e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407c35
test edi, edi
je 0x407c35
call esi
test eax, eax
je 0x407c2c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407c2c
test byte [ebp - 0xc], 1
jne 0x407c35
or dword [ebp + 0x10], 0x200000
jmp 0x407c6e
mov eax, dword [0x766c64]
cmp eax, ebx
je 0x407c6e
push eax
call fcn.0040518e
pop ecx
test eax, eax
je 0x407c6e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407c6e
mov eax, dword [0x766c68]
cmp eax, ebx
je 0x407c6e
push eax
call fcn.0040518e
pop ecx
test eax, eax
je 0x407c6e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x766c60]
call fcn.0040518e
pop ecx
test eax, eax
je 0x407c8e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407c90
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xcaec50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x504000]
push edi
or ebp, 0xffffffff
jmp 0xcaec72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xcaec79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcaec68
mov eax, 1
add ebx, ebx
jne 0xcaec8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xcaec9c
jne 0xcaecbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcaecbb
dec eax
add ebx, ebx
jne 0xcaeca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xcaec80
add ebx, ebx
jne 0xcaecb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xcaed0d
xor ecx, ecx
sub eax, 3
jb 0xcaecd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xcaed42
sar eax, 1
mov ebp, eax
jmp 0xcaecde
add ebx, ebx
jne 0xcaecde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcaecac
inc ecx
add ebx, ebx
jne 0xcaecec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcaecac
add ebx, ebx
jne 0xcaecf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xcaecee
jne 0xcaed0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xcaecee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xcaed2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xcaed1e
jmp 0xcaec6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xcaed2c
add edi, ecx
jmp 0xcaec6e
pop esi
mov edi, esi
mov ecx, 0x1995c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xcaed4a
cmp byte [edi], 0xc4
jne 0xcaed4a
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 0xcaed4f
lea edi, [esi + 0x8aa000]
mov eax, dword [edi]
or eax, eax
je 0xcaedc7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8c08f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8c0a70]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xcaed7c
mov ecx, edi
jns 0xcaedab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8c0a74]
or eax, eax
je 0xcaedc1
mov dword [ebx], eax
add ebx, 4
jmp 0xcaed99
call dword [esi + 0x8c0a84]
mov ebp, dword [esi + 0x8c0a78]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x25f]
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 0xcaedfb
sub esp, 0xffffff80
jmp 0x735c75