joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
movzx ecx, al
push esi
mov esi, dword [ecx*4 + 0x40e488]
cmp esi, 0xffffffff
jne 0x40470b
push eax
call fcn.004045b0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x404714
test esi, esi
je 0x404714
mov eax, dword [0x40eb44]
test eax, eax
je 0x40471c
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
mov edx, 0x200
mul edx
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push 0
test al, 1
movzx eax, byte [esp + 0x20]
push edx
je 0x404771
shl eax, 9
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
test eax, eax
setne dl
pop esi
dec edx
mov eax, edx
add esp, 8
ret
shl eax, 9
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
test eax, eax
setne dl
pop esi
dec edx
mov eax, edx
add esp, 8
ret

Function at 0x404790
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x40e4c8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x4047e3
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x4047fa
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x4048fc
dec eax
je 0x404893
dec eax
je 0x40480f
or eax, 0xffffffff
mov ecx, dword [esp + 0xac]
call fcn.004058a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x40482f
mov eax, 4
mov ecx, dword [esp + 0xac]
call fcn.004058a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x404872
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x404853
mov eax, 5
mov ecx, dword [esp + 0xac]
call fcn.004058a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edx, edx
cmp eax, 1
setne dl
add edx, 6
mov eax, edx
mov ecx, dword [esp + 0xac]
call fcn.004058a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp eax, 6
setne cl
dec ecx
and ecx, 9
dec ecx
mov eax, ecx
mov ecx, dword [esp + 0xac]
call fcn.004058a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 4
jne 0x4047fa
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4048bd
mov eax, 1
mov ecx, dword [esp + 0xac]
call fcn.004058a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x4048d9
mov eax, 2
mov ecx, dword [esp + 0xac]
call fcn.004058a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edx, edx
cmp eax, 0x5a
sete dl
lea edx, [edx*4 - 1]
mov eax, edx
mov ecx, dword [esp + 0xac]
call fcn.004058a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xac]
xor eax, eax
call fcn.004058a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405693
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40bbe8
call fcn.00408a30
mov edi, 0x94
mov eax, edi
call fcn.00405540
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40eb88], ecx
mov eax, dword [esi + 4]
mov dword [0x40eb94], eax
mov edx, dword [esi + 8]
mov dword [0x40eb98], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40eb8c], esi
cmp ecx, 2
je 0x4056f3
or esi, 0x8000
mov dword [0x40eb8c], esi
shl eax, 8
add eax, edx
mov dword [0x40eb90], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40572e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40572e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405746
cmp eax, 0x20b
je 0x405733
mov dword [ebp - 0x1c], esi
jmp 0x40575a
cmp dword [ecx + 0x84], 0xe
jbe 0x40572e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405754
cmp dword [ecx + 0x74], 0xe
jbe 0x40572e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004060af
pop ecx
test eax, eax
jne 0x405786
cmp dword [0x40eb54], 1
jne 0x405773
call fcn.004081fe
push 0x1c
call fcn.00408087
push 0xff
call fcn.00407eec
pop ecx
pop ecx
call fcn.004089a7
mov dword [ebp - 4], esi
call fcn.004087fc
test eax, eax
jge 0x40579f
push 0x1b
call fcn.0040566e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x410120], eax
call fcn.004086da
mov dword [0x40eb4c], eax
call fcn.00408638
test eax, eax
jge 0x4057c5
push 8
call fcn.0040566e
pop ecx
call fcn.00408405
test eax, eax
jge 0x4057d6
push 9
call fcn.0040566e
pop ecx
push 1
call fcn.00407f1c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4057ec
push eax
call fcn.0040566e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004083a8
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40580d
movzx eax, word [ebp - 0x40]
jmp 0x405810
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402ac0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40582e
push edi
call fcn.00408047
call fcn.00408069
jmp 0x405860
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00408a6b
ret
Function at 0x407f86
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40ebc8], esi
push edi
jne 0x407fa6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40ebc4], esi
mov byte [0x40ebc0], al
jne 0x40800c
mov ecx, dword [0x40fec8]
test ecx, ecx
je 0x407fed
mov eax, dword [0x40fec4]
sub eax, 4
cmp eax, ecx
jmp 0x407fe6
mov eax, dword [eax]
test eax, eax
je 0x407fd8
call eax
mov eax, dword [0x40fec4]
sub eax, 4
cmp eax, dword [0x40fec8]
mov dword [0x40fec4], eax
jae 0x407fd0
mov eax, 0x40e024
mov esi, 0x40e02c
cmp eax, esi
mov edi, eax
jae 0x40800c
mov eax, dword [edi]
test eax, eax
je 0x408005
call eax
add edi, 4
cmp edi, esi
jb 0x407ffd
mov eax, 0x40e030
mov esi, 0x40e038
cmp eax, esi
mov edi, eax
jae 0x40802b
mov eax, dword [edi]
test eax, eax
je 0x408024
call eax
add edi, 4
cmp edi, esi
jb 0x40801c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x408045
push dword [ebp + 8]
mov dword [0x40ebc8], 1
call fcn.00407eec
pop ebp
ret

Function at 0x408087
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e4c8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e5e0]
je 0x4080bc
inc eax
cmp eax, 0x13
jb 0x4080ad
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e5e0]
jne 0x4081e2
mov eax, dword [0x40eb54]
cmp eax, 1
je 0x4081ba
cmp eax, edx
jne 0x4080ec
cmp dword [0x40e4c4], 1
je 0x4081ba
cmp ecx, 0xfc
je 0x4081e2
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408122
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00409bd0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00409710
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408156
mov eax, edi
push eax
call fcn.00409710
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c120
push edi
call fcn.00404eb0
add esp, 0x10
push edi
call fcn.00409710
push dword [esi + 0x40e5e4]
mov ebx, eax
call fcn.00409710
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405540
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00409bd0
push edi
push ebx
call fcn.00409be0
push 0x40c100
push ebx
call fcn.00409be0
push dword [esi + 0x40e5e4]
push ebx
call fcn.00409be0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00409acc
add esp, 0x2c
jmp 0x4081e2
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e5e4]
push dword [esi]
call fcn.00409710
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004058a0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40915c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405540
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4091f7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40eb88]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4091f7
cmp eax, 1
je 0x409218
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4091f7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4091c4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4091f3
xor eax, eax
inc eax
jmp 0x409237
cmp edi, eax
jae 0x4091fb
xor eax, eax
jmp 0x409237
cmp eax, esi
jae 0x409202
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40eb88]
jmp 0x40921b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4093fa
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40fda4]
mov eax, dword [0x40e4c8]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4095c0
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40fdc0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4095c0
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x409464
xor eax, eax
jmp 0x4095d4
test al, 0x20
je 0x409475
push 2
push edi
push edi
push ecx
call fcn.0040a4dc
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40954a
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x409591
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4094d7
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4094c8
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4094aa
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409517
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x409523
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40949e
jmp 0x409525
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4095bb
cmp dword [ebp + 0x3a4], edi
je 0x409591
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x409583
mov dword [0x40eb80], eax
jmp 0x4095c7
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409575
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x409525
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x409525
push dword [ebp + 0x3a4]
call fcn.0040a3c7
pop ecx
jmp 0x4095d1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4095a9
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40945d
mov dword [0x40eb7c], 0x1c
mov dword [0x40eb80], edi
jmp 0x4095d1
sub eax, dword [ebp - 0x7c]
jmp 0x4095d4
and dword [0x40eb80], 0
mov dword [0x40eb7c], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004058a0
add ebp, 0x39c
leave
ret
Function at 0x409acc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40ed14], ebx
push esi
push edi
jne 0x409b4c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409b87
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40c88c
push edi
call esi
test eax, eax
mov dword [0x40ed14], eax
je 0x409b87
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40ed18], eax
call esi
cmp dword [0x40eb88], 2
mov dword [0x40ed1c], eax
jne 0x409b4c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40ed24], eax
je 0x409b4c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40ed20], eax
mov eax, dword [0x40ed20]
test eax, eax
je 0x409b91
call eax
test eax, eax
je 0x409b78
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40ed24]
test eax, eax
je 0x409b78
test byte [ebp - 8], 1
jne 0x409b91
cmp dword [0x40eb94], 4
jb 0x409b8b
or byte [ebp + 0x12], 0x20
jmp 0x409bb0
xor eax, eax
jmp 0x409bc0
or byte [ebp + 0x12], 4
jmp 0x409bb0
mov eax, dword [0x40ed18]
test eax, eax
je 0x409bb0
call eax
mov ebx, eax
test ebx, ebx
je 0x409bb0
mov eax, dword [0x40ed1c]
test eax, eax
je 0x409bb0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40ed14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a04d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40a07b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40a082
cmp ebx, dword [eax + 4]
jae 0x40a082
xor eax, eax
jmp 0x40a272
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40a093
xor eax, eax
inc eax
jmp 0x40a271
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40a0a9
cmp ecx, edx
jae 0x40a1ee
cmp dword [eax + 4], 0
je 0x40a0b2
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40a09a
cmp dword [ebp + 8], 0
je 0x40a0d4
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40a1ee
cmp eax, esi
jae 0x40a1ee
mov eax, dword [0x40ed28]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40a0f9
cmp dword [esi*4 + 0x40ed30], edi
je 0x40a1f2
inc esi
cmp esi, eax
jl 0x40a0e7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a26e
cmp dword [ebp - 8], 0x1000000
jne 0x40a26e
test byte [ebp - 0xc], 0xcc
je 0x40a177
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a26e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a26e
cmp word [eax + 0x18], 0x10b
jne 0x40a26e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a26e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40a177
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40a177
test byte [ecx + 0x27], 0x80
jne 0x40a1ee
push 1
push 0x40ed70
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40a08b
mov ecx, dword [0x40ed28]
test ecx, ecx
mov edx, ecx
jle 0x40a1ab
lea eax, [ecx*4 + 0x40ed2c]
cmp dword [eax], edi
je 0x40a1ab
dec edx
sub eax, 4
test edx, edx
jg 0x40a19f
test edx, edx
jne 0x40a1dc
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40a1b8
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40a1d0
lea eax, [edx*4 + 0x40ed30]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40a1be
cmp ecx, 0x10
jge 0x40a1dc
inc ecx
mov dword [0x40ed28], ecx
push 0
push 0x40ed70
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40a08b
xor eax, eax
jmp 0x40a271
test esi, esi
jle 0x40a08b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40ed70
call ebx
test eax, eax
jne 0x40a08b
cmp dword [esi*4 + 0x40ed30], edi
je 0x40a248
mov eax, dword [0x40ed28]
lea esi, [eax - 1]
test esi, esi
jl 0x40a236
cmp dword [esi*4 + 0x40ed30], edi
je 0x40a232
dec esi
jns 0x40a226
test esi, esi
jge 0x40a246
cmp eax, 0x10
jge 0x40a241
inc eax
mov dword [0x40ed28], eax
lea esi, [eax - 1]
jmp 0x40a248
je 0x40a260
xor ecx, ecx
test esi, esi
jl 0x40a260
lea eax, [ecx*4 + 0x40ed30]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a24e
push 0
push 0x40ed70
call ebx
jmp 0x40a08b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408f90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x408fb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408fa8
mov eax, 1
add ebx, ebx
jne 0x408fcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408fc0
jne 0x408fdc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408fc0
xor ecx, ecx
sub eax, 3
jb 0x408ff0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409062
mov ebp, eax
add ebx, ebx
jne 0x408ffb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40902c
inc ecx
add ebx, ebx
jne 0x409018
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40900d
jne 0x409029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40900d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40904c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40903d
jmp 0x408fae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40904c
add edi, ecx
jmp 0x408fae
pop esi
mov edi, esi
mov ecx, 0x62
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40906a
cmp byte [edi], 1
jne 0x40906a
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 0x40906f
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4090e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9930]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x99a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40909c
mov ecx, edi
jns 0x4090cb
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 + 0x99ac]
or eax, eax
je 0x4090e1
mov dword [ebx], eax
add ebx, 4
jmp 0x4090b9
call dword [esi + 0x99b0]
popal
jmp 0x401dcf

Function at 0x40ed59
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x40eae0
pop ecx
sub esi, esi
add edi, edi
call fcn.0040ed8e
and edi, edi
xor dword [edx], ecx
inc edx
cmp edx, eax
jne fcn.0040ed59
sub esp, 4
mov dword [esp], 0xd604a196
mov edi, dword [esp]
add esp, 4
mov edi, 0xaecdb6e1
ret
Function at 0x1001871
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
jne 0x100188a
xor eax, eax
jmp 0x10018e6
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1001258
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10018d6
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push edi
push 0x1001238
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10018d6
cmp dword [ebp + 8], 4
jne 0x10018d6
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], edi
je 0x10018e4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop ebx
leave
ret 4

Function at 0x1001a64
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
push 0x1001959
call dword [sym.imp.msvcrt.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x1004064], eax
jne 0x1001a97
and dword [0x1004064], 0
push 0x12e
call fcn.01001903
pop ebp
ret 4

Function at 0x1001d0b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1004028]
push ebx
mov ebx, dword [0x1001048]
push esi
xor esi, esi
cmp dword [0x1004090], esi
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x214], 2
jne 0x1001da9
push dword [0x10040b0]
lea eax, [ebp - 0x210]
push 0x10012cc
push 0x10012ac
push eax
call dword [0x10010ac]
add esp, 0x10
push esi
push 0x40000000
push 3
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [0x1001068]
cmp eax, 0xffffffff
mov dword [0x1004090], eax
jne 0x1001da5
push 0x4e20
lea eax, [ebp - 0x210]
push eax
call dword [0x1001064]
call ebx
mov edi, eax
cmp edi, esi
jne 0x1001daf
cmp dword [0x1004090], esi
je 0x1001d3b
jmp 0x1001daf
xor edi, edi
jmp 0x1001daf
mov edi, dword [ebp - 0x214]
mov eax, dword [0x1004090]
cmp eax, 0xffffffff
jne 0x1001dc5
mov dword [0x1004040], 1
jmp 0x1001e11
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [0x1001060]
test eax, eax
jne 0x1001ddf
call ebx
mov edi, eax
jmp 0x1001db9
push esi
push esi
push 0x1001c0a
call dword [sym.imp.msvcrt.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x1004068], eax
jne 0x1001e11
mov dword [0x1004068], esi
mov dword [0x1004040], 1
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01002922
leave
ret