joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push esi
xor esi, esi
push 0x208
lea ecx, [ebp - 0x21e]
xor eax, eax
push esi
push ecx
mov dword [ebp - 4], esi
mov word [ebp - 0x220], ax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x42e]
xor edx, edx
push esi
push eax
mov word [ebp - 0x430], dx
call sub.msvcrt.dll_memset
lea ecx, [ebp - 0x220]
push ecx
mov eax, 0xdeadbeef
call fcn.00401600
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x430]
push str.SoftwareClassesCLSID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 0xf013f
push esi
push esi
push esi
lea edx, [ebp - 0x430]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40701d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push esi
push 0x40a8e0
push ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 8]
cmp eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40704f
push eax
call esi
mov edx, dword [ebp - 4]
push edx
call esi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407060
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
push esi
push edi
xor ebx, ebx
push 0x208
lea ecx, [ebp - 0x226]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 8], ebx
mov word [ebp - 0x228], ax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x436]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x438], dx
call sub.msvcrt.dll_memset
lea ecx, [ebp - 0x228]
push ecx
mov eax, 0x84889911
call fcn.00401600
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x438]
push str.SoftwareClassesCLSID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push 0xf013f
push ebx
push ebx
push ebx
lea edx, [ebp - 0x438]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x407101
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x10]
push edx
push ebx
push 0x40a8e0
mov esi, 4
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esi
or edi, 0xffffffff
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407138
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x407146
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
mov edi, dword [sym.imp.msvcrt.dll__time64]
jne 0x40715c
cmp dword [ebp - 0x10], esi
jne 0x40715c
mov esi, dword [ebp - 4]
cmp esi, ebx
jne 0x407190
push ebx
call edi
mov edx, dword [ebp - 8]
add esp, 4
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push ebx
push 0x40a8e0
mov esi, eax
push edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x407190
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
add esp, 4
cmp esi, edi
jbe 0x4071a6
push 0xffffffffffffffff
call ebx
mov eax, edi
sub eax, esi
imul eax, eax, 0x3e8
cmp eax, 0x1ee62800
ja 0x4070f8
sub esi, edi
add esi, 0x7e900
imul esi, esi, 0x3e8
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407cc0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [edi + 0x18]
xor eax, eax
push esi
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov byte [ebp - 0x10], al
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
push ecx
mov eax, 8
lea ecx, [ebp - 8]
mov byte [ebp - 8], 0
call fcn.004044f0
add esp, 4
test eax, eax
jne 0x407d18
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 8]
cmp al, 1
je 0x407d2d
cmp al, 2
je 0x407d2d
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 1], 0
je 0x407d60
mov esi, dword [sym.imp.WS2_32.dll_recv]
lea esp, [esp]
mov eax, dword [edi + 0x18]
push 0
push 1
lea edx, [ebp - 1]
push edx
push eax
call esi
test eax, eax
jle 0x407d5a
cmp byte [ebp - 1], 0
jne 0x407d40
jmp 0x407d60
cmp byte [ebp - 1], 0
jne 0x407d23
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea esi, [edi + 0x1c]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x407df1
mov dx, word [ebp - 7]
mov word [ebp - 0x1e], dx
push 0x10
mov ecx, 2
lea edx, [ebp - 0x20]
mov word [ebp - 0x20], cx
mov ecx, dword [ebp - 5]
push edx
push eax
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x407da6
xor esi, esi
mov byte [ebp - 0xf], 0x5a
jmp 0x407dcf
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, eax
cmp esi, 0xffffffff
je 0x407dc6
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, 0x4d0
mov byte [ebp - 0xf], 0x5b
mov ecx, dword [edi + 0x18]
push 0
push 8
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x407dea
mov esi, 0x4d4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x407dcb
mov byte [ebp - 0xf], 0x5a
jmp 0x407dcf
Function at 0x408170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1214
call fcn.00409290
push ebx
xor ebx, ebx
push 0x7ff
lea eax, [ebp - 0xa13]
push ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xa14], bl
call sub.msvcrt.dll_memset
push 0x7ff
lea ecx, [ebp - 0x1213]
push ebx
push ecx
mov byte [ebp - 0x1214], bl
call sub.msvcrt.dll_memset
push 0x203
lea edx, [ebp - 0x213]
push ebx
push edx
mov byte [ebp - 0x214], bl
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
push 0x2e
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.msvcrt.dll_strrchr]
add esp, 0x2c
cmp eax, ebx
jne 0x4081ee
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4081e7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0xa14]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x40a768
push edx
mov dword [ebp - 4], 0x800
call esi
test eax, eax
jne 0x40828b
lea eax, [ebp - 0xa14]
push eax
lea ecx, [ebp - 0x1214]
push str._sDefaultIcon
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1214]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40828b
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x40a768
push ecx
mov dword [ebp - 4], 0x204
call esi
test eax, eax
je 0x408293
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x214]
push 0x424080
push edx
call dword [sym.imp.msvcrt.dll_strstr]
add esp, 8
test eax, eax
jne 0x4082e2
lea eax, [ebp - 0x214]
call fcn.00408120
lea eax, [ebp - 0x214]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4082c3
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [eax], ebx
pop esi
mov dword [edx], ebx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x214]
push 0x424080
push edx
mov eax, 0x40a768
call fcn.00403110
mov esi, eax
call fcn.00408120
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_atoi]
mov ecx, dword [ebp + 0xc]
mov edx, edi
add esp, 0x10
mov dword [ecx], eax
mov eax, esi
sub edx, esi
jmp 0x408320
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x408320
mov edx, dword [ebp + 0x10]
push esi
mov dword [edx], 1
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4088f0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
xor eax, eax
push 0x20a
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x22c]
push eax
call sub.msvcrt.dll_memset
push esi
lea ecx, [ebp - 0x22c]
push 0x42411c
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x22c]
mov eax, 0x614
push ecx
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], edx
mov word [ebp - 0x10], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x408969
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40901a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40a398
call fcn.00409228
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x40906d
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x40906d
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x409085
cmp ecx, 0x20b
je 0x409072
mov dword [ebp - 0x1c], ebx
jmp 0x409099
cmp dword [eax + 0x84], 0xe
jbe 0x40906d
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x409093
cmp dword [eax + 0x74], 0xe
jbe 0x40906d
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x42826c], edi
mov dword [0x428270], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4276a4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4276a0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x428274], eax
call fcn.00409222
cmp dword [section..data], ebx
jne 0x4090f6
push fcn.00409222
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00409210
push 0x40a354
push 0x40a350
call sub.msvcrt.dll__initterm
mov eax, dword [0x42769c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x427698]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x40a34c
push 0x40a348
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x409181
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x409161
cmp cl, 0x22
jne 0x409152
cmp byte [eax], 0x22
jne 0x40916a
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x409175
cmp cl, 0x20
jbe 0x409166
test byte [ebp - 0x54], 1
je 0x40918c
movzx ecx, word [ebp - 0x50]
jmp 0x40918f
cmp byte [eax], 0x20
jbe 0x40916a
inc eax
mov dword [ebp - 0x20], eax
jmp 0x409181
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00407540
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4091ad
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4091e9
mov eax, esi
jmp 0x4091fd
call fcn.00409263
ret
Function at 0x100087c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10175120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x88], 0
lea ecx, [ebp - 0x88]
lea eax, [eax*2 + 0x10134ab8]
push eax
call fcn.10006a90
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.100d9d50
add esp, 0xc
lea eax, [ebp - 0x84]
push dword [esi]
push 0x40
push eax
push 0
push dword [ebp - 0x88]
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x10
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.100debc8
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1000885f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10031d6d
mov esp, ebp
pop ebp
ret 4

Function at 0x10009080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100090d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100090d9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100090ca
cmp esi, edx
jae 0x100090d9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100090b8
cmp esi, edx
jae 0x100090d9
cmp word [esi], 0
je 0x100090d9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1000b2d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10127828
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10175120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100319cc
mov edi, eax
add esp, 4
test edi, edi
je 0x1000b373
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1002d448
add esp, 4
mov dword [edi + 4], eax
jmp 0x1000b375
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.100065c0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x1000b3d9
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1000b3d9
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x1000b3fa
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.1000a550
cmp byte [ebp + 0xc], 0
je 0x1000b409
push esi
call fcn.1002db8b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c5c0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10175120]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 0
je 0x1000c5f2
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031d6d
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100d9d50
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000c645
lea eax, [ebp - 0x20c]
push eax
call ebx
sub esi, 1
jne 0x1000c637
push str.netul.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000c702
mov dword [edi + 0x1c], 1
cmp dword [edi], 0
jne 0x1000c6d8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x1000c702
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x1000c6d8
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x1000c702
cmp dword [edi + 4], 0
je 0x1000c702
cmp dword [edi + 0xc], 0
je 0x1000c702
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031d6d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.10031d6d
mov esp, ebp
pop ebp
ret 4
Function at 0x10010bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10175120]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10010c7b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x10010c3d
cmp eax, 2
jne 0x10010c59
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x10010c75
test ecx, ecx
je 0x10010c70
test cl, 1
jne 0x10010c59
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x10010c75
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031d6d
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10031d6d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100146f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10175120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.100d9d50
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10014766
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10014782
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10005f30
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10031d6d
mov esp, ebp
pop ebp
ret
Function at 0x10015940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10175120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x100159e3
cmp byte [esi + 0x3d], 0
je 0x100159e3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10015999
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x100159ab
sub eax, 1
je 0x100159af
sub eax, 2
je 0x100159e3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031d6d
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100159cc
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100e2ce8
add esp, 0x10
cmp edi, eax
jne 0x10015999
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031d6d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10031d6d
mov esp, ebp
pop ebp
ret

Function at 0x10015b60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10127900
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10175120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100319cc
mov edi, eax
add esp, 4
test edi, edi
je 0x10015c12
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1002d448
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret