joyce8/EMBER2024-capa huggingface dataset:
Function at 0x131a250
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x137ebe1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x139bf3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.01316e90
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x131a306
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x21]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
lea ecx, [ebp - 0x20]
call fcn.012e8e30
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.012e8f10
push eax
mov ecx, dword [ebp + 0xc]
call fcn.01316e90
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
lea ecx, [ebp - 0x20]
call fcn.012e8f10
push eax
mov ecx, dword [ebp + 8]
call fcn.012ca390
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.012e8eb0
mov eax, dword [ebp + 8]
jmp 0x131a325
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.012df6d0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x131a770
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x137ece1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x139bf3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x131a818
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.012e8e30
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.012e8f10
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
lea ecx, [ebp - 0x20]
call fcn.012e8f10
push eax
mov ecx, dword [ebp + 8]
call fcn.012ca390
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.012e8eb0
mov eax, dword [ebp + 8]
jmp 0x131a833
mov ecx, dword [ebp + 8]
call fcn.012debb0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x131b290
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x137ef71
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x139bf3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
push 0xe
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.012e8e30
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x20]
call fcn.012e8f10
push eax
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0xd
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
lea ecx, [ebp - 0x20]
call fcn.012e8f10
push eax
mov ecx, dword [ebp + 8]
call fcn.012ca390
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.012e8eb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x132c3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1380e80
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x139bf3c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x139fd14
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], 0x139fdf8
call fcn.012e1850
mov byte [esp + 0x38], 1
call fcn.0132b574
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.012e1920
mov dword [esi], 0x139fe1c
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x1334520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1381ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x139bf3c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x139bf3c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jb 0x133456f
mov eax, dword [edi]
jmp 0x1334571
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x1334591
push esi
push edi
push ebx
call fcn.01332590
add esp, 0xc
jmp 0x13346c5
test eax, 0x400
je 0x1334693
cmp dword [edi + 0x14], 8
jb 0x13345a6
mov edx, dword [edi]
jmp 0x13345a8
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov ebx, 7
mov eax, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x13345c5
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.012ec240
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x13345f6
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x133462a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.013376c6
add esp, 4
mov dword [esp + 0x34], ebx
xor edx, edx
or ebx, 0xffffffff
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, ebx
jne 0x133465b
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.01332590
add esp, 0xc
mov eax, esi
jmp 0x13346c7
push edi
call fcn.01330820
add esp, 4
mov dword [esp + 0x48], ebx
push esi
test al, al
jne 0x1334681
mov edi, dword [esp + 0x18]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x13346c7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x13346a9
mov dword [esi], 0
call fcn.013368c0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test al, 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 3
jne 0x13346c1
mov dword [esp + 0x10], 2
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.01337bce
add esp, 0x3c
ret
Function at 0x13346f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x14], 8
jb 0x1334701
mov eax, dword [edi]
jmp 0x1334703
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x133472a
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push eax
push edi
push esi
call fcn.01332590
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1334740
mov dword [esi], 0
call fcn.013368c0
mov dword [esi + 4], eax
test ebx, 0x400
je 0x1334775
push edi
call fcn.01330820
add esp, 4
test al, al
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
jne 0x1334769
mov dword [esp + 0x14], 9
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 3
test bl, 0x10
jne 0x133478e
mov dword [esp + 0x14], 2
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], edx
pop ebx
ret

Function at 0x1337bce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x139bf3c]
jne 0x1337bd8
repz ret
jmp fcn.01341e6c
Function at 0x134fe6a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x139bf3c]
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.0134185c
and dword [ebp - 0x14], 0
cmp dword [0x13b8270], 0
mov dword [ebp - 0x18], eax
jne 0x134ff1d
push 0x13a3328
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x134ffc5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x139f778
push ebx
call edi
test eax, eax
je 0x134ffc5
mov esi, dword [0x139d390]
push eax
call esi
push 0x13a3318
push ebx
mov dword [0x13b8270], eax
call edi
push eax
call esi
push 0x13a3304
push ebx
mov dword [0x13b8274], eax
call edi
push eax
call esi
push 0x13a32e8
push ebx
mov dword [0x13b8278], eax
call edi
push eax
call esi
mov dword [0x13b8280], eax
test eax, eax
je 0x134ff1d
push 0x13a32d0
push ebx
call edi
push eax
call esi
mov dword [0x13b827c], eax
mov eax, dword [0x13b827c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x139d394]
cmp eax, ecx
je 0x134ff76
cmp dword [0x13b8280], ecx
je 0x134ff76
push eax
call esi
push dword [0x13b8280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x134ff76
test ebx, ebx
je 0x134ff76
call edi
test eax, eax
je 0x134ff6d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x134ff6d
test byte [ebp - 8], 1
jne 0x134ff76
or dword [ebp + 0x10], 0x200000
jmp 0x134ffa9
mov eax, dword [0x13b8274]
cmp eax, dword [ebp - 0x18]
je 0x134ffa9
push eax
call esi
test eax, eax
je 0x134ffa9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x134ffa9
mov eax, dword [0x13b8278]
cmp eax, dword [ebp - 0x18]
je 0x134ffa9
push eax
call esi
test eax, eax
je 0x134ffa9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x13b8270]
call esi
test eax, eax
je 0x134ffc5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x134ffc7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01337bce
leave
ret
Function at 0x135d3b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x135d43d
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.01337fe0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x135d400
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x135d422
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x135d498
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.0135d108
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x135d484
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x135d498
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x135d3c1
pop esi
pop ebx
leave
ret
Function at 0x41af60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x41af82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41af89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41af78
mov eax, 1
add ebx, ebx
jne 0x41af9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41af90
jne 0x41afac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41af90
xor ecx, ecx
sub eax, 3
jb 0x41afc0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41b032
mov ebp, eax
add ebx, ebx
jne 0x41afcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41afd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41affc
inc ecx
add ebx, ebx
jne 0x41afe8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41afdd
jne 0x41aff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41afdd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41b01c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41b00d
jmp 0x41af7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41b01c
add edi, ecx
jmp 0x41af7e
pop esi
mov edi, esi
mov ecx, 0x4f4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41b03a
cmp byte [edi], 1
jne 0x41b03a
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 0x41b03f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41b0b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c08c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c17c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41b06c
mov ecx, edi
jns 0x41b09b
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 + 0x1c180]
or eax, eax
je 0x41b0b1
mov dword [ebx], eax
add ebx, 4
jmp 0x41b089
call dword [esi + 0x1c184]
popal
jmp 0x405d30
Function at 0x1011c58
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0100e350
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1011cbe
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1017160]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1011cc2
xor eax, eax
jmp 0x1011ccf
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1012a89
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x1014b48]
and dword [ebp - 0xa8], 0
cmp dword [0x10156c8], 0xfffffffe
mov dword [ebp - 4], eax
mov dword [ebp - 0xb0], 0xc
jne 0x1012bac
and dword [0x10156c8], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1012bac
cmp dword [ebp - 0x94], 1
jne 0x1012bac
cmp dword [ebp - 0xa0], 4
jne 0x1012bac
cmp dword [ebp - 0x9c], 0xa
jae 0x1012bac
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1012bac
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x100288c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1012bac
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x1001443
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1012bac
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.01012965
test eax, eax
je 0x1012bac
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x1012ba2
cmp dword [ebp - 0xa8], 0xd
jne 0x1012bac
mov dword [0x10156c8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10156c8]
call fcn.0100c759
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401df8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x400
lea eax, [ebp - 0x404]
push esi
xor ebx, ebx
push ebx
push eax
call sub.ntoskrnl.exe_memset
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push esi
push eax
call sub.ntoskrnl.exe__vsnprintf
add esp, 0x1c
cmp eax, esi
jae 0x401f1f
mov byte [ebp + eax - 0x404], bl
lea eax, [ebp - 0x42c]
push 0x403af4
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x424], 0x18
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x418], 0x240
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x410], ebx
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
test al, al
jne 0x401f11
push ebx
push ebx
push 0x20
push 3
push 3
push 0x80
push ebx
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x424]
push eax
push 4
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x401f11
lea eax, [ebp - 0x40c]
push eax
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.00401f26
test eax, eax
js 0x401f05
push ebx
push ebx
push dword [ebp - 0x40c]
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x434]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x408]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
push dword [ebp - 0x408]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403362
leave
ret
call fcn.00403338
int3
Function at 0x4020d0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x403b2e
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor ebx, ebx
mov dword [ebp - 0x48], 0x18
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], 0x240
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
test al, al
je 0x402123
mov eax, 0xc0000001
jmp 0x402204
push esi
push ebx
push ebx
push 0x20
push 1
push 1
push 0x80
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x80000000
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov esi, eax
test esi, esi
js 0x4021f4
push edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
push 5
rep stosd dword es:[edi], eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov esi, eax
pop edi
test esi, esi
js 0x4021dc
mov eax, dword [ebp - 0x14]
push eax
push 0x403b6c
mov dword [0x486074], eax
call fcn.00401df8
pop ecx
pop ecx
push dword [0x486074]
push 1
call fcn.004031d8
push ebx
lea ecx, [ebp - 0x28]
mov dword [0x486070], eax
push ecx
push dword [0x486074]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov esi, eax
test esi, esi
jns 0x4021e9
push dword [0x486070]
call fcn.0040320e
push esi
push 0x403b9a
jmp 0x4021e2
push esi
push 0x403bce
call fcn.00401df8
pop ecx
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x402201
push esi
push 0x403c0e
call fcn.00401df8
pop ecx
pop ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403362
leave
ret
Function at 0x402212
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x5a4d
push edi
mov edi, dword [ebp + 8]
cmp word [edi], ax
je 0x402239
push 0x403c72
call fcn.00401df8
pop ecx
or eax, 0xffffffff
jmp 0x4023bc
push esi
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
je 0x40225a
push 0x403c9e
call fcn.00401df8
pop ecx
or eax, 0xffffffff
jmp 0x4023bb
xor eax, eax
mov ecx, 0x20b
cmp word [esi + 0x18], cx
push ebx
push dword [ebp + 0xc]
sete al
dec eax
and eax, 0xfffffff0
mov ecx, dword [eax + esi + 0x88]
mov eax, dword [eax + esi + 0x8c]
push ecx
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
call fcn.004023c2
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40229c
push 0x403cc8
jmp 0x4023b1
push dword [ebp + 0xc]
push dword [ebx + edi + 0x1c]
push esi
call fcn.004023c2
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebx + edi + 0x24]
push esi
call fcn.004023c2
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebx + edi + 0x20]
push esi
call fcn.004023c2
mov edx, dword [ebp - 8]
mov ecx, eax
cmp edx, 0xffffffff
je 0x4023ac
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x4023ac
cmp ecx, 0xffffffff
je 0x4023ac
or dword [ebp - 8], 0xffffffff
add edx, edi
add eax, edi
mov dword [ebp - 0x10], edx
lea edx, [ecx + edi]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebx + edi + 0x18]
xor eax, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x402396
push dword [ebp + 0xc]
push dword [edx + eax*4]
push esi
call fcn.004023c2
cmp eax, 0xffffffff
je 0x402372
mov edx, dword [ebp - 0xc]
lea ecx, [eax + edi]
mov eax, dword [ebp - 4]
movzx eax, word [edx + eax*2]
mov edx, dword [ebp - 0x10]
mov ebx, dword [edx + eax*4]
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jb 0x402346
add eax, dword [ebp - 0x18]
cmp ebx, eax
jb 0x402372
mov eax, dword [ebp + 0x10]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402369
test dl, dl
je 0x402365
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402369
add ecx, 2
add eax, 2
test dl, dl
jne 0x402349
xor eax, eax
jmp 0x40236e
sbb eax, eax
or eax, 1
test eax, eax
je 0x402383
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x1c]
jae 0x402396
mov edx, dword [ebp - 0x20]
jmp 0x402314
push dword [ebp + 0xc]
push ebx
push esi
call fcn.004023c2
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4023a8
jmp 0x402399
mov ebx, dword [ebp - 8]
push dword [ebp + 0x10]
push 0x403d22
call fcn.00401df8
pop ecx
pop ecx
mov eax, ebx
jmp 0x4023ba
push 0x403cf0
call fcn.00401df8
or eax, 0xffffffff
pop ecx
pop ebx
pop esi
pop edi
leave
ret 0xc