joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ef20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4dbcb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004d1f17
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0049e8c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004d1e45
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004ce626
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004ce626
push 1
push 0
push 0
mov ecx, esi
call fcn.004ce5ce
push 1
push 0
push 1
mov ecx, esi
call fcn.004ce5ce
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004d1f89
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x49f0a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4dbcd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004d1f17
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0049e8c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004d1e45
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x49f164
cmp dword [esp + 0x40], 1
jne 0x49f162
cmp ecx, eax
jge 0x49f164
mov eax, ecx
cmp eax, 0xc8
jge 0x49f170
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0049ef20
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004d1f89
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x49f8f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4dbd43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004cca47
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004d21bf
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004d375a
test eax, eax
je 0x49fa0c
mov ecx, dword [esp + 0x3c]
call fcn.004d21ec
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x49f9d0
push edi
mov ecx, esi
call fcn.004cf7a5
mov ecx, esi
call fcn.0049fb70
cmp dword [esp + 0x38], 1
jne 0x49fa05
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004cf90f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4a2440
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4a2473
push esi
call fcn.004a5530
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4a246c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4a24f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4a24e2
mov eax, dword [esi + 8]
test eax, eax
je 0x4a2497
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4a24de
cmp eax, 2
je 0x4a24e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4a248a
cmp eax, 3
je 0x4a24bd
cmp eax, 1
jne 0x4a248a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4a248a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4a248a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004a2520
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4a2508
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004a2520
add esp, 4
pop esi
ret

Function at 0x4af1f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4af256
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4af256
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4af237
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4af5e0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4af618
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4b0340
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4b0389
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4b0800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc4d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004b03b0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004b0430
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004b0430
lea ecx, [esi + 0xc]
call fcn.004cb3ad
lea ecx, [esi + 0x10]
call fcn.004cb3ad
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004b19c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004b19c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004b19c0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004cb422
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004cb422
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4cd83c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cd874
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.004cb8c9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cb8a1
jmp 0x4cd880
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cef2e
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 0x4cef70
call fcn.004d4f1c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cef70
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cef67
xor eax, eax
jmp 0x4cef78
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cef7e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d544c
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 0x4d547a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d5498
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d53b2
jmp 0x4d5498
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d5498
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d53b2
test edi, edi
mov eax, edi
jne 0x4d5482
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401c2c
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x4486c8]
mov byte [0x4386b8], 0
cmp byte [eax + 0x180], 0x68
push esi
mov esi, 0x4386b8
jne 0x401c6b
cmp byte [eax + 0x181], 0x74
jne 0x401c6b
cmp byte [eax + 0x182], 0x74
jne 0x401c6b
cmp byte [eax + 0x183], 0x70
jne 0x401c6b
cmp byte [eax + 0x184], 0x3a
je 0x401c7d
push 0x401368
push esi
call sub.msvcrt.dll_strcpy
mov eax, dword [0x4486c8]
pop ecx
pop ecx
add eax, 0x180
push eax
push esi
call sub.msvcrt.dll_strcat
pop ecx
pop ecx
push 1
push 0
push 0
push esi
push 0
push dword [esp + 0x1c]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
ret 4

Function at 0x401ca2
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x401360
mov esi, 0x4386b8
push esi
call sub.msvcrt.dll_strcpy
mov eax, dword [0x4486c8]
add eax, 0x200
push eax
push esi
call sub.msvcrt.dll_strcat
add esp, 0x10
push 1
xor eax, eax
push eax
push eax
push esi
push eax
push dword [esp + 0x1c]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
ret 4

Function at 0x401e39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 0xa
push 0x182
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x401e5a
pop esi
ret
push edi
push dword [esi]
call sub.msvcrt.dll_malloc
mov edi, eax
push edi
add esi, 4
push esi
call fcn.00404e00
add esp, 0xc
mov dword [0x4486c8], edi
xor eax, eax
pop edi
inc eax
pop esi
ret
Function at 0x402245
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
xor ebx, ebx
push ebx
push dword [ebp + 8]
call edi
mov eax, dword [0x4486c8]
cmp byte [eax + 0x16a4], bl
jne 0x402322
cmp dword [eax + 0x16a8], ebx
je 0x4022ef
push esi
mov esi, 0x4386b8
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push ebx
push 0x401334
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x28]
call fcn.004049c0
push 1
push esi
lea ecx, [ebp - 0x28]
call fcn.004049dc
mov eax, dword [0x4486c8]
push ebx
push dword [eax + 0x16a8]
add eax, 0x1eac
push eax
lea ecx, [ebp - 0x28]
call fcn.00404a98
lea ecx, [ebp - 0x28]
call fcn.00404c02
push 0x10
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
push esi
mov dword [0x438690], eax
call sub.KERNEL32.dll_DeleteFileA
lea ecx, [ebp - 0x28]
call fcn.00404d48
mov eax, dword [0x4486c8]
pop esi
push ebx
push 0x401a97
push dword [ebp + 8]
add eax, 0x16ac
push eax
push dword [0x4386b4]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov eax, dword [0x438690]
cmp eax, ebx
je 0x40231a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x438690], ebx
jmp 0x402351
lea ecx, [eax + 0x1eac]
mov eax, dword [eax + 0x16a8]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x401658
push dword [ebp + 8]
mov dword [ebp - 8], ecx
push 0x4060a8
push dword [0x4386b4]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
push 5
push dword [ebp + 8]
call edi
pop edi
pop ebx
leave
ret 4
Function at 0x402444
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
lea ecx, [ebp - 0x20]
call fcn.004049c0
lea eax, [ebp - 0x824]
push 0x401328
push eax
call sub.msvcrt.dll_strcpy
lea ebx, [edi + 0x896]
lea eax, [ebp - 0x824]
push ebx
push eax
call sub.msvcrt.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x824]
mov esi, 0x4486e8
call fcn.00401536
push 1
push 0xc0000000
push ebx
lea ecx, [ebp - 0x20]
call fcn.00404ace
test al, al
jne 0x4024b6
lea eax, [ebp - 0x824]
push eax
lea eax, [edi + 0x91c]
call fcn.00402c33
jmp 0x4024bd
mov byte [ebp - 0x824], 0
lea ecx, [ebp - 0x20]
call fcn.00404c02
lea eax, [ebp - 0x824]
push ebx
push eax
call sub.msvcrt.dll_strcat
pop ecx
pop ecx
mov esi, 0x4386b8
push 1
push 0xc0000000
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x20]
call fcn.00404d4d
push dword [ebp - 0x10]
push dword [0x4486cc]
call fcn.00401452
test eax, eax
jne 0x40256c
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x88]
je 0x402536
push dword [ebp - 0x10]
push esi
call sub.msvcrt.dll_strcpy
push 0x401310
push esi
call sub.msvcrt.dll_strcat
add esp, 0x10
push 0x10
push 0
push esi
push dword [0x4486cc]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402564
lea ebx, [edi + 0x90]
cmp dword [ebx], 0
je 0x402591
push eax
push dword [ebp - 0x14]
call fcn.00404ca0
cmp eax, dword [ebx]
je 0x402591
push 0x17
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x10]
push dword [0x4486cc]
call fcn.00401452
lea ecx, [ebp - 0x20]
call fcn.00404c02
lea eax, [ebp - 0x824]
push eax
lea eax, [edi + 0x896]
push eax
call fcn.00402cfb
test al, al
jne 0x4024d9
call fcn.00401a50
jmp 0x4026a3
cmp byte [edi + 0x95], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
je 0x4025a8
push dword [ebp - 0x10]
call fcn.00402e86
mov eax, dword [edi + 0x8c]
cmp dword [edi + 0x88], eax
je 0x40265e
test eax, eax
je 0x40265e
push eax
call sub.msvcrt.dll_malloc
push dword [edi + 0x8c]
mov esi, eax
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [edi + 0x8c]
mov ecx, dword [edi + 0x88]
add esp, 0x10
cmp eax, ecx
jle 0x4025ee
push ecx
jmp 0x4025ef
push eax
push dword [ebp - 0x14]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00404c02
lea eax, [ebp - 0x824]
push eax
call sub.KERNEL32.dll_DeleteFileA
xor ecx, ecx
cmp dword [edi + 0xa68], ecx
jle 0x402633
lea eax, [edi + 0xa6c]
mov edx, dword [eax]
mov bl, byte [eax + 5]
inc ecx
mov byte [esi + edx], bl
add eax, 8
cmp ecx, dword [edi + 0xa68]
jl 0x40261f
push 1
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x20]
call fcn.004049dc
push 0
push dword [edi + 0x8c]
lea ecx, [ebp - 0x20]
push esi
call fcn.00404a98
push esi
call sub.msvcrt.dll_free
pop ecx
jmp 0x402685
xor ecx, ecx
cmp dword [edi + 0xa68], ecx
jle 0x402685
lea eax, [edi + 0xa6c]
mov edx, dword [eax]
mov bl, byte [eax + 5]
mov esi, dword [ebp - 0x14]
inc ecx
mov byte [esi + edx], bl
add eax, 8
cmp ecx, dword [edi + 0xa68]
jl 0x40266e
cmp byte [edi + 0x94], 1
jne 0x402699
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.00404bd4
mov esi, 0x4486e8
call fcn.00401557
lea ecx, [ebp - 0x20]
call fcn.00404d48
pop esi
pop ebx
leave
ret
Function at 0x4028cb
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov eax, 0x4012ec
mov esi, 0x4486e8
mov dword [esp + 0x10], ebx
mov byte [esp + 0xf], bl
call fcn.00401536
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x88], ebx
mov dword [esp + 0x14], ebx
jle 0x4029dd
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add edi, 0x1dc
cmp byte [edi - 0x150], bl
jne 0x40294f
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [edi - 0x148]
push eax
push dword [edi - 0x14c]
call ebp
test eax, eax
jne 0x40299c
push dword [edi]
lea eax, [edi + 4]
push eax
push dword [edi - 4]
lea eax, [edi - 0x44]
push ebx
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x402998
lea esi, [edi - 0x44]
cmp byte [esi], bl
je 0x402985
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [edi - 0x148]
push eax
push dword [edi - 0x14c]
call ebp
test eax, eax
jne 0x40299c
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x402998
lea eax, [edi - 0x148]
push eax
push dword [edi - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4029a1
mov byte [esp + 0x13], 1
cmp dword [esp + 0x14], ebx
je 0x4029b1
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add edi, 0x554
cmp ecx, dword [eax + 0x88]
jl 0x40290b
cmp byte [esp + 0x13], bl
pop ebp
je 0x4029dd
call fcn.00401a50
jmp 0x4029e7
mov esi, 0x4486e8
call fcn.00401557
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x4029f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
push edi
mov ebx, eax
mov edi, 0x4386b8
push edi
lea eax, [ebx + 0x488]
call fcn.00402c33
lea esi, [ebx + 0x5d4]
push esi
push edi
call sub.msvcrt.dll_strcat
cmp byte [ebx + 0x88], 0
pop ecx
pop ecx
lea eax, [ebp - 0x824]
jne 0x402a8a
push 0x4012dc
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x824]
push esi
push eax
call sub.msvcrt.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x824]
mov esi, 0x4486e8
call fcn.00401536
push edi
call sub.KERNEL32.dll_DeleteFileA
push edi
push dword [0x4486cc]
call fcn.00401452
test eax, eax
je 0x402a80
and dword [ebp - 4], 0
push 0x4052c0
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll__CxxThrowException
call fcn.00401557
jmp 0x402b0f
push 0x4012cc
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x824]
push esi
push eax
call sub.msvcrt.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x824]
mov esi, 0x4486e8
call fcn.00401536
lea ecx, [ebp - 0x24]
call fcn.004049c0
push 1
push edi
lea ecx, [ebp - 0x24]
call fcn.004049dc
test eax, eax
je 0x402aee
push 0
push dword [ebx + 0x654]
add ebx, 0x658
push ebx
lea ecx, [ebp - 0x24]
call fcn.00404a98
test eax, eax
je 0x402aee
call fcn.00401557
jmp 0x402b07
lea ecx, [ebp - 0x24]
call fcn.00404c02
push edi
push dword [0x4486cc]
call fcn.00401452
call fcn.00401a50
lea ecx, [ebp - 0x24]
call fcn.00404d48
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b14
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.004049c0
mov eax, 0x4012b4
mov esi, 0x4486e8
call fcn.00401536
push 0x104
mov edi, 0x4386b8
push edi
call fcn.00404c3a
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0x4012ac
push edi
call sub.msvcrt.dll_strcat
pop ecx
pop ecx
push 2
push edi
lea ecx, [ebp - 0x20]
call fcn.004049dc
push edi
push dword [0x4486cc]
call fcn.00401452
test eax, eax
je 0x402b80
call fcn.00401a50
lea ecx, [ebp - 0x20]
call fcn.00404d48
jmp 0x402bf2
mov esi, dword [ebp + 8]
push ebx
xor ebx, ebx
add esi, 0x89
push ebx
push esi
call sub.msvcrt.dll_strlen
pop ecx
inc eax
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00404a98
push edi
push dword [0x4486cc]
call fcn.00401452
test eax, eax
je 0x402bb6
call fcn.00401a50
jmp 0x402be9
lea ecx, [ebp - 0x20]
call fcn.00404c02
mov eax, dword [ebp + 8]
cmp byte [eax + 0x88], 1
jne 0x402bcd
push ebx
jmp 0x402bcf
push 0xa
push ebx
push ebx
push edi
push ebx
push dword [0x4486cc]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, 0x4486e8
call fcn.00401557
lea ecx, [ebp - 0x20]
call fcn.00404d48
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x402c33
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
xor ebx, ebx
cmp eax, 1
push edi
mov edi, 0x4386b8
jne 0x402c61
lea eax, [esi + 8]
cmp byte [eax], bl
je 0x402caa
push eax
push edi
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
jmp 0x402cb6
cmp eax, 2
jne 0x402cb6
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [esi + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402caa
lea eax, [ebp - 8]
push eax
push edi
push ebx
push ebx
add esi, 0x10c
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0xffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402cb6
push edi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x800
lea eax, [ebp - 0x808]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp byte [ebp + eax - 0x809], 0x5c
je 0x402ce3
mov byte [ebp + eax - 0x808], 0x5c
mov byte [ebp + eax - 0x807], bl
lea eax, [ebp - 0x808]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402e86
Capabilities:
Copy file

Disassembly:
push esi
push dword [esp + 8]
mov esi, 0x4386b8
push esi
call sub.msvcrt.dll_strcpy
push 0x40128c
push esi
call sub.msvcrt.dll_strcat
add esp, 0x10
push 0
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne al
pop esi
ret 4