joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x99000]
push edi
jmp 0x4a3f4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a3f51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a3f40
mov eax, 1
add ebx, ebx
jne 0x4a3f63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a3f74
jne 0x4a3f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a3f93
dec eax
add ebx, ebx
jne 0x4a3f80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a3f58
add ebx, ebx
jne 0x4a3f8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a3fe5
xor ecx, ecx
sub eax, 3
jb 0x4a3fab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a401a
sar eax, 1
mov ebp, eax
jmp 0x4a3fb6
add ebx, ebx
jne 0x4a3fb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a3f84
inc ecx
add ebx, ebx
jne 0x4a3fc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a3f84
add ebx, ebx
jne 0x4a3fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a3fc6
jne 0x4a3fe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a3fc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a4004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a3ff6
jmp 0x4a3f46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a4004
add edi, ecx
jmp 0x4a3f46
pop esi
mov edi, esi
mov ecx, 0x467
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a4022
cmp byte [edi], 7
jne 0x4a4022
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 0x4a4027
lea edi, [esi + 0xa1000]
mov eax, dword [edi]
or eax, eax
je 0x4a4096
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12e210]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12e24c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a4054
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12e254]
or eax, eax
je 0x4a4090
mov dword [ebx], eax
add ebx, 4
jmp 0x4a4071
call dword [esi + 0x12e250]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4a40c7
cmp al, 0xef
ja 0x4a40ba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4a409c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4a40a9
mov ebp, dword [esi + 0x12e258]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x4a40fb
sub esp, 0xffffff80
jmp 0x40125d
Function at 0x4065e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d448]
jne 0x4065ef
repz ret
jmp fcn.004085db

Function at 0x407bf3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d448]
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.004052ef
and dword [ebp - 0x14], 0
cmp dword [0x42d7f0], 0
mov dword [ebp - 0x18], eax
jne 0x407ca6
push 0x402190
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407d4e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402184
push ebx
call edi
test eax, eax
je 0x407d4e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402174
push ebx
mov dword [0x42d7f0], eax
call edi
push eax
call esi
push 0x402160
push ebx
mov dword [0x42d7f4], eax
call edi
push eax
call esi
push 0x402144
push ebx
mov dword [0x42d7f8], eax
call edi
push eax
call esi
mov dword [0x42d800], eax
test eax, eax
je 0x407ca6
push 0x40212c
push ebx
call edi
push eax
call esi
mov dword [0x42d7fc], eax
mov eax, dword [0x42d7fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407cff
cmp dword [0x42d800], ecx
je 0x407cff
push eax
call esi
push dword [0x42d800]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407cff
test ebx, ebx
je 0x407cff
call edi
test eax, eax
je 0x407cf6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407cf6
test byte [ebp - 8], 1
jne 0x407cff
or dword [ebp + 0x10], 0x200000
jmp 0x407d32
mov eax, dword [0x42d7f4]
cmp eax, dword [ebp - 0x18]
je 0x407d32
push eax
call esi
test eax, eax
je 0x407d32
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407d32
mov eax, dword [0x42d7f8]
cmp eax, dword [ebp - 0x18]
je 0x407d32
push eax
call esi
test eax, eax
je 0x407d32
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42d7f0]
call esi
test eax, eax
je 0x407d4e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407d50
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065e5
leave
ret
Function at 0x409ed0
Capabilities:
Copy file
Get uefi variable

Disassembly:
sub esp, 0xc18
cmp dword [0x4a9360], 0x37
jne 0x409f40
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x402a48
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov ecx, dword [0x4a9364]
mov eax, dword [0x4a8a44]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0xc18
ret
Function at 0x431430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
jmp 0x43144a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x431451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x431440
mov eax, 1
add ebx, ebx
jne 0x431463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x431458
jne 0x431474
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431458
xor ecx, ecx
sub eax, 3
jb 0x431488
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4314fa
mov ebp, eax
add ebx, ebx
jne 0x431493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4314a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4314c4
inc ecx
add ebx, ebx
jne 0x4314b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4314a5
jne 0x4314c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4314a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4314e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4314d5
jmp 0x431446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4314e4
add edi, ecx
jmp 0x431446
pop esi
mov edi, esi
mov ecx, 0xa88
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x431502
cmp byte [edi], 0x12
jne 0x431502
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 0x431507
lea edi, [esi + 0x2f000]
mov eax, dword [edi]
or eax, eax
je 0x43157f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x39d2c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x39e0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x431534
mov ecx, edi
jns 0x431563
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 + 0x39e14]
or eax, eax
je 0x431579
mov dword [ebx], eax
add ebx, 4
jmp 0x431551
call dword [esi + 0x39e10]
mov ebp, dword [esi + 0x39e18]
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 0x4315b3
sub esp, 0xffffff80
jmp 0x41c35f
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x31cd5d68
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x7e9a6505
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x41bc40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x415015
lea edi, [esi - 0x14015]
push edi
or ebp, 0xffffffff
jmp 0x41bc62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41bc69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41bc58
mov eax, 1
add ebx, ebx
jne 0x41bc7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41bc70
jne 0x41bc8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41bc70
xor ecx, ecx
sub eax, 3
jb 0x41bca0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41bd12
mov ebp, eax
add ebx, ebx
jne 0x41bcab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41bcb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41bcdc
inc ecx
add ebx, ebx
jne 0x41bcc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41bcbd
jne 0x41bcd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41bcbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41bcfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41bced
jmp 0x41bc5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41bcfc
add edi, ecx
jmp 0x41bc5e
pop esi
mov edi, esi
mov ecx, 0x9c9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41bd1a
cmp byte [edi], 9
jne 0x41bd1a
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 0x41bd1f
lea edi, [esi + 0x19000]
mov eax, dword [edi]
or eax, eax
je 0x41bd8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b508]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41bd4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b50c]
or eax, eax
je 0x41bd88
mov dword [ebx], eax
add ebx, 4
jmp 0x41bd69
call dword [esi + 0x1b510]
popal
jmp 0x40f18c
Function at 0x40dd2b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, ecx
test esi, esi
jns 0x40dd59
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
and esi, 0x7fffffff
push eax
add esi, edx
push esi
call fcn.0040ddda
add esp, 0xc
jmp 0x40ddd6
push ebx
mov ecx, 0x7fffffff
and esi, ecx
add esi, edx
lea eax, [ebp + 8]
mov ebx, dword [esi]
and dword [ebp + 8], 0
push eax
push 4
push dword [esi + 4]
and ebx, ecx
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40ddd5
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov ecx, dword [eax + 0x1c]
push 0
sub ecx, edi
test byte [ebp + 0xc], 0x40
pop eax
setne al
lea eax, [eax*2 - 1]
push eax
mov eax, dword [0x4fad84]
imul eax, dword [esi]
push eax
mov eax, dword [0x4fad8c]
imul eax, dword [esi]
push eax
mov eax, dword [0x4fad80]
mov edx, dword [esi + 4]
xor eax, ecx
push eax
mov ecx, ebx
call fcn.0040e359
add esp, 0x14
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x40e309
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
push ebp
movzx eax, word [ebx + 0x14]
lea ebp, [ebx + 0x18]
add ebp, eax
push esi
xor eax, eax
xor esi, esi
push edi
mov dword [esp + 0x10], edx
cmp ax, word [ebx + 6]
jae 0x40e349
mov edi, ebp
push edi
push edx
call fcn.0041df86
pop ecx
pop ecx
test eax, eax
je 0x40e351
movzx eax, word [ebx + 6]
mov edx, dword [esp + 0x10]
inc esi
add edi, 0x28
cmp esi, eax
jb 0x40e32c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
imul esi, esi, 0x28
lea eax, [esi + ebp]
jmp 0x40e34b
Function at 0x40e3ea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x429abe
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
push edi
mov ebx, edx
test esi, esi
je 0x40e4b2
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi + 0x7c], 0
je 0x40e4b2
mov eax, dword [edi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x24]
add ecx, esi
add edx, esi
cmp byte [ebx], 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
je 0x40e46d
push ebx
call fcn.0041d820
push eax
push ebx
call fcn.00411c49
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x40e477
mov ecx, dword [ebx + 1]
xor ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
xor ebx, ebx
cmp dword [eax + 0x18], ebx
jbe 0x40e4b2
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x40e4a8
add eax, esi
push eax
mov dword [esp + 0x20], eax
call fcn.0041d820
push eax
push dword [esp + 0x24]
call fcn.00411c49
add esp, 0xc
cmp dword [esp + 0x10], eax
je 0x40e4c6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x40e47e
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [edi + 0x78]
jb 0x40e5c2
mov eax, dword [edi + 0x7c]
add eax, dword [edi + 0x78]
cmp ecx, eax
jae 0x40e5c2
lea eax, [ecx + esi]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402134
xor ebx, ebx
mov dword [esp + 0x64], ebx
push 1
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x18], 0x2e
call fcn.004022a5
mov esi, eax
cmp esi, 0xffffffff
je 0x40e5af
push esi
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410ce2
mov byte [esp + 0x64], 1
cmp dword [eax + 0x14], 0x10
jb 0x40e53d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.00402161
test edi, edi
je 0x40e5af
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410ce2
mov byte [esp + 0x64], 2
cmp dword [eax + 0x14], 0x10
jb 0x40e578
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
mov edx, eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040e3ea
add esp, 0xc
mov esi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.00402161
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402161
mov eax, esi
jmp 0x40e4b4
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402161
jmp 0x40e4b2
lea eax, [ecx + esi]
jmp 0x40e4b4
Function at 0x40ee5b
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x436948
call fcn.00428a60
mov esi, ecx
and dword [ebp - 4], 0
lea edi, [esi + 0x80]
push dword [ebp + 0xc]
push 0x40
push 0
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ef5c
or dword [ebp - 4], 0xffffffff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40ef4b
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x40ef4b
mov dword [ebp - 4], 1
lea edi, [esi + 0xc0]
push dword [ebp + 0xc]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ef5c
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x40ef4b
mov eax, 0x10b
cmp word [esi + 0xd8], ax
jne 0x40ef4b
movzx eax, word [esi + 0xc6]
test ax, ax
je 0x40ef4b
mov edi, eax
imul edi, edi, 0x28
movzx ecx, word [esi + 0xd4]
mov ebx, dword [esi + 0xbc]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.0041e098
pop ecx
mov dword [esi + 0x1b8], eax
test eax, eax
jne 0x40ef20
push 8
jmp 0x40ef62
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push edi
push ebx
push eax
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ef5c
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x40ef63
push 0xb
jmp 0x40ef62
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.00428a9b
ret 8

Function at 0x411c49
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ecx, 0xff077af4
test edi, edi
je 0x411c82
movzx eax, byte [ebx]
cdq
push 0
xor esi, edx
push 0x1000193
xor ecx, eax
push esi
push ecx
inc ebx
call fcn.00428430
xor esi, esi
mov ecx, eax
dec edi
jne 0x411c64
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411c8b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x4fe1e0]
or eax, dword [0x4fe1e4]
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
jne 0x411ceb
xor esi, esi
mov eax, esi
push 8
cdq
pop ebx
mov ecx, eax
shrd eax, edx, 1
and ecx, 1
shr edx, 1
or ecx, 0
je 0x411ccd
xor eax, 0xd7870f42
xor edx, 0xc96c5795
dec ebx
jne 0x411cb2
mov dword [esi*8 + 0x4fd9e8], eax
mov dword [esi*8 + 0x4fd9ec], edx
inc esi
cmp esi, 0x100
jl 0x411cac
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
not edx
test edi, edi
je 0x411d1c
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
shr edx, 8
xor ecx, dword [eax*8 + 0x4fd9e8]
xor edx, dword [eax*8 + 0x4fd9ec]
inc edi
dec ebx
jne 0x411cf9
pop edi
not ecx
pop esi
not edx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417232
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a5be
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp dword [0x4fd9bc], 0
push esi
je 0x4172d1
mov esi, 0x4fd9ac
push ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0041945a
mov ecx, eax
call fcn.00419683
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x417282
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push dword [eax + ecx*4]
lea ecx, [esp + 0x24]
call fcn.00410f76
and dword [esp + 0x44], 0
mov ecx, esi
call fcn.0041930f
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x4172b3
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402161
cmp dword [0x4fd9bc], 0
jne 0x41725f
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4172e1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x42955c
call fcn.0041e7dc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0x10
mov edi, edx
jb 0x4172ff
mov eax, dword [esi]
jmp 0x417301
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4173af
push ecx
push ecx
mov ecx, esi
call fcn.00418965
cmp eax, 0xffffffff
je 0x417354
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00410ce2
and dword [ebp - 4], 0
mov edx, edi
mov ecx, eax
call fcn.004172e1
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402161
inc bl
je 0x417354
xor al, al
jmp 0x4173bb
mov ecx, dword [0x4fcd90]
test ecx, ecx
je 0x417371
cmp dword [esi + 0x14], 0x10
jb 0x417368
mov eax, dword [esi]
jmp 0x41736a
mov eax, esi
push 0
push eax
call ecx
jmp 0x41739b
cmp dword [0x4fbc48], 0
je 0x417399
push 0x18
pop eax
call fcn.0041ec00
push esp
push 0x435014
call fcn.0040e0df
push eax
call dword [0x4fbc48]
add esp, 0xc
jmp 0x417350
xor eax, eax
test eax, eax
je 0x417350
push esi
mov ecx, 0x4fd9ac
call fcn.0041928c
mov byte [edi], 0
jmp 0x4173b9
test eax, 0x410
je 0x417350
mov byte [edi], 1
mov al, 1
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418019
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42a5a2
call fcn.0041e7dc
mov eax, 0x1030
call fcn.0041ec00
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1048], ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push 0x4f6b18
push 0x80000001
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xf
pop edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [esp + 0x1048], ebx
xor ebp, ebp
inc ebp
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x41810f
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [esp + 0x1068]
mov dword [esp + 0x24], 0x1000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x3c], bl
test eax, eax
jne 0x418105
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 2
ja 0x418105
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004024bb
mov dword [esp + 0x1048], ebp
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00410bde
mov byte [esp + 0x1048], bl
lea ecx, [esp + 0x20]
call fcn.00402161
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1040]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41a879
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [0x4f6120]
push edi
test edx, edx
je 0x41a8a3
lea eax, [edx - 1]
shr eax, 2
inc eax
imul ecx, ecx, 0x4848c0c0
xor ecx, esi
sub edx, 4
dec eax
jne 0x41a895
mov eax, dword [ebp + 8]
shr edx, 2
lea edi, [eax + edx*4]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41a8d4
dec edx
shr edx, 2
inc edx
imul ecx, ecx, 0x4848c0c0
xor ecx, esi
mov eax, ecx
not eax
xor dword [edi], eax
lea edi, [edi + 4]
dec edx
je 0x41a8d4
mov esi, dword [0x4f6120]
jmp 0x41a8b8
pop edi
pop esi
pop ebp
ret