joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd2da254
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0xd2da29e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0xd2da245
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0xd2da254
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0xd6dfef7
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0xd2da2a5
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0d2c111b
cmp eax, dword [ebp + 0xc]
pop eax
je 0xd2da344
add edi, 4
add eax, 2
dec ecx
jne 0xd2da28a
call 0xd2da2f1
loope 0xd2da2e7
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0xd2da341
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0xd2da352
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0xd2da305
cmp eax, ecx
ja 0xd2da305
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0xd2da38f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0xd2da385
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0d2c15fa
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]

Function at 0x427e1e
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x3c244434
xor al, 0xc7
and al, 0x3c
xor al, 0x6c
mov cl, 0x35
xor al, 0xc7
and al, 0x3c
xor al, 0xe5
and al, 0x3c
xor al, 0xac
mov cl, 0x35
xor al, 0xf4
and al, 0x3c
xor al, 0x22
and al, 0x3c
xor al, 0xbc
mov cl, 0x35
xor al, 0x22
and al, 0x3c
xor al, 0x3e
and eax, 0xb1e4343c
xor eax, 0x3c253e34
xor al, 0x5a
and eax, 0xb1f0343c
xor eax, 0x3c255a34
xor al, 0x79
and eax, 0xb1fc343c
xor eax, 0x3c258434
xor al, 0x6d
sub bh, byte [esp + esi]
or byte [ecx + 0x2a6d3435], dh
cmp al, 0x34
xchg esp, eax
sub bh, byte [esp + esi]
push esp
mov bl, 0x35
xor al, 0x94
sub bh, byte [esp + esi]
mov ebx, 0x70343c2a
mov bl, 0x35
xor al, 0xbb
sub bh, byte [esp + esi]
sbb byte [edx], ch
cmp al, 0x34
invalid
Function at 0x4010cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4010f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 3
pop ebp
ret

Function at 0x40162b
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
lea eax, [ebp - 4]
push esi
push eax
push 0x40d3d0
xor ebx, ebx
push 1
push ebx
push 0x40d3e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40171a
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.00408100
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.004081f0
add esp, 0x10
cmp eax, ebx
je 0x40169b
mov byte [eax], bl
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4016b0
cmp byte [eax], bl
je 0x4016b0
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x4016c4
push dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x40d3f0
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x401711
lea eax, [ebp - 0x314]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x314]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4026eb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [0x411ac8]
push dword [0x411ac4]
call fcn.00408100
mov esi, dword [ebp + 8]
pop ecx
pop ecx
cmp byte [esi + 0xb], 2
jne 0x402756
push dword [0x411b78]
push dword [0x411ac4]
call fcn.00408100
push 0x5c
push dword [0x411ac4]
call fcn.004081f0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x402739
inc edi
jmp 0x40273f
mov edi, dword [0x411ac4]
push 0
push esi
call fcn.004026b6
push eax
push edi
call fcn.00408100
add esp, 0x10
jmp 0x4028c2
movzx eax, byte [esi + 8]
dec eax
je 0x40288f
dec eax
je 0x40278d
dec eax
jne 0x4028a0
lea eax, [ebp + 8]
push eax
push 0x14
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push dword [0x411ac4]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
jmp 0x4028a0
push 1
push 0x30c
call fcn.004084fc
mov edi, eax
pop ecx
test edi, edi
pop ecx
lea ebx, [edi + 0x208]
je 0x4028a0
push 0
push esi
call fcn.004026b6
push dword [0x411ac4]
mov esi, eax
call fcn.004062c6
push 0x5c
push esi
call fcn.004081f0
add esp, 0x14
test eax, eax
je 0x4027d5
inc eax
mov dword [ebp + 8], eax
jmp 0x4027d8
mov dword [ebp + 8], esi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 8]
push edi
push eax
lea eax, [edi + 0x104]
mov dword [ebp - 8], esi
push eax
push dword [0x411ac4]
push ebx
push dword [ebp + 8]
push 1
call sub.VERSION.dll_VerFindFileA
mov ebx, eax
shr ebx, 1
and ebx, 1
cmp byte [edi], 0
je 0x402838
push edi
call fcn.0040629f
push dword [ebp + 8]
push edi
call fcn.00408110
push edi
push dword [0x411ac4]
call fcn.00408100
add esp, 0x14
jmp 0x402861
push esi
push dword [0x411ac4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [0x411ac4]
call fcn.0040629f
push dword [ebp + 8]
push dword [0x411ac4]
call fcn.00408110
add esp, 0xc
test ebx, ebx
jne 0x402884
push 2
push dword [0x411ac4]
call fcn.004084b8
pop ecx
test eax, eax
pop ecx
je 0x402884
cmp dword [0x411be8], 0xd
jne 0x402884
push 1
pop ebx
push edi
call fcn.0040834d
pop ecx
mov eax, ebx
jmp 0x4028c4
push 0x104
push dword [0x411ac4]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x411ac4]
call fcn.0040629f
push 0
push esi
call fcn.004026b6
push eax
push dword [0x411ac4]
call fcn.00408110
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4028c9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
push edi
push 1
pop edi
lea eax, [ebp + 8]
push eax
push 0x800
mov dword [ebp - 4], edi
call fcn.0040631f
pop ecx
test eax, eax
pop ecx
jne 0x4028f5
mov eax, edi
jmp 0x402a15
lea eax, [ebp - 0x14]
push eax
push dword [0x411ac4]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 8], eax
je 0x402a08
push eax
call fcn.004085ad
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
je 0x402a08
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [0x411ac4]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4029ff
test byte [esi + 0xd], 2
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x4029a8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40f1bc
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4029a8
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + 0x1a]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x402977
jne 0x4029a8
mov eax, dword [edx + 0xc]
cmp eax, dword [esi + 0x1e]
jbe 0x4029a8
push 0x1d
push 6
call fcn.004012a5
cmp byte [eax], 0
pop ecx
pop ecx
je 0x4029fb
push dword [0x411ac4]
push eax
push dword [ebp + 8]
call edi
push 0x124
push dword [ebp + 8]
call fcn.004013bc
add esp, 0x14
cmp eax, 6
jne 0x4029fb
test byte [esi + 0xd], 4
je 0x4029ff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4029ff
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp dword [esi + 0x2a], eax
je 0x4029ff
push dword [0x411ac4]
push 0x1e
push 6
call fcn.004012a5
pop ecx
pop ecx
push eax
push dword [ebp + 8]
call edi
push 0x24
push dword [ebp + 8]
call fcn.004013bc
add esp, 0x14
cmp eax, 6
je 0x4029ff
and dword [ebp - 4], 0
push dword [ebp - 0x10]
call fcn.0040834d
pop ecx
lea eax, [ebp + 8]
push eax
call fcn.00406352
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x403adc
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
push edi
call fcn.00408080
test eax, eax
pop ecx
jbe 0x403aff
xor byte [esi + edi], 0x55
push edi
inc esi
call fcn.00408080
cmp esi, eax
pop ecx
jb 0x403aef
pop edi
pop esi
ret

Function at 0x404108
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 0xc]
push edi
push 2
pop edi
push str.Start_Menu
push esi
call fcn.004087b0
pop ecx
test eax, eax
pop ecx
jne 0x40412e
push 0xb
jmp 0x404141
push str.Startup
push esi
call fcn.004087b0
pop ecx
test eax, eax
pop ecx
jne 0x404144
push 7
pop edi
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test esi, esi
je 0x404186
cmp byte [esi], 0
je 0x404186
lea eax, [ebp - 0x104]
push eax
call fcn.0040629f
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00408110
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call fcn.004062c6
lea eax, [ebp - 0x104]
push eax
call fcn.00408217
pop ecx
test eax, eax
pop ecx
je 0x4041d3
lea eax, [ebp - 0x104]
push eax
call fcn.0040629f
lea eax, [ebp - 0x104]
push eax
call fcn.004064c8
lea eax, [ebp - 0x104]
push eax
call fcn.00408217
add esp, 0xc
test eax, eax
jne 0x404259
lea eax, [ebp - 0x104]
push eax
call fcn.0040629f
lea eax, [ebp - 0x104]
push eax
call fcn.00408080
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp - 0x104]
push eax
call fcn.00408110
lea eax, [ebp - 0x104]
push str..lnk
push eax
call fcn.00408110
push dword [ebp + 0x18]
lea eax, [ebp - 0x104]
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.0040162b
add esp, 0x28
cmp dword [ebp + 0x1c], 0xffffffff
je 0x404259
test esi, esi
je 0x404237
and byte [ebp + esi - 0x105], 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x1c]
call fcn.00402168
lea eax, [ebp + esi - 0x104]
push eax
push dword [ebp + 0x1c]
call fcn.00402168
add esp, 0x10
pop edi
pop esi
leave
ret
Function at 0x404513
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
xor ebx, ebx
cmp dword [0x411bac], ebx
push esi
push edi
je 0x404546
cmp dword [ebp + 8], ebx
jne 0x40453f
push 4
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x4046c2
push 5
push dword [ebp + 8]
jmp 0x404531
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
push dword [ebp + 0xc]
call edi
cmp dword [ebp + 8], ebx
je 0x404570
lea eax, [ebp - 0x310]
push esi
push eax
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp + 8], ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
je 0x4045c8
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x310]
push eax
push str.Rename
call esi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
call esi
jmp 0x4046c2
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40f238
push str.Rename
call esi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
call esi
lea eax, [ebp - 0x108]
push 2
push eax
call section..text
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
mov dword [ebp - 4], esi
je 0x4046c2
push esi
call fcn.0040114d
mov edi, eax
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x200]
push eax
call fcn.004062f2
add esp, 0xc
test eax, eax
je 0x4046b9
push edi
push dword [ebp + 8]
push esi
call fcn.00401077
add esp, 0xc
test eax, eax
jne 0x4046af
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], ebx
lea ebx, [edi - 4]
test ebx, ebx
jbe 0x4046af
cmp byte [esi], 0x78
jne 0x404680
cmp byte [esi + 1], 0x79
jne 0x404680
cmp byte [esi + 2], 0x7a
jne 0x404680
cmp byte [esi + 3], 0x3d
jne 0x404680
lea eax, [ebp - 0x20c]
push eax
call fcn.00408080
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 4]
push eax
call fcn.00408700
add esp, 0x10
test eax, eax
je 0x40468b
inc dword [ebp + 0xc]
inc esi
cmp dword [ebp + 0xc], ebx
jb 0x404645
jmp 0x4046af
push 0
mov byte [esi], 0x4e
push dword [ebp - 4]
mov byte [esi + 1], 0x55
mov byte [esi + 2], 0x4c
call fcn.00401114
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004010cd
add esp, 0x14
lea eax, [ebp + 8]
push eax
call fcn.00406352
pop ecx
push dword [ebp - 4]
call fcn.0040121f
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406369
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
mov ebx, dword [ebp + 0xc]
push esi
or esi, 0xffffffff
test ebx, ebx
je 0x406384
mov dword [ebx], 1
mov eax, dword [ebp + 8]
test eax, eax
je 0x4064c2
cmp byte [eax], 0
je 0x4064c2
push edi
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00408100
pop ecx
pop ecx
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406445
push str.GetDiskFreeSpaceExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x406430
cmp byte [ebp - 0x120], 0x5c
jne 0x4063ef
cmp byte [ebp - 0x11f], 0x5c
jne 0x4063ef
lea eax, [ebp - 0x120]
push eax
call fcn.0040629f
jmp 0x4063fb
lea eax, [ebp - 0x120]
push eax
call fcn.004062c6
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x120]
push eax
call ebx
test eax, eax
je 0x406430
mov esi, dword [ebp - 4]
cmp esi, 0x400
jb 0x406425
push 0xfffffffffffffffe
pop esi
jmp 0x406430
mov eax, dword [ebp - 8]
shl esi, 0x16
shr eax, 0xa
add esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, 0xffffffff
je 0x406442
cmp dword [ebp + 0xc], 0
je 0x4064bd
mov ebx, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
cmp byte [ebp - 0x120], 0x5c
jne 0x40645b
cmp byte [ebp - 0x11f], 0x5c
je 0x406472
cmp byte [ebp - 0x11f], 0x3a
jne 0x406472
and byte [ebp - 0x11d], 0
mov byte [ebp - 0x11e], 0x5c
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4064bd
mov eax, dword [ebp - 0xc]
cmp esi, 0xffffffff
jne 0x4064ab
mov esi, eax
imul esi, dword [ebp + 8]
shr esi, 8
imul esi, dword [ebp + 0xc]
shr esi, 2
test ebx, ebx
je 0x4064bd
imul eax, dword [ebp + 8]
add eax, 0x3ff
shr eax, 0xa
mov dword [ebx], eax
mov eax, esi
pop edi
jmp 0x4064c4
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4068c1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor ebx, ebx
push 5
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4069a1
lea eax, [ebp - 0x208]
mov esi, 0x80000000
push eax
push dword [ebp + 0xc]
push esi
call fcn.004069a6
add esp, 0xc
test eax, eax
jne 0x4069a1
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push str._shellopencommand
push eax
call edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.004069a6
add esp, 0xc
test eax, eax
jne 0x4069a1
lea eax, [ebp - 0x208]
push str.__1_
push eax
call fcn.00408f50
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x406982
lea eax, [ebp - 0x208]
push 0x40f458
push eax
call fcn.00408f50
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x406982
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x209]
jmp 0x406984
mov byte [esi], bl
push 0x40f454
push esi
call edi
push dword [ebp + 8]
push esi
call edi
lea eax, [ebp - 0x208]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4069a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4069e5
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4084d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409591
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4084f9
test byte [esp + 8], 2
je 0x4084f9
mov dword [0x411be8], 0xd
mov dword [0x411bec], 5
jmp 0x4084d4
xor eax, eax
ret

Function at 0x4086b7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4086e2
test byte [esp + 8], 0x80
je 0x4086d1
and al, 0xfe
jmp 0x4086d3
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4086f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409591
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40c381
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a20
cmp edx, dword [eax]
je 0x40c3a3
add eax, 8
inc ecx
cmp eax, 0x411ab0
jl 0x40c394
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a20]
jne 0x40c4d1
mov eax, dword [0x411c3c]
cmp eax, 1
je 0x40c4ab
test eax, eax
jne 0x40c3d4
cmp dword [0x40f4c0], 1
je 0x40c4ab
cmp edx, 0xfc
je 0x40c4d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c40b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408100
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408080
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c44e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408080
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d7d0
push edi
call fcn.00408a40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408100
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408110
lea eax, [ebp - 0xa0]
push 0x40f120
push eax
call fcn.00408110
push dword [esi + 0x411a24]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408110
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040cc97
add esp, 0x2c
pop edi
jmp 0x40c4d1
lea eax, [ebp + 8]
lea esi, [esi + 0x411a24]
push 0
push eax
push dword [esi]
call fcn.00408080
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40cef0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, ecx
push ecx
mov dword [ebp - 4], eax
call fcn.0040cca0
mov esi, eax
add esp, 4
xor ebx, ebx
mov dword [ebp - 8], esi
lea edi, [esi*4]
test edi, edi
jle 0x40cf68
mov eax, dword [ebp - 4]
lea esi, [eax + 8]
lea esi, [esi + edi*4]
lea ecx, [eax + 8]
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x40cf25
mov esi, dword [ebp - 8]
cmp esi, 1
jle 0x40d0ea
mov edi, dword [ebp - 4]
lea ebx, [esi - 1]
add edi, 4
nop word [eax + eax]
mov edx, dword [edi + 0xc]
lea edi, [edi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [edi - 3]
mov ecx, dword [ecx*4 + 0x4b95c0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4b89c0]
movzx eax, dl
mov edx, dword [edi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ba5e8]
movzx eax, byte [edi - 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4b8dc0]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi - 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4b8dc0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4b89c0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4b95c0]
movzx eax, dl
mov edx, dword [edi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ba5e8]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4b8dc0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4b89c0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4b95c0]
movzx eax, dl
mov edx, dword [edi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ba5e8]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + 4], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4b8dc0]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4b89c0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4b95c0]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4ba5e8]
mov dword [edi + 8], ecx
sub ebx, 1
jne 0x40cf80
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dd80
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x214]
test eax, eax
je 0x40ddca
push 0
lea ecx, [ebp + 0xc]
push ecx
push 0x10
push ebx
push 0
push 0
push 0
push 0x10
push esi
push eax
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
jns 0x40ddf3
push eax
push str.BCryptEncrypt_x_n
call fcn.0045f780
add esp, 8
mov ecx, edi
call fcn.0040dd20
lea eax, [esi + 0x10]
mov dword [ebp + 0xc], eax
cmp esi, eax
jae 0x40ddf3
sub ebx, esi
mov edx, dword [edi + 0x1e0]
lea eax, [ebx + esi]
push eax
push esi
mov ecx, edi
call fcn.0040d100
add esi, 0x10
add esp, 8
cmp esi, dword [ebp + 0xc]
jb 0x40ddd6
pop edi
pop esi
pop ebx
pop ebp
ret 0xc