joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x634038]
mov edx, dword [0x63403c]
mov dword [esp + 0x14], 0
push esi
lea ecx, [eax + eax]
push edi
or ecx, edx
lea edx, [esp + 0x10]
mov dword [esp + 0x18], ecx
push edx
fild qword [esp + 0x1c]
push 0x20019
push 0
mov esi, 0x190
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
fadd qword [0x634050]
push 0x80000001
mov edi, esi
fstp qword [0x634050]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4180de
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push ebp
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
mov ebp, 4
push str.Browse_For_Folder_Width
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call ebx
test eax, eax
jne 0x4180a4
mov edi, dword [esp + 0x1c]
xor esi, esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Browse_For_Folder_Height
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call ebx
pop ebp
pop ebx
test eax, eax
jne 0x4180d3
or esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
mov eax, esi
pop edi
pop esi
add esp, 0x18
ret

Function at 0x62ad55
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x634420
cmp edx, dword [eax]
je 0x62ad77
add eax, 8
inc ecx
cmp eax, 0x6344b0
jl 0x62ad68
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x634420]
jne 0x62aea5
mov eax, dword [0x638db0]
cmp eax, 1
je 0x62ae7f
test eax, eax
jne 0x62ada8
cmp dword [0x634348], 1
je 0x62ae7f
cmp edx, 0xfc
je 0x62aea5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62addf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062b740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062bbd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62ae22
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062bbd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x630a4c
push edi
call fcn.0062daa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062b740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062b750
lea eax, [ebp - 0xa0]
push 0x630a2c
push eax
call fcn.0062b750
push dword [esi + 0x634424]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062b750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062da14
add esp, 0x2c
pop edi
jmp 0x62aea5
lea eax, [ebp + 8]
lea esi, [esi + 0x634424]
push 0
push eax
push dword [esi]
call fcn.0062bbd0
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 0x4c4e80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x82000]
push edi
jmp 0x4c4e9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c4ea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c4e90
mov eax, 1
add ebx, ebx
jne 0x4c4eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c4ec4
jne 0x4c4ee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c4ee3
dec eax
add ebx, ebx
jne 0x4c4ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c4ea8
add ebx, ebx
jne 0x4c4edf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c4f35
xor ecx, ecx
sub eax, 3
jb 0x4c4efb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c4f6a
sar eax, 1
mov ebp, eax
jmp 0x4c4f06
add ebx, ebx
jne 0x4c4f06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c4ed4
inc ecx
add ebx, ebx
jne 0x4c4f14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c4ed4
add ebx, ebx
jne 0x4c4f21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c4f16
jne 0x4c4f32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c4f16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c4f54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c4f46
jmp 0x4c4e96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c4f54
add edi, ecx
jmp 0x4c4e96
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c4f72
cmp byte [edi], 0x13
jne 0x4c4f72
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 0x4c4f77
lea edi, [esi + 0xc0000]
mov eax, dword [edi]
or eax, eax
je 0x4c4fef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd7df8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd7f4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c4fa4
mov ecx, edi
jns 0x4c4fd3
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 + 0xd7f50]
or eax, eax
je 0x4c4fe9
mov dword [ebx], eax
add ebx, 4
jmp 0x4c4fc1
call dword [esi + 0xd7f60]
mov ebp, dword [esi + 0xd7f54]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4c5023
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x10001000
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10021e28
call fcn.10007950
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x10001068
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x10001068
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x10001068
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x10001068
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10001071
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.100079a0
ret
Function at 0x10001169
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x1000118c
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x1000118f
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x100011a2
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x100011a9
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x10079e4c]
mov ecx, dword [0x10079e48]
test eax, eax
jne 0x100011c3
test ecx, ecx
je 0x100011d8
mov eax, ecx
mov dword [0x10079e4c], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x100011d8
cmp edx, dword [ebp - 4]
jb 0x100011d8
cmp edx, dword [ebp - 8]
jbe 0x100012a9
mov eax, ecx
test ecx, ecx
jmp 0x100011fc
test eax, eax
je 0x100011f7
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100011f7
cmp ecx, dword [ebp - 4]
jb 0x100011f7
cmp ecx, dword [ebp - 8]
jbe 0x100012a9
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x10079e4c], eax
jne 0x100011de
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x1000133e
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10001229
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000133e
cmp dword [ebp - 0x30], ebx
jne 0x10001248
cmp dword [ebp - 0x34], ebx
jae 0x1000125b
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x10001217
jmp 0x1000133e
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10079e4c], eax
test eax, eax
je 0x1000133e
mov ecx, dword [0x10079e48]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x10079e48], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x1000129b
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x10001343
cmp esi, dword [ebp - 8]
ja 0x10001343
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.10008680
add esp, 0xc
mov eax, esi
jmp 0x10001345
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x100012ea
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001343
cmp dword [ebp - 0x14], ebx
jne 0x10001335
cmp dword [ebp - 0x18], ebx
jb 0x10001335
movzx ecx, si
test ecx, ecx
je 0x10001319
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10079e4c], eax
test eax, eax
jne 0x10001277
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x100012d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000137d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x10079e54], edi
je 0x10001390
mov eax, 0x10dd
jmp 0x100013eb
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x10079e54
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x10001389
push esi
mov esi, dword [0x10079e48]
mov dword [0x10079e50], edi
mov dword [0x10079e64], edi
mov dword [0x10079e60], edi
mov dword [0x10079e58], edi
mov dword [0x10079e5c], edi
jmp 0x100013e4
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x100013ce
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x100013ee
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10079e54], eax
je 0x10001404
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x10079e64]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1000144f
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x10001440
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x10001440
call fcn.1000134a
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.100079b7
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x10001413
mov dword [0x10079e64], ebx
call fcn.10001142
mov esi, dword [0x10079e60]
cmp esi, ebx
je 0x1000147c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.100079b7
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x10001464
pop edi
pop esi
mov dword [0x10079e60], ebx
mov dword [0x10079e54], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x100016d3
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10079e58]
test eax, eax
jne 0x10001743
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x100016ef
xor eax, eax
jmp 0x10001742
push esi
push 8
call fcn.10006bef
mov esi, eax
pop ecx
test esi, esi
jne 0x10001703
push 8
pop edi
jmp 0x1000171e
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000172f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.100079b7
pop ecx
and dword [0x10079e5c], 0
mov dword [0x10079e58], edi
mov eax, edi
jmp 0x10001741
mov eax, dword [0x10079e60]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x10079e60], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x100026b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100026d7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x100023f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x100026f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10023040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.10008680
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.100026e0
push dword [eax + 4]
push dword [eax]
call fcn.1000bfc0
add esp, 0x1c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006be1
mov esp, ebp
pop ebp
ret

Function at 0x1000c82e
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100108d9
push ebx
push esi
call fcn.10010805
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10010799
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10010886
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100108d8
push edi
push eax
call fcn.1000d4fc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100108a6
call fcn.1000d4c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100108d7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10010799
add esp, 0x20
test eax, eax
jne 0x100108c5
push edi
call fcn.1000d4c2
jmp 0x100108cd
push ebx
call fcn.1000d4c2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10010b46
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001cd80
push 0x1001cd78
push str.FlsAlloc
push 0x1f
call fcn.10010a62
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010b7a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001a174]
call esi
jmp 0x10010b80
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10010bc4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001cd90
push 0x1001cd88
push str.FlsGetValue
push 0x21
call fcn.10010a62
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010bfb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001a174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10010c03
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001cd98
push 0x1001cd90
push str.FlsSetValue
push 0x22
call fcn.10010a62
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010c3d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001a174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10018350
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001837d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001837d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x421bd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421bf2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421be8
mov eax, 1
add ebx, ebx
jne 0x421c0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421c00
jne 0x421c1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c00
xor ecx, ecx
sub eax, 3
jb 0x421c30
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421ca2
mov ebp, eax
add ebx, ebx
jne 0x421c3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421c48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421c6c
inc ecx
add ebx, ebx
jne 0x421c58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421c4d
jne 0x421c69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c4d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421c8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421c7d
jmp 0x421bee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421c8c
add edi, ecx
jmp 0x421bee
pop esi
mov edi, esi
mov ecx, 0x843
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421caa
cmp byte [edi], 0xd
jne 0x421caa
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 0x421caf
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421d27
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2293c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x229f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421cdc
mov ecx, edi
jns 0x421d0b
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 + 0x229f4]
or eax, eax
je 0x421d21
mov dword [ebx], eax
add ebx, 4
jmp 0x421cf9
call dword [esi + 0x229f8]
popal
jmp section.UPX0
Function at 0x5c6255
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x5c6272
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5c6263
add dl, dl
jne 0x5c627d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5c62c9
xor eax, eax
add dl, dl
jne 0x5c628a
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5c6366
add dl, dl
jne 0x5c6299
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5c62a4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5c62af
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5c62ba
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x5c62c4
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x5c6269
mov eax, 1
add dl, dl
jne 0x5c62d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5c62e2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5c62ce
sub eax, 2
jne 0x5c6311
mov ecx, 1
add dl, dl
jne 0x5c62f7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5c6302
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5c62ee
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5c6269
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x5c6328
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5c6333
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5c631f
cmp eax, 0x7d00
jae 0x5c6356
cmp eax, 0x500
jb 0x5c6351
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5c6269
cmp eax, 0x7f
ja 0x5c6359
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5c6269
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x5c6382
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5c6269
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x40b280
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426e2c]
jne 0x40b28a
repz ret
jmp fcn.0041385c

Function at 0x4214eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426e2c]
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.0041034a
and dword [ebp - 0x14], 0
cmp dword [0x47a644], 0
mov dword [ebp - 0x18], eax
jne 0x42159e
push 0x404378
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421646
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40436c
push ebx
call edi
test eax, eax
je 0x421646
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40435c
push ebx
mov dword [0x47a644], eax
call edi
push eax
call esi
push 0x404348
push ebx
mov dword [0x47a648], eax
call edi
push eax
call esi
push 0x40432c
push ebx
mov dword [0x47a64c], eax
call edi
push eax
call esi
mov dword [0x47a654], eax
test eax, eax
je 0x42159e
push 0x404314
push ebx
call edi
push eax
call esi
mov dword [0x47a650], eax
mov eax, dword [0x47a650]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4215f7
cmp dword [0x47a654], ecx
je 0x4215f7
push eax
call esi
push dword [0x47a654]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4215f7
test ebx, ebx
je 0x4215f7
call edi
test eax, eax
je 0x4215ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4215ee
test byte [ebp - 8], 1
jne 0x4215f7
or dword [ebp + 0x10], 0x200000
jmp 0x42162a
mov eax, dword [0x47a648]
cmp eax, dword [ebp - 0x18]
je 0x42162a
push eax
call esi
test eax, eax
je 0x42162a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42162a
mov eax, dword [0x47a64c]
cmp eax, dword [ebp - 0x18]
je 0x42162a
push eax
call esi
test eax, eax
je 0x42162a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47a644]
call esi
test eax, eax
je 0x421646
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x421648
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b280
leave
ret