joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ca20
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x49ca29
mov eax, dword [ebp - 4]
add esp, 0xfffff044
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2fc0], ebx
mov dword [ebp - 0x2fb8], ebx
mov dword [ebp - 0x2fbc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404c20
lea edi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x49cbac
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x49cbc4
call fcn.00404d74
mov ebx, eax
test ebx, ebx
jle 0x49ca9c
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404c90
mov dword [edi], 0x3c
lea eax, [ebp - 0x1fe4]
mov dword [edi + 4], eax
mov dword [edi + 8], 0x7e8
lea eax, [ebp - 0x82c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x7e8
lea eax, [ebp - 0x1014]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0x7e8
lea eax, [ebp - 0x17fc]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 0x7e8
lea eax, [ebp - 0x27cc]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], 0x7e8
lea eax, [ebp - 0x2fb4]
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0x7e8
push edi
push 0
mov eax, dword [ebp - 4]
call fcn.00404a30
push eax
mov eax, dword [ebp - 4]
call fcn.00404c30
push eax
call sub.wininet.dll_InternetCrackUrlA
test eax, eax
je 0x49cb86
lea eax, [ebp - 0x2fbc]
mov edx, dword [edi + 4]
call fcn.00404968
mov eax, dword [ebp - 0x2fbc]
lea edx, [ebp - 0x2fb8]
call fcn.00408aa8
mov edx, dword [ebp - 0x2fb8]
mov eax, dword [ebp - 8]
call fcn.004047c4
mov eax, dword [ebp + 0x10]
mov edx, dword [edi + 0x10]
call fcn.00404968
mov eax, esi
mov edx, dword [edi + 0x2c]
call fcn.00404968
lea eax, [ebp - 0x2fc0]
mov edx, dword [edi + 0x34]
call fcn.00404968
mov edx, dword [ebp - 0x2fc0]
mov eax, esi
call fcn.00404a38
movzx eax, word [edi + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49cbb3
lea eax, [ebp - 0x2fc0]
mov edx, 3
call fcn.00404794
lea eax, [ebp - 4]
call fcn.00404770
ret
Function at 0x49d14c
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x49d327
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x16
push ebx
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00404dbc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404c30
push eax
push 0x16
push ebx
call sub.wininet.dll_HttpQueryInfoA
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
push ebx
call sub.wininet.dll_HttpQueryInfoA
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x38], edx
cmp dword [ebp - 0x14], 0xc8
je 0x49d216
cmp dword [ebp - 0x14], 0x12e
je 0x49d216
cmp dword [ebp - 0x14], 0x194
jne 0x49d301
mov byte [ebp - 5], 1
cmp dword [ebp - 4], 0
je 0x49d301
lea eax, [ebp - 0x81d]
xor ecx, ecx
mov edx, 0x800
call fcn.0040317c
cmp dword [ebp - 4], 0xffffffff
jne 0x49d292
jmp 0x49d276
cmp dword [ebp - 0x10], 0
je 0x49d301
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x81d], 0
lea eax, [ebp - 0x824]
lea edx, [ebp - 0x81d]
mov ecx, 0x801
call fcn.004049e0
mov edx, dword [ebp - 0x824]
mov eax, edi
call fcn.00404a38
lea eax, [ebp - 0x10]
push eax
push 0x800
lea eax, [ebp - 0x81d]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x49d23e
jmp 0x49d301
mov dword [ebp - 0x1c], 0x800
cmp dword [ebp - 4], 0x800
jge 0x49d2a8
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
xor esi, esi
jmp 0x49d2e8
cmp dword [ebp - 0x10], 0
je 0x49d301
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x81d], 0
lea eax, [ebp - 0x828]
lea edx, [ebp - 0x81d]
mov ecx, 0x801
call fcn.004049e0
mov edx, dword [ebp - 0x828]
mov eax, edi
call fcn.00404a38
add esi, dword [ebp - 0x10]
cmp esi, dword [ebp - 4]
jge 0x49d301
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x81d]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x49d2ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d32e
lea eax, [ebp - 0x828]
mov edx, 2
call fcn.00404794
lea eax, [ebp - 0x18]
call fcn.00404770
ret
Function at 0x49ee64
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, edx
push 0
push eax
lea eax, [esp + 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004049e0
cmp dword [ebx], 0
je 0x49eeab
mov eax, dword [ebx]
call fcn.00404a30
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x49eeab
mov eax, ebx
mov edx, 0x49eebc
call fcn.00404a38
add esp, 0x108
pop ebx
ret
Function at 0x44a810
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
sub esp, 0x414
lea eax, [esp + 0x20c]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [esp + 0x21c]
push ecx
mov edi, eax
call ebx
push str.system.ini
lea edx, [esp + 0x18]
mov esi, eax
push 0x104
push edx
push esi
push str.shell
push str.boot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea edx, [esp + 0x14]
mov edi, eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
lea eax, [esp + 0x14]
push eax
call ebx
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test edi, edi
mov ebp, eax
je 0x44a8b5
mov ecx, dword [0x653d44]
push 0x653a78
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push ebp
push esi
push ebx
call dword [sym.imp.SHELL32.dll_StrCmpNIW]
test eax, eax
je 0x44a8df
push str.install.exe
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x44a8df
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x414
ret

Function at 0x45c051
Capabilities:
Encode data using xor

Disassembly:
sal dword [edx + 0x6fb9ee51], cl
mov cl, 0x22
push ebx
adc edi, ecx
and dword [eax], esp
nop
jno 0x45c01d
mov edx, 0xe1828ff8
mov edx, 0xe1828ff8
shr byte [ebp - 0x30ff455e], 0x8b
pushfd
sub byte [ebp - 0x77ae4338], bl
inc edx
inc esi
pop ebp
popal
mov cl, dh
inc ebx
sbb al, 0x29
adc bl, byte [ecx]
pop ds
sub dword [edx], edx
sbb dword [edi], ebx
push 0x45
sbb dword [edi], ebx
rcl ecx, 0x74
mov eax, dword [0xfc22046]
push ebp
dec edx
sbb al, 0x70
insb byte es:[edi], dx
jo 0x45c08b
adc byte [ebx + 0x136e0742], 0x73
mov dl, 0x66
xor al, 0x89
xchg ebx, eax
inc edx
pop es
outsb dx, byte [esi]
adc esi, dword [ebx - 0x4e]
xor al, 0x89
xchg edi, eax
call [edi + 0x25]
cmp bl, 0x31
mov al, byte [0x3f9a9517]
loopne 0x45bfee
adc ebx, dword [edi + 0x5c]
push ebx
sbb al, 0xb5
mov byte [0xb6583f90], al
dec esp
sbb ebx, dword [esi]
push ds
adc al, 0x4d
jae 0x45c092
add al, 0x3e
jge 0x45c020
stosb byte es:[edi], al
mov ebx, 0xcbd22141
sub al, 0xe2
mov fs, word [eax]
js 0x45bfdf
and byte [edx], 0xbe
jbe 0x45c076
xor dword [edx + 0x10], 0xffffff8f
xchg esi, eax
add esp, dword [ebp - 0x25f3d98d]
inc esp
inc ebp
loop 0x45c0de
sbb byte [esi - 0x625ce5df], 0x8e
jmp 0x45c00a
mov gs, ebx
xchg ecx, eax
xchg edx, eax
mov bh, 0xd2
rol byte [edi + 0x604e500d], cl
push edx
cmp eax, 0x709e0f0e
push ds
and byte [ebx + 0x3c2b3f6d], dl
sbb eax, 0x3c2b3f6d
shr byte [edi - 0x120ca23a], cl
mov dl, 0xc0
bnd jae 0x45c01d
invalid
mov esi, 0xb741ba32
ret
inc ebx
inc esp
ror dword [esi - 0x1f], cl
dec edi
add ah, byte [ecx + 0x4d]
cmp dword [esi], 0xffffffc9
das
into
aad 0x15
ret 0xa34f
Function at 0x587f1a
Capabilities:
Encode data using xor

Disassembly:
pop es
push eax
push esp
inc ebp
pop edx
push ss
lcall 0x505a, 0x77f692e6
in eax, 0xda
adc dword [esi + 0x14cb360a], ebp
scasb al, byte es:[edi]
sal byte [edi - 0x31], cl
jmp 0x587f9c
jecxz 0x588002
cmp byte [edx + edi - 0x1b9b4fb7], al
inc ebp
adc al, 0x99
sbb byte [edx - 0x19], bh
push es
outsd dx, dword [esi]
mov eax, dword [0xe32311c4]
xor al, 0x4f
mov eax, dword [0x638517ae]
sbb bl, byte [ebp + 0x68]
adc ch, al
pop ecx
xlatb
invalid
cmc
js 0x58806d
cmc
invalid
lodsb al, byte [esi]
invalid

Function at 0x5ccb9f
Capabilities:
Encode data using xor

Disassembly:
sal ah, 0xea
cmpsd dword [esi], dword es:[edi]
cmp esi, ebx
mov eax, dword [0x56c36583]
cld
mov edx, 0xf07544bf
xchg ebp, eax
pop ds
mov ah, byte [ecx + 0x52]
push esi
int3
xchg edi, eax
xchg edx, eax
push 0xd7f41ed9
xchg ecx, eax
xor byte [edi], al
jne 0x5ccb4e
ja 0x5ccbb2
retf 0x3ae1
sbb edi, dword [eax + 0x6e9f0934]
inc esi
mov al, 0x56
pop ss
xor eax, 0x684504a2
mov ebp, 0x3abdf91c
xlatb
leave
aad 0xf7
sar dword [edx + eax*4], 0xd8
invalid

Function at 0x64e51c
Capabilities:
Encode data using xor

Disassembly:
and eax, 0x6c33d0d
mov al, 0xcc
mov bl, 0xc6
xor cl, bl
mov esp, 0xfc89a177
test byte [ebx + 0x64], 0x6f
mov bh, 0x5c
pop eax
mov ebp, 0x51862a18
and byte [esi + esi*4], ah
outsd dx, dword [esi]
cmpsb byte [esi], byte es:[edi]
add ah, byte [ebp + 0x72]
shl byte [ebx - 0x2fdd3a9e], 1
enter 0x262e, 0xffffffffffffffb5
mov dh, 0xed
in eax, dx
in eax, dx
pop ebx
mov ecx, 0x73dac396
popfd
outsb dx, byte [esi]
mov ch, 0x51
loop 0x64e4ed
xchg esi, eax
sub bh, byte [ecx + eax*4 - 0xa9e6312]
invalid
Function at 0x100040a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x140a750
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.100039a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.10003a20
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.10003a20
lea ecx, [esi + 0xc]
call fcn.1001351f
lea ecx, [esi + 0x10]
call fcn.1001351f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.100066a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.100066a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.100066a0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.10013594
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.10013594
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45ad68
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 3]
mov dword [esp + 0xa4], edi
jmp 0x45adb6
xchg bh, cl
mov ebp, dword [esp + 0x28]
push esp
xchg bx, dx
inc bx
lea esp, [esp + 0xa4]
pushfd
rdtsc
lea ebp, [edx + edi]
mov cx, word [esp]
jmp 0x45ad98

Function at 0x465797
Capabilities:
Encode data using xor

Disassembly:
jmp 0x44f9fa
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x44fa16
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
rol eax, 7
xor eax, edx
inc ecx
cmp ecx, dword [esp + 8]
jb 0x44fa02
jmp 0x44fa21
ret
lea esp, [esp + 4]
jmp 0x44f9ef
jmp 0x465779

Function at 0x49baf0
Capabilities:
Authenticate hmac

Disassembly:
test ebx, ebx
je 0x49b57d
call fcn.0049babf
add al, 0x9c
xor dl, byte [ebp - 0x5c]
bound esi, qword [edx - 0x17]
jns 0x49bb05
jmp 0x49bb4c
lea esp, [esp + 4]
jmp 0x49bad6
adc al, 0xe8
fadd dword [eax]
add byte [eax], al
aaa
scasd eax, dword es:[edi]
aas
pop edx
test eax, 0x56c05f06
xor eax, eax
push es
std
int3
push esi
movsd dword es:[edi], dword [esi]
sub al, 0x79
add byte [ebx], bl
mov byte [0x26462ba4], al
scasb al, byte es:[edi]
sub al, 0xba
cmp byte [ecx - 0x2f3b9ed9], ch
or ecx, dword [edi - 0x1c]
lea esi, [edi - 0x4a]
mov bl, 0x48
out dx, eax
or al, 0xb3
add al, ah
mov bh, 0xfe
invalid

Function at 0x4a856b
Capabilities:
Encode data using xor

Disassembly:
pop word [esp]
push word [esp + 1]
jmp 0x4a8592

Function at 0x4fefda
Capabilities:
Encode data using xor

Disassembly:
hlt
and al, 0x41
mov cs, esi
or ebx, dword [edx + 0x14]
popal
cmp byte [ebp - 0x73f93304], al
pop esp
and ch, byte [ecx + 0x2434e75d]
shl dword [ebx - 0x34813bf0], cl
push cs
adc dword [ecx + 0x15], 0x2f40bcc9
call 0xe7e9f6b2
daa
fisubr word [esi + 0x5d107c74]
shl byte [eax + 0x4fbb8134], 1
push 0xffffffffffffff9e
in eax, 0x73
pop es
jae 0x4ff01b
dec esi
adc al, 0xbd
js 0x4ff01c
jns 0x4ff012
jle 0x4fefb8
wait
and eax, 0x6bf5272
xchg esp, eax
push ds
mov byte gs:[esi + 0x6b4ec079], bh
cmc
cmp al, 0xca
push esp
wait
pop ds
fisub dword [edi]
xchg ebp, eax
cmp edi, dword gs:[eax + 0x2c]
outsd dx, dword [esi]
rcl dl, cl
xor edi, ebx
shr bh, cl
cmp al, 2
mov eax, ebx
insb byte es:[edi], dx
mov ecx, 0x81b13aed
mov cl, 0x81
mov ebx, 0x23991040
xlatb
jle 0x4ff01d
push cs
mov ecx, 0xc5014d89
adc bl, al
dec ebx
sbb esp, dword [edx + 0x7663c656]
jne 0x4ff0a0
inc ebp
in al, dx
cmp dword [esp + edi*2 + 0x51aa7023], ebp
insb byte es:[edi], dx
fldenv [eax]
scasb al, byte es:[edi]
push ebp
pushfd
sbb eax, 0xca51c60b
dec eax
sahf
rcr byte [edi], cl
in eax, 0x98
push 0xc08c6fab
or eax, 0x990bc4ed
int 0x14
xchg edx, eax
insd dword es:[edi], dx
sub byte [edi - 3], ch
sbb cl, byte [esi - 0x6b]
and edx, dword [edi - 0x62]
std
and bl, ch
sub bl, byte [eax + 0x1c68e168]
jns 0x4ff094
sbb dword [ebx], esp
jmp 0x4ff048
and ebp, ebx
movsd dword es:[edi], dword [esi]
ret 0x20f
Function at 0x401cb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4075d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x40c02c]
test eax, eax
jne 0x401d5b
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
push 0x514
push 0x514
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.00407022
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401d42
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x401d42
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x40c02c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00406e60
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x51c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401dd2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x52c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x51c
ret

Function at 0x401fe0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xa28
push ebx
mov ebx, dword [esp + 0xa34]
push ebp
mov ebp, dword [esp + 0xa34]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4020cb
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.00401d70
add esp, 0xc
test eax, eax
jne 0x4020cb
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.00401d70
add esp, 0xc
test eax, eax
jne 0x4020cb
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4020a5
lea edx, [esp + 0x10]
push 0x40b368
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4020a5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4020a8
mov byte [esi], 0
push 0x40b364
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa28
ret
Function at 0x402370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x402390
pop edi
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x18]
push esi
push edi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4023ad
pop edi
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
ret

Function at 0x402870
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
mov ebx, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.zssetup.log
cmp byte [esp + ecx + 0xf], 0x5c
je 0x4028af
mov edi, 0x40b3a4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40b3a0
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
xor ecx, ecx
test eax, eax
pop edi
pop esi
setne cl
mov dword [ebx + 4], eax
pop ebp
mov eax, ecx
pop ebx
add esp, 0x104
ret
Function at 0x402e30
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x402e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 1
je 0x402e58
mov eax, esi
pop esi
ret

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

Disassembly:
mov eax, 0x1968
call fcn.004071b0
mov edx, dword [esp + 0x196c]
push ebx
test edx, edx
push edi
je 0x403017
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x403017
mov ecx, 0x145
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x514
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jne 0x402fdc
cmp byte [esp + 9], 0x3a
jne 0x403017
mov edi, 0x40b034
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x402fec
lea eax, [esp + ecx + 7]
mov cl, byte [esp + ecx + 7]
cmp cl, 0x5c
jne 0x402fec
mov byte [eax], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x403017
test bl, 0x10
je 0x403017
pop edi
mov eax, 1
pop ebx
add esp, 0x1968
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x1968
ret

Function at 0x4033d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4033f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.HcNetState
push ecx
mov dword [esp + 0x1c], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403436
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret
Function at 0x403450
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x403496
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40348d
push 0
push 0x40b398
push 0x40b514
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ecx
ret
call fcn.004023c0
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push eax
push str.NextSetupPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x4034d5
call fcn.004023c0
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x4034f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x403518
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.UninstallString
push ecx
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403556
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret

Function at 0x403bc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x400
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov eax, dword [esi + 0x7c]
push eax
push 0x40b3c4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esi + 0x7c]
add esp, 0xc
mov edx, dword [esi - 8]
mov al, byte [edx + esi - 1]
cmp al, 0x5c
je 0x403c22
cmp al, 0x2f
je 0x403c22
mov edi, 0x40b034
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.pigie.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 5
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]
push eax
mov ecx, ebx
lea eax, [esp + 0x14]
push str._Reg
and ecx, 3
push eax
push 0
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
cmp eax, 0x20
pop ebx
jg 0x403c78
xor eax, eax
add esp, 0x400
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x400
ret