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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x2fec1ff9
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x70036baf
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x408869
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4088bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4088bf
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4088b1
cmp esi, ecx
jae 0x4088bf
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40889f
cmp esi, ecx
jae 0x4088bf
cmp word [esi], 0
je 0x4088bf
mov eax, esi
jmp 0x4088c1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x408d62
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.00409302
mov eax, dword [ebp - 4]
xor edi, edi
inc edi
mov ebx, 0x104
mov edx, edi
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, ebx
or edx, ecx
jge 0x408d98
push ebx
lea ecx, [ebp - 4]
call fcn.00409572
mov eax, dword [ebp - 4]
push ebx
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00409329
test esi, esi
je 0x408e91
cmp esi, 0x104
ja 0x408e91
push dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.004092a3
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
push dword [eax - 0xc]
call fcn.004093d8
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
call fcn.00409329
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0040951f
lea ecx, [ebp - 4]
lea esi, [eax + 0x10]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
call fcn.0040924b
lea ecx, [esi - 0x10]
call fcn.00408a15
lea ecx, [ebp - 8]
call fcn.00409302
mov eax, dword [ebp - 8]
mov edx, 0x104
mov ecx, dword [eax - 8]
sub edi, dword [eax - 4]
sub ecx, edx
or edi, ecx
jge 0x408e3f
push edx
lea ecx, [ebp - 8]
call fcn.00409572
mov eax, dword [ebp - 8]
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.00409329
test esi, esi
js 0x408e7e
lea ecx, [ebp - 8]
call fcn.004091e5
lea ecx, [ebp - 4]
call fcn.004091e5
push ecx
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0040921f
neg eax
sbb al, al
lea ebx, [eax + 1]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00408a15
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x408ea3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
movzx eax, cl
mov edi, edx
push 0x406a08
sub eax, 0x7fffffff
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x408ee0
jle 0x408f49
movzx eax, ax
or eax, 0x80070000
jmp 0x408f49
push esi
push 0x32
pop esi
mov dword [ebp - 8], ebx
xor ecx, ecx
mov dword [ebp - 0xc], esi
inc ecx
mov edx, dword [edi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x408f05
push esi
mov ecx, edi
call fcn.00409572
mov edx, dword [edi]
lea eax, [ebp - 0xc]
push eax
push edx
lea eax, [ebp - 8]
push eax
push ebx
push 0x4069f4
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call fcn.00409329
test esi, esi
je 0x408f3b
jle 0x408f37
movzx esi, si
or esi, 0x80070000
mov eax, esi
jmp 0x408f48
mov eax, dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and eax, 0x8000ffff
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4090e2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x4069d8
push 0x406954
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40910a
push 0x800
call eax
push ebx
push esi
push edi
call fcn.00408d62
lea ecx, [ebp - 4]
mov bl, al
call fcn.00409302
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov dl, bl
call fcn.00408f4d
mov esi, dword [ebp - 4]
mov edi, eax
pop ecx
test edi, edi
js 0x4091d4
lea ecx, [ebp - 4]
call fcn.00413bbd
mov edi, eax
test edi, edi
jns 0x409189
movzx ecx, byte [0x42a815]
neg ecx
sbb ecx, ecx
and ecx, 0x42a820
je 0x4091d4
push ecx
push ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 7
mov dword [ebp - 0xc], 1
call fcn.0040a36e
push edi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push 0x406a90
push eax
call fcn.00408cdc
add esp, 0x10
jmp 0x4091d4
mov esi, dword [ebp - 4]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x4091a6
call fcn.00408cfb
mov edi, eax
jmp 0x4091d4
push 0x4069fc
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4091c8
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call edi
mov edi, eax
jmp 0x4091cd
mov edi, 0x80004005
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esi - 0x10]
call fcn.00408a15
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x409c95
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
call fcn.0040a799
mov esi, dword [ebp - 4]
lea edi, [ebx + 0x78]
xor eax, eax
cmp dword [esi - 0xc], eax
je 0x409d8a
push esi
push 1
push 0x406fdc
push 0x406ff8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 1
test eax, eax
push 0x407018
setne al
push 0x406ff8
mov byte [ebx + 0x74], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0
test eax, eax
push 0x40702c
setne al
push 0x406ff8
mov byte [ebx + 0x76], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0
test eax, eax
push 0x407040
setne al
push 0x406ff8
mov byte [ebx + 0x77], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 1
test eax, eax
push 0x407064
setne al
push 0x406ff8
mov byte [ebx + 0x7c], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
xor ecx, ecx
mov byte [ebx + 0x7d], al
inc ecx
mov edx, dword [edi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or ecx, eax
jge 0x409d63
push 0x104
mov ecx, edi
call fcn.00409572
mov edx, dword [edi]
push esi
push 0x104
push edx
push 0x406f5c
push 0x407080
push 0x406ff8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00409329
jmp 0x409db2
push 0x406f5c
mov byte [ebx + 0x74], 1
mov word [ebx + 0x76], 1
mov word [ebx + 0x7c], 0x100
call fcn.00418934
pop ecx
push eax
push 0x406f5c
mov ecx, edi
call fcn.00409414
cmp byte [ebx + 0x75], 0
je 0x409dbc
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 4], eax
mov edx, dword [eax + 0x429a30]
mov ecx, dword [eax + 0x429a34]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
test edx, edx
je 0x409e2a
cmp ecx, 9
ja 0x409e2a
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.0040a799
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x409e0d
push edi
push 1
push dword [ebp - 0xc]
push 0x406fc0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x409e10
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [edi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.00408a15
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x409dcb
call fcn.00410edc
lea ecx, [esi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.00408a15
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409e53
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 4]
call fcn.00409302
mov esi, dword [ebp - 4]
xor edx, edx
inc edx
mov ecx, 0x104
mov eax, dword [esi - 8]
sub edx, dword [esi - 4]
sub eax, ecx
or edx, eax
jge 0x409e86
push ecx
lea ecx, [ebp - 4]
call fcn.00409572
mov esi, dword [ebp - 4]
push esi
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x409ea6
push 0x4058f8
mov ecx, edi
call fcn.004092a3
jmp 0x409ec6
push 0x407098
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x409e98
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0040951f
add eax, 0x10
mov dword [edi], eax
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00409329
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x409fac
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x40a075
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x40a06b
lea eax, [ebp - 4]
push eax
call fcn.00409ee1
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x40a00c
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041147b
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.0040f033
test al, al
jne 0x40a016
mov ecx, edi
call fcn.004100dc
test eax, eax
jns 0x40a016
lea ecx, [edi - 0x10]
call fcn.00408a15
lea ecx, [esi - 0x10]
call fcn.00408a15
jmp 0x40a073
mov al, byte [ebx + 0x7d]
push 0x20
mov byte [ebp - 8], al
call fcn.004272cc
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.0040a98c
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x40a051
push esi
push dword [ebx + 0x54]
push 0x407160
call fcn.00410992
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.00408a15
lea ecx, [esi - 0x10]
call fcn.00408a15
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x40a073
push eax
mov ecx, ebx
call fcn.0040a726
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a508
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
test esi, esi
je 0x40a5bd
cmp dword [ebp + 8], 0
jne 0x40a52c
cmp dword [ebp + 0x10], 2
jg 0x40a5bd
push edi
lea ecx, [ebp - 4]
call fcn.00409302
lea ecx, [ebp + 0x14]
call fcn.00409302
xor edi, edi
inc edi
mov eax, dword [ebx + 0x58]
lea ecx, [ebx + 0x58]
push 0
mov eax, dword [eax + 0xc]
call eax
test al, al
jne 0x40a561
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jle 0x40a540
jmp 0x40a58b
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040a42b
mov eax, dword [ebx + 0x58]
lea ecx, [ebx + 0x58]
call dword [eax + 8]
cmp edi, 0x14
jle 0x40a5a6
push 0x407388
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x407380
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00408a15
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40a7e1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
lea ecx, [ebp - 8]
call fcn.00409302
lea ecx, [ebp - 0xc]
call fcn.0041061d
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], 0
je 0x40a824
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
call fcn.0040924b
mov esi, 0x406e50
push esi
call fcn.00418934
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.0040b863
push 0x406e30
lea ecx, [ebp - 0x14]
call fcn.004092a3
call fcn.0041117a
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.004111ee
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 4]
call fcn.004113da
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00408a15
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.004092a3
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.00408a15
test edi, edi
je 0x40a920
push 0x4073d0
lea ecx, [ebp - 0x10]
call fcn.004092a3
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
and dword [ebp - 0x14], 0
mov edx, 0x407430
push 0
push eax
push 4
mov ecx, esi
call fcn.004117c6
add esp, 0xc
test eax, eax
js 0x40a8e0
cmp dword [ebp - 0x14], 0
mov eax, 0x407444
je 0x40a8cc
mov eax, 0x407448
push dword [ebp - 4]
push eax
push 0x406ec4
push 0x406fc0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.0040951f
mov edi, dword [ebp + 8]
lea ecx, [esi - 0x10]
add eax, 0x10
mov dword [edi], eax
call fcn.00408a15
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00408a15
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00408a15
mov eax, edi
jmp 0x40a955
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push 0x406e30
call fcn.0040b7df
pop ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00408a15
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00408a15
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret 4
Function at 0x40a98c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push edi
lea ecx, [ebx + 0xc]
mov dword [ebx], fcn.0040ab38
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.00409302
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.004092a3
lea ecx, [ebx + 0x1c]
mov dword [ebx + 0x18], edi
call fcn.00409302
movzx eax, byte [0x42a815]
neg eax
sbb eax, eax
and eax, 0x42a820
mov dword [ebp + 8], eax
je 0x40aa54
push esi
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.0040a799
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x40aa2f
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push 0x40744c
push 0x406ff8
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push 0x40746c
push 0x406ff8
call edi
test eax, eax
setne al
jmp 0x40aa39
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.0040924b
lea ecx, [esi - 0x10]
call fcn.00408a15
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x40aab5
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x40ab36
mov byte [esi + 8], 1
call fcn.0040ab64
cmp dword [esi + 0x10], 0
je 0x40ab36
test al, al
je 0x40aad5
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.0040b6d0
test al, al
jne 0x40aafc
push dword [esi + 0xc]
push dword [esi + 0x1c]
push 0x407488
call fcn.00410992
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.0040ad88
cmp dword [esi + 0x18], 0
jne 0x40ab23
push dword [esi + 0x14]
push dword [esi + 0x1c]
push 0x4074f8
call fcn.00410992
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x40ab36
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x40ad88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea edx, [ebp - 4]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x14]
call fcn.0040f22d
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
jbe 0x40adb7
mov ecx, esi
call fcn.0040aff9
mov ecx, esi
call fcn.0040ae77
xor eax, eax
cmp byte [esi + 0xa], al
push edi
setne al
push 0x80
lea eax, [eax*2 + 2]
push eax
push edi
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x40aded
mov dword [esi + 0x18], edi
xor al, al
jmp 0x40ae1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ae18
cmp byte [esi + 0xb], 0
je 0x40ae18
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 2
push 0x406b24
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x40ae1e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x40ae4e
xor al, al
jmp 0x40ae72
cmp byte [esi + 0xb], bl
je 0x40ae69
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x406b24
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b40a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x42900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x70], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, 0x4076d8
lea eax, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b535
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push 0x40773c
push dword [ebp - 0x74]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x40b535
cmp dword [ebp - 0x78], esi
jne 0x40b535
push dword [ebp - 0x6c]
call fcn.004272fc
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x7c], esi
call fcn.00416a90
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push 0x40773c
push dword [ebp - 0x74]
call edi
test eax, eax
jne 0x40b52a
mov edi, dword [ebp - 0x6c]
shr edi, 1
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x40b52a
cmp word [esi + edi*2 - 4], bx
jne 0x40b52a
cmp word [esi + edi*2 - 2], bx
jne 0x40b52a
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
add eax, 0x14
mov edx, 0x407774
push eax
call fcn.0040b780
mov esi, dword [ebp - 0x70]
pop ecx
test edi, edi
je 0x40b516
mov eax, dword [ebp - 0x7c]
push esi
lea eax, [eax + ebx*2]
push eax
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40b519
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc ebx
add ebx, eax
cmp ebx, edi
jb 0x40b4f1
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [esi - 0x10]
setne bl
call fcn.00408a15
mov esi, dword [ebp - 0x7c]
push esi
call fcn.00415066
pop ecx
mov al, bl
jmp 0x40b537
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004148a7
leave
ret

Function at 0x40b6d0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x40b6dd
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b716
cmp eax, 0x80
je 0x40b716
push dword [esi + 0xc]
push dword [esi + 0x1c]
push 0x407488
call fcn.00410992
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x40b6d9
mov al, 1
pop esi
ret
Function at 0x40c26e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x40c2c1
and dword [edi], 0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40c295
mov eax, esi
and dword [ebp + 8], 0
lea edx, [ebp + 8]
push 0
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x40c2c8
test ecx, ecx
je 0x40c2c1
mov ecx, dword [ebp - 4]
test esi, esi
jne 0x40c286
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40c2c3

Function at 0x40c710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, edx
xor edi, edi
mov ebx, ecx
or esi, 0x100
mov ecx, esi
mov eax, esi
shr ecx, 7
add esi, esi
shr eax, 8
and ecx, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx edx, word [ebx + eax*2]
mov eax, dword [ebp + 8]
shr edx, 4
xor edx, ecx
add edi, dword [eax + edx*4]
cmp esi, 0x10000
jb 0x40c722
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40c757
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x100
mov dword [ebp - 4], ecx
xor edi, edi
or edx, esi
add ebx, ebx
mov ecx, esi
and ecx, ebx
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add edi, dword [eax + ecx*4]
mov ecx, edx
xor ecx, ebx
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x40c76d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c83f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
bts esi, edx
mov ebx, ecx
cmp esi, 1
je 0x40c87a
push edi
mov edi, dword [ebp + 0xc]
mov edx, esi
and esi, 1
shr edx, 1
neg esi
sar esi, 4
and esi, 0x7f
movzx ecx, word [ebx + edx*2]
shr ecx, 4
xor ecx, esi
mov esi, edx
add eax, dword [edi + ecx*4]
cmp esi, 1
jne 0x40c857
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40c87e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor esi, esi
inc edi
test ebx, ebx
je 0x40c8c5
mov eax, dword [ebp + 8]
mov edx, eax
movzx ecx, word [ecx + edi*2]
and edx, 1
shr eax, 1
add edi, edi
mov dword [ebp + 8], eax
or edi, edx
mov eax, edx
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add esi, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
sub ebx, 1
jne 0x40c893
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret