joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c9f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00406d76
add esp, 0xc
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xa], 0x45
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 9], 0x78
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 8], 0x41
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], bl
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xb], 0x6e
mov dword [ebp - 0xa8], 0x94
call fcn.00406da5
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00406d76
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
call esi
test eax, eax
jne 0x406d3d
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00406d76
add esp, 0xc
xor eax, eax
jmp 0x406d72
mov eax, dword [ebp - 0x98]
sub eax, ebx
je 0x406d6f
dec eax
je 0x406d4f
dec eax
je 0x406d61
jmp 0x406d39
cmp dword [ebp - 0xa0], ebx
jne 0x406d5b
push 4
jmp 0x406d71
jbe 0x406d61
push 5
jmp 0x406d71
cmp dword [ebp - 0xa4], 5
sbb eax, eax
add eax, 7
jmp 0x406d72
push 3
pop eax
pop esi
pop ebx
leave
ret

Function at 0x406da5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
and byte [ebp - 8], 0
add esp, 0xc
cmp dword [0x40fc40], 1
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6c
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
jne 0x406e07
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x40fc40], eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
mov eax, dword [0x40fc40]
add esp, 0xc
leave
ret

Function at 0x406e1e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
and byte [ebp - 2], 0
add esp, 0xc
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0xf], 0x64
mov byte [ebp - 0xa], 0x69
mov byte [ebp - 5], 0x6d
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 8], 0x65
mov byte [ebp - 4], 0x65
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0xe], 0x75
mov byte [ebp - 9], 0x6c
mov byte [ebp - 3], 0x41
mov byte [ebp - 0x11], 0x4d
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 7], 0x4e
mov byte [ebp - 0x10], 0x6f
mov byte [ebp - 0xb], 0x46
mov byte [ebp - 6], 0x61
call fcn.00406da5
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
add esp, 0xc
test esi, esi
jne 0x406eac
push 1
pop eax
jmp 0x406eb7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop esi
leave
ret
Function at 0x406eba
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
and byte [ebp - 8], 0
add esp, 0xc
mov byte [ebp - 0x14], 0x43
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0xe], 0x54
mov byte [ebp - 9], 0x64
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0xd], 0x68
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xb], 0x65
call fcn.00406da5
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
add esp, 0xc
test esi, esi
jne 0x406f30
or eax, 0xffffffff
jmp 0x406f44
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop esi
leave
ret
Function at 0x407338
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
and byte [ebp - 8], 0
add esp, 0xc
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0xf], 0x73
mov byte [ebp - 0xa], 0x6f
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 9], 0x72
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0xd], 0x45
mov byte [ebp - 0x11], 0x4c
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0x10], 0x61
mov byte [ebp - 0xb], 0x72
call fcn.00406da5
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
add esp, 0xc
test esi, esi
jne 0x4073ad
xor eax, eax
jmp 0x4073af
call esi
pop esi
leave
ret

Function at 0x4073e5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
and byte [ebp - 9], 0
add esp, 0xc
mov byte [ebp - 0x14], 0x43
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xa], 0x41
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0xe], 0x46
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xb], 0x65
call fcn.00406da5
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
add esp, 0xc
test esi, esi
jne 0x407456
xor eax, eax
jmp 0x40746d
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop esi
leave
ret

Function at 0x407470
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
and byte [ebp - 9], 0
add esp, 0xc
mov byte [ebp - 0x14], 0x43
mov byte [ebp - 0xf], 0x48
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 0x13], 0x6c
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0x11], 0x73
mov byte [ebp - 0xc], 0x64
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xb], 0x6c
call fcn.00406da5
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00406d76
add esp, 0xc
test esi, esi
jne 0x4074e1
xor eax, eax
jmp 0x4074e6
push dword [ebp + 8]
call esi
pop esi
leave
ret
Function at 0x4063d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4063fb
mov eax, dword [0x40a8d4]
cmp eax, 0xffffffff
je 0x4063f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8d4], 0xffffffff
jmp 0x40646e
cmp dword [0x43b9a0], ebx
je 0x40646e
cmp byte [0x43b5a0], bl
je 0x40643a
cmp dword [0x40a8d4], 0xffffffff
jne 0x406443
push 4
push 0x40000000
push 0x43b5a0
call fcn.00405d9e
cmp eax, 0xffffffff
mov dword [0x40a8d4], eax
je 0x40646e
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8d4], 0xffffffff
je 0x40646e
push esi
mov esi, 0x43f9e0
push 0x40aaa8
push esi
call fcn.004060eb
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004060de
push eax
push esi
push dword [0x40a8d4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406534
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x43b1a4], esi
push edi
jne 0x40656e
mov ecx, 0x43b1a0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40654a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43b5a0
jl 0x406545
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4065a3
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43b1a0]
xor eax, esi
inc ecx
dec edx
jne 0x406586
pop edi
pop esi
not eax
ret 0xc

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
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6bf146d8
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x457547c0
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x427c1e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
push esi
push edi
jne 0x427c38
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, 0x50
call 0x3ff47e
mov edi, eax
test edi, edi
je 0x427c2f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx]
push eax
push ecx
push esi
call fcn.0042773e
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi], eax
mov eax, dword [ebx + 8]
push edx
push eax
push esi
call fcn.004278be
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push 0
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
push ecx
push eax
push esi
call fcn.004274ae
mov edx, dword [ebp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
push edx
push eax
push esi
call fcn.0042773e
mov ecx, dword [ebp + 0x10]
add esp, 0x1c
push 0
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
push ecx
push eax
push esi
call fcn.004274ae
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
push edx
push eax
push esi
call fcn.0042773e
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov cl, byte [ebx + 4]
add esp, 0x1c
mov byte [edi + 4], cl
mov eax, dword [ebx + 0x1c]
push edx
push eax
push esi
call fcn.00427c1e
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push 0
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x28]
push ecx
push eax
push esi
call fcn.004274ae
mov edx, dword [ebp + 0x10]
push 0
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
push edx
push eax
push esi
call fcn.004274ae
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov cx, word [ebx + 6]
add esp, 0x20
and cx, 0xfff7
mov word [edi + 6], cx
mov dword [edi + 0x24], eax
or eax, 0xffffffff
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4435f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1007bf98
call 0x4b6780
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0043d503
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.0043d503
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov al, byte [edi + 0x28]
mov byte [esi + 0x28], al
mov al, byte [edi + 0x29]
mov byte [esi + 0x29], al
mov al, byte [edi + 0x2a]
mov byte [esi + 0x2a], al
mov al, byte [edi + 0x2b]
mov byte [esi + 0x2b], al
mov al, byte [edi + 0x2c]
mov byte [esi + 0x2c], al
mov al, byte [edi + 0x2d]
mov byte [esi + 0x2d], al
mov ax, word [edi + 0x2e]
mov word [esi + 0x2e], ax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1000522a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10005269
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10005269
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10005269
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10005269
cmp dword [ecx + 0x74], 0xe
jbe 0x10005269
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10009a2d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100099af
Function at 0x1000b827
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000b8c4
push ebx
push esi
call fcn.1000b7f0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b784
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b871
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b8c3
push edi
push eax
call fcn.1000c429
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b891
call fcn.1000a5d0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b8c2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b784
add esp, 0x20
test eax, eax
jne 0x1000b8b0
push edi
call fcn.1000a5d0
jmp 0x1000b8b8
push ebx
call fcn.1000a5d0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000bbe5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017e90
push 0x10017e88
push str.FlsAlloc
push 0x1f
call fcn.1000ba81
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bc19
push dword [ebp + 8]
mov ecx, esi
call dword [0x10016130]
call esi
jmp 0x1000bc1f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000bc63
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017ea0
push 0x10017e98
push str.FlsGetValue
push 0x21
call fcn.1000ba81
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bc9a
push dword [ebp + 8]
mov ecx, esi
call dword [0x10016130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000bca2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017ea8
push 0x10017ea0
push str.FlsSetValue
push 0x22
call fcn.1000ba81
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bcdc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10016130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10015000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001502d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001502d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4064f0
Capabilities:
Clear file content
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea edi, [ebp - 0x54]
mov ecx, 0x15
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 0xc], 0
jne 0x406528
movsx eax, word [0x42eac4]
add eax, 1
push eax
push str.c:my_programsccommonqresource.cpp
push str.lpszResName
call fcn.00401005
cmp dword [ebp + 0x10], 0
jne 0x406548
movsx eax, word [0x42eac4]
add eax, 2
push eax
push str.c:my_programsccommonqresource.cpp
push str.lpszResType
call fcn.00401005
cmp dword [ebp + 0x14], 0
jne 0x406568
movsx eax, word [0x42eac4]
add eax, 3
push eax
push str.c:my_programsccommonqresource.cpp
push str.lpszFileName
call fcn.00401005
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040101e
test eax, eax
jne 0x40658c
xor eax, eax
jmp 0x406634
mov dword [ebp - 0x10], 0
mov esi, esp
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.00409560
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x406631
mov esi, esp
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.00409560
test eax, eax
je 0x406605
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x406605
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp esi, esp
call fcn.00409560
mov dword [ebp - 0x10], 1
mov esi, esp
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00409560
cmp dword [ebp - 0x10], 0
jne 0x406631
mov esi, esp
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.00409560
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
add esp, 0x54
cmp ebp, esp
call fcn.00409560
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406840
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
lea edi, [ebp - 0x6c]
mov ecx, 0x1b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x406878
movsx eax, word [0x42eacc]
add eax, 1
push eax
push str.c:my_programsccommonqresource.cpp
push str.hEFSFile___INVALID_HANDLE_VALUE
call fcn.00401005
cmp dword [ebp + 0xc], 0
jne 0x406898
movsx eax, word [0x42eacc]
add eax, 2
push eax
push str.c:my_programsccommonqresource.cpp
push str.lpdwHeaderOffset
call fcn.00401005
mov dword [ebp - 0x24], 0
mov esi, esp
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.00409560
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
add eax, 0x20
cmp eax, dword [ebp - 0x28]
ja 0x406960
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00409560
mov esi, esp
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x20
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00409560
test eax, eax
je 0x40690a
cmp dword [ebp - 0x2c], 0x20
jae 0x40690e
xor eax, eax
jmp 0x406962
cmp dword [ebp - 0x20], 0x20534645
jne 0x406950
cmp dword [ebp - 0x1c], 1
jne 0x406950
cmp dword [ebp - 0xc], 0
jne 0x406950
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
ja 0x406950
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x18
add eax, ecx
cmp eax, dword [ebp - 0x28]
ja 0x406950
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, 1
jmp 0x406962
mov eax, dword [ebp - 0x24]
add eax, 0x200
mov dword [ebp - 0x24], eax
jmp 0x4068b7
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x6c
cmp ebp, esp
call fcn.00409560
mov esp, ebp
pop ebp
ret
Function at 0x4069c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea edi, [ebp - 0x70]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x4069f8
movsx eax, word [0x42ead0]
add eax, 1
push eax
push str.c:my_programsccommonqresource.cpp
push str.hEFSFile___INVALID_HANDLE_VALUE
call fcn.00401005
cmp dword [ebp + 0xc], 0
jne 0x406a18
movsx eax, word [0x42ead0]
add eax, 2
push eax
push str.c:my_programsccommonqresource.cpp
push str.pEFSFile
call fcn.00401005
push 0x20
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00409500
add esp, 0xc
mov dword [ebp - 0x20], 0x20534645
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov esi, esp
push 2
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00409560
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, 0x1ff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
and eax, 0xfffffe00
mov dword [ebp - 0x24], eax
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00409560
mov esi, esp
push 0
lea eax, [ebp - 0x28]
push eax
push 0x20
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.00409560
test eax, eax
je 0x406b53
cmp dword [ebp - 0x28], 0x20
jne 0x406b53
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp esi, esp
call fcn.00409560
mov dword [ebp - 0x2c], 0x300
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00409b50
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x406b53
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00409500
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], 0x20
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x10], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x14], 0x20
mov eax, 1
jmp 0x406b55
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x70
cmp ebp, esp
call fcn.00409560
mov esp, ebp
pop ebp
ret
Function at 0x41d910
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41d916
ret