joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c50
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
push esi
mov esi, eax
mov ecx, dword [esi + 0x48]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x405c73
mov eax, 1
pop esi
add esp, 0x44
ret
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x405c88
mov ebp, 1
test al, 2
je 0x405c8f
or ebp, 2
test al, 4
je 0x405c96
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x405ca0
or ebp, 0x10
test al, 0x20
je 0x405ca7
or ebp, 0x20
test ecx, ecx
je 0x405cb3
or ebp, 0x40000000
jmp 0x405cb9
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x405cc9
or ebp, 0x800000
mov edx, dword [esi + 0x48]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x3c], eax
cmp eax, 0x28
jbe 0x405da0
cmp dword [esi + 0x10], 0
jne 0x405da0
mov eax, dword [esi + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push eax
call edi
mov eax, dword [esi + 0x48]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push eax
call ebx
mov ecx, dword [esi + 0x48]
push 0
push 0
push 0x24
push ecx
call edi
mov ecx, dword [esi + 0x48]
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push ecx
call ebx
mov edx, 0x54ad
cmp word [esp + 0x10], dx
jne 0x405d94
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x34]
cmp dword [esi + 0x3c], ecx
jbe 0x405d94
mov edx, dword [esi + 0x48]
push 0
push 0
push eax
push edx
call edi
mov edx, dword [esi + 0x48]
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x405d8e
cmp eax, 0x454e
je 0x405d8e
cmp eax, 0x454c
je 0x405d8e
cmp eax, 0x4550
jne 0x405d94
or ebp, 0x400000
mov eax, dword [esi + 0x48]
push 0
push 0
push 0
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x58]
push 0
sub ecx, 0xd53e8000
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [ebx + 0x10], ebp
call fcn.0051abd0
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov dword [ebx], eax
push 0
mov eax, esi
sub eax, 0xd53e8000
mov ecx, edi
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
call fcn.0051abd0
mov edx, dword [esp + 0x24]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
push 0
sub edx, 0xd53e8000
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.0051abd0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
push esi
mov dword [ebx + 8], eax
call fcn.00405b70
movzx eax, word [esp + 0x20]
movzx ecx, word [esp + 0x24]
add esp, 0x10
shl eax, 0x10
pop edi
or eax, ecx
pop ebp
mov dword [ebx + 0xc], eax
pop ebx
xor eax, eax
pop esi
add esp, 0x44
ret
Function at 0x406630
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x406637
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x406714
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5489a0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5489a0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5489a0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5489a0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5489a0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5489a0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5489a0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5489a0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x406650
pop edi
test edx, edx
je 0x40673b
jmp 0x406720
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5489a0]
inc ecx
sub edx, 1
jne 0x406720
not eax
pop esi
ret

Function at 0x406740
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5489a0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5489a0]
mov dword [edx + 8], ecx
ret

Function at 0x406790
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, dword [edx]
mov eax, dword [edx + 8]
movsx ebx, bl
mov ecx, edi
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5489a0]
shr edi, 8
xor ecx, edi
mov dword [edx], ecx
movzx ecx, cl
add ecx, dword [edx + 4]
mov esi, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5489a0]
and esi, 0xfffd
mov dword [edx + 8], eax
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
pop edi
xor eax, ebx
pop esi
ret
Function at 0x406800
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
cmp dword [esi + 0x14], 0
push ebx
mov ebx, eax
jne 0x4068a0
shr eax, 8
test byte [esi], 0x10
mov byte [esp + 4], bl
mov byte [esp + 5], al
je 0x406839
lea edx, [esi + 0x24]
call fcn.00406790
mov bl, byte [esp + 5]
mov byte [esp + 4], al
call fcn.00406790
mov byte [esp + 5], al
test byte [esi], 1
je 0x406867
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 2]
cmp ecx, dword [esi + 0x20]
jb 0x406855
mov dword [esi + 0x14], 0xb
pop ebx
add esp, 8
ret
mov edx, dword [esi + 4]
mov cx, word [esp + 4]
mov word [eax + edx], cx
add dword [esi + 0x1c], 2
jmp 0x406891
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0xc]
push edx
push 2
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40688a
cmp dword [esp + 8], 2
je 0x406891
mov dword [esi + 0x14], 3
test dword [esi], 0x40000000
je 0x4068a0
mov dword [esi + 0x14], 0x14
pop ebx
add esp, 8
ret

Function at 0x4068b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
mov edi, eax
test ebp, ebp
je 0x4069ab
cmp dword [esi + 0x14], 0
jne 0x4069ab
test byte [esi], 0x10
je 0x40694a
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4068e9
cmp dword [esi + 0x34], ebp
jae 0x4068e9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x30], 0
cmp dword [esi + 0x30], 0
jne 0x406912
lea eax, [ebp + ebp]
push eax
push 0
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x406912
mov dword [esi + 0x14], 2
jmp 0x40699c
mov eax, dword [esi + 0x30]
push ebp
push edi
push eax
call fcn.0051a400
add esp, 0xc
xor edi, edi
test ebp, ebp
jbe 0x406947
lea edx, [esi + 0x24]
push ebx
lea ebx, [ebx]
mov ecx, dword [esi + 0x30]
mov bl, byte [ecx + edi]
call fcn.00406790
mov ecx, dword [esi + 0x30]
mov byte [edi + ecx], al
inc edi
cmp edi, ebp
jb 0x406930
pop ebx
mov edi, dword [esi + 0x30]
test byte [esi], 1
je 0x406978
mov eax, dword [esi + 0x1c]
lea edx, [eax + ebp]
cmp edx, dword [esi + 0x20]
jb 0x406963
mov dword [esi + 0x14], 0xb
jmp 0x40699c
mov ecx, dword [esi + 4]
push ebp
add ecx, eax
push edi
push ecx
call fcn.0051a400
add esp, 0xc
add dword [esi + 0x1c], ebp
jmp 0x40699c
mov eax, dword [esi + 4]
push 0
lea edx, [esp + 0x10]
push edx
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406995
cmp dword [esp + 0xc], ebp
je 0x40699c
mov dword [esi + 0x14], 3
test dword [esi], 0x40000000
je 0x4069ab
mov dword [esi + 0x14], 0x14
pop edi
pop ebp
ret
Function at 0x406a50
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esi]
push edi
test eax, 0x40000000
je 0x406a67
mov dword [esi + 0x14], 0x14
xor eax, eax
pop edi
pop ecx
ret
test al, al
jns 0x406a9a
mov eax, dword [esi + 0x50]
mov edi, dword [esi + 0x4c]
cmp eax, edi
jae 0x406ab8
sub edi, eax
mov dword [esp + 4], edi
cmp edi, ecx
jbe 0x406a85
mov edi, ecx
mov dword [esp + 4], edi
mov ecx, dword [esi + 0x48]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0051a400
add esp, 0xc
add dword [esi + 0x50], edi
jmp 0x406ac1
mov eax, dword [esi + 0x48]
push 0
lea edx, [esp + 8]
push edx
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406abd
mov dword [esi + 0x14], 7
xor eax, eax
pop edi
pop ecx
ret
mov edi, dword [esp + 4]
mov eax, dword [esi + 0x44]
add dword [esi + 0x40], edi
mov edx, edi
mov ecx, ebx
call fcn.00406630
mov dword [esi + 0x44], eax
mov eax, edi
pop edi
pop ecx
ret
Function at 0x40aa60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5344e0
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x595834]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0x200
mov byte [ebp - 0x21c], 0
push 0x1ff
push 0
lea eax, [ebp - 0x21b]
push eax
call fcn.0051ab50
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x230], ecx
lea edx, [ebp - 0x10]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0x230]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ab18
mov dword [ebp - 0x228], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041b810
mov eax, dword [ebp - 0x228]
jmp 0x40abe4
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00426c1c
mov dword [ebp - 0x220], 0x200
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x240], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
movsx ecx, byte [ebp - 0x21c]
test ecx, ecx
je 0x40aba0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x238]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00426f68
mov byte [ebp - 0x21c], 0
cmp dword [ebp - 0x14], 0x103
jne 0x40ab24
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 4], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041b810
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0051a243
mov esp, ebp
pop ebp
ret
Function at 0x40bf20
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534773
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x595834]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40bf7f
xor eax, eax
jmp 0x40c095
lea ecx, [ebp - 0x40]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x40bfab
cmp dword [ebp - 0x14], 0
je 0x40bfa4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40c095
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
push 0x10
lea ecx, [ebp - 0x38]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40bffa
cmp dword [ebp - 0x14], 0
je 0x40bff3
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40c095
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
or eax, 2
mov dword [ebp - 0x18], eax
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40c046
cmp dword [ebp - 0x14], 0
je 0x40c042
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40c095
jmp 0x40c072
mov dword [ebp - 4], 0xffffffff
jmp 0x40c080
cmp dword [ebp - 0x14], 0
je 0x40c090
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040c3b0
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040c3b0
add esp, 4
add esi, eax
mov dword [ebp - 0x2c], esi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], 0x28
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
shl eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx + 0x10]
mov word [ebp - 0x1c], dx
mov eax, dword [ebp + 0xc]
mov cx, word [eax + 0x12]
mov word [ebp - 0x1a], cx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
push 0
lea eax, [ebp - 0x30]
push eax
push 0x28
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x30]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040c3e0
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040c3b0
add esp, 4
mov esi, eax
lea edx, [ebp - 0x60]
push edx
call fcn.0040c3b0
add esp, 4
add esi, eax
mov dword [ebp - 0x30], esi
movzx eax, word [ebp - 6]
cmp eax, 8
jl 0x40c490
mov dword [ebp - 0x44], 0
jmp 0x40c4a5
movzx ecx, word [ebp - 6]
movzx edx, word [ebp - 8]
imul ecx, edx
mov eax, 1
shl eax, cl
mov dword [ebp - 0x44], eax
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0x40], cl
mov dl, byte [ebp - 0x10]
mov byte [ebp - 0x3f], dl
mov al, byte [ebp - 0x44]
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x3d], 0
mov cx, word [ebp - 8]
mov word [ebp - 0x3c], cx
mov dx, word [ebp - 6]
mov word [ebp - 0x3a], dx
mov eax, dword [ebp - 0x30]
add eax, 0x28
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x34], ecx
push 0
lea edx, [ebp - 0x48]
push edx
push 0x10
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x48]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea eax, [ebp - 0x20]
push eax
push 0x18
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [ebp - 0x20]
push edx
call fcn.0040c3b0
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.0051a32f
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 8], ecx
jmp 0x40c56a
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jl 0x40c5bd
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
imul edx, dword [ebp - 0x14]
add edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
and ecx, 3
je 0x40c5bb
mov dword [ebp - 0x2c], 0
push 0
lea edx, [ebp - 0x24]
push edx
mov eax, 4
sub eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40c561
mov eax, dword [ebp - 4]
push eax
call fcn.0051a252
add esp, 4
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret

Function at 0x40c620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40c655
mov eax, dword [ebp + 0x14]
jmp 0x40c691
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40c684
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
jmp 0x40c691
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40c6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 0x200
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0051ab50
add esp, 0xc
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40c6e4
or eax, 0xffffffff
jmp 0x40c831
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40c716
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x40c831
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 0x15], al
add dword [ebp - 0x10], 1
cmp byte [ebp - 0x15], 0
jne 0x40c72f
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 2
jbe 0x40c82e
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx]
mov byte [ebp - 0x25], dl
add dword [ebp - 0x20], 1
cmp byte [ebp - 0x25], 0
jne 0x40c763
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx - 1]
cmp edx, 0xa
jne 0x40c7c1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x30]
mov al, byte [edx]
mov byte [ebp - 0x35], al
add dword [ebp - 0x30], 1
cmp byte [ebp - 0x35], 0
jne 0x40c79c
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x3c]
mov byte [edx - 1], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x40]
mov al, byte [edx]
mov byte [ebp - 0x45], al
add dword [ebp - 0x40], 1
cmp byte [ebp - 0x45], 0
jne 0x40c7d0
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x4c]
movsx eax, byte [edx - 1]
cmp eax, 0xd
jne 0x40c82e
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
mov cl, byte [eax]
mov byte [ebp - 0x55], cl
add dword [ebp - 0x50], 1
cmp byte [ebp - 0x55], 0
jne 0x40c809
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x5c]
mov byte [eax - 1], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40cde0
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x595834]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40cea7
push 0x200
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40cea7
push str._c_del
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.____NUL
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x200
lea ecx, [ebp - 0x408]
push ecx
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40cea7
push 0
push 0
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x408]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x40cea7
mov eax, 1
jmp 0x40cea9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051a243
mov esp, ebp
pop ebp
ret

Function at 0x40d3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40d41c
xor eax, eax
jmp 0x40d46b
mov edx, dword [ebp + 0xc]
push edx
call fcn.0051a32f
add esp, 4
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x40d45d
mov eax, dword [ebp - 8]
jmp 0x40d46b
mov edx, dword [ebp - 8]
push edx
call fcn.0051a252
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40d4e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0051ab50
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x8540
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x1c], 0
cmp dword [0x599208], 0
je 0x40d521
mov dword [ebp - 0x30], str.runas
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0x4e20
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret