joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x50a75b58
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x54327e07
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x58dd74f6
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x31335550
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x407230
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41ff6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4048fc
call fcn.00408a72
push 4
mov dword [esp + 0x18], 0
call fcn.004099c5
mov edi, eax
add esp, 4
test edi, edi
je 0x4072a4
push ebx
call fcn.0040884e
mov dword [edi], eax
call fcn.004085e5
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004089b3
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407298
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004089db
pop ebx
jmp 0x4072a6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40a4d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423448]
jne 0x40a4da
repz ret
jmp fcn.0040f8ec
Function at 0x41b5da
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423448]
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.0040f080
and dword [ebp - 0x14], 0
cmp dword [0x43b014], 0
mov dword [ebp - 0x18], eax
jne 0x41b68d
push 0x4042b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41b735
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4042a4
push ebx
call edi
test eax, eax
je 0x41b735
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404294
push ebx
mov dword [0x43b014], eax
call edi
push eax
call esi
push 0x404280
push ebx
mov dword [0x43b018], eax
call edi
push eax
call esi
push 0x404264
push ebx
mov dword [0x43b01c], eax
call edi
push eax
call esi
mov dword [0x43b024], eax
test eax, eax
je 0x41b68d
push 0x40424c
push ebx
call edi
push eax
call esi
mov dword [0x43b020], eax
mov eax, dword [0x43b020]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41b6e6
cmp dword [0x43b024], ecx
je 0x41b6e6
push eax
call esi
push dword [0x43b024]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41b6e6
test ebx, ebx
je 0x41b6e6
call edi
test eax, eax
je 0x41b6dd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41b6dd
test byte [ebp - 8], 1
jne 0x41b6e6
or dword [ebp + 0x10], 0x200000
jmp 0x41b719
mov eax, dword [0x43b018]
cmp eax, dword [ebp - 0x18]
je 0x41b719
push eax
call esi
test eax, eax
je 0x41b719
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41b719
mov eax, dword [0x43b01c]
cmp eax, dword [ebp - 0x18]
je 0x41b719
push eax
call esi
test eax, eax
je 0x41b719
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43b014]
call esi
test eax, eax
je 0x41b735
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41b737
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a4d0
leave
ret
Function at 0x41eca0
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1b08
call fcn.0041c480
cmp dword [0x8e5484], 0x37
push esi
jne 0x41ed9a
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualLock]
push 0
lea ecx, [esp + 0x30c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
call esi
push 0x4043e4
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea eax, [esp + 0xb0c]
push eax
push 0x404448
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea ecx, [esp + 0x130c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0xe8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
call esi
push 0x404490
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea eax, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x28], 0
call fcn.00411cc0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov edx, dword [0x8e7be8]
mov dword [esp + 8], edx
mov eax, 0x5d1
add dword [esp + 8], eax
mov eax, dword [esp + 8]
mov cl, byte [eax + edi]
mov edx, dword [0x8e3c70]
mov byte [edx + edi], cl
pop esi
add esp, 0x1b08
ret
Function at 0x10003b79
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x10003b9e
xor eax, eax
jmp 0x10003ba3
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x184
call fcn.1000f2c0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10003bd9
push ebx
call fcn.1000bf09
add esp, 4
pop eax
mov dword [ebp - 4], eax
test esi, esi
je 0x10003be6
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10003c3b
lea edx, [esi + 8]
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
test edx, edx
je 0x10003c3b
test eax, eax
je 0x10003c3b
lea esi, [edx + ecx]
cmp edx, esi
jae 0x10003c3b
nop
movzx ecx, byte [edx]
shr ecx, 4
inc edx
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax], cl
movzx ecx, byte [edx - 1]
and ecx, 0xf
lea eax, [eax + 2]
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax - 1], cl
cmp edx, esi
jb 0x10003c17
pop esi
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x10009773
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
cmp dword [ebp - 4], esp
je 0x100097aa
push 0x12
push 0x4013282
push 6
call fcn.1000bf0f
add esp, 0xc
jmp 0x100097af
mov esp, ebp
pop ebp
ret 4

Function at 0x1000c320
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10029f68]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x108], ecx
lea eax, [ecx - 1]
cmp eax, 0xa
ja 0x1000c34d
mov edx, dword [ecx*4 + 0x10029d30]
lea eax, [ebp - 0x108]
mov eax, dword [eax - 4]
test eax, eax
je 0x1000c38b
push esi
mov esi, 0xc483
cmp si, word [eax]
pop esi
jne 0x1000c38b
cmp byte [eax + 2], 0xc
jne 0x1000c38b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push edx
push ecx
push 0x10022414
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x1000c3a2
push edx
push ecx
lea eax, [ebp - 0x104]
push str.program_internal_error_number_is__d.__r_n_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [0x1002a888]
test eax, eax
je 0x1000c3db
cmp dword [0x1002a89c], 0
jne 0x1000c3db
lea ecx, [ebp - 0x104]
mov dword [0x1002a89c], 1
push ecx
push dword [ebp - 0x108]
call eax
mov dword [0x1002a89c], 0
test eax, eax
jne 0x1000c3f1
push 0x10
push str.error
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.1000bf80
cmp dword [0x1002a880], 0
jne 0x1000c407
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 0
mov ebp, dword [0x1002a884]
mov esp, dword [0x1002a880]
sub esp, 4
ret
Function at 0x1000c430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.10010100
mov esi, dword [ebp + 0x18]
mov edi, eax
push esi
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [0x10029f60]
add esp, 8
test edi, edi
je 0x1000c559
test eax, eax
je 0x1000c559
inc eax
push eax
call fcn.1001144a
mov edx, eax
mov dword [ebp - 0x10], eax
add esp, 4
sub edx, esi
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], cl
test cl, cl
jne 0x1000c476
push 0x5c
push eax
call fcn.100123d0
mov edi, eax
add esp, 8
test edi, edi
je 0x1000c497
mov byte [edi], bl
inc edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000c54a
push 0x400
mov dword [ebp - 4], 0x400
mov dword [ebp - 8], 1
call fcn.1001144a
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000c518
cmp eax, 0xea
jne 0x1000c538
push esi
call fcn.10011453
push dword [ebp - 4]
call fcn.1001144a
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000c4e5
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x1000c525
cmp eax, 2
jne 0x1000c538
push esi
call dword [0x10029f60]
push eax
push esi
call fcn.100100c0
add esp, 0xc
mov ebx, eax
push esi
call fcn.10011453
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call fcn.10011453
add esp, 4
test ebx, ebx
jne 0x1000c57e
cmp dword [ebp + 0x2c], 0
je 0x1000c57e
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x1000c57e
push esi
call dword [0x10029f60]
push eax
push esi
call fcn.100100c0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40f4b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40f4d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f4d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f4c8
mov eax, 1
add ebx, ebx
jne 0x40f4eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f4e0
jne 0x40f4fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f4e0
xor ecx, ecx
sub eax, 3
jb 0x40f510
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f582
mov ebp, eax
add ebx, ebx
jne 0x40f51b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f528
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f54c
inc ecx
add ebx, ebx
jne 0x40f538
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f52d
jne 0x40f549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f52d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f56c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f55d
jmp 0x40f4ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f56c
add edi, ecx
jmp 0x40f4ce
pop esi
mov edi, esi
mov ecx, 0x5d3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f58a
cmp byte [edi], 5
jne 0x40f58a
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 0x40f58f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f5fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf6c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf738]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f5bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf73c]
or eax, eax
je 0x40f5f8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f5d9
call dword [esi + 0xf740]
popal
jmp section.UPX0
Function at 0x40bf74
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 0x40c028
jmp 0x40c01d
cmp dword [esi + 0x10], 0x1000
jne 0x40c009
test byte [esi + 0x15], 1
jne 0x40c009
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40bfc8
cmp eax, 2
je 0x40bfc8
cmp eax, 0x10
je 0x40bfc8
cmp eax, 0x20
jne 0x40bfdd
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 0x40bfdd
mov bl, 1
xor ebp, ebp
jmp 0x40bfee
mov eax, dword [esi]
add eax, ebp
call fcn.0040bf6c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40bfe1
test bl, bl
je 0x40c009
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 0x40c028
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40bfa0
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401941
Capabilities:
Allocate or change rwx memory
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push edi
and dword [ebp - 0x124], 0
xor edi, edi
mov byte [ebp - 0x104], 0
mov dword [ebp - 0x11c], 0x14
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
and dword [ebp - 0x120], 0
lea eax, [ebp - 0x120]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x404691]
lea edx, [fcn.004019d4]
sub eax, edx
push eax
push fcn.004019d4
call sub.KERNEL32.dll_VirtualProtect
mov eax, edi
pop edi
leave
ret
Function at 0x1000142f
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, esp
xor eax, eax
mov ecx, 0x40
mov dword [esi + 0x24], eax
mov eax, ecx
call fcn.1000afd0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov ecx, eax
mov edx, dword [esi + 0x24]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], edx
jmp 0x10001475
mov eax, dword [esi + 0x14]
add eax, 1
cmp eax, 0x85
mov dword [esi + 0x18], eax
je 0x100014d4
mov eax, dword [esi + 0x18]
mov ecx, eax
sub ecx, 1
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ecx
je 0x10001494
jmp 0x10001487
mov eax, dword [esi + 0x14]
sub eax, 0x4d
mov dword [esi + 0xc], eax
jne 0x10001463
jmp 0x10001494
sub esp, 0xc
mov eax, esp
lea ecx, [esi + 0x28]
mov dword [eax], ecx
mov dword [eax + 8], 0x26e
mov dword [eax + 4], 0xc6c
mov eax, dword [sym.imp.USER32.dll_RegisterRawInputDevices]
call eax
sub esp, 8
mov ecx, esp
mov edx, dword [esi + 0x20]
mov dword [ecx + 4], edx
mov dword [ecx], 0x9b9d5b
mov ecx, dword [sym.imp.KERNEL32.dll_GetCommProperties]
mov dword [esi + 8], eax
call ecx
mov dword [esi + 4], eax
jmp 0x10001463
lea esp, [ebp - 4]
pop esi
pop ebp
ret

Function at 0x1000dc16
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102602e0]
jne 0x1000dc20
repz ret
jmp fcn.100148cc
Function at 0x10017d77
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000ca75
and dword [ebp - 4], 0
cmp dword [0x102612a4], 0
mov ebx, eax
jne 0x10017e28
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10017ed9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10017ed9
push eax
call fcn.1000ca03
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x102612a4], eax
call esi
push eax
call fcn.1000ca03
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x102612a8], eax
call esi
push eax
call fcn.1000ca03
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102612ac], eax
call esi
push eax
call fcn.1000ca03
pop ecx
mov dword [0x102612b4], eax
test eax, eax
je 0x10017e28
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000ca03
pop ecx
mov dword [0x102612b0], eax
mov eax, dword [0x102612b0]
cmp eax, ebx
je 0x10017e80
cmp dword [0x102612b4], ebx
je 0x10017e80
push eax
call fcn.1000ca7e
push dword [0x102612b4]
mov esi, eax
call fcn.1000ca7e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10017e80
test edi, edi
je 0x10017e80
call esi
test eax, eax
je 0x10017e77
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10017e77
test byte [ebp - 0xc], 1
jne 0x10017e80
or dword [ebp + 0x10], 0x200000
jmp 0x10017eb9
mov eax, dword [0x102612a8]
cmp eax, ebx
je 0x10017eb9
push eax
call fcn.1000ca7e
pop ecx
test eax, eax
je 0x10017eb9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10017eb9
mov eax, dword [0x102612ac]
cmp eax, ebx
je 0x10017eb9
push eax
call fcn.1000ca7e
pop ecx
test eax, eax
je 0x10017eb9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102612a4]
call fcn.1000ca7e
pop ecx
test eax, eax
je 0x10017ed9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10017edb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001b809
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x1001d3e0]
mov dl, byte [eax + 0x1001d3b1]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x2c], eax
jne 0x1001b820
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], eax
call fcn.1001ca66
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.1001b9c0
cmp eax, 0
sete cl
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], cl
mov al, byte [ebp - 0x35]
test al, 1
jne 0x1001b914
jmp 0x1001b87b
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1001c5d6
mov eax, dword [ebp - 0x3c]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [eax + 0xd0], 0x4550
add eax, 0xffc00000
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0x18], eax
mov dword [0x1025fb28], 0x242
cmp eax, 0
sete dl
add eax, 0x237d
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], dl
xor eax, eax
mov cl, byte [ebp - 0x41]
test cl, 1
mov dword [ebp - 0x48], eax
jne 0x1001b90c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x58
pop ebp
ret
xor eax, eax
add esp, 0x58
pop ebp
ret