joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x627028
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc]
lea ebx, [esi + 4]
push ebx
push 0x20019
xor edi, edi
push edi
push eax
mov eax, dword [esi]
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e5c
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x10]
push ecx
push edi
lea edx, [ebp - 0x14]
push edx
push edi
push eax
mov eax, dword [ebx]
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0044cdd2
add esp, 4
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebx]
mov edi, eax
mov eax, dword [esi + 8]
push edi
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
test eax, eax
jne 0x405e35
lea ecx, [ebp - 0x18]
call fcn.004016c0
lea ecx, [esi + 0x10]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], ecx
call fcn.004017f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.0044cdc7
mov ecx, dword [ebx]
add esp, 4
push ecx
mov dword [esi + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
sub eax, 0x10
push eax
call fcn.00401780
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x405e70
call fcn.0044cdc7
mov edx, dword [ebx]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi + 0x14]
sub esi, 0x10
push esi
call fcn.00401780
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x405e70
mov esi, dword [esi + 0x14]
sub esi, 0x10
push esi
call fcn.00401780
lea edx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], edx
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405ed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6186b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x10]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405f14
push 0x80004005
call fcn.00401b80
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0054da9f
add esp, 8
test eax, eax
sete al
test al, al
je 0x405f30
cmp dword [esi + 0x1c], 0
je 0x405f93
lea ecx, [ebp + 8]
push ecx
lea ecx, [esi + 0x10]
call fcn.004017f0
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x10]
push edx
lea ebx, [esi + 4]
push ebx
push 0
push 0x20006
push 0
push 0x663ea8
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405f93
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi + 8]
inc ecx
push ecx
mov ecx, dword [ebx]
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x405f8a
mov dword [esi + 0x18], 1
mov edx, dword [ebx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x625858
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x65
call fcn.00459140
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x40b6de
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [esi + 0x94]
call fcn.00452cf2
push eax
add esi, 0x240
lea edx, [ebp + 8]
push esi
push edx
mov dword [ebp - 4], 0
call fcn.00402d70
push str..txt
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.0040cfd0
add esp, 0x18
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b624
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b647
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push 0x663e7c
push ecx
call fcn.0054cf8f
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b66c
push 0x663ea8
mov ecx, edi
call fcn.00459256
jmp 0x40b6b8
push 2
push 0
push esi
call fcn.0054f658
push esi
call fcn.0054fb90
push esi
mov ebx, eax
call fcn.0054fbf5
lea ecx, [ebx + 1]
push ecx
call fcn.0044cdd2
push esi
push ebx
mov edi, eax
push 1
push edi
call fcn.0054d2cc
mov ecx, dword [ebp - 0x18]
add esp, 0x28
push edi
mov byte [edi + ebx], 0
call fcn.00459256
push edi
call fcn.0054d5eb
push esi
call fcn.0054d577
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b6de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b700
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x618bd8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0044ce39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b740
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov ebx, dword [ecx + 0x228]
test ebx, ebx
je 0x40b83b
mov edx, dword [ebx + 8]
lea eax, [edi - 0x10]
lea esi, [edx - 0x10]
mov dword [ebp + 8], eax
cmp esi, eax
je 0x40b817
cmp dword [eax + 0xc], 0
jl 0x40b807
mov ecx, dword [esi]
cmp ecx, dword [eax]
jne 0x40b807
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40b7ac
cmp eax, dword [esi]
jne 0x40b7ac
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40b7e0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40b872
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0054d625
add esp, 0x10
mov eax, dword [ebp + 8]
add eax, 0xc
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40b7ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0x10
mov dword [ebp - 0x10], edi
jmp 0x40b817
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [ebp - 0x10]
call fcn.00401a60
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebx]
push 5
push 0x663ea8
push 0x663ea8
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test ebx, ebx
jne 0x40b767
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b85e
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00401940
int3
Function at 0x40b990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62800c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1018
call fcn.00554810
mov eax, dword [0x6aab00]
xor eax, esp
mov dword [esp + 0x1014], eax
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x28]
xor edi, edi
cmp eax, edi
je 0x40ba0e
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 8]
sar ecx, 2
cmp ecx, 1
jae 0x40ba0a
mov dword [esi + 0x28], edi
mov dword [esi + 4], 2
call fcn.00408a40
mov edx, esi
mov ecx, eax
call fcn.00409040
jmp 0x40bb86
cmp eax, edi
jne 0x40ba1a
mov ecx, esi
call fcn.0040a240
jmp 0x40bb86
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push str.adurl
call fcn.00576b00
push eax
lea ecx, [esp + 0x14]
call fcn.004016c0
push esi
push ecx
mov dword [esp + 0x1038], edi
call fcn.00408a40
add esp, 4
call fcn.00409a00
lea edx, [esp + 0x1c]
push edx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
call fcn.004016c0
mov byte [esp + 0x1030], 1
mov dword [esi + 0x38], 0x402
call fcn.00408a40
mov ecx, dword [eax + 0x20]
lea edx, [esp + 0x10]
mov dword [esi + 0x34], ecx
lea edi, [esi + 0x2c]
push edx
mov ecx, edi
call fcn.004017f0
lea eax, [esp + 0x18]
push 0x6649cc
push eax
call fcn.004013d0
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x1044], 2
call fcn.00402d70
add esp, 0x14
lea ecx, [esi + 0x30]
push eax
mov byte [esp + 0x1034], 3
call fcn.004017f0
mov byte [esp + 0x1030], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40baf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1030], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0
push 0
push edi
push 0x408ac0
call fcn.00461a85
mov esi, dword [esi + 0x18]
mov byte [esp + 0x1030], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1030], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1014]
xor ecx, esp
call fcn.0054cec4
mov esp, ebp
pop ebp
ret
Function at 0x412bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push 0x663e7c
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.0054cfa6
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x412c0e
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412c08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push 2
push 0
push eax
call fcn.0054f658
mov ecx, dword [ebp - 4]
push ecx
call fcn.0054fb90
add esp, 0x10
cmp eax, 0x1000
jle 0x412be9
mov ecx, dword [ebp - 4]
push esi
push 0
push 0x1000
push ecx
call fcn.0054f658
mov edx, dword [ebp - 4]
push edx
xor esi, esi
call fcn.0054d2e9
add esp, 0x10
test eax, eax
jne 0x412c6d
mov edi, edi
mov eax, dword [ebp - 4]
push eax
call fcn.0054f6d4
mov ecx, dword [ebp - 4]
not eax
push ecx
add esi, eax
call fcn.0054d2e9
add esp, 8
test eax, eax
je 0x412c50
mov edx, dword [ebp - 4]
push 0
push 0x1c
push edx
call fcn.0054f658
mov eax, dword [ebp - 4]
push eax
push 1
lea ecx, [ebp - 8]
push 4
push ecx
call fcn.0054d2cc
mov edx, dword [ebp - 4]
push edx
call fcn.0054d577
xor eax, eax
add esp, 0x20
cmp dword [ebp - 8], esi
sete al
or edx, 0xffffffff
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412cc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413980
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6242f7
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
movzx edx, word [edi + 8]
mov word [esi + 8], dx
movzx eax, word [edi + 0xa]
mov word [esi + 0xa], ax
movzx ecx, word [edi + 0xc]
mov word [esi + 0xc], cx
movzx edx, word [edi + 0xe]
mov word [esi + 0xe], dx
movzx eax, word [edi + 0x10]
mov word [esi + 0x10], ax
movzx ecx, word [edi + 0x12]
mov word [esi + 0x12], cx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov eax, dword [edi + 0x38]
sub eax, 0x10
push eax
call fcn.00401780
add eax, 0x10
mov dword [esi + 0x38], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x3c]
sub eax, 0x10
push eax
call fcn.00401780
add eax, 0x10
mov dword [esi + 0x3c], eax
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
call fcn.00401780
add eax, 0x10
mov dword [esi + 0x40], eax
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x44]
sub eax, 0x10
push eax
call fcn.00401780
add eax, 0x10
mov dword [esi + 0x44], eax
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x48]
sub eax, 0x10
push eax
call fcn.00401780
add eax, 0x10
mov dword [esi + 0x48], eax
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x4c]
sub eax, 0x10
push eax
call fcn.00401780
add esp, 0x18
add eax, 0x10
mov dword [esi + 0x4c], eax
mov edx, dword [edi + 0x50]
mov dword [esi + 0x50], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x414880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62819c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CMacroList.0
call fcn.0044ce39
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4148c9
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov dword [ebp - 4], edi
call fcn.0044ce39
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4148f5
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.0044e1aa
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov byte [ebp - 4], 3
mov ecx, esi
mov dword [esi + 0x30], 1
call fcn.00414bc0
mov ecx, esi
call fcn.00415280
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x414a60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x622a68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045168a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x6c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 4
push str.HotkeyMode
push str.Setup
call esi
mov edi, eax
cmp edi, 0xffffffff
jle 0x414ab2
cmp edi, 5
jl 0x414ab7
mov edi, 4
call fcn.0045168a
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x34]
mov edx, dword [eax + 0x6c]
push edx
movzx eax, cx
push eax
push str.EndHotkey
push str.Hotkey
call esi
movzx ebx, ax
call fcn.0045168a
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x34]
mov edx, dword [eax + 0x6c]
push edx
shr ecx, 0x10
push ecx
push str.EndHotkeyMod
push str.Hotkey
call esi
mov edx, dword [ebp + 0xc]
movzx eax, ax
shl eax, 0x10
or eax, ebx
push eax
push edi
mov dword [edx], eax
call fcn.00416160
mov ecx, eax
call fcn.00411aa0
test eax, eax
jne 0x414b98
lea ebx, [eax + 0x73]
lea ecx, [ebp + 8]
call fcn.00404530
push 0x10
mov dword [ebp - 4], 0
mov eax, dword [eax]
push 0
push eax
call fcn.0045bae7
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414b61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0045168a
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
push edx
call fcn.004157f0
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 8
Function at 0x4158b0
Capabilities:
Delete file
Encode data using xor
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6186b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6aab00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push 4
lea edx, [ebp - 0x10]
push 1
xor esi, esi
push edx
mov dword [ebp - 0x10], esi
call fcn.0054d2cc
add esp, 0x10
cmp dword [ebp - 0x10], esi
jbe 0x415959
mov eax, dword [ebp + 8]
push 0x663e80
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], esi
call fcn.0054cfa6
add esp, 0xc
cmp dword [ebp - 0x14], esi
je 0x415959
cmp dword [ebp - 0x10], esi
jbe 0x41594d
mov edx, dword [ebp - 0x14]
push edx
push edi
call fcn.0054f6d4
xor eax, 0xcc
add esp, 4
push eax
call fcn.0054f7c8
inc esi
add esp, 8
cmp esi, dword [ebp - 0x10]
jb 0x41592c
mov eax, dword [ebp - 0x14]
push eax
call fcn.0054d577
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41597f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4159a0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, eax
push edi
push 4
lea eax, [ebp - 8]
push 1
xor esi, esi
push eax
mov dword [ebp - 8], esi
call fcn.0054d2cc
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, esi
jbe 0x415af6
push eax
call fcn.0044cdd2
mov ecx, dword [ebp - 8]
push ecx
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x10], ebx
call fcn.00551e50
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
je 0x415a06
lea esp, [esp]
push edi
call fcn.0054f6d4
xor al, 0xcc
mov byte [esi + ebx], al
mov eax, dword [ebp - 8]
inc esi
add esp, 4
cmp esi, eax
jb 0x4159f0
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x24]
lea edx, [ebp - 0x10]
cmp edx, eax
jae 0x415a95
mov edx, dword [esi + 0x20]
lea ecx, [ebp - 0x10]
cmp edx, ecx
ja 0x415a95
mov edi, ecx
mov ecx, dword [esi + 0x28]
sub edi, edx
sar edi, 3
cmp eax, ecx
jne 0x415a72
sub eax, edx
sar eax, 3
cmp eax, 0x1ffffffe
jbe 0x415a44
push str.vector_T__too_long
call fcn.0056b9b1
sub ecx, edx
inc eax
sar ecx, 3
cmp eax, ecx
jbe 0x415a72
mov edx, ecx
shr edx, 1
mov ebx, 0x1fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x415a61
xor ecx, ecx
jmp 0x415a63
add ecx, edx
cmp ecx, eax
jae 0x415a69
mov ecx, eax
push ecx
lea ecx, [esi + 0x20]
call fcn.00416250
mov eax, dword [esi + 0x24]
test eax, eax
je 0x415af2
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + edi*8]
mov dword [eax], edx
mov ecx, dword [ecx + edi*8 + 4]
mov dword [eax + 4], ecx
add dword [esi + 0x24], 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x28]
cmp eax, ecx
jne 0x415ae3
mov edx, dword [esi + 0x20]
sub eax, edx
sar eax, 3
cmp eax, 0x1ffffffe
jbe 0x415ab5
push str.vector_T__too_long
call fcn.0056b9b1
sub ecx, edx
inc eax
sar ecx, 3
cmp eax, ecx
jbe 0x415ae3
mov edx, ecx
shr edx, 1
mov edi, 0x1fffffff
sub edi, edx
cmp edi, ecx
jae 0x415ad2
xor ecx, ecx
jmp 0x415ad4
add ecx, edx
cmp ecx, eax
jae 0x415ada
mov ecx, eax
push ecx
lea ecx, [esi + 0x20]
call fcn.00416250
mov eax, dword [esi + 0x24]
test eax, eax
je 0x415af2
mov edx, dword [ebp - 0xc]
mov dword [eax], ebx
mov dword [eax + 4], edx
add dword [esi + 0x24], 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4