joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4b6048]
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
mov eax, dword [ebp + 0x10]
xor bl, bl
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [eax], ecx
xor eax, eax
push eax
push 0x4a3010
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
call fcn.00404ab0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov ecx, section..data
push eax
mov dword [ebp - 4], 0
call fcn.00404ab0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x435b56
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435b4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435be3
push edx
push ecx
call fcn.0044d7ec
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x435b5e
mov esi, dword [esi]
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435bac
cmp dword [edi + 0x14], 8
jb 0x435b7e
mov edi, dword [edi]
mov esi, dword [ebp - 0x30]
push esi
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x435baf
mov esi, dword [ebp - 0x30]
cmp dword [ebp - 0x34], 0
je 0x435bc5
cmp dword [ebp + 0x18], 0
jbe 0x435bc5
xor ecx, ecx
movzx ebx, bl
cmp dword [esi], ecx
cmove ebx, ecx
mov al, bl
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.0044e054
mov esp, ebp
pop ebp
ret
call fcn.00468a1a
int3
Function at 0x435bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4b6048]
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
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x435d23
mov eax, dword [ebp + 0x18]
cmp eax, 1
jb 0x435d23
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push 0x4a3010
xor bl, bl
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404ab0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov ecx, section..data
push eax
mov dword [ebp - 4], 0
call fcn.00404ab0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x435cc2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435cb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435d41
push edx
push ecx
call fcn.0044d7ec
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x435cca
mov esi, dword [esi]
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435d16
cmp dword [edi + 0x14], 8
jb 0x435cea
mov edi, dword [edi]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
movzx eax, bl
cmp dword [ebp - 0x30], ecx
cmove eax, ecx
jmp 0x435d25
xor al, al
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.0044e054
mov esp, ebp
pop ebp
ret
call fcn.00468a1a
int3
Function at 0x435d50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f508
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b6048]
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
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 8]
xor bl, bl
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
push eax
push 0x4a3010
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404ab0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov ecx, section..data
push eax
mov dword [ebp - 4], 0
call fcn.00404ab0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x435e0b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435e01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435e8a
push edx
push ecx
call fcn.0044d7ec
add esp, 8
cmp dword [ebp - 0x2c], 0
je 0x435e6c
cmp dword [ebp + 0x18], 0
jbe 0x435e6c
cmp dword [esi + 0x14], 8
jb 0x435e1f
mov esi, dword [esi]
lea eax, [ebp - 0x30]
push eax
push 2
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435e6c
cmp dword [edi + 0x14], 8
jb 0x435e3f
mov edi, dword [edi]
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x2c]
push dword [eax]
push 0
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x30]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
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.0044e054
mov esp, ebp
pop ebp
ret
call fcn.00468a1a
int3

Function at 0x435fa0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4b6048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push 0
mov dword [ebp - 0x234], edi
push eax
mov dword [ebp - 0x234], edi
call fcn.00437bb0
push 0
push 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x436046
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x43603f
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
cmp ebx, dword [ebp - 0x228]
je 0x436035
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x436010
jmp 0x43603e
mov ecx, dword [ebp - 0x218]
mov dword [edi + 0x1c], ecx
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0044e054
mov esp, ebp
pop ebp
ret 4
Function at 0x4363b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f358
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b6048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
push 0x20219
push 0
push str.SoftwareWorking_SolutionsAcquire
push 0x80000002
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x436424
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x4a3010
mov word [esi], ax
call fcn.00404ab0
jmp 0x436563
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push str.mainexe
push dword [ebp - 0x44]
call edi
test eax, eax
jne 0x43653b
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x18]
shr ecx, 1
inc ecx
cmp ecx, eax
ja 0x436483
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x436490
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042fba0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
push str.mainexe
push dword [ebp - 0x44]
call edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00432860
mov edi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x436533
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x436501
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4364f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436580
push edx
push ecx
call fcn.0044d7ec
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x40]
call fcn.00404940
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e054
mov esp, ebp
pop ebp
ret
call fcn.00468a1a
int3
Function at 0x436590
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 8], ebx
mov eax, dword [ebx + 0x1c]
cmp eax, 1
jb 0x4365f1
push eax
push 0
push 0x100000
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4365d8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and bl, byte [ebp - 1]
jne 0x4365ee
push str.Acquire_Control_Screen
push str.TMainControl
call dword [sym.imp.USER32.dll_FindWindowW]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x437600
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebx + 0x1c], 0
je 0x436645
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
cmp esi, edi
je 0x43664b
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x43663e
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x1c]
je 0x436692
add esi, 4
cmp esi, edi
jne 0x436626
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
sub edi, esi
test edi, 0xfffffffc
je 0x436699
mov eax, esi
mov edi, dword [eax]
test esi, esi
je 0x436689
mov ecx, dword [ebp - 0xc]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x43667f
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4366d2
push ecx
push esi
call fcn.0044d7ec
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov esi, dword [ebp - 0x14]
jmp 0x436657
test esi, esi
je 0x4366c9
mov ecx, dword [ebp - 0xc]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4366bf
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4366d2
push ecx
push esi
call fcn.0044d7ec
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00468a1a
int3
Function at 0x437820
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push ebx
mov esi, dword [edi + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, esi
jne 0x4378c5
cmp esi, dword [edi + 0x2c]
mov edx, 2
cmovbe esi, dword [edi + 0x2c]
xor ecx, ecx
add esi, 5
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044d7fa
add esp, 4
mov dword [ebp + 0xc], eax
push esi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp + 0xc]
lea ecx, [edi + 4]
call fcn.0041ba00
test eax, eax
jne 0x4378b9
push esi
mov esi, dword [ebp + 0xc]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x4378bc
push esi
lea ecx, [edi + 0x1c]
call fcn.0041ba00
test eax, eax
jne 0x4378bc
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4378ad
mov dword [eax], ebx
add dword [ecx + 4], 4
jmp 0x4378bc
lea edx, [ebp + 8]
push edx
push eax
call fcn.00435e90
jmp 0x4378bc
mov esi, dword [ebp + 0xc]
push esi
call fcn.0044d7b7
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8

Function at 0x437970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor bl, bl
cmp dword [eax + 0x14], 8
jb 0x437981
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43799d
test al, 0x10
mov ecx, 1
movzx eax, bl
cmove eax, ecx
pop ebx
pop ebp
ret
mov al, bl
pop ebx
pop ebp
ret

Function at 0x437a20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
cmp dword [eax + 0x14], 8
jb 0x437a31
mov eax, dword [eax]
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x437a6f
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x450834
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x47d6a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047d518

Function at 0x47ffaa
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047ff2c
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x401ae8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebx, section..text
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
sub ebx, 0x1000
mov dword [0x4028f4], ebx
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401b11
push esp
mov eax, str.contents
mov dword [ebp - 4], eax
lea eax, [0x401187]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x4028f4]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
xor eax, eax
push eax
push dword [0x4028f4]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x402904], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x402904]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401bc9
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401bb0
pop ebp
ret 0x10
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Set registry value

Disassembly:
sub esp, 0x314
lea eax, [esp + 0x10c]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x11c]
push 0x4070c8
push ecx
call fcn.0040160a
mov esi, eax
add esp, 8
test esi, esi
jne 0x40104c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x314
ret 0x10
push 2
push 0
push esi
call fcn.0040155e
push esi
call fcn.00401406
push 0
mov ebx, eax
push 0x8000
push esi
sub ebx, 0x8000
call fcn.0040155e
push ebx
call fcn.004013f8
push esi
mov ebp, eax
push ebx
push 1
push ebp
call fcn.00401310
push esi
call fcn.004012ba
add esp, 0x34
lea edx, [esp + 0x220]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x220]
push eax
push 0
push 0x4070c4
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, str..exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4070b8
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040160a
mov esi, eax
add esp, 8
test esi, esi
jne 0x401124
push 0x10
push str.Error
push str.Cannot_create_the_file
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x314
ret 0x10
push esi
push ebx
push 1
push ebp
call fcn.004011b0
push esi
call fcn.004012ba
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareHTAntiSpyPRO
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [str.http:__www.softvers.com_antispy_paypro.cgi_refer5300]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push str.strCheckOutURL
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x18]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x314
ret 0x10
Function at 0x40303d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407188
cmp edx, dword [eax]
je 0x40305f
add eax, 8
inc ecx
cmp eax, 0x407218
jl 0x403050
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407188]
jne 0x40318d
mov eax, dword [0x407918]
cmp eax, 1
je 0x403167
test eax, eax
jne 0x403090
cmp dword [0x4070d0], 1
je 0x403167
cmp edx, 0xfc
je 0x40318d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4030c7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404480
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404570
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40310a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404570
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4063b8
push edi
call fcn.00404680
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404480
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404490
lea eax, [ebp - 0xa0]
push 0x406398
push eax
call fcn.00404490
push dword [esi + 0x40718c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404490
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004045eb
add esp, 0x2c
pop edi
jmp 0x40318d
lea eax, [ebp + 8]
lea esi, [esi + 0x40718c]
push 0
push eax
push dword [esi]
call fcn.00404570
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
Function at 0x401080
Capabilities:
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
lea eax, [esp + 4]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 4]
lea ecx, [esp + 4]
mov esi, 0x40e17c
test al, al
je 0x4010d4
push edi
mov byte [esi], al
mov eax, ecx
inc esi
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4010c0
sub eax, edi
lea ecx, [ecx + eax + 1]
mov al, byte [ecx]
test al, al
jne 0x4010b7
pop edi
push 0x40e17c
mov byte [esi], 0
call dword [sym.imp.MSVCR90.dll__strupr]
mov ecx, dword [esp + 0x408]
add esp, 4
pop esi
xor ecx, esp
call fcn.00401d84
add esp, 0x404
ret

Function at 0x401100
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push 0x8000000
push eax
push eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
add esp, 0x5c
ret

Function at 0x4011d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [esp]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
push 0x8000000
push eax
push eax
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
push eax
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x58
ret