joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403918
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x445008], 0x8088405
inc edx
mov dword [ebx + 0x445008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41ccc0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41ccf1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccd9
add dl, dl
jne 0x41ccfc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd4d
xor eax, eax
add dl, dl
jne 0x41cd09
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdea
add dl, dl
jne 0x41cd18
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd23
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd2e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd39
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cd43
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cce8
mov eax, 1
add dl, dl
jne 0x41cd5b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd66
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd52
sub eax, ebx
mov ebx, 1
jne 0x41cd99
mov ecx, 1
add dl, dl
jne 0x41cd7f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd8a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd76
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cce8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cdb0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cdbb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cda7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cce8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ce0b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cce8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d90c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d91f
add esp, 0xfffffff0
call fcn.00404100
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403e7c
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d945
cmp dword [esi + 0x58], 0x40
jb 0x41db2b
jmp 0x41d94b
jl 0x41db2b
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.004072cc
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041d540
cmp word [ebx + 0xc], 0x5a4d
jne 0x41db2b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41db2b
cmp ecx, 0x10000
jge 0x41db2b
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d9a6
cmp eax, dword [esi + 0x58]
ja 0x41db2b
jmp 0x41d9ac
jg 0x41db2b
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.004072cc
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041d540
cmp dword [ebx + 0x4c], 0x4550
jne 0x41db2b
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.004072cc
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041d540
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41da63
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41da27
cmp eax, dword [esi + 0x58]
ja 0x41dab4
jmp 0x41da2d
jg 0x41dab4
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.004072cc
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041d540
mov byte [ebx + 4], 1
jmp 0x41dab4
cmp ax, 0x14c
jne 0x41dab4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41da84
cmp eax, dword [esi + 0x58]
ja 0x41dab4
jmp 0x41da86
jg 0x41dab4
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.004072cc
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041d540
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41db2b
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41dae5
cmp eax, dword [esi + 0x58]
ja 0x41db2b
jmp 0x41dae7
jg 0x41db2b
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x430458]
call fcn.00405f20
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041d540
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41db42
call fcn.00404158
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e7cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x431c8b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e87d
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e866
test esi, esi
jbe 0x41e87d
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408d5c
test eax, eax
jne 0x41e858
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e87d
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e835
jmp 0x41e87d
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e87d
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431c92
ret
Function at 0x41f0cc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x43267b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00405060
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41f107
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f120
lea eax, [ebp - 0x10]
mov edx, dword [0x44718c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.004050c0
jmp 0x41f133
lea eax, [ebp - 0x10]
mov edx, dword [0x44718c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.004050c0
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f13f
adc edx, 0
mov edx, dword [edx*4 + 0x445cac]
call fcn.004052b0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00405294
push eax
call fcn.00406f48
mov esi, eax
cmp esi, 0xffffffff
je 0x41f24d
mov eax, 0x40
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00407188
test eax, eax
je 0x41f240
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f240
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.004071e0
mov eax, edi
call fcn.004035ec
mov eax, 0x18
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00407188
test eax, eax
je 0x41f240
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f240
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f240
cmp dx, 0x150
ja 0x41f240
mov eax, edi
call fcn.004035ec
mov eax, 0xe0
call fcn.004035bc
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00407188
test eax, eax
je 0x41f240
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f240
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.0040509c
mov eax, edi
call fcn.004035ec
push esi
call fcn.00406f00
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.004053c0
jne 0x41f265
inc ebx
cmp ebx, 0x19
jne 0x41f0f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432682
lea eax, [ebp - 0x10]
call fcn.00405060
ret
Function at 0x4b1a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f000]
push edi
jmp 0x4b1a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b1aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1a90
mov eax, 1
add ebx, ebx
jne 0x4b1ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b1ac4
jne 0x4b1ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ae3
dec eax
add ebx, ebx
jne 0x4b1ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b1aa8
add ebx, ebx
jne 0x4b1adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b1b35
xor ecx, ecx
sub eax, 3
jb 0x4b1afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b1b6a
sar eax, 1
mov ebp, eax
jmp 0x4b1b06
add ebx, ebx
jne 0x4b1b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ad4
inc ecx
add ebx, ebx
jne 0x4b1b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b1ad4
add ebx, ebx
jne 0x4b1b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b1b16
jne 0x4b1b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b1b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b1b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b1b46
jmp 0x4b1a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b1b54
add edi, ecx
jmp 0x4b1a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b1b72
cmp byte [edi], 0x11
jne 0x4b1b72
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 0x4b1b77
lea edi, [esi + 0xad000]
mov eax, dword [edi]
or eax, eax
je 0x4b1bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb2d58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb2eac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b1ba4
mov ecx, edi
jns 0x4b1bd3
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 + 0xb2eb0]
or eax, eax
je 0x4b1be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b1bc1
call dword [esi + 0xb2ec0]
mov ebp, dword [esi + 0xb2eb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4b1c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x401070
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11b8
call fcn.00401a70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x11b0]
push eax
push 0x20019
push 0
push 0x402124
push 0x80000002
mov dword [ebp - 0x11b0], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4010fc
lea ecx, [ebp - 0x11b4]
push ecx
mov ecx, dword [ebp - 0x11b0]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x11b8]
push eax
push 0
push str.AppenvStubDLLInstallPath
push ecx
mov dword [ebp - 0x11b4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x11b0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x401182
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x20c]
push 0x5c
push edx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x40116c
push str._appenvstub.dll
lea edx, [ebp - 0x20c]
xor ecx, ecx
push 0x104
push edx
mov word [eax], cx
call dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x401182
call fcn.00401000
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401230
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x4011eb
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x3e8
lea edx, [ebp - 0x9dc]
push edx
push 0x68
push esi
call edi
push 0x3e8
lea eax, [ebp - 0x11ac]
push eax
push 0x6d
push esi
call edi
push 0x10
lea ecx, [ebp - 0x11ac]
push ecx
lea edx, [ebp - 0x9dc]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401230
mov esp, ebp
pop ebp
ret 0x10
push str.Start
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401167
mov ecx, dword [ebp + 0x14]
push 0
push 0
push ecx
push 0x4021c0
push ebx
call eax
add esp, 0x14
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401230
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401230
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40123a
repz ret
jmp fcn.00401527
Function at 0x471884
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4718b2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4718d0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004717ea
jmp 0x4718d0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4718d0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004717ea
test edi, edi
mov eax, edi
jne 0x4718ba
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x66e300
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x66e322
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x66e329
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x66e318
mov eax, 1
add ebx, ebx
jne 0x66e33b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x66e330
jne 0x66e34c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x66e330
xor ecx, ecx
sub eax, 3
jb 0x66e360
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x66e3d2
mov ebp, eax
add ebx, ebx
jne 0x66e36b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x66e378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x66e39c
inc ecx
add ebx, ebx
jne 0x66e388
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x66e37d
jne 0x66e399
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x66e37d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x66e3bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x66e3ad
jmp 0x66e31e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x66e3bc
add edi, ecx
jmp 0x66e31e
pop esi
mov edi, esi
mov ecx, 0x5a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x66e3da
cmp byte [edi], 1
jne 0x66e3da
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 0x66e3df
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x66e44e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe3ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe450]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x66e40c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe454]
or eax, eax
je 0x66e448
mov dword [ebx], eax
add ebx, 4
jmp 0x66e429
call dword [esi + 0xe458]
popal
jmp section.UPX0
Function at 0x40e58c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425bd8]
jne 0x40e596
repz ret
jmp fcn.00416c31

Function at 0x41405e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425bd8]
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.0040b3c8
and dword [ebp - 0x14], 0
cmp dword [0x426870], 0
mov dword [ebp - 0x18], eax
jne 0x414111
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4141b9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4141b9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x426870], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x426874], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x426878], eax
call edi
push eax
call esi
mov dword [0x426880], eax
test eax, eax
je 0x414111
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42687c], eax
mov eax, dword [0x42687c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41416a
cmp dword [0x426880], ecx
je 0x41416a
push eax
call esi
push dword [0x426880]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41416a
test ebx, ebx
je 0x41416a
call edi
test eax, eax
je 0x414161
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414161
test byte [ebp - 8], 1
jne 0x41416a
or dword [ebp + 0x10], 0x200000
jmp 0x41419d
mov eax, dword [0x426874]
cmp eax, dword [ebp - 0x18]
je 0x41419d
push eax
call esi
test eax, eax
je 0x41419d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41419d
mov eax, dword [0x426878]
cmp eax, dword [ebp - 0x18]
je 0x41419d
push eax
call esi
test eax, eax
je 0x41419d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x426870]
call esi
test eax, eax
je 0x4141b9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4141bb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e58c
leave
ret

Function at 0x4177b0
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
test edx, edx
je 0x4177d1
push edi
jmp 0x4177c0
movzx edi, byte [eax + ecx*2]
xor di, si
mov word [eax + ecx*2], di
inc ecx
cmp ecx, edx
jb 0x4177c0
pop edi
ret

Function at 0x4177e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 8]
xor ecx, ecx
test esi, esi
je 0x4177f8
lea esp, [esp]
xor byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jb 0x4177f0
pop ebp
ret
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40915c
nop
mov ecx, 0x1f1d3b05
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x13f4256b
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4353bf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042716b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4353f7
xor eax, eax
jmp 0x435423
cmp esi, dword [ebp - 4]
je 0x435420
cmp dword [ebp + 0xc], 0
je 0x435420
push dword [edi + 0x9c]
call fcn.00434fcd
push dword [edi + 0x9c]
mov esi, eax
call fcn.004250ad
pop ecx
pop ecx
cmp esi, eax
je 0x4353f3
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x4015e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, edx
push esi
dec edx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x401618
xor ebx, ebx
inc ecx
movzx esi, ax
shr eax, 8
mov bl, byte [ecx - 1]
xor ebx, esi
and ebx, 0xff
mov esi, dword [ebx*4 + 0x407080]
xor esi, eax
mov eax, esi
mov esi, edx
dec edx
test esi, esi
jne 0x4015ed
pop esi
pop ebx
ret 4
pop esi
pop ebx
ret 4

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

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