joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456310
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x456570
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x456373
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00455dd8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c6cc
cmp al, 1
jne 0x456373
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004560f0
test al, al
je 0x4564ff
cmp dword [ebp - 8], 0
jge 0x456391
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00455dd8
mov eax, dword [ebp - 0x210]
call fcn.0040475c
cmp ebx, eax
jge 0x4563db
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00455dd8
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4651c4]
and eax, 0xff
bt dword [edx], eax
jae 0x4563db
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4563ef
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004562ec
cmp ebx, dword [ebp - 8]
je 0x4564f1
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x45641b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403894
and eax, 0x7f
movzx eax, word [eax*2 + 0x464d30]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4564de
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403894
and eax, 0x7f
movzx eax, word [eax*2 + 0x464d30]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0043a7e4
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403894
and eax, 0x7f
movzx eax, word [eax*2 + 0x464d30]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0043a7e4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4564e5
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x456552
cmp dword [ebp - 8], 0
jge 0x45650a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00455dd8
mov eax, dword [ebp - 0x218]
call fcn.0040475c
cmp eax, dword [ebp - 8]
jg 0x456544
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00455dd8
mov eax, dword [ebp - 0x21c]
call fcn.0040475c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004562ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456577
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004044c0
ret
Function at 0x1085460
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa75000]
push edi
or ebp, 0xffffffff
jmp 0x1085482
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1085489
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1085478
mov eax, 1
add ebx, ebx
jne 0x108549b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10854ac
jne 0x10854cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10854cb
dec eax
add ebx, ebx
jne 0x10854b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1085490
add ebx, ebx
jne 0x10854c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x108551d
xor ecx, ecx
sub eax, 3
jb 0x10854e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1085552
sar eax, 1
mov ebp, eax
jmp 0x10854ee
add ebx, ebx
jne 0x10854ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10854bc
inc ecx
add ebx, ebx
jne 0x10854fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10854bc
add ebx, ebx
jne 0x1085509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10854fe
jne 0x108551a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10854fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x108553c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x108552e
jmp 0x108547e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x108553c
add edi, ecx
jmp 0x108547e
pop esi
mov edi, esi
mov ecx, 0x303ca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x108555a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x108555f
lea edi, [esi + 0xc81000]
mov eax, dword [edi]
or eax, eax
je 0x10855c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcd33d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcd3510]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1085585
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xcd3514]
or eax, eax
je 0x10855c1
mov dword [ebx], eax
add ebx, 4
jmp 0x10855a2
call dword [esi + 0xcd3524]
mov ebp, dword [esi + 0xcd3518]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x10855fb
sub esp, 0xffffff80
jmp 0x9c2038
Function at 0x404f50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x424711
call fcn.00423b10
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
lea edi, [esi + 0x30]
mov dword [ebp - 0x14], edi
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00405ecd
push dword [edi]
call fcn.00407e81
lea edi, [esi + 0x24]
pop ecx
mov dword [ebp - 0x14], edi
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00405ea7
push dword [edi]
call fcn.00407e81
lea edi, [esi + 0x18]
pop ecx
mov dword [ebp - 0x14], edi
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00405ea7
push dword [edi]
call fcn.00407e81
add esi, 0xc
pop ecx
mov dword [ebp - 0x14], esi
mov ecx, esi
mov dword [ebp - 4], 6
call fcn.00405e73
push dword [esi]
call fcn.00407e81
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x405205
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x42484b
call fcn.00423b10
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402f1e
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00402f1e
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402f1e
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00402f1e
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00402f1e
and byte [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.00402f1e
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 5
call fcn.00402f1e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x409e75
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x4251c8
call fcn.00423b10
sub esp, 0x18
cmp byte [0x432d54], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
jne 0x409eb7
mov edx, ebx
lea ecx, [ebp - 0x24]
call fcn.00408563
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
push dword [ebp - 0x24]
call fcn.00407e81
test esi, esi
pop ecx
je 0x409f04
jmp 0x409ec5
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push ebx
call esi
test eax, eax
je 0x409ec9
mov al, 1
jmp 0x409f06
lea ecx, [ebp - 0x18]
call fcn.00402f1e
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.0040ba6e
test al, al
je 0x409efb
push edi
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407e81
test esi, esi
pop ecx
setne al
jmp 0x409f06
push dword [ebp - 0x18]
call fcn.00407e81
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409f15
Capabilities:
Delete directory

Disassembly:
mov eax, 0x4251dc
call fcn.00423b10
sub esp, 0x18
cmp byte [0x432d54], 0
push esi
push edi
mov edi, ecx
jne 0x409f52
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00408563
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
push dword [ebp - 0x24]
call fcn.00407e81
test esi, esi
pop ecx
je 0x409f9a
jmp 0x409f5f
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call esi
test eax, eax
je 0x409f63
mov al, 1
jmp 0x409f9c
lea ecx, [ebp - 0x18]
call fcn.00402f1e
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040ba6e
test al, al
push dword [ebp - 0x18]
je 0x409f94
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407e81
test esi, esi
pop ecx
setne al
jmp 0x409f9c
call fcn.00407e81
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x409faa
Capabilities:
Move file

Disassembly:
mov eax, 0x425200
call fcn.00423b10
sub esp, 0x30
cmp byte [0x432d54], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
jne 0x40a003
lea ecx, [ebp - 0x3c]
call fcn.00408563
and dword [ebp - 4], 0
mov esi, dword [eax]
mov edx, ebx
lea ecx, [ebp - 0x30]
call fcn.00408563
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
push dword [ebp - 0x30]
call fcn.00407e81
push dword [ebp - 0x3c]
call fcn.00407e81
pop ecx
test esi, esi
pop ecx
je 0x40a077
jmp 0x40a011
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
push ebx
call esi
test eax, eax
je 0x40a015
mov al, 1
jmp 0x40a079
lea ecx, [ebp - 0x24]
call fcn.00402f1e
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00402f1e
lea eax, [ebp - 0x18]
mov edx, edi
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00409e15
test al, al
push dword [ebp - 0x18]
je 0x40a068
push dword [ebp - 0x24]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407e81
push dword [ebp - 0x24]
call fcn.00407e81
pop ecx
test esi, esi
pop ecx
setne al
jmp 0x40a079
call fcn.00407e81
push dword [ebp - 0x24]
call fcn.00407e81
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a088
Capabilities:
Create directory

Disassembly:
mov eax, 0x425214
call fcn.00423b10
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x432d54], bl
push esi
push edi
mov edi, ecx
jne 0x40a0c9
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.00408563
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
push dword [ebp - 0x24]
call fcn.00407e81
cmp esi, ebx
pop ecx
je 0x40a122
jmp 0x40a0d7
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push edi
call esi
test eax, eax
je 0x40a0db
mov al, 1
jmp 0x40a124
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a122
lea ecx, [ebp - 0x18]
call fcn.00402f1e
lea edx, [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040ba6e
test al, al
je 0x40a119
push ebx
push dword [ebp - 0x18]
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00407e81
cmp esi, ebx
pop ecx
setne al
jmp 0x40a124
push dword [ebp - 0x18]
call fcn.00407e81
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40a807
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x432d54], 0
jne 0x40a83c
mov edx, ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.00408563
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
push dword [ebp - 0xc]
setne bl
call fcn.00407e81
pop ecx
mov al, bl
pop ebx
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
leave
ret

Function at 0x40a84b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x425318
call fcn.00423b10
sub esp, 0x32c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x432d54], bl
jne 0x40a8c9
lea eax, [ebp - 0x12c]
mov byte [ebp - 0x12c], bl
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403cfc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.004085a8
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401526
push dword [ebp - 0x24]
call fcn.00407e81
push dword [ebp - 0x18]
call fcn.00407e81
pop ecx
pop ecx
jmp 0x40a8f2
lea eax, [ebp - 0x338]
mov word [ebp - 0x338], bx
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
lea eax, [ebp - 0x338]
push eax
mov ecx, esi
call fcn.00402f9d
cmp edi, ebx
jbe 0x40a903
cmp edi, 0x104
ja 0x40a903
push 1
pop eax
jmp 0x40a905
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40aa12
Capabilities:
Get common file path

Disassembly:
mov eax, 0x425364
call fcn.00423b10
sub esp, 0x32c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x432d54], bl
jne 0x40aa90
lea eax, [ebp - 0x12c]
mov byte [ebp - 0x12c], bl
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403cfc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.004085a8
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401526
push dword [ebp - 0x24]
call fcn.00407e81
push dword [ebp - 0x18]
call fcn.00407e81
pop ecx
pop ecx
jmp 0x40aab9
lea eax, [ebp - 0x338]
mov word [ebp - 0x338], bx
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
lea eax, [ebp - 0x338]
push eax
mov ecx, esi
call fcn.00402f9d
cmp edi, ebx
jbe 0x40aaca
cmp edi, 0x104
ja 0x40aaca
push 1
pop eax
jmp 0x40aacc
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40bb73
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
push esi
je 0x40bb94
cmp byte [ecx + 5], 0
je 0x40bb94
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x40bbd3
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bbb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40bbb5
xor al, al
jmp 0x40bbd5
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00423bc0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40c674
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42554e
call fcn.00423b10
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, ecx
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov dword [ebp - 0x10], ebx
mov word [eax], bx
cmp byte [0x432d54], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ebx
je 0x40c70a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x40c6c8
cmp eax, 0xea
jne 0x40c7ad
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 8]
jl 0x40c6d8
push eax
mov ecx, esi
call fcn.00401564
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040c651
mov edi, eax
mov eax, dword [esi]
xor ecx, ecx
cmp word [eax], bx
je 0x40c6fe
mov edx, eax
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x40c6f6
mov word [eax + ecx*2], bx
mov dword [esi + 4], ecx
jmp 0x40c7ab
lea ecx, [ebp - 0x20]
call fcn.00403059
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
jne 0x40c71e
xor eax, eax
jmp 0x40c74f
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00402f3e
mov dword [ebp - 0x10], 1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040c5ab
mov dword [ebp - 0x10], 3
mov eax, dword [eax]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x20]
push ecx
push eax
mov ecx, edi
call fcn.0040c5e3
test byte [ebp - 0x10], 2
mov edi, eax
je 0x40c770
push dword [ebp - 0x38]
and dword [ebp - 0x10], 0xfffffffd
call fcn.00407e81
pop ecx
test byte [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x40c782
push dword [ebp - 0x2c]
call fcn.00407e81
pop ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00409d3c
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00401526
push dword [ebp - 0x38]
call fcn.00407e81
push dword [ebp - 0x20]
call fcn.00407e81
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40fb42
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x425935
call fcn.00423b10
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
push dword [esi + 0x58]
mov dword [ebp - 4], 3
call fcn.00407e81
pop ecx
lea ecx, [esi + 0x30]
call fcn.0040fbbc
lea edi, [esi + 0x24]
mov dword [ebp - 0x14], edi
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00411652
push dword [edi]
call fcn.00407e81
push dword [esi + 0x18]
call fcn.00407e81
push dword [esi + 0xc]
call fcn.00407e81
add esp, 0xc
mov ecx, esi
mov dword [ebp - 4], 5
call fcn.0040318f
push dword [esi]
call fcn.00407e81
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x411589
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x425be7
call fcn.00423b10
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004033c3
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.004033c3
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.004033c3
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.004033c3
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.004033c3
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.004033c3
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.004033c3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x415405
Capabilities:
Encode data using xor

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
test edx, edx
jbe 0x415432
push ebx
push edi
movzx edi, byte [esi + ecx]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x433100]
xor eax, edi
inc esi
cmp esi, edx
jb 0x415411
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x417754
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov dword [ebp - 8], ecx
push esi
xor ebx, ebx
xor eax, eax
push edi
mov dword [ebp - 4], edx
xor ecx, ecx
mov byte [ebp + eax - 0x50], bl
add eax, 1
adc ecx, ebx
jne 0x417779
cmp eax, 0x40
jb 0x417769
xor edi, edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], ebx
jb 0x4177e7
ja 0x41778a
cmp dword [ebp + 8], ebx
jbe 0x4177e7
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov eax, dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebp - 0x50]
push ecx
push esi
call dword [eax + 0x14]
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
cmp eax, 0x40
ja 0x4177f0
xor ecx, ecx
xor edx, edx
cmp eax, ebx
jbe 0x4177c7
xor ecx, dword [ebp + edx - 0x50]
add edx, 4
cmp edx, eax
jb 0x4177bc
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4177d2
cmp ecx, dword [eax]
jne 0x4177f0
add dword [ebp - 0x10], 1
adc edi, ebx
cmp edi, dword [ebp + 0xc]
jb 0x41778d
ja 0x4177e7
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x10], eax
jb 0x41778d
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
xor al, al
jmp 0x4177e9

Function at 0x417ed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4264db
call fcn.00423b10
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00417f3b
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov byte [ebp - 4], 5
mov byte [esi + 0x5d], bl
call fcn.004116a8
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x5c], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41e004
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x427018
call fcn.00423b10
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
test eax, eax
mov dword [esi], eax
je 0x41e027
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [edi + 4]
and dword [ebp - 4], 0
test eax, eax
mov dword [esi + 4], eax
je 0x41e03b
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [edi + 8]
mov byte [ebp - 4], 1
test eax, eax
mov dword [esi + 8], eax
je 0x41e04f
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [edi + 0xc]
lea ecx, [esi + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.004033c3
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.004033c3
mov eax, dword [edi + 0x24]
lea ecx, [esi + 0x38]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov al, byte [edi + 0x34]
mov byte [esi + 0x34], al
lea eax, [edi + 0x38]
push eax
mov byte [ebp - 4], 4
call fcn.004033c3
mov eax, dword [edi + 0x44]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x44], eax
mov al, byte [edi + 0x48]
mov byte [esi + 0x48], al
mov al, byte [edi + 0x49]
mov byte [esi + 0x49], al
mov al, byte [edi + 0x4a]
mov byte [esi + 0x4a], al
mov al, byte [edi + 0x4b]
mov byte [esi + 0x4b], al
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x423950
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.004238e0
pop esi
ret 4