joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014a2e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x103ee390
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x1014a36c
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x1014a36c
cmp ebx, 0x15f90
jl 0x1014a363
cmp ebx, 0x1d4c0
jge 0x1014a340
mov eax, 0x32
jmp 0x1014a365
cmp ebx, 0x2bf20
jge 0x1014a34f
mov eax, 0x64
jmp 0x1014a365
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x1014a365
mov eax, 0xfa
jmp 0x1014a365
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x1014a380
inc ebx
cmp ebx, 0x57e40
jl 0x1014a2f8
mov eax, dword [ebp - 4]
test eax, eax
je 0x1014a39a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.10157620
add esp, 4
mov eax, dword [0x103ee394]
test eax, eax
jne 0x1014a3d0
cmp dword [0x101e5360], 1
je 0x1014a469
xor ebx, ebx
xor esi, esi
cmp dword [0x103ee38c], 0
je 0x1014a426
mov dword [0x103ee394], 1
cmp dword [0x101e5360], 1
je 0x1014a411
mov dword [0x103ee390], 0
push dword [0x103ee388]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x1014a4a7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [0x101e5360], 1
je 0x1014a487
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.1013c702
push ebx
push 0x16
call fcn.1013c702
add esp, 0x10
jmp 0x1014a3d0
mov dword [0x103ee38c], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x103ee388], eax
cmp eax, 0xffffffff
jne 0x1014a44d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1014a3bd
push 0x1014a0b0
call fcn.10129e76
push 0x1014a070
call fcn.10129e76
add esp, 8
jmp 0x1014a3bd
push 1
push 2
call fcn.1013c702
mov esi, eax
push 1
push 0x16
call fcn.1013c702
add esp, 0x10
mov ebx, eax
jmp 0x1014a3b4
push 1
push 2
call fcn.1013c702
push 1
push 0x16
mov dword [ebx + 0x64], eax
call fcn.1013c702
add esp, 0x10
mov dword [ebx + 0x68], eax
jmp 0x1014a405
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.10146480
add esp, 0xc
test eax, eax
je 0x1014a4ce
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x101e52bc]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x101e52b8]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x101e52b4]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x101e52b0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x1014a4d6
push dword [ebp - 0x10]
push dword [0x103ee388]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0x10]
jmp 0x1014a3f3

Function at 0x1014b300
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x1014c170
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp eax, 0xfffffffa
mov dword [ebp - 0x10], ebx
mov ebx, ecx
lea ecx, [eax + 5]
jg 0x1014c185
mov ecx, eax
mov dword [ebp - 4], eax
mov eax, 0xfb93e673
mov dword [ebp - 8], esi
mov esi, edx
mul ecx
shr edx, 9
mov dword [ebp - 0xc], edi
imul edi, edx, 0x209
sub ecx, edi
mov edi, dword [0x101e5360]
cmp edi, 2
lea eax, [ecx + 0x69]
mov dword [esi], eax
jge 0x1014c1e1
lea ecx, [ecx*4 + 0x1a4]
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [edx + 0x103ee3c4]
test ecx, ecx
jne 0x1014c26a
mov dword [edx + 0x103ee3c4], 1
mov eax, dword [esi]
jmp 0x1014c26a
lea eax, [ecx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x103ee3c4]
push ecx
call fcn.1014a570
add esp, 4
test eax, eax
jne 0x1014c262
mov edx, dword [esi]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
cmp dword [edx + 0x103ee3c0], 0
je 0x1014c2da
mov dword [edx + 0x103ee3c4], 0
mov edx, dword [esi]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x103ee3c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x103ee3c4]
push ecx
call fcn.1014a570
add esp, 4
mov edi, dword [0x101e5360]
mov eax, dword [esi]
cmp edi, 1
je 0x1014c2bb
mov edx, dword [ebp + 0x14]
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
mov ecx, dword [eax + 0x103ee3d8]
xor eax, eax
mov dword [ebx], ecx
test ecx, ecx
je 0x1014c2b3
mov esi, dword [ebp - 4]
cmp esi, dword [ecx + 0x100]
jbe 0x1014c2a2
mov eax, ecx
mov ecx, dword [ecx + 0x28]
test ecx, ecx
mov dword [ebx], ecx
jne 0x1014c28f
mov dword [edx], eax
xor eax, eax
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov dword [edx], 0
jmp 0x1014c2a4
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x103ee3d0]
push eax
call fcn.1014a520
add esp, 4
mov eax, dword [esi]
jmp 0x1014c26f
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [esi]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x103ee3c0], eax
mov dword [ecx + 0x103ee3c4], 0
jmp 0x1014c229
Function at 0x1014d410
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x10157450
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x7c]
test esi, esi
mov dword [ebp - 0xc], edi
je 0x1015760c
mov edx, dword [0x101e5360]
mov edi, dword [esi + 0x14]
lea eax, [edi*4]
shl edi, 5
sub edi, eax
cmp edx, 2
lea ebx, [edi + 0x103f2d48]
jge 0x1015749f
mov eax, dword [ebx]
test eax, eax
jne 0x101574e0
mov dword [edi + 0x103f2d48], 1
jmp 0x101574e0
push ebx
call fcn.1014a570
add esp, 4
test eax, eax
jne 0x101574da
cmp dword [edi + 0x103f2d44], 0
je 0x101575ec
mov dword [edi + 0x103f2d48], 0
push 0xffffffffffffffff
push dword [edi + 0x103f2d44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.1014a570
add esp, 4
mov edx, dword [0x101e5360]
cmp edx, 1
je 0x101575d8
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x1015754f
mov eax, dword [0x101e5360]
cmp eax, 1
je 0x10157534
cmp eax, 2
jge 0x1015750f
mov dword [edi + 0x103f2d48], 0
jmp 0x10157525
mov dword [edi + 0x103f2d48], 0
push dword [edi + 0x103f2d44]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push dword [edi + 0x103f2d58]
push dword [edi + 0x103f2d54]
call fcn.1014a550
add esp, 8
mov eax, dword [0x101e5360]
jmp 0x101574fe
mov edx, dword [esi]
test edx, edx
je 0x1015755b
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x10157566
mov dword [eax], edx
jmp 0x1015756c
mov dword [edi + 0x103f2d40], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [0x101e5360]
cmp eax, 1
je 0x101575bd
cmp eax, 2
jge 0x10157591
mov dword [edi + 0x103f2d48], 0
jmp 0x101575a7
mov dword [edi + 0x103f2d48], 0
push dword [edi + 0x103f2d44]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.10146540
push esi
call fcn.10146540
add esp, 8
jmp 0x10157525
push dword [edi + 0x103f2d58]
push dword [edi + 0x103f2d54]
call fcn.1014a550
add esp, 8
mov eax, dword [0x101e5360]
jmp 0x10157580
lea eax, [edi + 0x103f2d54]
push eax
call fcn.1014a520
add esp, 4
jmp 0x101574e9
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x103f2d44], eax
mov dword [edi + 0x103f2d48], 0
jmp 0x101574c3
xor eax, eax
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1016634c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ebx
mov ebx, edx
mov dword [ebp - 4], edi
mov edx, eax
mov dword [ecx], 0
cmp dword [0x103f788c], 0
je 0x10166421
cmp dword [ebp + 0x20], 2
je 0x10166383
cmp dword [ebp + 0x20], 1
jne 0x10166392
mov eax, 0xffffffff
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x101663a2
cmp dword [ebp + 0x20], 0xfffffffa
je 0x101664e6
cmp dword [ebp + 0x20], 0
je 0x101664f2
xor ecx, ecx
cmp dword [ebp + 0x18], 0
je 0x101663d5
cmp dword [ebp + 0x1c], 0
je 0x101663d5
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call fcn.1017bf00
push edi
call fcn.1017bf30
mov edx, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10166421
push edi
push esi
push ebx
call fcn.1017bf00
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp esi, 0xffffffff
mov dword [eax], esi
je 0x10166516
push 0
push edi
push 2
push 0x101bf09c
call fcn.1017bf00
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov eax, 1
mov byte [esi + ebx], 0xa
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
inc dword [edx]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [edi], 0
je 0x10166449
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x1016644e
mov edi, 0x20000
cmp esi, edi
jbe 0x101664c2
cmp dword [ebp + 0x20], 0
je 0x101664c2
test ecx, ecx
je 0x10166466
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x1016646b
mov edi, 0x20000
mov dword [ebp - 0x10], edx
push 0
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101664b0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
add ebx, edx
sub esi, edx
add dword [ecx], edx
cmp dword [ebp + 0x24], 0
je 0x101664a5
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + 0x13c]
test edx, edx
jne 0x101664aa
mov edx, 0x20000
cmp esi, edx
ja 0x101664b0
mov edi, esi
test esi, esi
je 0x101664d9
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jne 0x101664d9
test eax, eax
jne 0x1016646e
jmp 0x101664d9
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, edx
mov ecx, 1
jmp 0x101663b4
mov dword [ebp - 0x10], edx
call fcn.1017bf30
mov edx, dword [ebp - 0x10]
mov edi, eax
cmp dword [0x103f788c], 0
je 0x101663d9
mov ecx, 1
jmp 0x101663ae
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf44
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 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
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 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
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 0x41cf6c
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 0x41f0a0
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], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x50c58e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
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 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
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 0x50c595
ret
Function at 0x4202d8
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 word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x50d8f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x52a54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x52a54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x529378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d8fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x43a420
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x28000]
push edi
jmp 0x43a43a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43a441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43a430
mov eax, 1
add ebx, ebx
jne 0x43a453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43a448
jne 0x43a464
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43a448
xor ecx, ecx
sub eax, 3
jb 0x43a478
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43a4ea
mov ebp, eax
add ebx, ebx
jne 0x43a483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43a490
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43a4b4
inc ecx
add ebx, ebx
jne 0x43a4a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43a495
jne 0x43a4b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43a495
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43a4d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43a4c5
jmp 0x43a436
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43a4d4
add edi, ecx
jmp 0x43a436
pop esi
mov edi, esi
mov ecx, 0xa88
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43a4f2
cmp byte [edi], 0x12
jne 0x43a4f2
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 0x43a4f7
lea edi, [esi + 0x38000]
mov eax, dword [edi]
or eax, eax
je 0x43a56f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4b6dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4b7bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43a524
mov ecx, edi
jns 0x43a553
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 + 0x4b7c4]
or eax, eax
je 0x43a569
mov dword [ebx], eax
add ebx, 4
jmp 0x43a541
call dword [esi + 0x4b7c0]
mov ebp, dword [esi + 0x4b7c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x43a5a3
sub esp, 0xffffff80
jmp 0x41c35f
Function at 0x401030
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00407600
mov eax, dword [0x424624]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], 0x800
xor eax, eax
mov word [ebp - 0x1004], ax
push 0xffe
push 0
lea ecx, [ebp - 0x1002]
push ecx
call fcn.00408b80
add esp, 0xc
call fcn.00402290
lea edx, [ebp + 0xc]
mov dword [ebp - 0x1008], edx
mov eax, dword [ebp - 0x1008]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xfff
lea edx, [ebp - 0x1004]
push edx
call fcn.00405650
add esp, 0x10
mov dword [ebp - 0x1008], 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004075e1
mov esp, ebp
pop ebp
ret
Function at 0x401230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a4bb
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x424624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x248], 0x1f4
mov dword [ebp - 0x24c], 0x7d0
mov dword [ebp - 0x244], 0x104
mov dword [ebp - 0x23c], 0
push 0x41b2bc
lea ecx, [ebp - 0x230]
call fcn.00402990
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.00404600
push eax
push str.InstallerProducts_sSourceList_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x23c]
push ecx
push 0x20119
push 0
lea edx, [ebp - 0x218]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x4012fd
jmp 0x401330
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x240]
add eax, 0x1f4
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0x7d0
jbe 0x401327
jmp 0x401330
cmp dword [ebp - 0x234], 2
je 0x4012cc
cmp dword [ebp - 0x234], 0
je 0x401399
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x234]
push edx
push str._inst__RegOpenKeyEx_Fail__d___errcode:__d_n
call fcn.00401030
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402880
mov ecx, dword [ebp - 0x238]
or ecx, 1
mov dword [ebp - 0x238], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402bf0
mov eax, dword [ebp + 8]
jmp 0x401487
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
push ecx
push 0
push str.PackageName
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x234], 0
jne 0x40140b
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00402cd0
lea ecx, [ebp - 0x230]
call fcn.00404600
push eax
push str._inst__PackageName:__s_n
call fcn.00401030
add esp, 8
jmp 0x401454
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._inst__Get_PackageName_Fail__errcode:__d_n
call fcn.00401030
add esp, 8
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402880
mov eax, dword [ebp - 0x238]
or eax, 1
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402bf0
mov eax, dword [ebp + 8]
jmp 0x401487
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402880
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402bf0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004075e1
mov esp, ebp
pop ebp
ret