joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100277e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ce61
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x1005d500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], vtable.FileService.0
mov dword [ebp - 4], 1
call fcn.10021000
push 1
mov eax, 0x1005344c
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.10002620
push 1
mov eax, 0x100536b0
mov ecx, esi
call fcn.10002620
push 1
mov eax, 0x1005344c
mov ecx, esi
call fcn.10002620
cmp dword [esi + 0x14], 0x10
jb 0x1002785e
mov eax, dword [esi]
jmp 0x10027860
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10027880
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c4a9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x1005d500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
mov dword [ebp - 0x10], ebx
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x100a1fbc
mov ecx, esi
mov byte [esi], bl
call fcn.10002da0
mov dword [ebp - 4], ebx
push 2
mov eax, 0x100536b4
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.10002620
push 1
mov eax, 0x1005344c
mov ecx, esi
call fcn.10002620
cmp dword [esi + 0x14], 0x10
jb 0x100278fb
mov eax, dword [esi]
jmp 0x100278fd
mov eax, esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10027920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov dword [esp + 4], 0
call fcn.10028240
call fcn.10028fe0
lea eax, [esp + 4]
push eax
push 0
push 0x100a1f98
push 0x10028e80
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
mov dword [0x100a20dc], eax
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x100a2084
mov ecx, esi
mov byte [esi], 0
call fcn.10002da0
mov eax, esi
mov esp, ebp
pop ebp
ret
Function at 0x10027c20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c468
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 3
push 0x1005493c
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
call fcn.100028b0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x58], 0x10
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], 0
jae 0x10027c84
lea eax, [ebp - 0x6c]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x7c]
push ecx
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 0x7c]
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], al
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], edx
call fcn.10011650
mov bl, byte [ebp - 0x78]
add bl, byte [ebp + 8]
push 0x40
lea edx, [ebp - 0x50]
push 0
push edx
call fcn.10037e50
movsx eax, bl
push eax
lea ecx, [ebp - 0x50]
push 0x10053b68
push ecx
call fcn.100366ed
lea eax, [ebp - 0x50]
add esp, 0x20
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10027ce7
sub eax, ecx
push eax
lea edx, [ebp - 0x50]
push edx
mov ecx, esi
call fcn.100028b0
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10037e50
movsx ecx, byte [ebp - 0x77]
push ecx
lea edx, [ebp - 0x50]
push 0x10053b68
push edx
call fcn.100366ed
lea eax, [ebp - 0x50]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10027d25
sub eax, ecx
push eax
lea eax, [ebp - 0x50]
mov ecx, esi
call fcn.10002620
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10037e50
movsx ecx, byte [ebp - 0x76]
push ecx
lea edx, [ebp - 0x50]
push 0x10053b68
push edx
call fcn.100366ed
lea eax, [ebp - 0x50]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10027d62
sub eax, ecx
push eax
lea eax, [ebp - 0x50]
mov ecx, esi
call fcn.10002620
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10037e50
movsx ecx, byte [ebp - 0x75]
push ecx
lea edx, [ebp - 0x50]
push 0x10053b68
push edx
call fcn.100366ed
lea eax, [ebp - 0x50]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10027da0
sub eax, edx
push eax
lea eax, [ebp - 0x50]
mov ecx, esi
call fcn.10002620
cmp dword [ebp - 0x58], 0x10
jb 0x10027dc6
mov eax, dword [ebp - 0x6c]
push eax
call fcn.10032db0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10034d4a
mov esp, ebp
pop ebp
ret 4
Function at 0x100296d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c408
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x1002971f
lea eax, [ebp + 0xc]
push 0x10053450
push eax
call fcn.10035675
mov edi, eax
push edi
push 1
lea edx, [ebp - 0x50]
push 4
push edx
mov dword [ebp - 0x50], ebx
call fcn.1003559c
mov eax, dword [ebp - 0x50]
inc eax
push eax
call fcn.10034282
mov ecx, dword [ebp - 0x50]
add esp, 0x1c
inc ecx
push ecx
mov esi, eax
push ebx
push esi
call fcn.10037e50
mov edx, dword [ebp - 0x50]
push edi
push edx
push 1
push esi
call fcn.1003559c
push edi
call fcn.100352de
mov edi, 0xf
mov eax, esi
add esp, 0x20
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10029781
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.100028b0
push esi
mov byte [ebp - 4], 2
call fcn.10034d59
mov eax, dword [ebp - 0x58]
add esp, 4
add eax, 0x61
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x30]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.10002da0
lea eax, [ebp - 0x4c]
push eax
call fcn.10029980
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.100029b0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x38], 0x10
jb 0x100297f1
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.10032db0
add esp, 4
mov esi, dword [ebp - 0x54]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x30]
mov byte [esi], bl
call fcn.100029b0
mov esi, 0x10
cmp dword [ebp - 0x1c], esi
jb 0x1002981e
mov edx, dword [ebp - 0x30]
push edx
call fcn.10032db0
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp + 0x20], esi
jb 0x10029859
mov eax, dword [ebp + 0xc]
push eax
call fcn.10032db0
add esp, 4
jmp 0x10029859
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034d4a
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10029a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cd58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jae 0x10029abd
lea eax, [ebp + 8]
push eax
call fcn.10036f53
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [ebp + 0x1c], esi
jae 0x10029ad1
lea eax, [ebp + 8]
push 0x100546d4
push eax
call fcn.10035675
add esp, 8
add ebx, 0x61
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0xffffffffffffffff
push 0
add edi, 0xec
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov esi, eax
mov byte [ecx], 0
call fcn.10002da0
lea eax, [ebp - 0x30]
push eax
call fcn.10029880
mov ecx, dword [ebp - 0x20]
push esi
push 1
lea edx, [ebp - 0x34]
push 4
push edx
mov dword [ebp - 0x34], ecx
call fcn.10035d0e
mov eax, dword [ebp - 0x30]
mov edi, 0x10
add esp, 0x10
cmp dword [ebp - 0x1c], edi
jae 0x10029b3e
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
push esi
push ecx
push 1
push eax
call fcn.10035d0e
push esi
call fcn.100352de
add esp, 0x14
cmp dword [ebp - 0x1c], edi
jb 0x10029b65
mov edx, dword [ebp - 0x30]
push edx
call fcn.10032db0
add esp, 4
cmp dword [ebp + 0x1c], edi
jb 0x10029b86
mov eax, dword [ebp + 8]
push eax
call fcn.10032db0
add esp, 4
jmp 0x10029b86
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034d4a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10029bb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004bb57
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1005d500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x10053500
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.10006bf0
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.10006420
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x10029c47
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.10007a90
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.10006150
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x1006145c]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
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
Function at 0x10029ce0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004bb07
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1005d500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x100549f8
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.10006bf0
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.10006420
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x10029d73
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.10007a90
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.10006150
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x1006145c]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
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
Function at 0x1002cb20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004d3b0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1005d500]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x1005d500]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x14], vtable.SysService.0
mov dword [esp + 0x38], 0
mov eax, dword [0x10061c90]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x10]
mov eax, 0x1005fbb4
call fcn.10032850
mov esi, dword [eax]
cmp dword [esi + 0xc], 8
mov ebx, 1
je 0x1002cbdc
mov dword [esp + 0x10], vtable.AdInfoService.0
mov ecx, esi
mov byte [esp + 0x38], bl
call fcn.10009c20
test al, al
jne 0x1002cbc9
cmp dword [esi + 0x160], 0
ja 0x1002cbc9
cmp dword [esi + 0x10], 6
je 0x1002cbd1
mov ecx, dword [esi + 0x54]
sub ecx, dword [esi + 0x50]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x1002cbd1
add dword [0x100a1db0], ebx
jmp 0x1002cbd7
add dword [0x100a1dac], ebx
mov byte [esp + 0x38], 0
mov edx, dword [0x100a1db0]
cmp edx, dword [0x100a1dcc]
jl 0x1002cbf0
push ebx
call fcn.1002ccd0
mov eax, dword [0x100a1dac]
cmp eax, dword [0x100a1dc8]
jl 0x1002cc04
push 0
call fcn.1002ccd0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x1e]
movzx eax, word [esp + 0x1a]
movzx ecx, word [esp + 0x18]
push edx
call fcn.10030000
movzx ecx, word [esp + 0x20]
lea eax, [eax + eax*2 - 0x6fb8a4]
lea eax, [ecx + eax*8]
mov edx, eax
shl edx, 4
sub edx, eax
movzx eax, word [esp + 0x22]
add dword [esi + 0x18], ebx
lea eax, [eax + edx*4]
movzx edx, word [esp + 0x24]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
movzx ecx, word [esp + 0x26]
imul eax, eax, 0x3e8
add eax, ecx
push 0x100a2010
mov dword [esi + 0x44], eax
call fcn.100039e0
mov edx, dword [0x10061c90]
mov dword [0x100a1db4], edx
mov eax, dword [esi + 0x44]
add dword [0x100a1da8], ebx
mov esi, 0x10061c20
mov dword [0x100a1da4], eax
call fcn.1001ee30
push 0x100a202c
mov ebx, 0x100a1d90
call fcn.10024fb0
mov eax, 9
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10034d4a
mov esp, ebp
pop ebp
ret
Function at 0x1002fc60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002fc88
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.100028b0
push 0x44
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10037e50
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0xc], 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x74], 0x44
jae 0x1002fccc
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1002fd17
cmp byte [ebp + 8], al
jne 0x1002fd17
cmp dword [ebp - 0xc], 0x10
jb 0x1002fd04
mov eax, dword [ebp - 0x20]
push eax
call fcn.10032db0
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10034d4a
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0xc], 0x10
mov esi, dword [ebp - 0x30]
jb 0x1002fd2c
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10032db0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10034d4a
mov esp, ebp
pop ebp
ret 4
Function at 0x10031f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea esp, [esp]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
call fcn.10031fa0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push 0x4e20
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10031f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10032620
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.10037e50
push 0x24
lea ecx, [ebp - 0x404]
push 0x100535d8
push ecx
call fcn.10037f60
add esp, 0x18
xor eax, eax
mov edx, eax
and edx, 0x8000000f
jns 0x10032674
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [ebp + eax - 0x404]
sub cl, al
xor cl, byte [edx + 0x10053660]
inc eax
mov byte [ebp + eax - 0x405], cl
cmp eax, 0x24
jl 0x10032665
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push edx
call edi
lea eax, [ebp - 0x404]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x10032757
mov ecx, dword [esi + 0xc]
push 0x1388
push ecx
call edi
test eax, eax
je 0x10032761
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edx, dword [esi + 0x18]
push 0x64
push edx
call edi
lea eax, [ebp - 0x404]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [esi + 0x14], eax
test eax, eax
je 0x100326f3
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10034d4a
mov esp, ebp
pop ebp
ret
Function at 0x10032780
Capabilities:
Get common file path
Get disk information
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push str.asdf
push 0
push 0
push str.asdf
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0x10054c7c
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebx
mov dword [ebp - 8], 0
push esi
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ebx, ebx
test eax, eax
jle 0x10032820
mov dword [ebp - 4], ebx
add esi, dword [ebp - 4]
cmp dword [esi + 0x14], 0x10
jb 0x100327f2
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1003283f
mov esi, dword [edi]
mov ecx, dword [edi + 4]
add dword [ebp - 4], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jl 0x100327e7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 1
jl 0x100327c4
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10034017
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100603b8], 0
push esi
push edi
jne 0x10033f8d
call fcn.10033ef9
test eax, eax
je 0x10033fd2
mov eax, dword [0x100603b8]
cmp eax, 1
jne 0x10033fae
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10033fd2
jmp 0x10034014
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10034014
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10033fd6
xor eax, eax
jmp 0x10034014
mov eax, dword [esi]
push dword [0x100603b8]
call edi
mov edi, eax
test edi, edi
je 0x10033ff8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10034014
lea edi, [esi + 0xff0]
push esi
push dword [0x100603b8]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10033ffe
mov eax, esi
pop edi
pop esi
ret
jmp 0x10033f79

Function at 0x10034d4a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005d500]
jne 0x10034d54
repz ret
jmp fcn.1003a9a3
Function at 0x10036e8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10036eb3
call fcn.1003a835
mov dword [eax], esi
call fcn.1003a822
push 0x16
pop esi
mov dword [eax], esi
call fcn.1003b05c
mov eax, esi
jmp 0x10036f08
test dword [ebp + 0xc], 0xfffffff9
jne 0x10036e99
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10036ee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003a848
pop ecx
call fcn.1003a822
mov eax, dword [eax]
jmp 0x10036f08
test al, 0x10
jne 0x10036f06
test al, 1
je 0x10036f06
test byte [ebp + 0xc], 2
je 0x10036f06
call fcn.1003a835
mov dword [eax], 5
call fcn.1003a822
mov dword [eax], 0xd
jmp 0x10036ed7
xor eax, eax
pop esi
pop ebp
ret