joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428f74
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x428f89
lea esi, [edi + 0x78]
jmp 0x428f8b
xor esi, esi
call fcn.0041e74c
cmp edi, ebx
je 0x428f9c
lea eax, [edi + 0x84]
jmp 0x428f9e
xor eax, eax
push eax
mov eax, dword [edi + 0x90]
mov eax, dword [eax + 8]
call fcn.0042415a
mov eax, dword [edi + 0x90]
mov eax, dword [eax + 8]
call fcn.00424088
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004040d4
mov esi, edi
call fcn.00428ace
call fcn.00428a85
mov eax, dword [edi + 0x90]
test byte [eax + 0xc], 1
je 0x429002
push dword [edi + 0x250]
lea eax, [edi + 0x88]
call fcn.00423900
mov eax, dword [edi + 0x90]
mov dword [eax + 0xc], ebx
call fcn.0042836f
mov dword [ebp - 4], ebx
call fcn.0041d8b6
test al, al
jne 0x42901a
mov dword [ebp - 4], 0x20000
call fcn.004281c6
mov dword [ebp - 8], eax
lea esi, [edi + 0x1a8]
cmp dword [0x443128], ebx
jne 0x42903a
mov dword [0x443128], 0x43d084
push dword [ebp - 8]
lea eax, [esi + 0x20]
push eax
push 0x4430f8
call fcn.00406d49
add esp, 0xc
movzx eax, ax
push eax
push ebx
push dword [ebp - 4]
mov ebx, esi
push 0x5600880d
push 0
push 0x4430e0
push dword [ebp - 8]
call fcn.00406a8f
push 0x24
xor ebx, ebx
push ebx
push 0x1036
push dword [edi + 0x1ac]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.0042898e
mov dword [ebp - 4], ebx
call fcn.0041d8b6
test al, al
jne 0x42909b
mov dword [ebp - 4], 0x20000
mov esi, edi
call fcn.004281c6
mov dword [ebp - 8], eax
lea esi, [edi + 0x1d0]
cmp dword [0x4431b8], ebx
jne 0x4290bd
mov dword [0x4431b8], str.RichEdit20W
push dword [ebp - 8]
lea eax, [esi + 0x20]
push eax
push 0x443188
call fcn.00406d49
add esp, 0xc
movzx eax, ax
push eax
xor eax, eax
push eax
push dword [ebp - 4]
push 0x56200804
push ebx
push 0x4430e0
push dword [ebp - 8]
mov ebx, esi
call fcn.00406a8f
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push ebx
push 3
push 0xcb
push dword [edi + 0x1d4]
call esi
mov eax, dword [edi + 0x1d4]
push ebx
push ebx
push 0x43b
push eax
call esi
or eax, 0x4000000
push eax
push ebx
push 0x445
push dword [edi + 0x1d4]
call esi
push ebx
push ebx
push 0x45b
push dword [edi + 0x1d4]
call esi
push dword [edi + 0x1ac]
mov ebx, dword [edi + 0x1d4]
call fcn.0042817c
mov eax, dword [edi + 0x94]
call fcn.0041c1bc
test al, al
je 0x429195
lea esi, [edi + 0xcc]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x42917b
push 5
push dword [esi + 8]
call ebx
push 0
push dword [esi + 4]
call ebx
xor eax, eax
inc eax
cmp dword [esi + 0x28], eax
je 0x42918d
mov dword [esi + 0x28], eax
mov dword [esi + 0x50], eax
call fcn.00405a04
mov ecx, dword [edi + 0x90]
lea eax, [edi + 0x80]
mov dword [ecx], eax
mov eax, edi
call fcn.00428e6c
and dword [edi + 0x8c], 0
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x429721
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x429750
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x429768
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x429766
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42976b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4297f2
push esi
call fcn.0040f865
mov edi, eax
pop ecx
test edi, edi
jne 0x4297aa
push 8
pop esi
push edi
call fcn.0040f85a
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4297f2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x43cd18
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4297fb
cmp dword [ebp - 0x10], 0
je 0x4297fb
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x4297e4
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4297fb
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x4297fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
jmp 0x42979d
Function at 0x42990b
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push esi
push edi
test eax, eax
je 0x429ab9
mov edi, 0xc800
cmp eax, edi
jg 0x429ab9
mov eax, dword [ebx]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push 0
push eax
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
jne 0x429969
mov eax, dword [ebx]
push 8
push 1
xor ebx, ebx
push ebx
push eax
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
jne 0x42996b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x429abc
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4299a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 4], ebx
je 0x42999a
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x429abc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ebx
push ecx
xor ecx, ecx
call fcn.00404b0e
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4299d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 8], ebx
je 0x42998b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x42998b
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 8]
push 0x6801
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4299be
cmp dword [ebp - 8], ebx
je 0x4299fe
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
call fcn.0040f865
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
cmp eax, edi
pop ecx
jge 0x429a14
mov edi, eax
push edi
xor ecx, ecx
mov eax, esi
call fcn.00404b0e
push eax
push dword [ebp - 0xc]
call fcn.0040fe50
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push ebx
push 1
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x429a7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 0x10], ebx
je 0x429a5e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 4], ebx
je 0x429a6d
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0xc]
call fcn.0040f85a
pop ecx
jmp 0x42999a
mov esi, dword [ebp + 0x10]
call fcn.00404645
xor edi, edi
cmp dword [ebp - 0x14], ebx
jbe 0x429a9d
mov eax, dword [ebp - 0xc]
lea ebx, [edi + eax]
call fcn.00404aa8
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x429a8a
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x429aac
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0xc]
call fcn.0040f85a
pop ecx
xor eax, eax
jmp 0x429abc
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429c85
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0x38
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.0040f7e0
mov esi, dword [edi]
push edi
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x400
call fcn.004339c8
add esp, 0x10
test al, al
je 0x429cbe
add esi, 8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], 0x43c254
cmp dword [eax - 0xc], ebx
je 0x429cdc
mov dword [ebp - 0x28], eax
mov eax, edi
lea edi, [ebp + 8]
call fcn.00433a01
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov esi, edi
call fcn.004339c8
pop ecx
test al, al
je 0x429cfc
lea esi, [edi + 8]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x429d1c
lea eax, [edi - 0x10]
call fcn.0040169e
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
mov bl, 1
jmp 0x429d0d

Function at 0x429efb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
push 0
push 0
movzx ebx, ax
mov edi, 0x1004
push edi
push ebx
call esi
mov dword [ebp - 8], eax
test eax, eax
jne 0x429f27
xor al, al
pop edi
pop esi
pop ebx
leave
ret
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f865
pop ecx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push eax
push edi
push ebx
call esi
test eax, eax
jne 0x429f5a
xor bl, bl
push dword [ebp - 4]
call fcn.0040f85a
pop ecx
mov al, bl
jmp 0x429f22
push dword [ebp - 4]
lea edi, [eax - 1]
mov ecx, 0x443838
lea esi, [ebp - 8]
call fcn.004011de
mov edi, dword [ebp + 8]
mov eax, esi
call fcn.004018c0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040169e
mov bl, 1
jmp 0x429f4d
Function at 0x42a048
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], 0xc8
call fcn.0040f85a
pop ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], esi
call fcn.00401000
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [ebp + 8]
call esi
mov edi, 0xea
jmp 0x42a0c9
add dword [ebp - 4], 2
push ebx
call fcn.0040f85a
and dword [ebp - 8], 0
pop ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00401000
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x42a095
test eax, eax
je 0x42a0e4
mov byte [ebp + 0xf], 0
push ebx
call fcn.0040f85a
mov al, byte [ebp + 0xf]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x42a112
cmp eax, 2
je 0x42a112
cmp eax, 7
je 0x42a112
cmp eax, 4
jne 0x42a0d1
push dword [ebx]
mov eax, dword [ebp + 0x10]
push 0x43c748
call fcn.004022b1
pop ecx
pop ecx
mov byte [ebp + 0xf], 1
jmp 0x42a0d5
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ebx + ecx*2], ax
mov edi, dword [ebp - 4]
jmp 0x42a127
dec edi
mov dword [ebp - 4], edi
cmp word [ebx + edi*2], ax
je 0x42a123
inc edi
push ebx
mov ecx, 0x443838
lea esi, [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.004011de
mov edi, dword [ebp + 0x10]
mov eax, esi
call fcn.004018c0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.0040169e
jmp 0x42a10c
Function at 0x42bd42
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
call fcn.004296b1
pop ecx
test eax, eax
jne 0x42be29
mov esi, dword [edi + 0x10]
add edi, 0x14
mov ecx, edi
add esi, 0xa8
call fcn.0043395c
mov ebx, str.LastModified
test al, al
je 0x42bdbd
push ebx
lea eax, [ebp - 0x10]
call fcn.00401895
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
mov ecx, esi
mov dword [ebp - 0xc], 1
call dword [eax + 4]
test al, al
je 0x42bdbd
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov byte [ebp - 5], 0
test eax, eax
jle 0x42bdc1
mov byte [ebp - 5], 1
test byte [ebp - 0xc], 1
je 0x42bdd2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040169e
cmp byte [ebp - 5], 0
je 0x42be29
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.00433c01
mov edi, dword [edi]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
pop ecx
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x42be04
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42be2b
push ebx
lea eax, [ebp + 8]
call fcn.00401895
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0
mov ecx, esi
call dword [eax + 8]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040169e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42c59f
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.0040f7e0
mov eax, dword [ebx + 0x10]
add esp, 0xc
lea ecx, [ebp - 0x40]
push ecx
push edi
mov dword [ebp - 0x10], 0x64
mov dword [ebp - 0x40], esi
mov eax, dword [eax + 4]
push edi
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x42c5e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
leave
ret
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ecx, 0x443838
lea esi, [ebp - 4]
call fcn.004011de
cmp dword [ebp - 0x34], 5
jne 0x42c619
mov eax, esi
push eax
mov eax, ebx
call fcn.0042bd42
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040169e
mov eax, esi
jmp 0x42c5e1
mov eax, ebx
call fcn.0042c404
jmp 0x42c608

Function at 0x42ce6c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0040f7e0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x42cea9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42cecc
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 3
je 0x42ceca
cmp eax, 4
je 0x42ceca
cmp eax, 1
je 0x42ceca
cmp eax, 2
je 0x42ceca
push 2
pop eax
jmp 0x42cecc
xor eax, eax
leave
ret 8

Function at 0x42d0cc
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push dword [esi + 0x58]
and dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push dword [ebp + 0x20]
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.WININET.dll_InternetConnectW]
test eax, eax
jne 0x42d10e
call fcn.0042cf90
test eax, eax
je 0x42d111
jmp 0x42d11e
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
jne 0x42d11c
mov eax, dword [esi + 0x28]
jmp 0x42d11e
xor eax, eax
pop esi
pop ebp
ret 0x1c
Function at 0x42d123
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x58]
lea ebx, [edi + 0x34]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push dword [esp + 0x1c]
mov byte [edi + 0x3d], 0
push dword [esp + 0x1c]
mov dword [edi + 0x30], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x42d1b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42d1b9
jmp 0x42d193
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42d198
lea esi, [edi + 4]
push ebx
call fcn.0042cc29
mov eax, esi
call fcn.0042cc5b
test al, al
jne 0x42d1a3
push 0xa
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x42d167
cmp dword [edi + 0x2c], 0
jne 0x42d1aa
mov eax, dword [edi + 0x28]
jmp 0x42d1b9
mov eax, 0xe0000008
jmp 0x42d1b9
mov edi, dword [edi + 0x28]
test edi, edi
jle 0x42d1b7
mov eax, dword [esp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
ret 8

Function at 0x42d1bf
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x58]
lea ebx, [edi + 0x34]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
mov byte [edi + 0x3d], 0
push dword [ebp + 0x10]
mov dword [edi + 0x30], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x42d255
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42d257
jmp 0x42d232
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x42d237
lea esi, [edi + 4]
push ebx
call fcn.0042cc29
mov eax, esi
call fcn.0042cc5b
test al, al
jne 0x42d242
push 0xa
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x42d206
cmp dword [edi + 0x2c], 0
jne 0x42d249
mov eax, dword [edi + 0x28]
jmp 0x42d257
mov eax, 0xe0000008
jmp 0x42d257
mov edi, dword [edi + 0x28]
test edi, edi
jle 0x42d255
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x42d25e
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0x43c698
test eax, eax
je 0x42d2b0
push 0xea60
push eax
mov byte [esi + 9], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x42d2ab
cmp dword [ebp - 4], 0x103
jne 0x42d2ab
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x14]
call edi
mov eax, dword [esi + 0x68]
sub eax, 0x10
call fcn.0040169e
mov eax, dword [esi + 0x60]
test eax, eax
je 0x42d2c9
push eax
call edi
and dword [esi + 0x60], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x42d2d7
push eax
call edi
and dword [esi + 0x58], 0
mov eax, dword [esi + 0x40]
push 0x10
pop edi
sub eax, edi
call fcn.0040169e
mov eax, dword [esi + 0x38]
sub eax, edi
call fcn.0040169e
mov eax, dword [esi + 0x20]
sub eax, edi
call fcn.0040169e
mov eax, dword [esi + 0x1c]
sub eax, edi
call fcn.0040169e
pop edi
leave
ret

Function at 0x42d976
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
xor eax, eax
push eax
push eax
push 1
push eax
call ebx
mov esi, dword [ebp + 8]
add esi, 0x58
mov edi, eax
call fcn.00402221
xor eax, eax
push eax
push eax
push 1
push eax
call ebx
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0x60]
mov edi, eax
call fcn.00402221
lea edi, [ebp + 8]
lea eax, [ebp - 4]
mov ecx, ebx
call fcn.0042d40a
push 0x10000000
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push str.AdvancedInstaller
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
test eax, eax
jne 0x42d9e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42d9f6
push 0x42d950
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
xor eax, eax
leave
ret 8
Function at 0x42e3a5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
mov esi, dword [edi + 4]
mov ebx, ecx
call fcn.0042cf5b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [ebx + 0x3c], 0
mov esi, eax
je 0x42e3dc
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, ebx
mov byte [ebx + 8], 1
call fcn.0042e322
mov byte [ebx + 8], 0
test esi, esi
jbe 0x42e403
cmp dword [ebp - 4], esi
je 0x42e403
mov eax, 0x2ee2
test eax, eax
jne 0x42e41a
mov ebx, dword [ebx + 0xc]
cmp ebx, dword [edi]
je 0x42e418
mov esi, dword [edi + 4]
call fcn.0042cf5b
mov dword [edi], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42ea67
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x20]
call fcn.004018c0
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x1c]
call fcn.004018c0
mov eax, dword [esi + 0x14]
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x42ea9b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x42ea62
push ebx
push ebx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x42eac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42ead0
cmp byte [ebp + 0x10], bl
je 0x42eace
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
jmp 0x42ead0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x42efd6
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x42f002
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x28]
push ebx
push ebx
push ebx
mov edi, eax
mov eax, dword [edi]
push ebx
push ebx
mov ecx, edi
call dword [eax + 0xc]
push eax
mov eax, dword [edi]
push 1
push 3
push 0x10
push 0xf01ff
mov ecx, edi
call dword [eax + 4]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
mov eax, dword [esi]
cmp edi, eax
je 0x42f04e
cmp eax, ebx
je 0x42f04c
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esi], ebx
mov dword [esi], edi
cmp dword [esi], ebx
jne 0x42f067
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x42effd
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov esi, dword [esi + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
jmp 0x42f05a
Function at 0x42f27c
Capabilities:
Create http request

Disassembly:
push ebx
push esi
push 8
mov dword [edi], 0x43c1e8
call fcn.0041021f
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x42f29d
mov dword [eax], ebx
mov dword [eax + 4], 1
jmp 0x42f29f
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], edi
mov dword [edi], 0x43c1d8
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov eax, dword [edi + 4]
lea esi, [edi + 0x1c]
call fcn.0042fa43
mov ecx, dword [edi + 4]
lea eax, [edi + 0x34]
call fcn.0043303b
mov eax, dword [esp + 0xc]
push ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
push ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], ebx
push ebx
mov byte [edi + 0x60], bl
mov dword [edi + 0x64], 0xfde9
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov eax, dword [edi + 0xc]
cmp esi, eax
je 0x42f314
cmp eax, ebx
je 0x42f311
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0xc], ebx
mov dword [edi + 0xc], esi
pop esi
mov eax, edi
pop ebx
ret 4