joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1f7f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x53e790]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f1fc2
cmp word [esi], dx
jne 0x4f1fc2
or byte [edi + eax + 0x28], 4
jmp 0x4f1fc7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4f211a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4f20fa
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4f2009
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f203f
cmp eax, edx
jae 0x4f204b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4f1fe1
jmp 0x4f211a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f20f6
cmp dword [ebp - 0x14], 0
je 0x4f20f6
mov eax, dword [ebx*4 + 0x53e790]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4f20ce
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4f2097
mov word [esi], cx
jmp 0x4f20ca
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x53e790]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x53e790]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x53e790]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4f211a
pop ebx
cmp word [ebp - 4], bx
jne 0x4f20df
cmp esi, dword [ebp + 0xc]
jne 0x4f20df
mov word [esi], bx
jmp 0x4f2117
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004ec379
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4f211a
push 0xd
jmp 0x4f2113
mov ecx, dword [ebx*4 + 0x53e790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f2111
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f211a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f2c27
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f280e

Function at 0x4f2c32
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f299d
Function at 0x4f3ed6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x53b0f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4f3f21
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004f42b0
test al, al
jne 0x4f3f1b
sub edx, 2
cmp edx, edi
jne 0x4f3f01
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4f3f43
lea eax, [edi + 2]
cmp edx, eax
je 0x4f3f43
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004f3b9d
add esp, 0x10
jmp 0x4f403d
push esi
lea ecx, [ebp - 0x255]
call fcn.004f42b0
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f3f86
push dword [ebp - 0x25c]
jmp 0x4f3f33
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4f3fc3
cmp word [ebp - 0x226], 0
je 0x4f3fe4
cmp word [ebp - 0x226], ax
jne 0x4f3fc3
cmp word [ebp - 0x224], 0
je 0x4f3fe4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004f3b9d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4f4030
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4f3f9d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4f4018
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4f403d
push 0x4f36bc
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004e70e0
add esp, 0x10
jmp 0x4f400d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434475
leave
ret
Function at 0x4f564a
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 0x4f56e7
push ebx
push esi
call fcn.004f5606
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.004f54f8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f5694
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f56e6
push edi
push eax
call fcn.004ed56c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4f56b4
call fcn.004ed532
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4f56e5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004f54f8
add esp, 0x20
test eax, eax
jne 0x4f56d3
push edi
call fcn.004ed532
jmp 0x4f56db
push ebx
call fcn.004ed532
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 0x4f56ea
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4f56fb
pop esi
ret
push ebx
push edi
push esi
call fcn.004f5606
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004ed56c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4f5723
push ebx
push esi
push edi
call fcn.004a26f0
add esp, 0xc
push 0
call fcn.004ed532
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4f6004
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f5996

Function at 0x4f6ac2
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f6996
Function at 0x4fd98e
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004fd7ae
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4fdb06
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4fdb06
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4fdab5
jg 0x4fd9e7
test eax, eax
je 0x4fdaab
push 1
push 0x1000
call fcn.004ed4cf
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4fda0d
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4fdaa2
push 0x8000
push ebx
call fcn.004e12c8
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4fda39
jg 0x4fda34
cmp ecx, 0x1000
jb 0x4fda39
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004f0727
add esp, 0x10
cmp eax, 0xffffffff
je 0x4fda7e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4fda34
jl 0x4fda65
test ecx, ecx
jne 0x4fda26
push dword [ebp - 0xc]
push ebx
call fcn.004e12c8
push esi
call fcn.004ed532
add esp, 0xc
xor edi, edi
jmp 0x4fdb17
cmp byte [edi + 0x24], 0
je 0x4fda95
cmp dword [edi + 0x20], 5
jne 0x4fda95
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4fdaa0
mov edi, dword [edi + 0x18]
jmp 0x4fdaa2
xor edi, edi
push esi
call fcn.004ed532
pop ecx
jmp 0x4fdb17
test ecx, ecx
jg 0x4fda77
jl 0x4fdab5
test eax, eax
jae 0x4fda77
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ec379
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4fdad8
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4fda77
jmp 0x4fdb0f
push ebx
call fcn.004f6ef4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4fda77
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4fdb17
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4fdb14
mov edi, dword [edi + 0x18]
jmp 0x4fdb17
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004ec379
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x9969d4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x9969da
pop ebp
sub ebp, 6
sub ebp, 0x5969d4
jmp 0x996a38
jmp 0x996a41
mov eax, 0x5969d4
add eax, ebp
add eax, 0x93
mov ecx, 0x5c1
mov edx, 0x42dff4fc
xor byte [eax], dl
inc eax
dec ecx
jne 0x996a58
jmp 0x996a6b
ja 0x996a9e
ja 0x996ae4
sar ah, 0xfc
cld
jge 0x996ab2
add al, 0xfc
cld
cld
push dword [ecx]
inc esp
clc
cld
cld
cld
inc esi
aam 0xfc
cld
cld
or ebx, dword [esi]
push dword [edi + esi*2]
jge 0x996a7c
cld
cld
cld
invalid
rcr al, 1
xchg esp, eax
adc byte [edx - 0x6eb64f5], bl
cld
cld
cld
adc eax, 0xfcfcfcd4
test eax, 0x7977a1a8
ja 0x996b2d
hlt
mov eax, dword [0x77fcf03e]
jo 0x996ab2
clc
cld
cld
cld
xchg esp, eax
xchg esp, eax
into
int1
cld
xchg esp, eax
xchg edi, eax
retf
jg 0x996b30
stc
mov ah, 0xf3
js 0x996ad3
cld
cld
cld
je 0x996adb
cld
cld
cld
lcall 0x1407, 0x7cc5e077
lds edi, [edi + eax + 0x14]
adc al, 0xf3
js 0x996b1a
js 0x996b1a
cld
cld
cld
jl 0x996b40
adc eax, 0xfced78f3
cld
cld
lcall 0x78f3, 0xd903077d
jmp 0xbe966848
Function at 0x401099
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x4010a8
mov eax, dword [eax + 4]
jmp 0x4010ab
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x4017a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x70]
push edi
push eax
mov ebx, ecx
call fcn.004370b0
push 0x10
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004370b0
mov dword [ebp - 0x70], esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
inc eax
push eax
call fcn.0044f6d6
add esp, 0x1c
cmp dword [esi + 0x18], 0x10
mov dword [ebp + 8], eax
jb 0x4017ec
mov esi, dword [esi + 4]
jmp 0x4017ef
add esi, 4
push esi
push eax
call fcn.00437150
pop ecx
pop ecx
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.004014b8
cmp dword [eax + 0x18], 0x10
jb 0x40180d
mov eax, dword [eax + 4]
jmp 0x401810
add eax, 4
cmp dword [ebx + 0x18], 0x10
jb 0x40181b
mov ebx, dword [ebx + 4]
jmp 0x40181e
add ebx, 4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push edi
test eax, eax
push 1
lea ecx, [ebp - 0x2c]
setne bl
call fcn.00401050
push dword [ebp + 8]
call fcn.0044f6db
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x401de1
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x401dfb
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x401e24
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x401e2f
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x4023fd
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x48ed50]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.00401dac
cmp eax, esi
jne 0x402485
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40244e
lea eax, [ebp - 0x70]
push eax
call fcn.004023fd
cmp eax, esi
jne 0x402484
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x402441
call fcn.00401c8f
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401c8f
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.00437141
add ebp, 0x94
leave
ret 4
Function at 0x409a23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409a38
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x409a4a
xor eax, eax
jmp 0x409a7c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x409a6e
cmp esi, eax
jae 0x409a46
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409a60
cmp esi, eax
jae 0x409a46
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x40be9c
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40bf04
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
jmp 0x40beca
cmp dword [esi + 8], 0
je 0x40bf02
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x40bebc
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
test eax, eax
je 0x40befb
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
ret 4

Function at 0x40bf6a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bfce
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x40bfc7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x40bfc7
lea eax, [ebp - 8]
push eax
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
and eax, 0x27
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
leave
ret

Function at 0x40c0f3
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
jne 0x40c114
lea ecx, [esp + 4]
push ecx
push eax
push esi
push 0x40bf08
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
pop ecx
ret
Function at 0x40c2dd
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
add eax, 2
push edi
push eax
call fcn.0044f6d6
cmp dword [esi + 0x18], 0x10
pop ecx
mov edi, eax
jb 0x40c303
mov eax, dword [esi + 4]
jmp 0x40c306
lea eax, [esi + 4]
push eax
push edi
call fcn.00437150
mov eax, dword [esi + 0x14]
push 0x1e
mov byte [edi + eax + 1], 0
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.004370b0
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], edi
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ebx, eax
neg ebx
sbb bl, bl
push edi
inc bl
call fcn.0044f6db
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x40f0ab
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx + 0x14]
call fcn.00407b8c
mov esi, 0x472748
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
cmp dword [ebx + 0x14], edi
jbe 0x40f0fc
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
push edi
mov ecx, ebx
add esi, edi
call fcn.004024f4
mov ecx, edi
and ecx, 0xf
mov cl, byte [ebp + ecx - 0x14]
xor cl, byte [eax]
inc edi
mov byte [esi], cl
cmp edi, dword [ebx + 0x14]
jb 0x40f0d9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f2e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x45f2b9
call fcn.00437048
sub esp, 0x74
mov eax, dword [0x48ed50]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0040f224
mov dword [esp], 0x4710e4
push eax
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040507a
push dword [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004050c8
add esp, 0x18
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00401050
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00401050
mov eax, dword [ebp - 0x28]
push 0x10
pop esi
cmp dword [ebp - 0x14], esi
jae 0x40f357
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f3b3
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x80]
call fcn.004014b8
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0041fd46
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00401050
cmp dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x28]
jae 0x40f393
lea ecx, [ebp - 0x28]
push 0x20
push 1
push 3
mov edx, 0xc0000000
call fcn.0041fa5e
cmp eax, 0xffffffff
jne 0x40f3ac
xor bl, bl
jmp 0x40f3fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
mov ebx, dword [ebp - 0x28]
jae 0x40f3be
lea ebx, [ebp - 0x28]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], esi
jb 0x40f3cb
mov edx, dword [eax + 4]
jmp 0x40f3ce
lea edx, [eax + 4]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], esi
jb 0x40f3db
mov ecx, dword [eax + 4]
jmp 0x40f3de
lea ecx, [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], esi
jb 0x40f3eb
mov eax, dword [eax + 4]
jmp 0x40f3ee
add eax, 4
push ebx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401050
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov al, bl
pop ebx
call fcn.00437141
leave
ret
Function at 0x40f421
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x45f2e9
call fcn.00437048
sub esp, 0x47c
mov eax, dword [0x48ed50]
push ebx
push esi
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x488]
xor edi, edi
mov esi, 0x400
push eax
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x44c], esi
call fcn.0040f224
mov dword [esp], 0x4710e4
push eax
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 4], edi
call fcn.0040507a
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004050c8
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x46c]
call fcn.00401050
push edi
push 1
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 3
call fcn.00401050
mov eax, dword [ebp - 0x28]
push 0x10
pop edi
cmp dword [ebp - 0x14], edi
jae 0x40f4b4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x18], edi
jb 0x40f4c9
add eax, 4
mov edx, dword [eax]
jmp 0x40f4ce
add eax, 4
mov edx, eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], edi
jb 0x40f4dd
add eax, 4
mov ecx, dword [eax]
jmp 0x40f4e2
add eax, 4
mov ecx, eax
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x18], edi
jb 0x40f4ef
mov eax, dword [ebx + 4]
jmp 0x40f4f2
lea eax, [ebx + 4]
push dword [ebp - 0x450]
lea edi, [ebp - 0x448]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
push ecx
push eax
call edi
lea ecx, [eax + 1]
cmp ecx, esi
jne 0x40f5e8
push 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
call fcn.00401034
mov byte [ebp - 4], 5
jmp 0x40f530
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x44c]
add eax, eax
push eax
mov dword [ebp - 0x44c], eax
call fcn.0044f6d6
mov esi, eax
mov byte [esi], 0
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x40f556
lea eax, [ebp - 0x28]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x18], 0x10
jb 0x40f56c
add eax, 4
mov edx, dword [eax]
jmp 0x40f571
add eax, 4
mov edx, eax
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x40f581
add eax, 4
mov ecx, dword [eax]
jmp 0x40f586
add eax, 4
mov ecx, eax
cmp dword [ebx + 0x18], 0x10
lea eax, [ebx + 4]
jb 0x40f591
mov eax, dword [eax]
push dword [ebp - 0x450]
push dword [ebp - 0x44c]
push esi
push edx
push ecx
push eax
call edi
push esi
lea ecx, [ebp - 0x48]
mov ebx, eax
call fcn.0040145b
push esi
call fcn.0044f6db
cmp dword [ebp - 0x44c], 0x989680
pop ecx
jg 0x40f5ce
inc ebx
cmp ebx, dword [ebp - 0x44c]
je 0x40f52d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call fcn.00404da1
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401050
jmp 0x40f602
test eax, eax
mov ecx, dword [ebp + 8]
jbe 0x40f5f8
lea eax, [ebp - 0x448]
push eax
jmp 0x40f5fd
push 0x4706f0
call fcn.00401496
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.00401050
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00437141
leave
ret
Function at 0x41201b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x412042
push 0x48d368
lea ecx, [ebp - 0xc]
call fcn.00437c6a
push 0x484900
lea eax, [ebp - 0xc]
push eax
call fcn.00437067
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x412064
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 0x412054
pop edi
pop esi
leave
ret 8