joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c0d
Capabilities:
Hide graphical window

Disassembly:
push 5
push dword [esi + 0x5c]
call dword [0x417380]
push dword [esi + 4]
call dword [0x4172a4]
push 8
push 0
push 0x470
push eax
call dword [0x417378]
push 0x419948
push 0x3ee
push dword [esi + 4]
call dword [0x4173b0]
mov eax, dword [esi + 4]
push 0
mov ecx, 0x41ec38
call fcn.00409086
xor eax, eax
inc eax
ret

Function at 0x402fb2
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, dword [0x417380]
push 5
push dword [esi + 0x5c]
call edi
push 0x3f1
push dword [esi + 4]
call dword [0x4173b4]
push 0
push eax
call edi
xor eax, eax
pop edi
ret

Function at 0x403b2f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [0x417058]
test eax, eax
jne 0x403b46
pop esi
ret
push edi
push eax
call dword [0x417054]
mov edi, eax
test edi, edi
je 0x403b7b
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [0x417050]
add eax, edi
and esi, 0xf
jbe 0x403b77
cmp edi, eax
jae 0x403b7b
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403b69
cmp edi, eax
jb 0x403b7f
xor eax, eax
jmp 0x403b88
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x40429e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404302
cmp dword [ebp + 0xc], 1
je 0x4042da
cmp dword [ebp + 0xc], 2
je 0x4042da
push 0xd
pop eax
jmp 0x404302
mov eax, dword [ebp - 4]
test edi, edi
je 0x4042fc
test eax, eax
je 0x4042f7
test al, 1
jne 0x4042d5
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4042fc
jmp 0x4042d5
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x4061e3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov byte [ebp - 1], 1
cmp cl, 0xc
jne 0x40622d
mov eax, dword [esi + 4]
mov edi, dword [0x4173c8]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [0x4172a4]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x406254
shr eax, 2
test al, 1
je 0x40625d
push dword [esi + 4]
call dword [0x4173c8]
push dword [esi + 4]
mov edi, eax
call dword [0x4172a4]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [0x4173b8]
jmp 0x406290
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push 0x419a7c
push ebx
call dword [0x417240]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x40628f
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [0x417324]
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret

Function at 0x407348
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x407356
push 0xd
pop eax
jmp 0x407389
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [0x4171f8]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40735d
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40770a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi + 4]
push dword [esi]
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00404260
mov ebx, eax
cmp ebx, edi
je 0x40774d
cmp dword [ebp - 0xc], edi
je 0x407749
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4077ba
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40776b
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040770a
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x4077c1
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x100
call ebx
test eax, eax
je 0x407755
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], edi
je 0x4077a1
push dword [ebp - 0xc]
call ebx
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
call fcn.00407809
mov esi, eax
cmp dword [ebp - 0xc], edi
je 0x4077b8
push dword [ebp - 0xc]
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 0xc], edi
je 0x4077cf
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
jmp 0x4077ba

Function at 0x407809
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x41ef5c], 0
jne 0x407839
push 0x41a14c
call dword [0x417070]
test eax, eax
je 0x407832
push str.RegDeleteKeyExW
push eax
call dword [0x41706c]
mov dword [0x41ef60], eax
mov byte [0x41ef5c], 1
mov eax, dword [0x41ef60]
test eax, eax
je 0x407851
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x40785d
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x408024
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
xor edi, edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x40c], edi
call dword [0x417078]
mov ebx, eax
cmp ebx, edi
jne 0x40805c
call fcn.00406e8e
mov esi, eax
jmp 0x408139
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [0x41705c]
mov esi, eax
cmp esi, edi
jne 0x408079
call fcn.00406e8e
jmp 0x408130
push esi
push ebx
call dword [0x417058]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x40806f
push esi
push ebx
call dword [0x417050]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4080bc
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x4080b2
lea eax, [ebp - 0x40c]
call fcn.0040738d
mov eax, 0x8007000e
jmp 0x408154
push 2
push eax
call fcn.00403ddd
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x4080dc
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00403dbc
jmp 0x4080e8
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], edi
jne 0x4080f7
mov esi, 0x8007000e
jmp 0x408132
push esi
push dword [ebp - 0x40c]
push esi
push dword [ebp + 8]
push edi
push 3
call dword [0x417074]
cmp eax, edi
je 0x40806f
mov edx, dword [ebp - 0x40c]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x40c]
lea ecx, [ebp - 8]
call fcn.00407ef4
mov esi, eax
push ebx
call dword [0x417068]
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x408152
lea eax, [ebp - 0x40c]
call fcn.0040738d
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40894d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp + 8]
call fcn.004030b7
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004037c8
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.0040bc8c
lea eax, [ebp - 0x18]
push eax
call dword [0x4170bc]
xor ecx, ecx
mov eax, str.date
lea esi, [ebp - 4]
call fcn.00403144
cmp eax, 0xffffffff
je 0x408a24
mov eax, dword [ebx + 0xc8]
push 0x80
lea ecx, [ebp - 0x118]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x400
call dword [0x4170c0]
test eax, eax
jne 0x4089e8
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404aac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0x118]
push eax
lea esi, [ebx + 0xc4]
push esi
call fcn.004030f8
push dword [esi]
lea eax, [ebp - 8]
push 0x41a418
push eax
mov eax, dword [ebp + 8]
call fcn.00408518
add esp, 0xc
lea edi, [ebp + 8]
call fcn.004030b7
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404aac
xor ecx, ecx
mov eax, str.time
lea esi, [ebp - 4]
call fcn.00403144
cmp eax, 0xffffffff
je 0x408aa0
mov eax, dword [ebx + 0xcc]
push 0x80
lea ecx, [ebp - 0x118]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x400
call dword [0x4170c4]
test eax, eax
je 0x4089c9
lea eax, [ebp - 0x118]
push eax
add ebx, 0xc0
push ebx
call fcn.004030f8
push dword [ebx]
lea eax, [ebp - 8]
push 0x41a434
push eax
mov eax, dword [ebp + 8]
call fcn.00408518
add esp, 0xc
lea edi, [ebp + 8]
call fcn.004030b7
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404aac
mov esi, 0x104
push esi
lea eax, [ebp - 0x320]
push eax
push dword [ebp + 8]
call dword [0x4170c8]
cmp eax, esi
ja 0x4089c9
test eax, eax
jne 0x408ae1
xor esi, esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, esi
jmp 0x4089e1
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004030f8
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 8]
call fcn.004030b7
xor esi, esi
inc esi
jmp 0x408ac4
Function at 0x408c6b
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00404a4f
lea eax, [ebp - 0x418]
push eax
mov esi, 0x104
push esi
mov dword [ebp - 4], 1
call dword [0x4170cc]
mov ebx, dword [0x4170d0]
test eax, eax
je 0x408ce4
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 8]
call fcn.004030f8
push esi
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
je 0x408d6b
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
push 2
pop edi
call fcn.0040c9df
pop ecx
pop ecx
test eax, eax
je 0x408d6b
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
je 0x408d6b
lea edi, [ebp - 0x210]
lea esi, [ebp - 8]
call fcn.00403083
push 0x41a444
mov eax, esi
push eax
call fcn.0040bcc6
push str.Temp
mov eax, esi
lea ecx, [ebp - 4]
call fcn.004032ea
pop ecx
push 0
push dword [eax]
call dword [0x4170d4]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404aac
push str.Temp_
mov eax, esi
lea ecx, [ebp - 4]
call fcn.004032ea
mov edi, dword [ebp + 8]
pop ecx
call fcn.004030b7
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 1
call fcn.00404aac
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408d75
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x41dddc]
push esi
push edi
mov ecx, 0x41dddc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00408c6b
mov esi, dword [ebp - 4]
xor edi, edi
test eax, eax
je 0x408db5
push dword [ebp + 8]
push edi
push 0x41a498
push esi
call dword [0x4170d8]
test eax, eax
je 0x408db5
inc edi
lea eax, [esi - 0x10]
call fcn.00404aac
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x40900a
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x41a4d8
push 0xcb
xor esi, esi
push esi
call dword [0x41705c]
mov edi, eax
cmp edi, esi
je 0x409080
push ebx
push edi
push esi
call dword [0x417050]
push edi
push esi
mov ebx, eax
call dword [0x417058]
push eax
call dword [0x417054]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [0x4170e0]
mov edi, eax
cmp edi, 0xffffffff
je 0x40907f
push esi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp + 8], esi
push edi
call dword [0x4170e4]
push edi
call dword [0x41709c]
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x409086
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
push ebx
push esi
push edi
mov edi, ecx
push edi
mov dword [edi + 0xd8], eax
call fcn.00409839
test eax, eax
jne 0x4090db
mov dword [edi + 0x314], 1
mov dword [edi + 0x310], 0x25c
mov edi, dword [edi + 0xd8]
test edi, edi
je 0x4090d4
push eax
push 2
push 0x40c
push edi
call dword [0x417378]
xor eax, eax
jmp 0x40924d
mov eax, dword [edi + 0xbc]
push ecx
sub eax, 0x10
mov esi, esp
call fcn.004037c8
add eax, 0x10
mov dword [esi], eax
mov eax, edi
call fcn.00408dc5
xor ebx, ebx
cmp eax, ebx
jne 0x409125
lea eax, [edi + 0x310]
mov dword [edi + 0x314], 1
cmp dword [eax], ebx
jne 0x409118
mov dword [eax], 0x261
mov edi, dword [edi + 0xd8]
cmp edi, ebx
je 0x4090d4
push ebx
jmp 0x4090c6
cmp dword [edi + 0xe0], ebx
je 0x409139
push dword [edi + 0xbc]
call fcn.0040b7ed
pop ecx
push dword [edi + 0xc]
mov dword [edi + 0x98], 2
call dword [0x4170b8]
push dword [edi + 4]
mov esi, dword [0x4170b4]
call esi
push dword [edi + 8]
call esi
cmp dword [ebp + 8], ebx
je 0x40916e
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [0x417210]
jmp 0x409176
push dword [edi + 0xc]
call fcn.0040c897
push edi
call fcn.00409c11
test eax, eax
je 0x409206
mov esi, dword [0x417288]
push str.REGRES.EXE
push dword [edi + 0xbc]
lea eax, [esp + 0x18]
push eax
call esi
lea eax, [esp + 0x10]
push eax
call fcn.0040900a
push 0x104
lea eax, [esp + 0x21c]
push eax
push dword [0x41dd70]
call dword [0x417200]
lea eax, [esp + 0x218]
push eax
call dword [0x417280]
mov ebx, str.Regbak.chm
push ebx
lea eax, [esp + 0x21c]
push eax
call dword [0x417290]
push ebx
push dword [edi + 0xbc]
lea eax, [esp + 0x18]
push eax
call esi
push 1
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x220]
push eax
call dword [0x4170e8]
xor ebx, ebx
push edi
call fcn.0040b6c9
mov eax, dword [edi + 0xd8]
cmp eax, ebx
je 0x409225
push ebx
push 2
push 0x40c
push eax
call dword [0x417378]
mov eax, 0x41a4e0
cmp dword [edi + 0x314], ebx
je 0x409237
mov eax, 0x41a4fc
push eax
push 0x41a518
push 4
call fcn.00409b37
mov eax, dword [edi + 0x314]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409256
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov dword [ebp - 8], 2
mov esi, 0x20019
call fcn.0040d0cb
test eax, eax
je 0x409277
mov esi, 0x20119
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push esi
push 4
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
jne 0x409343
test byte [ebp - 8], 2
je 0x409343
xor eax, eax
cmp dword [0x41ebf4], 7
setl al
cmp eax, edi
jne 0x40932b
cmp dword [0x41ebe0], edi
jne 0x4092eb
mov esi, 0x41a14c
push esi
call dword [0x417070]
cmp eax, edi
jne 0x4092da
push esi
call dword [0x4170ec]
cmp eax, edi
je 0x4092eb
push str.RegSaveKeyExW
push eax
call dword [0x41706c]
mov dword [0x41ebe0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xd0], 2
jne 0x409302
xor eax, eax
cmp dword [ebp + 0x18], edi
setne al
inc eax
jmp 0x40930e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push 4
pop eax
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [0x41ebe0]
mov esi, eax
cmp esi, edi
je 0x40933a
push dword [ebp + 0x14]
call dword [0x4170f0]
push edi
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x4093bd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
xor eax, eax
push ebx
mov word [ebp - 0x618], ax
lea eax, [ebp - 0x618]
push eax
xor ebx, ebx
push 0x1ff
mov dword [ebp - 4], ebx
call dword [0x4170f4]
test eax, eax
je 0x4094b8
push esi
push edi
mov esi, 0x41a540
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x618]
movsw word es:[edi], word [esi]
mov dword [ebp - 8], eax
mov ax, word [eax]
mov word [ebp - 0x10], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [0x4170f8]
test eax, eax
je 0x409498
lea eax, [ebp - 0x218]
push eax
call dword [0x417278]
lea eax, [ebp - 0x218]
push eax
call dword [0x4171f8]
mov edi, eax
cmp edi, esi
jae 0x409498
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040c9df
pop ecx
pop ecx
test eax, eax
jne 0x409498
lea eax, [esi + edi*2]
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str._s_s
push edi
call fcn.0040389f
mov eax, dword [edi]
add esp, 0x10
push ebx
push ebx
push 3
push ebx
xor esi, esi
inc esi
push esi
push ebx
push eax
call dword [0x4170e0]
cmp eax, 0xffffffff
je 0x409498
push eax
call dword [0x41709c]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40949b
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
jne 0x4094b6
cmp word [eax], bx
jne 0x409405
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8
Function at 0x409625
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, dword [0x4171f8]
push edi
mov edi, str._registrymachine_
push edi
call esi
push str._registryuser_
mov dword [ebp - 8], eax
call esi
mov esi, eax
lea eax, [ebp + 0xc]
call fcn.0040bc8c
and dword [ebx], 0
push edi
push dword [ebp + 8]
mov edi, dword [ebp - 8]
call fcn.0040c9df
pop ecx
pop ecx
test eax, eax
je 0x409748
push str._registryuser_
push dword [ebp + 8]
mov edi, esi
call fcn.0040c9df
pop ecx
pop ecx
test eax, eax
jne 0x409769
push str..DEFAULT
push dword [ebp + 8]
call dword [0x41703c]
test eax, eax
je 0x409748
xor ecx, ecx
mov eax, str.config_
lea esi, [ebp + 0xc]
call fcn.00403144
cmp eax, 0xffffffff
jne 0x409748
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x409769
lea edi, [ebp - 0x218]
lea esi, [ebp - 8]
call fcn.00403083
mov eax, esi
call fcn.0040bc8c
mov eax, 0x41a444
push eax
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.0040332a
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.004032ea
mov eax, dword [eax]
pop ecx
xor ecx, ecx
lea esi, [ebp + 0xc]
call fcn.00403144
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x14]
setne byte [ebp - 1]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404aac
xor eax, eax
cmp byte [ebp - 1], al
sete al
lea eax, [eax + eax + 2]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404aac
jmp 0x40974e
mov dword [ebx], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404aac
xor eax, eax
inc eax
jmp 0x409781
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404aac
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00404aac
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40b087
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, eax
lea esi, [ebp - 8]
call fcn.00403083
mov eax, dword [0x41dddc]
mov ecx, 0x41dddc
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.00404a4f
mov esi, dword [ebp - 8]
mov eax, dword [esi - 0xc]
cmp eax, 3
jg 0x40b0da
xor edi, edi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404aac
lea eax, [esi - 0x10]
call fcn.00404aac
mov eax, edi
pop edi
pop esi
leave
ret
test eax, eax
je 0x40b172
push ebx
lea eax, [ebp - 8]
lea ebx, [ebp - 0xc]
call fcn.0040aff2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00403820
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404aac
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 2
jle 0x40b119
push 0
push esi
call dword [0x4170d4]
lea ecx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0040bd86
mov eax, dword [eax]
xor ebx, ebx
inc ebx
cmp dword [eax - 0xc], ebx
jne 0x40b136
cmp word [eax], 0x5c
jne 0x40b136
xor bl, bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404aac
test bl, bl
je 0x40b164
mov edi, dword [esi - 0xc]
lea ebx, [edi + 1]
push ebx
lea esi, [ebp - 4]
call fcn.00404ba8
push 0x5c
pop ecx
mov word [eax + edi*2], cx
mov eax, ebx
mov edx, esi
call fcn.00404a2d
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
jne 0x40b0e3
pop ebx
push 0x41a444
lea eax, [ebp - 4]
push eax
call fcn.0040bcc6
push dword [ebp - 4]
call dword [0x417204]
cmp eax, 0xffffffff
je 0x40b0bf
test al, 0x10
je 0x40b0bf
xor edi, edi
inc edi
jmp 0x40b0c1

Function at 0x40b1a2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [0x417224]
push edi
mov ebx, 0x41e9d0
push ebx
push 0
push str.Overwrite
mov edi, str.Settings
push edi
call esi
mov ecx, dword [ebp + 8]
push ebx
push 0
push str.LimitBackup
push edi
mov dword [ecx + 0xe0], eax
call esi
push ebx
push 0x1e
push str.LimitBackupDays
push edi
mov dword [ebp - 0xc], eax
call esi
push ebx
push 0xa
push str.LimitBackupCount
push edi
mov dword [ebp - 4], eax
call esi
mov dword [ebp - 8], eax
lea esi, [ebp - 8]
lea ecx, [ebp - 4]
lea eax, [ebp - 0xc]
call fcn.00401086
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xe4], eax
mov eax, dword [ebp - 4]
push ebx
mov dword [esi + 0xe8], eax
mov eax, dword [ebp - 8]
push 0x104
mov dword [esi + 0xec], eax
lea eax, [ebp - 0x214]
push eax
push str.yyyy_MM_dd
push str.DateFormat
push edi
call dword [0x41722c]
test eax, eax
jne 0x40b260
lea eax, [ebp - 0x214]
push eax
mov edx, str.yyyy_MM_dd
mov ecx, 0x104
call fcn.00401fb7
lea eax, [ebp - 0x214]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004030f8
push ebx
push 0x104
lea eax, [ebp - 0x214]
push eax
mov ebx, str.HH_mm_ss
push ebx
push str.TimeFormat
push edi
call dword [0x41722c]
test eax, eax
jne 0x40b2a9
lea eax, [ebp - 0x214]
push eax
mov edx, ebx
mov ecx, 0x104
call fcn.00401fb7
lea eax, [ebp - 0x214]
push eax
add esi, 0xcc
push esi
call fcn.004030f8
pop edi
pop esi
pop ebx
leave
ret 4