joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101465a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x45c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x24c
lea eax, [ebp - 0x458]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
xor ebx, ebx
test esi, esi
jne 0x10146e3
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10147b0
test byte [eax + 0x1c], 1
je 0x10147b0
push 0x10035d0
push 0x5e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x10147b0
push esi
push 0x10038fc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01006a35
add esp, 0x10
test eax, eax
jge 0x1014732
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x10147b0
test byte [ecx + 0x1c], 1
je 0x10147b0
push eax
push 0x10035d0
push 0x5f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
jmp 0x10147b0
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101477a
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10147b0
test byte [eax + 0x1c], 4
je 0x10147b0
lea ecx, [ebp - 0x20c]
push ecx
push 0x10035d0
push 0x60
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
jmp 0x10147b0
cmp dword [ebp - 0x45c], 0x10
je 0x1014792
cmp dword [ebp - 0x440], 0
jne 0x10147a6
add ebx, dword [ebp - 0x43c]
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101477a
jmp 0x10147a9
or ebx, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01011f27
leave
ret 4
Function at 0x10147c7
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x458]
push ebx
push eax
mov dword [ebp - 0x468], edi
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], ebx
call sub.msvcrt.dll_memset
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
cmp esi, ebx
jne 0x1014868
mov dword [ebp - 0x460], 0x57
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1014a2c
test byte [eax + 0x1c], 1
je 0x1014a2c
push 0x10035d0
push 0x62
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x1014a2c
cmp edi, ebx
jne 0x1014899
mov dword [ebp - 0x460], 0x57
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1014a2c
test byte [eax + 0x1c], 1
je 0x1014a2c
push 0x10035d0
push 0x63
jmp 0x1014858
push esi
push edi
mov ebx, 0x10025e8
push ebx
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.01006a35
add esp, 0x14
test eax, eax
jge 0x10148fc
mov ecx, eax
and ecx, 0x1000ffff
mov dword [ebp - 0x460], ecx
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1014a2c
test byte [ecx + 0x1c], 1
je 0x1014a2c
push eax
push 0x10035d0
push 0x64
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
jmp 0x1014a2c
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp eax, 0xffffffff
jne 0x1014953
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1014a2c
test byte [eax + 0x1c], 4
je 0x1014a2c
lea ecx, [ebp - 0x20c]
push ecx
push 0x10035d0
push 0x65
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
jmp 0x1014a2c
cmp dword [ebp - 0x45c], 0x10
je 0x1014a05
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x468]
lea eax, [ebp - 0x20c]
push ebx
push edi
push eax
call fcn.01006a35
mov esi, eax
add esp, 0x14
test esi, esi
jl 0x10149d4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1014a05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x460], eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1014a05
test byte [eax + 0x1c], 1
je 0x1014a05
push dword [ebp - 0x460]
lea ecx, [ebp - 0x20c]
push ecx
push 0x10035d0
push 0x66
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
jmp 0x1014a05
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10149f9
test byte [eax + 0x1c], 1
je 0x10149f9
push esi
push 0x10035d0
push 0x67
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
and esi, 0x1000ffff
mov dword [ebp - 0x460], esi
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1014953
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x460]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011f27
leave
ret 8
Function at 0x1015963
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x2c]
xor ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x101599a
cmp dword [eax + 0xc], 0
je 0x101599a
cmp dword [eax], 0
je 0x101599a
push dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push dword [ebp + 0xc]
call dword [eax + 0xc]
mov ebx, eax
mov esi, dword [esi + 0x28]
test esi, esi
je 0x10159cf
mov esi, dword [esi]
test esi, esi
je 0x10159cf
cmp dword [ebp + 0xc], 0
jl 0x10159cf
cmp dword [ebp + 8], 0xc8
je 0x10159c8
cmp dword [ebp + 8], 0x193
je 0x10159c8
cmp dword [ebp + 8], 0xc9
jne 0x10159cf
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x1015b33
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, ecx
mov dword [ebp - 4], eax
cmp edi, eax
jne 0x1015b77
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015b6d
test byte [eax + 0x1c], 1
je 0x1015b6d
push 0x1003a20
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
mov eax, 0x80070057
jmp 0x1015d4e
push ebx
push eax
push 0x80
push 3
push eax
xor ebx, ebx
inc ebx
push ebx
push 0x80010000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x1015bd0
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015bbd
test byte [eax + 0x1c], bl
je 0x1015bbd
push edi
push 0x1003a20
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01004dcc
mov edi, eax
jmp 0x1015d31
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, 0x78
jae 0x1015c0f
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015c05
test byte [eax + 0x1c], bl
je 0x1015c05
push edi
push 0x1003a20
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
mov edi, 0x8007000b
jmp 0x1015d28
push eax
call fcn.01011bcc
pop ecx
mov dword [esi + 8], eax
test eax, eax
jne 0x1015c4d
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015c43
test byte [eax + 0x1c], bl
je 0x1015c43
push dword [esi + 0xc]
push 0x1003a20
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
mov edi, 0x8007000e
jmp 0x1015d28
push 0
lea ecx, [ebp - 4]
push ecx
push dword [esi + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1015c9a
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015c87
test byte [eax + 0x1c], bl
je 0x1015c87
push 0x1003a20
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01004dcc
mov edi, eax
jmp 0x1015d28
mov eax, dword [esi + 0xc]
cmp dword [ebp - 4], eax
je 0x1015cbc
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015d1f
test byte [eax + 0x1c], bl
je 0x1015d1f
push 0x1003a20
push 0x26
jmp 0x1015d14
push eax
push dword [esi + 8]
call fcn.01013298
mov edi, eax
test edi, edi
jge 0x1015cf0
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015d28
test byte [eax + 0x1c], bl
je 0x1015d28
push 0x1003a20
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x1015d28
push dword [esi + 8]
call fcn.0101332e
test eax, eax
jne 0x1015d26
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015d1f
test byte [eax + 0x1c], bl
je 0x1015d1f
push 0x1003a20
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
mov edi, 0x80004005
jmp 0x1015d28
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test edi, edi
jge 0x1015d4c
mov eax, dword [esi + 8]
test eax, eax
je 0x1015d4c
push eax
call fcn.01011bdc
and dword [esi + 8], 0
and dword [esi + 0xc], 0
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x1019fd3
Capabilities:
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0x80004005
cmp ebx, edi
jne 0x101a021
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101a017
test byte [eax + 0x1c], 1
je 0x101a017
push 0x1003dec
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
mov eax, 0x80080057
jmp 0x101a14d
push edi
push 0x80
push 2
push edi
call fcn.01014c87
push eax
push edi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x101a08a
mov dword [ebp - 8], 0x80070057
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101a14a
test byte [eax + 0x1c], 1
je 0x101a14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1035014]
push ebx
push 0x1003dec
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
jmp 0x101a14a
push 0x2080
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, 0x1035014
test eax, eax
jne 0x101a0c0
mov eax, dword [0x1035014]
cmp eax, ebx
je 0x101a0c5
test byte [eax + 0x1c], 2
je 0x101a0c5
push 0x1003dec
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
mov eax, dword [0x1035014]
mov ecx, dword [esi + 4]
mov esi, dword [ecx + 0x94]
cmp esi, edi
jne 0x101a0f0
cmp eax, ebx
je 0x101a141
test byte [eax + 0x1c], 1
je 0x101a141
push 0x1003dec
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x101a141
push edi
lea eax, [ebp - 4]
push eax
push esi
push ecx
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101a111
cmp esi, dword [ebp - 4]
jne 0x101a111
mov dword [ebp - 8], edi
jmp 0x101a141
mov eax, dword [0x1035014]
cmp eax, ebx
je 0x101a141
test byte [eax + 0x1c], 1
je 0x101a141
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
mov eax, dword [0x1035014]
push 0x1003dec
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x101db02
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x101db19
xor eax, eax
jmp 0x101db1c
and eax, 0x10
pop ebp
ret 4

Function at 0x101db25
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0x1e
jbe 0x101db6a
mov edi, 0xa1
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101dbe6
test byte [eax + 0x1c], 1
je 0x101dbe6
push dword [ebp + 8]
push 0x1003fb8
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004ee0
jmp 0x101dbe6
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x101dbea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x101dbea
push esi
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101db9e
push 3
jmp 0x101dbda
xor eax, eax
inc edi
push edi
push dword [ebp + 0xc]
mov word [esi], ax
push ebx
call fcn.0101db25
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
jl 0x101dbe5
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x101dbe3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x101dbe3
call esi
push eax
call fcn.01004dcc
mov edi, eax
jmp 0x101dbe5
xor edi, edi
pop esi
mov eax, edi
jmp 0x101dbec
xor eax, eax
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x101dc16
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x101dc90
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101dc8c
test byte [eax + 0x1c], 1
je 0x101dc8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1035014]
push 0x1003fb8
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
xor eax, eax
jmp 0x101dc9a
cmp dword [ebp - 0x114], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01011f27
leave
ret
Function at 0x101e406
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0x80070057
test edi, edi
je 0x101e4a3
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x98
jbe 0x101e4a2
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x101e4a2
and dword [eax], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0x10
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x101e4cc
mov eax, dword [ebp + 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
lea edx, [edi + 0x3d0]
push dword [edx]
push esi
call fcn.0101e3da
mov dword [esi + 8], eax
mov ebx, dword [edi + 8]
shl ebx, 5
push ebx
push dword [edx]
push esi
call fcn.0101e3a3
test eax, eax
je 0x101e4ab
mov dword [ebp - 4], 0x80004005
test esi, esi
je 0x101e4a1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0x10
test byte [ebp + 0x10], 1
jne 0x101e4eb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x101e4d5
mov dword [ebp - 4], 0x8007000e
jmp 0x101e488
mov eax, dword [edi + 8]
shl eax, 5
push eax
push dword [esi + 8]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi + 8], ebx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov dword [eax], esi
jmp 0x101e4a1

Function at 0x101fae1
Capabilities:
Read http header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x80070057
je 0x101fba0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x101fba0
cmp dword [esi], 2
jb 0x101fba0
call fcn.0101f7c0
xor ebx, ebx
push ebx
push esi
push dword [ebp + 0xc]
mov esi, 0xffff
push dword [ebp + 8]
push esi
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x101fb6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101fb41
and eax, esi
or eax, 0x80070000
mov ebx, eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101fb97
test byte [eax + 0x1c], 1
je 0x101fb97
push ebx
push dword [ebp + 8]
push 0x1003f40
push 0x44
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
jmp 0x101fb97
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101fb97
test byte [eax + 0x1c], 4
je 0x101fb97
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1003f40
push 0x45
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015773
mov ecx, edi
call fcn.0101f7f9
jmp 0x101fbc4
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101fbc4
test byte [eax + 0x1c], 1
je 0x101fbc4
push 0x1003f40
push 0x43
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x101fee3
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, 0x80070057
test ebx, ebx
jne 0x101ff19
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101ffea
test byte [eax + 0x1c], 1
je 0x101ffea
push 0x1003ff0
push 0xc
jmp 0x101ff40
cmp dword [ebp + 0xc], 0
jne 0x101ff50
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101ffea
test byte [eax + 0x1c], 1
je 0x101ffea
push 0x1003ff0
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x101ffea
push esi
push 0x1001de4
mov esi, 0x104
push esi
push ebx
call fcn.01013dea
mov edi, eax
test edi, edi
jge 0x101ff84
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101ffe9
test byte [eax + 0x1c], 1
je 0x101ffe9
push edi
push 0x1003ff0
push 0xe
jmp 0x101ffae
push dword [ebp + 0xc]
push esi
push ebx
call fcn.01013dea
mov edi, eax
test edi, edi
jge 0x101ffbb
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101ffe9
test byte [eax + 0x1c], 1
je 0x101ffe9
push edi
push 0x1003ff0
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x101ffe9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x101ffe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x101ffe7
test eax, eax
jle 0x101ffe3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x101ffe9
xor edi, edi
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1020715
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x22c], ax
xor ebx, ebx
lea eax, [ebp - 0x22a]
push ebx
push eax
call sub.msvcrt.dll_memset
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
xor eax, eax
mov dword [ebp - 0x238], ebx
lea edi, [ebp - 0x234]
push 0x1004120
stosd dword es:[edi], eax
lea eax, [ebp - 0x22c]
push 0x104
push eax
mov dword [ebp - 0x230], ebx
call fcn.01006a35
mov esi, eax
add esp, 0x1c
cmp esi, ebx
jge 0x10207bf
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10208c6
test byte [eax + 0x1c], 1
je 0x10208c6
push esi
push 0x1003ff0
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x10208c1
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push 0x1003234
push 0x10
push eax
call fcn.01006a35
mov esi, eax
add esp, 0x10
cmp esi, ebx
jge 0x10207ff
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10208c6
test byte [eax + 0x1c], 1
je 0x10208c6
push esi
push 0x1003ff0
push 0x23
jmp 0x10207b4
push ebx
lea eax, [ebp - 0x230]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x22c]
push eax
xor eax, eax
cmp dword [ebp + 0x18], ebx
setne al
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x1020895
cmp dword [ebp - 0x230], ebx
je 0x102089f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x14]
push 8
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x238]
push eax
push 0xb
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x1020891
jle 0x1020873
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x10208c6
test byte [ecx + 0x1c], 1
je 0x10208c6
push eax
push 0x1003ff0
push 0x25
jmp 0x10208bb
xor esi, esi
jmp 0x10208c6
jle 0x102089f
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x10208c6
test byte [ecx + 0x1c], 1
je 0x10208c6
push eax
push 0x1003ff0
push 0x24
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
cmp dword [ebp - 0x230], ebx
je 0x10208da
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011f27
leave
ret 0x14
Function at 0x1022c9d
Capabilities:
Read http header
Receive http response

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 8], ebx
call fcn.0101f7c0
push ebx
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov ecx, esi
mov edi, eax
call fcn.0101f7f9
cmp edi, ebx
jne 0x1022cfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01004dcc
mov edi, eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1022e6a
test byte [eax + 0x1c], 1
je 0x1022e6a
push edi
push 0x1003f40
push 0x3e
jmp 0x1022d2c
mov ecx, esi
call fcn.010223a8
mov edi, eax
cmp edi, ebx
jge 0x1022d3c
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1022e6a
test byte [eax + 0x1c], 1
je 0x1022e6a
push edi
push 0x1003f40
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1022e6a
mov ecx, esi
mov dword [ebp - 8], 4
call fcn.0101f7c0
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x2d8]
push eax
push ebx
push 0x20000013
push dword [esi + 8]
call edi
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
je 0x1022e2a
xor eax, eax
cmp dword [ebp + 8], eax
je 0x1022e2a
push eax
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0x4000000b
push dword [esi + 8]
mov dword [ebp + 8], 0x10
call edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x1022dda
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1022dd1
test byte [eax + 0x1c], 1
je 0x1022dd1
call ebx
push eax
mov eax, dword [0x1035014]
push 0x1003f40
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
mov dword [ebp - 4], 1
jmp 0x1022e2a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x1022e18
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1022e18
test byte [eax + 0x1c], 1
je 0x1022e18
call ebx
push eax
mov eax, dword [0x1035014]
push 0x1003f40
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x2e8], ecx
mov dword [esi + 0x2ec], eax
mov ecx, esi
call fcn.0101f7f9
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x1022e6a
call ebx
push eax
call fcn.01004dcc
mov edi, eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1022e6a
test byte [eax + 0x1c], 1
je 0x1022e6a
push dword [ebp - 8]
push edi
push 0x1003f40
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100bd5c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4