joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50c071
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
cmp eax, ecx
mov dword [0x5c8bd8], ecx
je 0x50c1bd
test al, 7
jne 0x50c1bd
cmp dword [ebp + 0x14], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
jne 0x50c10f
mov ecx, dword [esi + 0xc]
cmp eax, 8
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], ecx
jb 0x50c1c7
shr eax, 3
mov dword [ebp + 0x14], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0050bfcd
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
pop ecx
lea eax, [ebp - 8]
pop ecx
push eax
mov ecx, esi
call fcn.0050beda
mov eax, dword [ebp - 0x10]
add dword [ebp + 0xc], 8
xor dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edi
push eax
mov dword [ebp - 0xc], ebx
call fcn.0050c02a
add dword [ebp + 8], 8
dec dword [ebp + 0x14]
pop ecx
pop ecx
jne 0x50c0be
jmp 0x50c1c7
cmp dword [ebp + 0x14], 2
jne 0x50c17f
mov ecx, dword [esi + 0xc]
cmp eax, 8
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], ecx
jb 0x50c1c7
shr eax, 3
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0050bfcd
pop ecx
lea eax, [ebp - 0x10]
pop ecx
push eax
mov ecx, esi
call fcn.0050bde7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], 8
mov edx, eax
xor eax, dword [ebp - 0x10]
push dword [ebp + 0xc]
mov edi, ecx
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edi
call fcn.0050c02a
add dword [ebp + 8], 8
pop ecx
dec ebx
pop ecx
jne 0x50c12f
jmp 0x50c1c7
cmp eax, 8
jb 0x50c1c7
shr eax, 3
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0050bfcd
pop ecx
lea eax, [ebp - 8]
pop ecx
push eax
mov ecx, esi
call fcn.0050beda
add dword [ebp + 0xc], 8
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
call fcn.0050c02a
add dword [ebp + 8], 8
pop ecx
dec edi
pop ecx
jne 0x50c189
jmp 0x50c1c7
mov dword [0x5c8bd8], 1
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x50c246
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
lea esi, [ecx + 0x5c]
push 0x40
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.0050cced
mov byte [esi], 0x80
pop esi
ret

Function at 0x50cd1e
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov eax, ecx
mov edx, 0x5896c8
push 8
sub edx, eax
pop esi
mov edi, dword [edx + ecx]
mov dword [ecx], edi
add ecx, 4
dec esi
jne 0x50cd2c
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
pop edi
pop esi
ret
Function at 0x50cf40
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov edx, 0x5896c8
push 8
mov eax, ecx
sub edx, ecx
pop esi
mov edi, dword [edx + eax]
mov dword [eax], edi
add eax, 4
dec esi
jne 0x50cf4e
xor eax, eax
pop edi
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov byte [ecx + 0x68], al
pop esi
ret
Function at 0x50ea3b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x56a7e3
call fcn.005149b2
push ecx
mov eax, dword [0x5c35bc]
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
and dword [ebp - 4], 0
push 0x5c57b8
mov dword [esi + 8], 0x13579bdf
mov dword [esi + 0xc], 0x2468ace0
mov dword [esi + 0x10], 0xfdb97531
mov dword [esi + 0x14], 0x80000062
mov dword [esi + 0x18], 0x40000020
mov dword [esi + 0x1c], 0x10000002
mov dword [esi + 0x20], 0x7fffffff
mov dword [esi + 0x24], 0x3fffffff
mov dword [esi + 0x28], 0xfffffff
mov dword [esi + 0x2c], 0x80000000
mov dword [esi + 0x30], 0xc0000000
mov dword [esi + 0x34], 0xf0000000
mov dword [esi], fcn.0050ecac
call fcn.0050649a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x50ee7e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp byte [ebp + 0x10], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
jne 0x50ee9f
mov edx, 0xfefefefe
and eax, edx
and ecx, edx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor esi, esi
push edi
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x58], esi
lea edi, [ebx + 2]
mov ecx, dword [ebp + esi - 0xf4]
lea eax, [ebp + esi - 0xf4]
mov dword [ebp + esi - 0x54], ecx
mov ecx, dword [ebp + esi - 0x190]
mov edx, dword [ebp + esi - 0x58]
mov dword [ebp + esi - 0xf0], ecx
xor edx, ecx
mov ecx, dword [ebp - 4]
push edx
push dword [eax]
call fcn.0050edc7
lea ecx, [ebp + esi - 0x18c]
mov dword [ecx], eax
shr eax, 0x10
mov word [esi + ebx], ax
mov ax, word [ecx]
mov word [edi], ax
add esi, 4
add edi, 4
cmp esi, 0x4c
jle 0x50eeb9
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x50efd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, ecx
push edi
movzx eax, word [esi + 0x40]
movzx ecx, word [esi + 0x42]
shl eax, 0x10
movzx edx, word [esi + 0x46]
or eax, ecx
mov ecx, dword [ebp + 0xc]
xor eax, ecx
mov dword [ebp + 0xc], esi
movzx ecx, word [esi + 0x44]
shl ecx, 0x10
or ecx, edx
mov dword [ebp - 0x108], eax
xor ecx, dword [ebp + 8]
xor ecx, eax
xor edi, edi
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp + 0xc]
lea ebx, [ebp + edi - 0x84]
mov ecx, esi
movzx eax, word [eax]
push eax
push dword [ebx]
call fcn.0050ef3e
xor eax, dword [ebp + edi - 0x108]
add dword [ebp + 0xc], 2
mov dword [ebp + edi - 0x80], eax
mov eax, dword [ebx]
mov dword [ebp + edi - 0x104], eax
add edi, 4
cmp edi, 0x7c
jle 0x50f013
movzx eax, word [esi + 0x48]
movzx edi, word [esi + 0x4a]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x88]
shl eax, 0x10
xor ecx, edx
or eax, edi
xor eax, ecx
pop edi
xor edx, eax
movzx eax, word [esi + 0x4c]
movzx esi, word [esi + 0x4e]
shl eax, 0x10
or eax, esi
xor esi, esi
xor ecx, eax
xor eax, eax
or eax, ecx
or edx, esi
pop esi
pop ebx
leave
ret 8
Function at 0x50f13b
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
and edx, dword [esp + 0xc]
push edi
push 1
xor eax, eax
pop esi
lea ecx, [esi - 1]
mov edi, edx
shr edi, cl
and edi, 1
xor eax, edi
inc esi
cmp esi, 0x20
jle 0x50f14a
pop edi
pop esi
ret
Function at 0x510830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
push esi
jne 0x510858
push 0x5c3dc0
lea ecx, [ebp - 0xc]
call fcn.005149e8
lea eax, [ebp - 0xc]
push 0x5a85a0
push eax
call fcn.00514630
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x510879
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x510869
pop edi
pop esi
leave
ret 8

Function at 0x513156
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e6f0
push 0x514612
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
push dword [ebp - 0x28]
call fcn.00514640
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
jmp 0x5131d5
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5183f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x56ae98
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
test esi, esi
je 0x518416
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x51842a
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push edi
lea edi, [esi + 0x40]
push ebx
mov ecx, edi
call fcn.00536c00
lea eax, [esp + 0x18]
push 0
push eax
push ebx
mov ecx, edi
call fcn.00513b3c
push 0
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov ecx, edi
call fcn.00513e30
mov edx, dword [esi + 0x60]
mov edi, dword [0x5713f0]
push 0
push 0
push 0x101d
push edx
mov dword [esp + 0x40], 0
call edi
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, ebp
sub ecx, edx
add ecx, 2
cmp dword [esi + 0x16c], 0
mov dword [esp + 0x10], ecx
mov ebx, ecx
je 0x5184b9
sub eax, ebp
push 0x40
push ecx
push ecx
mov ecx, dword [0x570a24]
lea eax, [eax + edx - 2]
push edx
push eax
push ecx
lea ecx, [esi + 0xc0]
call fcn.00513b48
mov edx, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x60]
push 0
push 0
push 0x101d
push ecx
lea ebp, [eax + 2]
mov dword [esp + 0x24], edx
call edi
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
sub eax, edx
mov edx, dword [esp + 0x1c]
add eax, ebx
push 0x60
push ecx
add esi, 0x80
lea eax, [eax + edx - 4]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [0x570a24]
push edx
push ebp
push eax
mov ecx, esi
call fcn.00513b48
mov ecx, esi
call fcn.00513656
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00513aa0
mov edx, dword [esi + 0x20]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xb7
push eax
call edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.005132cc
mov ecx, dword [esp + 0x28]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x51c670
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x56b4ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x58ef98
xor edi, edi
mov eax, 0x11
mov ebx, 0xa
mov dword [esp + 0xc], esi
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ebx
lea ecx, [esi + 0x58]
mov byte [esp + 0x18], 2
call fcn.0053df70
mov eax, 0x58ef80
mov dword [esi + 0x8c], edi
mov dword [esi + 0x80], eax
mov dword [esi + 0x90], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], ebx
lea ecx, [esi + 0xb8]
mov byte [esp + 0x18], 5
call fcn.005260e0
lea ecx, [esi + 0x148]
mov byte [esp + 0x18], 6
call fcn.005260e0
lea ecx, [esi + 0x1d8]
mov byte [esp + 0x18], 7
call fcn.005260e0
lea ecx, [esi + 0x268]
mov byte [esp + 0x18], 8
call fcn.005260e0
lea ecx, [esi + 0x2f8]
mov byte [esp + 0x18], 9
call fcn.005260e0
lea ecx, [esi + 0x388]
mov byte [esp + 0x18], bl
call fcn.005260e0
mov byte [esp + 0x18], 0xb
lea ecx, [esi + 0x420]
call fcn.005260e0
lea ecx, [esi + 0x4b0]
mov byte [esp + 0x18], 0xc
call fcn.005260e0
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x58ef94
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x51cf99
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56b611
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x571ce4
push 0xa
lea ecx, [esi + 4]
mov dword [esp + 0x20], 0
call fcn.00513c5c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x30]
lea edi, [esi + 0x30]
mov dword [esi + 0x24], ecx
mov ecx, edi
mov byte [esp + 0x1c], 1
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call fcn.005132d2
lea ebp, [esi + 0x34]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.005132d2
mov dword [esi], 0x58efac
mov dword [0x5c99c0], esi
mov ecx, dword [esi + 0x2c]
push 0x5c46d8
mov byte [esp + 0x20], 3
call fcn.0054d308
lea ecx, [esp + 0xc]
call fcn.00539b20
push 0x3e97
mov ecx, edi
mov byte [esp + 0x20], 4
call fcn.00513650
push str..exe
mov ecx, ebp
call fcn.005135fc
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.004ed850
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10

Function at 0x51d24c
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56b690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push esi
mov esi, ecx
push eax
mov ecx, dword [0x5c99bc]
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.005385e0
add esp, 0xc
push 0
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00538700
mov eax, dword [esp + 0x30]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x2c], 1
call fcn.005387f0
test eax, eax
jne 0x51d2c2
lea ecx, [esp + 4]
mov byte [esp + 0x28], al
call fcn.00538790
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005132cc
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov ecx, dword [0x5c99b8]
add esi, 4
push esi
push ecx
lea ecx, [esp + 0xc]
call fcn.00538aa0
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x28], 0
call fcn.00538790
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005132cc
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x52a3d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56c7cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
or eax, 0xffffffff
push 0xa
lea ecx, [esi + 0xc]
mov dword [esp + 0xc], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.00513c5c
xor edi, edi
lea ecx, [esi + 0x28]
mov dword [esp + 0x14], edi
call fcn.005132d2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi], 0x590190
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x549e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56ef1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x30]
push esi
push edi
mov esi, ecx
push eax
push 0x3f05
mov dword [esp + 0x10], esi
call fcn.0051359c
lea edi, [esi + 0x60]
mov dword [esp + 0x2c], 0
mov ecx, edi
call fcn.005138ea
mov dword [edi], 0x574354
lea edi, [esi + 0xa0]
mov byte [esp + 0x2c], 1
mov ecx, edi
call fcn.005138ea
mov dword [edi], 0x574354
push esi
lea ecx, [esi + 0xe0]
mov byte [esp + 0x30], 2
call fcn.005484e0
lea ecx, [esi + 0x198]
mov byte [esp + 0x2c], 3
call fcn.00549910
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x2c], 4
mov dword [esi + 0x370], ecx
lea ecx, [esi + 0x39c]
call fcn.0054fd50
mov eax, dword [esi + 0x370]
lea edx, [esp + 0xc]
mov dword [esi + 0x824], 0
mov dword [esi], 0x593160
mov ecx, dword [eax + 4]
push edx
push 0x18
push ecx
call dword [0x570104]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x374], eax
mov dword [esi + 0x378], ecx
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8

Function at 0x411014
Capabilities:
Terminate process

Disassembly:
jmp 0x413240
jmp fcn.00413280
cmp ecx, dword [0x41702c]
jne 0x41324a
repz ret
jmp 0x411082
Function at 0x4017f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4099c6
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x40c018]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf4], 0
mov eax, dword [0x40c54c]
and eax, 1
jne 0x401860
mov ecx, dword [0x40c54c]
or ecx, 1
mov dword [0x40c54c], ecx
mov dword [ebp - 4], 1
mov ecx, 0x40c548
call fcn.00401fa0
push 0x409ac0
call fcn.00406d81
add esp, 4
mov byte [ebp - 4], 0
mov ecx, 0x40c548
call fcn.00402590
movzx edx, al
test edx, edx
je 0x4019da
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00401670
add esp, 8
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 0x64
mov word [ebp - 0xe4], 0
push 0xc6
push 0
lea ecx, [ebp - 0xe2]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.Aliim.ini
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xe8]
push eax
call fcn.004024a0
add esp, 0xc
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xfc]
call fcn.00402640
push eax
push 0x64
lea edx, [ebp - 0xe4]
push edx
push 0x40a58c
push str.Version
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe8]
call fcn.004020e0
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
test eax, eax
jne 0x40193e
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x40c548
call fcn.00402130
jmp 0x4019ce
lea edx, [ebp - 0xe4]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xec]
push ecx
call fcn.004024a0
add esp, 0xc
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x104], edx
mov byte [ebp - 4], 4
push 0x40a2e8
mov eax, dword [ebp - 0x104]
push eax
lea ecx, [ebp - 0xf0]
push ecx
call fcn.004024a0
add esp, 0xc
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, 0x40c548
call fcn.00402130
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf0]
call fcn.004020e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xec]
call fcn.004020e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004020e0
push 0x40c548
mov ecx, dword [ebp + 8]
call fcn.00402000
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xf4]
or ecx, 1
mov dword [ebp - 0xf4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00406bbc
mov esp, ebp
pop ebp
ret
Function at 0x401ac0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409559
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x40c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.004027e0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00402810
push eax
lea ecx, [ebp - 0x14]
call fcn.004028a0
movzx edx, al
test edx, edx
je 0x401bd7
lea ecx, [ebp - 0x14]
call fcn.00402860
mov ecx, eax
call fcn.00402640
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401b96
push 0x40a2ec
lea ecx, [ebp - 0x14]
call fcn.00402860
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004024a0
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
push 0
mov ecx, dword [ebp - 0x34]
call fcn.00402640
push eax
lea ecx, [ebp - 0x14]
call fcn.00402860
mov ecx, eax
call fcn.00402640
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401b96
mov dword [ebp - 0x38], 1
jmp 0x401b9d
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
and ecx, 1
je 0x401bbe
and dword [ebp - 0x28], 0xfffffffe
lea ecx, [ebp - 0x24]
call fcn.004020e0
movzx edx, byte [ebp - 0x1d]
test edx, edx
je 0x401bca
xor al, al
jmp 0x401bd9
lea ecx, [ebp - 0x14]
call fcn.00402880
jmp 0x401afb
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x401bf0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004027e0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00402810
push eax
lea ecx, [ebp - 8]
call fcn.004028a0
movzx edx, al
test edx, edx
je 0x401c5e
push 0
lea ecx, [ebp - 8]
call fcn.00402860
mov ecx, eax
call fcn.00402640
push eax
lea ecx, [ebp - 8]
call fcn.00402860
add eax, 4
mov ecx, eax
call fcn.00402640
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401c54
xor al, al
jmp 0x401c60
lea ecx, [ebp - 8]
call fcn.00402880
jmp 0x401c05
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x401c70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409518
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.004027e0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.00402810
push eax
lea ecx, [ebp - 0x14]
call fcn.004028a0
movzx edx, al
test edx, edx
je 0x401d2b
push 0x40a2ec
lea ecx, [ebp - 0x14]
call fcn.00402860
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004024a0
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
call fcn.00402640
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004020e0
movzx edx, byte [ebp - 0x1d]
test edx, edx
je 0x401d1e
xor al, al
jmp 0x401d2d
lea ecx, [ebp - 0x14]
call fcn.00402880
jmp 0x401ca4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret