joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41de50
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x30
mov eax, dword [0x4db064]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
lea eax, [esp + 4]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
xorps xmm0, xmm0
push eax
push 0x24
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
push 0
push ebx
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x34], xmm0
call ebp
test eax, eax
jne 0x41deb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00477280
add esp, 0x30
ret 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], esi
je 0x41df09
nop dword [eax]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push 0x24
lea eax, [esp + 0x20]
push eax
push 0
push ebx
call ebp
test eax, eax
je 0x41df3a
cmp dword [esp + 0x1c], esi
je 0x41df09
call edi
sub eax, dword [esp + 0x14]
cmp eax, 0x7530
ja 0x41df20
cmp dword [esp + 0x1c], esi
jne 0x41ded0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00477280
add esp, 0x30
ret 8
pop edi
pop esi
pop ebp
mov eax, 0x102
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00477280
add esp, 0x30
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00477280
add esp, 0x30
ret 8
Function at 0x41ee60
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x49c948
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4db064]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x41ef69
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
lea edi, [esi + 4]
mov dword [ebp - 0x10], edi
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x41ef69
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
lea eax, [ebp]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41ef3e
push str.WindowsPowerShell_v1.0powershell.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x41ef3e
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41ef3e
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ef23
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403320
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00477280
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80004005
call fcn.004022e0
int3
Function at 0x41efa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c9bd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00404130
test eax, eax
je 0x41f196
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.00404130
test eax, eax
je 0x41f196
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push 0x4bd654
call fcn.004031b0
test al, al
jne 0x41f029
push 3
push 0x4bd654
lea ecx, [ebp - 0x18]
call fcn.00403320
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push 0x4bd654
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041f5a0
test al, al
sete byte [ebp - 0xd]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f066
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x41f078
push 0x18
push str.Unable_to_get_temp_file
jmp 0x41f11c
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], 0x4ba518
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
jne 0x41f0b6
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4ba518
push eax
jmp 0x41f108
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0xfeff
push eax
push 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f0f8
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x18]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41f137
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4ba518
test esi, esi
je 0x41f115
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
push 0x1b
push str.Unable_to_save_script_file
lea ecx, [ebx + 4]
call fcn.00403320
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + 4]
push dword [eax - 0xc]
push eax
call fcn.004021c0
xor bl, bl
jmp 0x41f161
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x4ba518
test esi, esi
je 0x41f154
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0041f1b0
mov bl, al
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41f180
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004022e0
int3
Function at 0x41f5a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ca85
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4db064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0
mov edx, dword [edx]
push eax
call fcn.00405e40
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041f670
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x41f604
mov edx, dword [edx]
test edx, edx
jne 0x41f60c
xor ecx, ecx
jmp 0x41f620
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f611
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00403320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403b70
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403b70
mov al, 1
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.00477280
mov esp, ebp
pop ebp
ret 0xc
Function at 0x427190
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d8e5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x18]
lea edi, [esi + 0x18]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
test al, al
jne 0x4271d6
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
xchg byte [edi], al
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.00404130
test eax, eax
je 0x4272f8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
push dword [esi + 0x24]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x10]
push str.Logger::SetLogFile___s___while_OLD_path_is:_s
push eax
call fcn.00407900
add esp, 0x10
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004076f0
mov byte [ebp - 4], 3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x427255
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x34], 0
je 0x42729f
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4272f8
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
nop dword [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x427296
test dx, dx
je 0x427292
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x427296
add ecx, 4
add eax, 4
test dx, dx
jne 0x427270
xor eax, eax
jmp 0x42729b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4272aa
push dword [ebp + 8]
lea ecx, [esi + 0x24]
call fcn.00408560
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4272c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x18]
test al, al
jne 0x4272e4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
lea ecx, [ebp - 0x18]
xchg byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004022e0
int3
Function at 0x4284c0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dcbb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4db064]
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 edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, eax
cmp eax, 0x208
jae 0x428675
xor ecx, ecx
lea esi, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x428538
nop dword [eax + eax]
add esi, 2
cmp word [esi], cx
jne 0x428530
mov ecx, str.ADVINST_LOGS
mov eax, 0x41
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x428544
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42858a
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.00477280
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x28]
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp dword [ecx - 0xc], 0
jne 0x42860e
lea ecx, [ebp - 0x21c]
call fcn.00428680
mov dword [ebp - 4], 0
cmp word [esi], 0
mov ecx, dword [eax]
je 0x4285c9
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x4285c0
movzx eax, word [ecx]
test ax, ax
je 0x4285e2
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4285d3
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428644
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x428644
cmp word [esi], 0
je 0x42861d
add esi, 2
cmp word [esi], 0
jne 0x428614
movzx eax, word [ecx]
test ax, ax
je 0x42863f
sub ecx, esi
nop word [eax + eax]
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x428630
xor eax, eax
mov word [esi], ax
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x428650
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00403320
mov al, 1
jmp 0x42856c
call fcn.00477879
int3
Function at 0x42c290
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e8fd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x18], 0x4ba518
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x42c2fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x42c46c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42c317
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x42c46c
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.00408360
mov esi, dword [ebp - 0x10]
test al, al
jne 0x42c33f
mov edi, 8
jmp 0x42c458
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42c366
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x42c458
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.00403270
mov eax, dword [ebp + 8]
test eax, eax
je 0x42c456
mov byte [eax + esi], 0
mov eax, dword [ebp + 0xc]
push str.utf_8
push dword [eax]
call fcn.004806e3
add esp, 8
test eax, eax
jne 0x42c39f
push 0xfde9
jmp 0x42c44a
mov eax, dword [ebp + 0xc]
push str.utf_16
push dword [eax]
call fcn.004806e3
add esp, 8
test eax, eax
jne 0x42c3dc
mov edi, dword [ebp + 8]
shr edi, 1
call fcn.00404130
push eax
push edi
push esi
lea ecx, [ebp + 0xc]
call fcn.00407880
mov byte [ebp - 4], 3
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408560
jmp 0x42c427
mov eax, dword [ebp + 0xc]
push str.ISO_8859_1
push dword [eax]
call fcn.004806e3
add esp, 8
test eax, eax
jne 0x42c3f9
push 0x6faf
jmp 0x42c44a
mov eax, dword [ebp + 0xc]
push str.US_ASCII
push dword [eax]
call fcn.004806e3
add esp, 8
test eax, eax
jne 0x42c448
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
push esi
call fcn.0042ecd0
mov byte [ebp - 4], 5
mov ecx, edi
push eax
call fcn.00408560
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42c456
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42c456
push 0
mov edx, edi
mov ecx, esi
call fcn.0040c540
add esp, 4
xor edi, edi
mov byte [ebp - 4], 0
push esi
call fcn.00477749
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x4ba518
test ebx, ebx
je 0x42c48c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42c990
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ea1d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
cmp byte [ebx + 0x40], 0
mov dword [ebp + 0xc], eax
cmovne ecx, eax
mov byte [ebx + 0x10], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], eax
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x42caa4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.0042c780
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42ca47
cmp dword [ebp + 0x10], eax
je 0x42ca47
mov esi, 0x2ee2
jmp 0x42ca5f
test esi, esi
jne 0x42ca5f
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x42ca5d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42ca8e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004022e0
int3
Function at 0x42e080
Capabilities:
Connect to http server

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x68]
mov dword [esi + 0x34], 0
mov byte [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x42e110
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42e106
cmp byte [esi + 0x38], 0
jne 0x42e11c
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [eax]
lea ecx, [esi + 0xc]
call fcn.0042f1a0
test al, al
jne 0x42e0fb
push 0xa
push dword [esi + 0x68]
call edi
cmp byte [esi + 0x38], 0
je 0x42e0e0
jmp 0x42e11c
pop edi
pop esi
mov eax, 0xe0000008
pop ebx
ret 0x1c
test eax, eax
je 0x42e11c
pop edi
pop esi
pop ebx
ret 0x1c
push dword [esi + 0x68]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 4], 0
jne 0x42e12b
mov eax, dword [esi + 0x2c]
pop edi
pop esi
pop ebx
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x1c
Function at 0x42f320
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 0x18], 0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
mov edi, ecx
jne 0x42f44b
mov ebp, dword [esp + 0x18]
mov ecx, 1
mov esi, dword [esp + 0x1c]
cmp ebp, 0x110
jne 0x42f36f
sub esp, 8
mov dword [edi + 0x40], ecx
mov ecx, edi
call fcn.0042f840
mov dword [ebx], eax
cmp dword [edi + 0x40], 0
je 0x42f454
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x18
cmp ebp, 0x111
jne 0x42f454
movzx eax, si
cmp cx, ax
jne 0x42f3df
lea eax, [edi + 0x44]
push eax
lea ecx, [edi + 0x5c]
call fcn.0041c850
lea eax, [edi + 0x48]
push eax
lea ecx, [edi + 0x60]
call fcn.0041c850
push 0x428
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
push 1
push dword [edi + 4]
sete cl
mov byte [edi + 0x4c], cl
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
pop ebp
mov dword [ebx], 0
mov eax, 1
pop ebx
ret 0x18
mov ecx, 2
cmp cx, ax
jne 0x42f405
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
pop ebp
mov dword [ebx], 0
mov eax, 1
pop ebx
ret 0x18
mov eax, esi
mov ecx, 0x300
shr eax, 0x10
cmp cx, ax
jne 0x42f454
mov eax, dword [esp + 0x20]
lea ecx, [edi + 0x5c]
cmp eax, dword [ecx]
jne 0x42f445
lea esi, [edi + 0x44]
push esi
call fcn.0041c850
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi]
xor edx, edx
cmp dword [ecx - 0xc], edx
setne dl
push edx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebx], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18
lea edx, [edi + 0x20]
cmp ebp, 5
jne 0x42f4c3
xor eax, eax
test edx, edx
cmove edi, eax
cmp byte [edx + 0x1c], al
je 0x42f495
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x42f486
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42f49a
test esi, esi
jne 0x42f495
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42f49a
cmp esi, 1
je 0x42f4e4
mov ecx, dword [esp + 0x20]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x20]
push eax
call fcn.00430020
pop edi
pop esi
pop ebp
mov dword [ebx], 0
mov eax, 1
pop ebx
ret 0x18
cmp ebp, 0x24
jne 0x42f44b
cmp dword [edx + 0x14], 0xffffffff
je 0x42f4e4
cmp dword [edx + 0x18], 0xffffffff
je 0x42f4e4
mov eax, dword [esp + 0x20]
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
pop edi
pop esi
pop ebp
mov dword [ebx], 0
mov eax, 1
pop ebx
ret 0x18
Function at 0x438590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0cb5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00404130
test eax, eax
je 0x4386f5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.00439490
or esi, 0xffffffff
test al, al
jne 0x4385f7
xor bl, bl
jmp 0x4386c0
mov edi, dword [edi + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp + 8], eax
call fcn.00404130
test eax, eax
je 0x4386f5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], edi
call fcn.00408560
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x438661
xor bl, bl
jmp 0x438686
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push dword [ebp + 0x10]
lea edx, [ebp + 0xc]
mov dword [ebp + 8], 4
push edx
push 0
push dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x438698
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4386c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4386df
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004022e0
int3