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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4536c3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4536aa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45a040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x486e9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0045a960
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x8befcc
call fcn.0047895a
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x45a0d3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047895a
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x45a0cc
push 0
mov ecx, eax
call fcn.00451170
mov dword [esi + 0xc], eax
jmp 0x45a0d5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x45a0d5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x47afc0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47aff8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00479074
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047904c
jmp 0x47b004
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47c6b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47c6f4
call fcn.004821ce
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47c6f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47c6eb
xor eax, eax
jmp 0x47c6fc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047c702
pop edi
pop esi
pop ebx
ret 4
Function at 0x4826fe
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48272c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48274a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00482664
jmp 0x48274a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48274a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00482664
test edi, edi
mov eax, edi
jne 0x482734
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x875058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8751a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x87507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87506a
add dl, dl
jne 0x875089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8750dc
xor eax, eax
add dl, dl
jne 0x875096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87517d
add dl, dl
jne 0x8750a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8750b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8750bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8750c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8750d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x875075
mov eax, 1
add dl, dl
jne 0x8750ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8750f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8750e1
sub eax, ebx
mov ebx, 1
jne 0x875128
mov ecx, 1
add dl, dl
jne 0x87510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x875119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x875105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x875075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x87513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x87514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x875136
cmp eax, 0x7d00
jae 0x87516d
cmp eax, 0x500
jb 0x875168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x875075
cmp eax, 0x7f
ja 0x875170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x875075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x87519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x875075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x6d4678c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x6d4678ce
repz ret
jmp fcn.6d467caf
Function at 0x4012d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401324
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401320
jmp 0x401310
cmp esi, eax
jae 0x401324
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401310
cmp esi, eax
jb 0x40132b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c90
Capabilities:
Encode data using xor
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2001c
call fcn.00429100
mov eax, dword [0x44e6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
push 0x2460
mov esi, ecx
mov dword [ebp - 0x2001c], ebx
call fcn.004253fe
add esp, 4
xor edi, edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push edi
push 3
push edi
push edi
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20010], esi
mov dword [0x44fa70], edi
cmp esi, 0xffffffff
je 0x401e37
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20018], eax
cmp eax, 0xffffffff
je 0x401e30
lea eax, [ebp - 0x20008]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x20014], ecx
mov dword [ebp - 0x2000c], 1
test ecx, ecx
je 0x401df9
lea ecx, [ecx]
cmp dword [ebp - 0x2000c], 0
je 0x401df9
mov edi, 0x20000
mov dword [ebp - 0x2000c], 0
cmp ecx, edi
jae 0x401d62
mov edi, ecx
push 0
lea ecx, [ebp - 0x20008]
push ecx
push edi
lea edx, [ebp - 0x20004]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401dd9
mov eax, dword [ebp - 0x20008]
cmp eax, edi
jne 0x401ddf
xor esi, esi
mov ebx, eax
test eax, eax
jbe 0x401da1
call fcn.00425410
xor byte [ebp + esi - 0x20004], al
inc esi
cmp esi, ebx
jb 0x401d90
mov edx, dword [ebp - 0x20018]
push 0
lea eax, [ebp - 0x20008]
push eax
push edi
lea ecx, [ebp - 0x20004]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401dd9
mov eax, dword [ebp - 0x20008]
cmp eax, edi
jne 0x401ddf
mov dword [ebp - 0x2000c], 1
jmp 0x401ddf
mov eax, dword [ebp - 0x20008]
mov ecx, dword [ebp - 0x20014]
mov esi, dword [ebp - 0x20010]
sub ecx, eax
mov dword [ebp - 0x20014], ecx
jne 0x401d40
mov eax, dword [ebp - 0x20018]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2001c]
push 0
push 0x4000000
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp - 0x2000c]
mov dword [0x44fa70], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425186
mov esp, ebp
pop ebp
ret
Function at 0x401e50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20cc
call fcn.00429100
mov eax, dword [0x44e6d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea edx, [ebp - 0x10cc]
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401e71
push esi
push edi
lea edi, [ebp - 0x10cc]
add edi, 0xfffffffe
jmp 0x401e90
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401e90
mov eax, dword [0x443f70]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004253fe
add esp, 4
xor esi, esi
call fcn.00425410
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add edx, 0x61
cmp esi, 6
mov word [ebp + esi*2 - 0xce], dx
jl 0x401eb4
xor edx, edx
lea eax, [ebp - 0xcc]
mov word [ebp - 0xc0], dx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ee3
lea edi, [ebp - 0x10cc]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401f00
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [ebp - 0x20cc]
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401f26
push 0x452950
push 1
push 0x443f74
push 0x43ea68
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
lea eax, [ebp - 0x20cc]
je 0x40202b
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401f60
mov ecx, dword [str.lclz]
mov edx, dword [0x443f84]
mov dword [eax], ecx
mov ecx, dword [0x443f88]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea eax, [ebp - 0x10cc]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401f90
mov edx, dword [str..dat]
mov ecx, dword [0x443f90]
mov dword [eax], edx
mov dx, word [0x443f94]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea edx, [ebp - 0x10cc]
lea ecx, [ebp - 0x20cc]
call fcn.00401c90
test eax, eax
je 0x402088
lea eax, [ebp - 0x10cc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x45aa78], eax
test eax, eax
jne 0x40207e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:__d
lea edx, [ebp - 0xcc]
call fcn.00402400
add esp, 8
push 0x10
push str.lclz_not_loaded
lea ecx, [ebp - 0xcc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425186
mov esp, ebp
pop ebp
ret
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402030
mov edx, dword [str.lang.dll]
mov ecx, dword [0x443fd0]
mov dword [eax], edx
mov edx, dword [0x443fd4]
mov dword [eax + 4], ecx
mov ecx, dword [0x443fd8]
mov dword [eax + 8], edx
mov edx, dword [0x443fdc]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea eax, [ebp - 0x20cc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x45aa78], eax
test eax, eax
je 0x402088
mov esi, eax
call fcn.00412118
mov dword [eax + 0xc], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00425186
mov esp, ebp
pop ebp
ret
Function at 0x4020a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c1cd
mov eax, dword fs:[0]
push eax
mov eax, 0x1484
call fcn.00429100
mov eax, dword [0x44e6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push 0
mov dword [ebp - 0x1014], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x1010]
push 0x5c
push ecx
call fcn.00425558
add esp, 8
test eax, eax
je 0x402106
xor edx, edx
mov word [eax], dx
xor eax, eax
jmp 0x402110
movzx ecx, word [ebp + eax - 0x1010]
mov word [eax + 0x452950], cx
add eax, 2
test cx, cx
jne 0x402110
mov edi, 0x452950
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402130
mov eax, dword [0x443f70]
mov dword [edi], eax
mov edi, 0x452950
add edi, 0xfffffffe
jmp 0x402150
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402150
mov ecx, 6
mov esi, str.settings.ini
rep movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x1010]
movsw word es:[edi], word [esi]
call fcn.00401e50
lea ecx, [ebp - 0x101c]
push ecx
mov dword [ebp - 0x101c], 8
mov dword [ebp - 0x1018], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [ebp - 0x1014]
mov ecx, esi
call fcn.00410998
mov edx, dword [0x44fa88]
push 0x452950
push edx
push str.FontHeight
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x452950
push 0x100
push str.Tahoma
push str.Tahoma
push str.FontName
push str.Settings
mov dword [0x44fa88], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x4023c0
mov ecx, 0x45eec8
call fcn.00411133
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402207
call fcn.00409251
push eax
call fcn.00408081
add esp, 4
lea eax, [ebp - 0x1490]
push eax
call fcn.00402c40
lea ecx, [ebp - 0x1490]
mov dword [ebp - 4], 0
mov dword [esi + 0x20], ecx
call fcn.00408ce8
lea edx, [ebp - 0x1490]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00402270
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425186
mov esp, ebp
pop ebp
ret
Function at 0x402910
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push edx
mov dword [ebp - 0x10], ecx
push eax
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x18], 1
call sub.MPR.dll_WNetAddConnection2W
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret

Function at 0x402960
Capabilities:
Encode data using xor
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2001c
call fcn.00429100
mov eax, dword [0x44e6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, edx
push 0x2460
mov esi, ecx
mov dword [ebp - 0x2001c], ebx
mov dword [ebp - 0x20018], eax
call fcn.004253fe
add esp, 4
xor edi, edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push edi
push 3
push edi
push edi
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x20018]
mov esi, eax
mov dword [ebp - 0x20010], esi
mov dword [ecx], edi
cmp esi, 0xffffffff
je 0x402b17
push edi
push 1
push 2
push edi
push edi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x45ec98], eax
cmp eax, 0xffffffff
je 0x402b10
lea edx, [ebp - 0x20008]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x20014], ecx
mov dword [ebp - 0x2000c], 1
test ecx, ecx
je 0x402ad9
jmp 0x402a20
cmp dword [ebp - 0x2000c], 0
je 0x402ad9
mov ebx, 0x20000
mov dword [ebp - 0x2000c], 0
cmp ecx, ebx
jae 0x402a42
mov ebx, ecx
push 0
lea eax, [ebp - 0x20008]
push eax
push ebx
lea ecx, [ebp - 0x20004]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402ab9
mov eax, dword [ebp - 0x20008]
cmp eax, ebx
jne 0x402abf
xor esi, esi
mov edi, eax
test eax, eax
jbe 0x402a81
call fcn.00425410
xor byte [ebp + esi - 0x20004], al
inc esi
cmp esi, edi
jb 0x402a70
mov ecx, dword [0x45ec98]
push 0
lea edx, [ebp - 0x20008]
push edx
push ebx
lea eax, [ebp - 0x20004]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ab9
mov eax, dword [ebp - 0x20008]
cmp eax, ebx
jne 0x402abf
mov dword [ebp - 0x2000c], 1
jmp 0x402abf
mov eax, dword [ebp - 0x20008]
mov ecx, dword [ebp - 0x20014]
mov esi, dword [ebp - 0x20010]
sub ecx, eax
mov dword [ebp - 0x20014], ecx
jne 0x402a20
mov edx, dword [0x45ec98]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2001c]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x20018]
mov edi, dword [ebp - 0x2000c]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425186
mov esp, ebp
pop ebp
ret
Function at 0x403060
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x44e6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, dword [0x4442a4]
mov eax, dword [0x4442a0]
mov edx, dword [0x4442a8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4442ac]
mov dword [ebp - 0x14], ecx
mov cx, word [0x4442b0]
mov dword [ebp - 0x10], edx
mov edx, dword [str.CSRSS.EXE]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4442b8]
mov word [ebp - 8], cx
mov ecx, dword [0x4442bc]
mov dword [ebp - 0x2c], edx
mov edx, dword [0x4442c0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4442c4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [str.LSASS.EXE]
mov dword [ebp - 0x20], edx
mov edx, dword [0x4442cc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4442d0]
mov dword [ebp - 0x40], ecx
mov ecx, dword [0x4442d4]
mov dword [ebp - 0x3c], edx
mov edx, dword [0x4442d8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push 2
mov edi, eax
mov dword [ebp - 0x26c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4031a5
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40319e
mov eax, dword [ebp - 0x264]
test eax, eax
jbe 0x403185
cmp eax, edi
je 0x403185
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x248]
push edx
call fcn.00425742
add esp, 8
test eax, eax
je 0x403198
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x248]
push ecx
call fcn.00425742
add esp, 8
test eax, eax
je 0x403198
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.00425742
add esp, 8
test eax, eax
je 0x403198
lea ecx, [ebp - 0x26c]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403132
jmp 0x40319e
mov ebx, dword [ebp - 0x264]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00425186
mov esp, ebp
pop ebp
ret
Function at 0x4031c0
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x125c
call fcn.00429100
mov eax, dword [0x44e6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x459a78]
mov word [ebp + eax - 0x1008], cx
add eax, 2
test cx, cx
jne 0x4031e0
lea eax, [ebp - 0x1008]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x403200
mov ecx, dword [str..]
mov edx, dword [0x4442e0]
mov dword [eax], ecx
mov cx, word [0x4442e4]
mov dword [eax + 4], edx
lea edx, [ebp - 0x1258]
mov word [eax + 8], cx
push edx
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x125c], esi
cmp esi, 0xffffffff
je 0x40334d
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x1258], 0x10
jne 0x403330
lea eax, [ebp - 0x122c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403270
sub eax, edx
sar eax, 1
cmp eax, 6
jne 0x403330
lea ecx, [ebp - 0x122c]
push 0x2e
push ecx
call fcn.00425584
add esp, 8
test eax, eax
jne 0x403330
movzx ecx, word [eax + 0x459a78]
mov word [ebp + eax - 0x1008], cx
add eax, 2
test cx, cx
jne 0x4032a1
lea edi, [ebp - 0x1008]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4032c1
mov edx, dword [0x443f70]
lea eax, [ebp - 0x122c]
mov dword [edi], edx
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4032e0
lea edi, [ebp - 0x1008]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4032f6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x1008]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x125c]
lea edx, [ebp - 0x1258]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403253
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425186
mov esp, ebp
pop ebp
ret

Function at 0x403360
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00429100
mov eax, dword [0x44e6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x452950
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 0x4442e8
push str.flags
push 0x44fa30
call esi
cmp dword [0x45aa84], 0
jne 0x4033c9
push 0x452950
push 0x1000
push 0x45aaf0
push 0x443dd8
push 0x44fa50
push 0x44fa30
call esi
lea ecx, [ebp - 0x1004]
push ecx
call fcn.004257eb
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.00425186
mov esp, ebp
pop ebp
ret