joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b668
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 0x43b696
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 0x43b69d
cmp ebx, dword [eax + 4]
jae 0x43b69d
xor eax, eax
jmp 0x43b88d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43b6ae
xor eax, eax
inc eax
jmp 0x43b88c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43b6c4
cmp ecx, edx
jae 0x43b809
cmp dword [eax + 4], 0
je 0x43b6cd
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43b6b5
cmp dword [ebp + 8], 0
je 0x43b6ef
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43b809
cmp eax, esi
jae 0x43b809
mov eax, dword [0x4510a0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43b714
cmp dword [esi*4 + 0x4510a8], edi
je 0x43b80d
inc esi
cmp esi, eax
jl 0x43b702
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43b889
cmp dword [ebp - 8], 0x1000000
jne 0x43b889
test byte [ebp - 0xc], 0xcc
je 0x43b792
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43b889
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43b889
cmp word [eax + 0x18], 0x10b
jne 0x43b889
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43b889
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43b792
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43b792
test byte [ecx + 0x27], 0x80
jne 0x43b809
push 1
push 0x4510e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43b6a6
mov ecx, dword [0x4510a0]
test ecx, ecx
mov edx, ecx
jle 0x43b7c6
lea eax, [ecx*4 + 0x4510a4]
cmp dword [eax], edi
je 0x43b7c6
dec edx
sub eax, 4
test edx, edx
jg 0x43b7ba
test edx, edx
jne 0x43b7f7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43b7d3
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43b7eb
lea eax, [edx*4 + 0x4510a8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43b7d9
cmp ecx, 0x10
jge 0x43b7f7
inc ecx
mov dword [0x4510a0], ecx
push 0
push 0x4510e8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43b6a6
xor eax, eax
jmp 0x43b88c
test esi, esi
jle 0x43b6a6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4510e8
call ebx
test eax, eax
jne 0x43b6a6
cmp dword [esi*4 + 0x4510a8], edi
je 0x43b863
mov eax, dword [0x4510a0]
lea esi, [eax - 1]
test esi, esi
jl 0x43b851
cmp dword [esi*4 + 0x4510a8], edi
je 0x43b84d
dec esi
jns 0x43b841
test esi, esi
jge 0x43b861
cmp eax, 0x10
jge 0x43b85c
inc eax
mov dword [0x4510a0], eax
lea esi, [eax - 1]
jmp 0x43b863
je 0x43b87b
xor ecx, ecx
test esi, esi
jl 0x43b87b
lea eax, [ecx*4 + 0x4510a8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43b869
push 0
push 0x4510e8
call ebx
jmp 0x43b6a6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c551
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.00434d20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43c5ec
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 [0x450cac]
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 0x43c5ec
cmp eax, 1
je 0x43c60d
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 0x43c5ec
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43c5b9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43c5e8
xor eax, eax
inc eax
jmp 0x43c62c
cmp edi, eax
jae 0x43c5f0
xor eax, eax
jmp 0x43c62c
cmp eax, esi
jae 0x43c5f7
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 [0x450cac]
jmp 0x43c610
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 0x43d045
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x451168], ebx
push esi
push edi
jne 0x43d0c5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43d100
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44aac4
push edi
call esi
test eax, eax
mov dword [0x451168], eax
je 0x43d100
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x45116c], eax
call esi
cmp dword [0x450cac], 2
mov dword [0x451170], eax
jne 0x43d0c5
push 0x44aa84
push edi
call esi
test eax, eax
mov dword [0x451178], eax
je 0x43d0c5
push 0x44aa6c
push edi
call esi
mov dword [0x451174], eax
mov eax, dword [0x451174]
test eax, eax
je 0x43d10a
call eax
test eax, eax
je 0x43d0f1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x451178]
test eax, eax
je 0x43d0f1
test byte [ebp - 8], 1
jne 0x43d10a
cmp dword [0x450cb8], 4
jb 0x43d104
or byte [ebp + 0x12], 0x20
jmp 0x43d129
xor eax, eax
jmp 0x43d139
or byte [ebp + 0x12], 4
jmp 0x43d129
mov eax, dword [0x45116c]
test eax, eax
je 0x43d129
call eax
mov ebx, eax
test ebx, ebx
je 0x43d129
mov eax, dword [0x451170]
test eax, eax
je 0x43d129
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x451168]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43d5d0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x43d5e9
or eax, 0xffffffff
jmp 0x43d64a
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x43d646
push 0x3d
push esi
call fcn.0043e9c9
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x43d646
cmp esi, eax
je 0x43d646
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x450ccc]
sete cl
cmp eax, dword [0x450cd0]
mov dword [ebp - 8], ecx
jne 0x43d62c
mov edi, eax
call fcn.0043d56f
mov dword [0x450ccc], eax
cmp eax, ebx
jne 0x43d685
cmp dword [ebp + 0xc], ebx
je 0x43d64e
cmp dword [0x450cd4], ebx
je 0x43d64e
call fcn.0043a85e
test eax, eax
je 0x43d685
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x43d657
xor eax, eax
jmp 0x43d649
push 4
call fcn.00433763
cmp eax, ebx
pop ecx
mov dword [0x450ccc], eax
je 0x43d646
mov dword [eax], ebx
cmp dword [0x450cd4], ebx
jne 0x43d685
push 4
call fcn.00433763
cmp eax, ebx
pop ecx
mov dword [0x450cd4], eax
je 0x43d646
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x450ccc]
call fcn.0043d522
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x43d6e6
cmp dword [esi], ebx
je 0x43d6e6
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00433646
cmp dword [ebp - 8], ebx
pop ecx
jne 0x43d6c9
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x43d727
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x43d6c0
mov eax, edi
shl eax, 2
push eax
push dword [0x450ccc]
call fcn.0043811c
cmp eax, ebx
pop ecx
pop ecx
je 0x43d727
jmp 0x43d722
cmp dword [ebp - 8], ebx
jne 0x43d792
cmp edi, ebx
jge 0x43d6f5
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x450ccc]
call fcn.0043811c
cmp eax, ebx
pop ecx
pop ecx
je 0x43d646
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x450ccc], eax
cmp dword [ebp + 0xc], ebx
je 0x43d77c
push dword [ebp - 4]
call fcn.00435730
inc eax
inc eax
push eax
call fcn.00433763
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x43d77c
push dword [ebp - 4]
push esi
call fcn.00439f20
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x43d775
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00433646
pop ecx
cmp dword [ebp - 8], ebx
je 0x43d78a
push dword [ebp - 4]
call fcn.00433646
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x43d649
push dword [ebp - 4]
call fcn.00433646
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x43d653
Function at 0x43dd55
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x43df29
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x451400]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x43df29
test cl, 0x48
je 0x43ddc0
cmp byte [eax + 5], 0xa
je 0x43ddc0
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43de12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x43ddfa
call fcn.004351a6
mov dword [eax], 9
call fcn.004351af
mov dword [eax], esi
jmp 0x43de0a
cmp eax, 0x6d
je 0x43df29
push eax
call fcn.004351b8
pop ecx
or eax, 0xffffffff
jmp 0x43df2b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x43df24
test eax, eax
je 0x43de39
cmp byte [ebx], 0xa
jne 0x43de39
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x43de42
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x43df1e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x43df0e
cmp al, 0xd
je 0x43de74
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x43df00
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x43de8e
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x43de89
add dword [ebp + 0x10], 2
jmp 0x43dee2
mov dword [ebp + 0x10], eax
jmp 0x43defc
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43deb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43defc
cmp dword [ebp - 0xc], 0
je 0x43defc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x43ded7
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x43dee2
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x43deff
cmp ebx, dword [ebp + 0xc]
jne 0x43dee7
cmp byte [ebp - 1], 0xa
jne 0x43dee7
mov byte [ebx], 0xa
jmp 0x43deff
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043a8ee
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x43df00
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x43de58
jmp 0x43df1e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x43df1e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x43df2b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b0358
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push 0xeb1e080e
das
and ch, byte [ebx - 0x5d]
push ds
cmpsb byte [esi], byte es:[edi]
sub byte [edi], dh
mov edi, 0xe6836b7
fnstenv [esi + 0x13]
stosb byte es:[edi], al
adc byte [edx + 0x1a565031], ch
imul ebx, dword [ecx - 0x77], 0x114fd41b
dec esp
leave
mov esi, 0xf6d8ae28
pushal
mov byte [ecx - 0x35], dl
invalid

Function at 0x4e2548
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x4e2594
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x4e2579
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x4e2589
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4e25a4
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x4e25e3
test ebx, ebx
je 0x4e25b8
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x4e25ad
cmp ecx, 0xfff1
jb 0x4e25c6
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x4e26ce
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x4e2608
Function at 0x65789d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f3b8
cmp edx, dword [eax]
je 0x6578bf
add eax, 8
inc ecx
cmp eax, 0x65f448
jl 0x6578b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f3b8]
jne 0x6579ed
mov eax, dword [0xa64d28]
cmp eax, 1
je 0x6579c7
test eax, eax
jne 0x6578f0
cmp dword [0x65f2e4], 1
je 0x6579c7
cmp edx, 0xfc
je 0x6579ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x657927
lea eax, [ebp - 0x1a4]
push 0x65c9b0
push eax
call fcn.00658280
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00658710
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65796a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00658710
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c9ac
push edi
call fcn.0065a5e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c990
push eax
call fcn.00658280
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00658290
lea eax, [ebp - 0xa0]
push 0x65c98c
push eax
call fcn.00658290
push dword [esi + 0x65f3bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00658290
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c964
push eax
call fcn.0065a554
add esp, 0x2c
pop edi
jmp 0x6579ed
lea eax, [ebp + 8]
lea esi, [esi + 0x65f3bc]
push 0
push eax
push dword [esi]
call fcn.00658710
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 0x432470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
or ebp, 0xffffffff
jmp 0x432492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x432499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x432488
mov eax, 1
add ebx, ebx
jne 0x4324ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4324a0
jne 0x4324bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4324a0
xor ecx, ecx
sub eax, 3
jb 0x4324d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x432542
mov ebp, eax
add ebx, ebx
jne 0x4324db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4324e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43250c
inc ecx
add ebx, ebx
jne 0x4324f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4324ed
jne 0x432509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4324ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43252c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43251d
jmp 0x43248e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43252c
add edi, ecx
jmp 0x43248e
pop esi
mov edi, esi
mov ecx, 0x241
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43254a
cmp byte [edi], 1
jne 0x43254a
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 0x43254f
lea edi, [esi + 0x30000]
mov eax, dword [edi]
or eax, eax
je 0x4325c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x32a28]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x32adc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43257c
mov ecx, edi
jns 0x4325ab
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 + 0x32ae0]
or eax, eax
je 0x4325c1
mov dword [ebx], eax
add ebx, 4
jmp 0x432599
call dword [esi + 0x32ae4]
popal
jmp 0x40313e
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x408509
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
jmp 0x40851e
sub esp, 4
mov eax, dword [ebp + 0xc]
shr eax, 1
je 0x408599
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov al, byte [edi]
mov byte [ebp + 0x13], 0x20
mov byte [ebp + 0xf], al
mov al, byte [edi + 1]
mov dword [ebp + 8], 0x20
mov cl, byte [ebp + 0xf]
mov dl, byte [ebp + 0xf]
shr cl, 5
add cl, byte [esi + 3]
shl dl, 4
add dl, byte [esi + 2]
xor cl, dl
mov dl, byte [ebp + 0x13]
add dl, byte [ebp + 0xf]
xor cl, dl
sub al, cl
mov cl, al
mov dl, al
shl cl, 4
add cl, byte [esi]
shr dl, 5
add dl, byte [esi + 1]
xor cl, dl
mov dl, byte [ebp + 0x13]
add byte [ebp + 0x13], 0x47
add dl, al
xor cl, dl
sub byte [ebp + 0xf], cl
dec dword [ebp + 8]
jne 0x408546
mov cl, byte [ebp + 0xf]
mov byte [edi + 1], al
mov byte [edi], cl
inc edi
inc edi
dec dword [ebp - 4]
jne 0x408533
pop edi
pop esi
leave
ret 0xc
Function at 0x41b2c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49acbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048f53d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41b342
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048d378
mov eax, dword [eax]
push 0x7ffbf8
push eax
call fcn.00477a40
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048f7c8
test bl, bl
je 0x41b342
push 0x7ffbf8
lea ecx, [esp + 0xc]
call fcn.0048fb58
push 0x7ffc04
lea ecx, [esp + 0xc]
call fcn.0048fb58
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41b37e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048f7c8
jmp 0x41b449
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41b402
lea edx, [esp + 0x7c]
push 0x7ffc00
push edx
call fcn.00477a40
add esp, 8
test eax, eax
je 0x41b402
lea eax, [esp + 0x7c]
push 0x7ffbfc
push eax
call fcn.00477a40
add esp, 8
test eax, eax
je 0x41b402
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41b392
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048f7c8
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41bc50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41bcb2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc