joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a5420
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100db220
push 0x100af758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.100add50
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100a55d0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x100a5611
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x100a567e
cmp dword [esp + 0x1c], 2
jne 0x100a567e
cmp dword [esp + 0x10], 5
jne 0x100a567e
cmp dword [esp + 0x14], 1
jne 0x100a567e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100a5668
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100a5659
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x100a5661
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x100a567e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x100a6210
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.100ae630
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.100af8ad
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100a63bd
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x100a63bd
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.100a63d0
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.100a63d0
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.100a63d0
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.100a63d0
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x100a63bd
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret

Function at 0x100a7e20
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x100a7ec3
test eax, eax
jbe 0x100a7ec3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x100a7ec3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x100a7e6e
xor esi, esi
jmp 0x100a7e74
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x100a7e9f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.10056c50
add esi, eax
push esi
mov ebx, esi
call fcn.10056c50
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x100a7e80
pop ebp
test edi, edi
pop edi
jne 0x100a7ec3
test ebx, ebx
je 0x100a7ec3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.100ae750
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x100a8000
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100a811d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100a811d
mov eax, dword [esi + 0x3c]
push eax
call fcn.100bfbb6
mov esi, eax
test esi, esi
je 0x100a811d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x100a811d
mov ecx, esi
call fcn.100a7f70
cmp edi, eax
jge 0x100a811d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x100a80a3
mov dword [esp + 0x34], 1
jmp 0x100a80fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x100a811d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.100a7550
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x100aa4a0
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 0x100aa4e9
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 0x100aa960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100ccab0
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.100aa510
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.100aa590
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.100aa590
lea ecx, [esi + 0xc]
call fcn.100be141
lea ecx, [esi + 0x10]
call fcn.100be141
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.100abb20
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.100abb20
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.100abb20
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.100be1b6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.100be1b6
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100abd10
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 0x100abd76
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 0x100abd76
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x100abd57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x100c055a
Capabilities:
Get graphical window text

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

Function at 0x100c1c4d
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 0x100c1c8f
call fcn.100c77d9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100c1c8f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100c1c86
xor eax, eax
jmp 0x100c1c97
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100c1c9d
pop edi
pop esi
pop ebx
ret 4
Function at 0x40170c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov ecx, dword [0x4069e4]
mov esi, dword [esp + 0xc]
mov eax, esi
dec esi
test eax, eax
je 0x40173f
mov edx, dword [esp + 8]
mov al, byte [edx]
inc edx
xor al, cl
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x406ed0]
xor eax, ecx
mov ecx, eax
mov eax, esi
dec esi
test eax, eax
jne 0x401722
pop esi
mov dword [0x4069e4], ecx
ret

Function at 0x4027b8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea eax, [ebp - 0x44]
push 0x44
xor esi, esi
push esi
push eax
call fcn.00401056
add esp, 0xc
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x12], si
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x54]
mov dword [ebp - 0x10], esi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], 0xa
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov eax, 0
je 0x40282d
mov eax, dword [ebp - 0x54]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402e5c
Capabilities:
Get common file path

Disassembly:
push ebp
mov eax, 0x14e0
mov ebp, esp
call fcn.00404680
cmp dword [0x4067b8], 0
push ebx
push esi
push edi
je 0x403017
mov eax, dword [0x4067b4]
push 0
push dword [0x4067b8]
push dword [0x406764]
sub eax, dword [0x4067b8]
mov dword [0x4069f0], eax
call dword [sym.imp.KERNEL32.dll__llseek]
cmp eax, dword [0x4067b8]
je 0x402eaa
call fcn.00401162
mov esi, dword [0x4069f0]
lea eax, [ebp - 0x14e0]
push esi
push eax
push dword [0x406764]
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, esi
je 0x402ecd
call fcn.00401162
lea eax, [ebp - 0x14e0]
lea ecx, [ebp - 0xf04]
mov dword [0x406a80], eax
mov dword [0x4073e4], ecx
mov dword [0x406e4c], 1
call fcn.0040451e
lea ecx, [ebp - 0xf04]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x406e4c], 0
push ecx
push dword [0x40675c]
call esi
lea ecx, [ebp - 0xf04]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ecx
call ebx
lea edi, [ebp + eax - 0xf03]
push edi
push 0x4069f8
call esi
push edi
call ebx
lea edi, [eax + edi + 1]
push edi
push 0x406a88
call esi
push edi
call ebx
lea edi, [eax + edi + 1]
mov eax, dword [0x406758]
push edi
push eax
call esi
push edi
call ebx
test byte [0x4067c4], 0x10
lea edi, [eax + edi + 1]
je 0x402f6f
push edi
mov eax, dword [0x406760]
push eax
call esi
push edi
call ebx
lea edi, [eax + edi + 1]
cmp word [edi], 0x1f1f
jne 0x403017
add edi, 2
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403017
lea eax, [ebp - 0x104]
xor esi, esi
push eax
push esi
push str.WZSE
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x403017
push 1
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, 0xffffffff
mov ebx, eax
je 0x403017
lea eax, [ebp - 0xf04]
sub eax, edi
add eax, 0xe00
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
lea eax, [ebp - 0x104]
push eax
push dword [0x4069e8]
call dword [sym.imp.SHELL32.dll_ExtractIconA]
mov dword [0x406010], eax
cmp eax, 1
jne 0x403008
mov dword [0x406010], esi
lea eax, [ebp - 0x104]
push eax
call fcn.0040301e
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40301e
Capabilities:
Delete file
Set file attributes

Disassembly:
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec eax
cmp eax, 1
sbb eax, eax
inc eax
ret
Function at 0x40303f
Capabilities:
Check for time delay via gettickcount
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
cmp dword [0x406770], 0
push ebx
push esi
push edi
jne 0x403234
mov esi, dword [ebp + 8]
test esi, esi
je 0x403219
cmp byte [esi], 0
je 0x403219
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x403219
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x109], 0x5c
je 0x4030b3
push 0x406834
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40687c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov edi, eax
je 0x403209
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x109], 0x5c
je 0x40311b
push 0x406834
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp - 0x118], 0
je 0x40312c
lea eax, [ebp - 0x118]
jmp 0x403132
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x248], 0x10
je 0x4031b2
cmp byte [ebp - 0x118], 0
je 0x403184
cmp byte [ebp - 0x118], 0x2e
je 0x4031f3
push dword [ebp + 0xc]
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040303f
add esp, 8
test eax, eax
jne 0x4031f3
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4031f3
cmp byte [ebp - 0x21c], 0x2e
je 0x4031f3
push dword [ebp + 0xc]
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040303f
add esp, 8
test eax, eax
jne 0x4031f3
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4031f3
lea eax, [ebp - 0x108]
push eax
call fcn.0040301e
add esp, 4
test eax, eax
je 0x4031f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [eax + 0x3e8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jae 0x403234
call fcn.0040276a
lea eax, [ebp - 0x108]
push eax
call fcn.0040301e
add esp, 4
test eax, eax
jne 0x4031d1
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4030e4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x403236
push 0
push str.WinZip_Self_Extractor
push 0x10
call fcn.0040107b
push eax
push dword [0x4073e0]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov al, byte [0x4089a0]
push ebx
push esi
push edi
mov byte [esp + 0xc], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.sisRslt
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004015ec
lea ecx, [esp + 0x10]
push 0x408030
push ecx
call fcn.004015d9
mov edx, dword [esp + 0x120]
mov esi, eax
push esi
push edx
call fcn.00401576
push esi
call fcn.00401520
add esp, 0x18
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x4011e0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x204
mov al, byte [0x4089a0]
push edi
mov byte [esp + 0x108], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x109]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x108]
push 0x100
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dl, byte [0x4089a0]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], dl
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x210]
lea ecx, [esp + 0x108]
push eax
push ecx
push 0x40804c
push edx
call fcn.0040173b
add esp, 0x10
lea eax, [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 4]
push 0xa
push ecx
push eax
call fcn.00401616
lea edx, [esp + 0x10]
push edx
call fcn.00401000
add esp, 0x10
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
add esp, 0x204
ret
Function at 0x401290
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x108
mov al, byte [0x4089a0]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov ebx, dword [esp + 0x120]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x408048
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.0040169f
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x408048
lea eax, [ecx + ebx + 1]
push eax
call fcn.0040169f
mov ebp, eax
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebx, edx
push str.HKEY_CLASSES_ROOT
push esi
lea ebx, [ecx + ebx + 2]
call fcn.0040178d
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 0x18
test eax, eax
jne 0x40134e
lea eax, [esp + 0x10]
push eax
push ebp
push 0x80000000
call edi
push str.HKEY_CURRENT_USER
push esi
call fcn.0040178d
add esp, 8
test eax, eax
jne 0x40136d
lea ecx, [esp + 0x10]
push ecx
push ebp
push 0x80000001
call edi
push str.HKEY_LOCAL_MACHINE
push esi
call fcn.0040178d
add esp, 8
test eax, eax
jne 0x40138c
lea edx, [esp + 0x10]
push edx
push ebp
push 0x80000002
call edi
push str.HKEY_USERS
push esi
call fcn.0040178d
add esp, 8
test eax, eax
jne 0x4013ab
lea eax, [esp + 0x10]
push eax
push ebp
push 0x80000003
call edi
push str.HKEY_CURRENT_CONFIG
push esi
call fcn.0040178d
add esp, 8
test eax, eax
jne 0x4013ca
lea ecx, [esp + 0x10]
push ecx
push ebp
push 0x80000005
call edi
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x403b4d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408448
cmp edx, dword [eax]
je 0x403b6f
add eax, 8
inc ecx
cmp eax, 0x4084d8
jl 0x403b60
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408448]
jne 0x403c9d
mov eax, dword [0x4089b0]
cmp eax, 1
je 0x403c77
test eax, eax
jne 0x403ba0
cmp dword [0x408120], 1
je 0x403c77
cmp edx, 0xfc
je 0x403c9d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403bd7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004055b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401d50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403c1a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401d50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407434
push edi
call fcn.00405730
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004055b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004055c0
lea eax, [ebp - 0xa0]
push 0x407414
push eax
call fcn.004055c0
push dword [esi + 0x40844c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004055c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004056a0
add esp, 0x2c
pop edi
jmp 0x403c9d
lea eax, [ebp + 8]
lea esi, [esi + 0x40844c]
push 0
push eax
push dword [esi]
call fcn.00401d50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret