joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40341e
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x9c
mov ecx, dword [esp + 0xa0]
mov eax, 0x42c1e8
push ebp
push esi
push edi
mov edi, dword [esp + 0xb4]
mov ebp, 0x8000
test edi, edi
cmovne ebp, dword [esp + 0xb8]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x10], eax
test ecx, ecx
js 0x403465
mov eax, dword [0x473e18]
add eax, ecx
push eax
call fcn.00403407
push 4
lea eax, [esp + 0x10]
push eax
call fcn.004033d3
test eax, eax
jne 0x40347d
push 0xfffffffffffffffd
pop eax
jmp 0x4035c5
mov eax, dword [esp + 0xc]
push ebx
test eax, eax
jns 0x4035e3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x420160
mov dword [esp + 0x1c], eax
call fcn.004086f2
mov ecx, dword [esp + 0x10]
and ecx, 0x7fffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
jle 0x4035c2
mov ebx, 0x4000
cmp ecx, ebx
cmovl ebx, ecx
push ebx
push 0x4281e8
call fcn.004033d3
test eax, eax
je 0x40364f
sub dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
mov dword [0x420178], 0x4281e8
mov dword [0x42017c], ebx
mov ecx, 0x420160
mov dword [0x420180], eax
mov dword [0x420184], ebp
call fcn.00407902
mov dword [esp + 0x18], eax
test eax, eax
js 0x4035df
mov ebx, dword [0x420180]
sub ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x473eb4], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x403578
sub eax, dword [esp + 0x1c]
cmp eax, 0xc8
ja 0x40353c
test ecx, ecx
jne 0x403578
mov eax, dword [esp + 0x20]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x30]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.00405eef
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x4035d1
test edi, edi
jne 0x4035aa
push edi
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0x20]
push dword [esp + 0xc4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4035db
cmp dword [esp + 0x28], ebx
jne 0x4035db
mov eax, dword [esp + 0x14]
add esi, ebx
jmp 0x4035b7
mov eax, dword [0x420180]
add esi, ebx
sub ebp, ebx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], 1
jne 0x4034eb
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x9c
ret 0x10
test ecx, ecx
jg 0x4034b6
jmp 0x4035c2
push 0xfffffffffffffffe
jmp 0x403651
push 0xfffffffffffffffc
jmp 0x403651
test edi, edi
jne 0x403634
test eax, eax
jle 0x4035c2
mov ebx, 0x4281e8
cmp eax, ebp
mov edi, ebp
cmovl edi, eax
push edi
push ebx
call fcn.004033d3
test eax, eax
je 0x40364f
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push dword [esp + 0xc4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4035db
cmp edi, dword [esp + 0x18]
jne 0x4035db
mov eax, dword [esp + 0x10]
add esi, edi
sub eax, edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x4035f0
jmp 0x4035c2
mov esi, dword [esp + 0xbc]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.004033d3
test eax, eax
jne 0x4035c2
push 0xfffffffffffffffd
pop eax
jmp 0x4035c4
Function at 0x403657
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x403676
mov eax, dword [0x420158]
test eax, eax
je 0x40366e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x420158], 0
ret
cmp dword [0x420158], 0
je 0x403687
push 0
call fcn.00406629
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x473e20]
jbe 0x4036ba
push 0
push 0x40391d
push 0
push 0x6f
push dword [0x46bdb4]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x420158], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4066d3
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x40a894
push 0x460ed0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebp, 0x400
test esi, esi
je 0x406726
push 1
push ebx
push esi
call fcn.00406e77
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push 0x460ed0
push esi
call edi
test eax, eax
je 0x406861
cmp eax, ebp
jg 0x406861
push ebp
push 0x4606d0
push dword [esp + 0x20]
call edi
test eax, eax
je 0x406861
cmp eax, ebp
jg 0x406861
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebp
push 0x461ad0
push 0xffffffffffffffff
push 0x460ed0
push ebx
push ebx
call esi
test eax, eax
je 0x406861
push ebx
push ebx
push ebp
mov ebp, 0x4616d0
mov edi, 0x4606d0
push ebp
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
test eax, eax
je 0x406861
push ebp
push 0x461ad0
push str._s_s_r_n
push 0x4602d0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x473ddc]
add esp, 0x10
mov ebp, eax
mov dword [esp + 0x1c], ebp
push dword [ecx + 0x128]
push edi
call fcn.00406369
push 4
push 0xc0000000
push edi
call fcn.00406e77
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406861
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40685a
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40685a
cmp esi, dword [esp + 0x10]
jne 0x40685a
push str._Rename__r_n
push edi
call fcn.00407297
test eax, eax
jne 0x406867
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x4602d0
lea eax, [ecx + edi]
push eax
call fcn.00406b86
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esi + ebp]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x40a8a4
add eax, 0xa
push eax
call fcn.00407297
mov ecx, eax
test ecx, ecx
je 0x406823
lea edx, [edi + esi]
add ebp, edx
cmp edx, ecx
jbe 0x406890
sub ebp, edx
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406886
mov ebp, dword [esp + 0x1c]
sub ecx, edi
inc ecx
jmp 0x406825
Function at 0x4069f9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x45c2c8
push ebx
call fcn.00407220
push ebx
call fcn.00407319
mov esi, eax
test esi, esi
jne 0x406a1a
xor eax, eax
jmp 0x406a72
push esi
call fcn.004073a6
test byte [0x473dd8], 0x80
je 0x406a36
movzx eax, word [esi]
test ax, ax
je 0x406a16
cmp eax, 0x5c
je 0x406a16
sub esi, ebx
sar esi, 1
jmp 0x406a50
call fcn.004069b3
test eax, eax
je 0x406a4a
test byte [eax], 0x10
je 0x406a16
push ebx
call fcn.00407379
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406a3c
call fcn.00406984
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
ret 4

Function at 0x406aa9
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ecx
cmp dword [esp + 8], 0
je 0x406ace
mov eax, dword [0x40c058]
cmp eax, 0xffffffff
je 0x406ac2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40c058], 0xffffffff
jmp 0x406b82
cmp dword [0x462d20], 0
je 0x406b82
push ebp
xor ebp, ebp
push edi
cmp word [0x462520], bp
je 0x406b49
cmp dword [0x40c058], 0xffffffff
jne 0x406b52
push ebx
mov ebx, 0x462520
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push ebx
mov edi, eax
call fcn.00406e77
mov dword [0x40c058], eax
pop ebx
cmp eax, 0xffffffff
je 0x406b80
cmp edi, 0xffffffff
jne 0x406b3e
push ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0xfeff
push ecx
push 2
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x40c058]
push 2
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40c058], 0xffffffff
je 0x406b80
push 0x40a8bc
mov edi, 0x462d40
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
lea ecx, [esp + 0x14]
add eax, eax
push ecx
push eax
push edi
push dword [0x40c058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ebp
pop ecx
ret 4

Function at 0x406ba8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x458278], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x458278
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406be3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x406e77
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, str.__
mov edi, eax
push ebp
push ebx
call fcn.0040723c
test eax, eax
jne 0x406ef5
cmp esi, 0x104
jle 0x406ef5
lea eax, [esi*2 + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push ebp
push esi
call fcn.00407220
push ebx
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
cmp edi, 0xffffffff
push 0
cmove edi, eax
push edi
push dword [esp + 0x24]
push eax
push 1
push dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x406f14
xor eax, eax
cmp edi, 0xffffffff
push 0
cmove edi, eax
push edi
push dword [esp + 0x24]
push eax
push 1
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x406f1d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406f97
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0x4008
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406f80
cmp dword [ebp + 0x14], 1
je 0x406f85
cmp dword [ebp + 0x14], 2
je 0x406f85
xor eax, eax
mov word [esi], ax
push dword [ebp - 4]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x406f9e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x208]
mov esi, eax
push 0x409a54
lea ecx, [ecx + esi*2]
push ecx
call edi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x206]
push ebx
lea eax, [eax + esi*2]
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jle 0x407012
add eax, 0xfffffffc
mov esi, str..dll
push esi
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x407012
push esi
lea eax, [ebp - 0x208]
push eax
call edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407044
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a88c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a890]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x407090
test edi, edi
jne 0x407051
mov word [esi], ax
jmp 0x407092
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4072f9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407316
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4
Function at 0x407898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x462124], 0
push esi
jne 0x4078d0
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
dec esi
jne 0x4078a9
mov dword [ecx*4 + 0x462120], edx
inc ecx
cmp ecx, 0x100
jl 0x4078a4
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x4078fa
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x462120]
inc esi
dec edx
jne 0x4078e2
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x59441409
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
mov ecx, 0x74b42127
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1001497b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100149ea
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push dword [eax]
mov eax, dword [ebp - 0x1c]
push dword [eax]
lea eax, [ebp - 0x3c]
push eax
call fcn.1001339a
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
call fcn.100167df
lea ecx, [ebp - 0x3c]
call fcn.10016804
jmp 0x10014a05
push 0xd1a
push 0
push 0x1f0f
push 0xf38
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret
Function at 0x1002a2c5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002a2fd
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x1002a2f8
push 0x24c6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x1002a3b4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
jbe 0x1002a326
mov dword [ebp - 0xc], 1
jmp 0x1002a32a
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x1002a344
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1002a344
and dword [ebp - 8], 0
jmp 0x1002a34b
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
je 0x1002a35e
mov dword [ebp - 0x2c], 1
jmp 0x1002a362
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx]
cmp dword [ebp - 0xc], eax
jl 0x1002a37a
mov dword [ebp - 0x10], 1
jmp 0x1002a37e
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x10], eax
jg 0x1002a391
mov dword [ebp - 0x14], 1
jmp 0x1002a395
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
jge 0x1002a3a8
mov dword [ebp - 0x18], 1
jmp 0x1002a3ac
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002eaf9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002eb55
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esi, dword [edx]
sub esi, dword [ecx]
add esi, dword [eax]
neg esi
push 1
mov ecx, dword [ebp - 0x18]
call fcn.10016a56
mov dword [eax], esi
jmp 0x1002eb5d
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100305fa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x532d
push 1
call fcn.1002fb4a
add esp, 0x10
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1003062f
xor eax, eax
jmp 0x1003077a
push 0x192a
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
call fcn.1002fbc2
add esp, 0x14
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1003065c
xor eax, eax
jmp 0x1003077a
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 1
call fcn.1002f08f
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1003067a
xor eax, eax
jmp 0x1003077a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
push 0x3b9d
push 0x14be
push 1
call fcn.1002fc23
add esp, 0x24
push 0x5004
push 0x2bb3
push 0x7c99
push dword [ebp - 4]
push 0x73f3
push 0x1061
push dword [ebp - 8]
push dword [ebp + 8]
push 0
call fcn.1002fc23
add esp, 0x24
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
call fcn.100305aa
add esp, 0xc
push dword [ebp - 4]
call fcn.1002eb62
pop ecx
test eax, eax
jne 0x100306ff
xor eax, eax
jmp 0x1003077a
push 0x72c6
push 0x272e
push 0
push 0x501b
push dword [ebp - 4]
push 0x48a4
call fcn.1002b70a
add esp, 0x18
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10030762
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x1003073f
xor eax, eax
jmp 0x1003077a
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10030758
xor eax, eax
jmp 0x1003077a
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10030773
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x10030777
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x10046a1c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10046a3a
push 0xcf7
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x10046abb
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10046abb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
imul eax, dword [ecx]
imul eax, eax, 0xccb9
test eax, eax
je 0x10046a98
mov dword [ebp - 0xc], 1
jmp 0x10046a9c
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0xc], eax
jg 0x10046aaf
mov dword [ebp - 8], 1
jmp 0x10046ab3
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
neg eax
cmp eax, 0xccd2466e
jae 0x10046adc
mov dword [ebp - 0x14], 1
jmp 0x10046ae0
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jbe 0x10046aef
mov dword [ebp - 0x18], 1
jmp 0x10046af3
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, 0xd5493e
je 0x10046b07
mov dword [ebp - 0x1c], 1
jmp 0x10046b0b
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
jg 0x10046b22
xor eax, eax
je 0x10046b22
mov dword [ebp - 0x20], 1
jmp 0x10046b26
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jg 0x10046b39
mov dword [ebp - 0x24], 1
jmp 0x10046b3d
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x24]
cmp dword [eax], ecx
je 0x10046b55
mov dword [ebp - 0x28], 1
jmp 0x10046b59
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1004722f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10047253
push 0x508
push 0x8c7
push 0x1f70
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x10047261
push 0
push 0x58
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop ebp
ret