joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079c3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40cc50], ebx
push esi
push edi
jne 0x407a43
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407a7e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a1c4
push edi
call esi
test eax, eax
mov dword [0x40cc50], eax
je 0x407a7e
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40cc54], eax
call esi
cmp dword [0x40caec], 2
mov dword [0x40cc58], eax
jne 0x407a43
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40cc60], eax
je 0x407a43
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40cc5c], eax
mov eax, dword [0x40cc5c]
test eax, eax
je 0x407a88
call eax
test eax, eax
je 0x407a6f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40cc60]
test eax, eax
je 0x407a6f
test byte [ebp - 8], 1
jne 0x407a88
cmp dword [0x40caf8], 4
jb 0x407a82
or byte [ebp + 0x12], 0x20
jmp 0x407aa7
xor eax, eax
jmp 0x407ab7
or byte [ebp + 0x12], 4
jmp 0x407aa7
mov eax, dword [0x40cc54]
test eax, eax
je 0x407aa7
call eax
mov ebx, eax
test ebx, ebx
je 0x407aa7
mov eax, dword [0x40cc58]
test eax, eax
je 0x407aa7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40cc50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4082d6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x408304
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40830b
cmp ebx, dword [eax + 4]
jae 0x40830b
xor eax, eax
jmp 0x4084fb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40831c
xor eax, eax
inc eax
jmp 0x4084fa
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x408332
cmp ecx, edx
jae 0x408477
cmp dword [eax + 4], 0
je 0x40833b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408323
cmp dword [ebp + 8], 0
je 0x40835d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408477
cmp eax, esi
jae 0x408477
mov eax, dword [0x40cc68]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x408382
cmp dword [esi*4 + 0x40cc70], edi
je 0x40847b
inc esi
cmp esi, eax
jl 0x408370
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4084f7
cmp dword [ebp - 8], 0x1000000
jne 0x4084f7
test byte [ebp - 0xc], 0xcc
je 0x408400
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4084f7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4084f7
cmp word [eax + 0x18], 0x10b
jne 0x4084f7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4084f7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x408400
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x408400
test byte [ecx + 0x27], 0x80
jne 0x408477
push 1
push 0x40ccb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x408314
mov ecx, dword [0x40cc68]
test ecx, ecx
mov edx, ecx
jle 0x408434
lea eax, [ecx*4 + 0x40cc6c]
cmp dword [eax], edi
je 0x408434
dec edx
sub eax, 4
test edx, edx
jg 0x408428
test edx, edx
jne 0x408465
push 0xf
pop ebx
cmp ecx, ebx
jg 0x408441
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408459
lea eax, [edx*4 + 0x40cc70]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408447
cmp ecx, 0x10
jge 0x408465
inc ecx
mov dword [0x40cc68], ecx
push 0
push 0x40ccb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x408314
xor eax, eax
jmp 0x4084fa
test esi, esi
jle 0x408314
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40ccb0
call ebx
test eax, eax
jne 0x408314
cmp dword [esi*4 + 0x40cc70], edi
je 0x4084d1
mov eax, dword [0x40cc68]
lea esi, [eax - 1]
test esi, esi
jl 0x4084bf
cmp dword [esi*4 + 0x40cc70], edi
je 0x4084bb
dec esi
jns 0x4084af
test esi, esi
jge 0x4084cf
cmp eax, 0x10
jge 0x4084ca
inc eax
mov dword [0x40cc68], eax
lea esi, [eax - 1]
jmp 0x4084d1
je 0x4084e9
xor ecx, ecx
test esi, esi
jl 0x4084e9
lea eax, [ecx*4 + 0x40cc70]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4084d7
push 0
push 0x40ccb0
call ebx
jmp 0x408314
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4086c9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00403ec0
mov eax, dword [0x40c5b0]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40df24]
mov dword [ebp - 4], eax
jae 0x40880c
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40df40]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40880c
push 1
push esi
push ebx
call fcn.004075ab
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x408816
push 2
push esi
push ebx
call fcn.004075ab
add esp, 0xc
cmp eax, 0xffffffff
je 0x408816
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4087b6
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004067f0
push 0x8000
push ebx
call fcn.00408c34
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x408775
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00407266
add esp, 0xc
cmp eax, 0xffffffff
je 0x408793
sub edi, eax
test edi, edi
jg 0x40876a
jmp 0x4087a9
cmp dword [0x40cae4], 5
jne 0x4087a6
mov dword [0x40cae0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00408c34
pop ecx
pop ecx
jmp 0x4087f6
jge 0x4087f6
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004075ab
push ebx
call fcn.0040722a
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x4087f6
mov dword [0x40cae0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40cae4], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004075ab
add esp, 0xc
mov eax, esi
pop edi
jmp 0x408819
mov dword [0x40cae0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00407dac
leave
ret
Function at 0x30005c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x3002ef9d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3003a6b0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
mov edi, dword [esp + 0x30]
mov esi, dword [eax + 4]
mov ebx, eax
add edi, 0xc
cmp byte [esi + 0x39], 0
mov al, 1
mov byte [esp + 0x14], al
jne 0x30005cfd
jmp 0x30005cc0
cmp dword [esi + 0x20], 8
mov ecx, dword [esi + 0x1c]
lea eax, [esi + 0xc]
mov ebx, esi
jb 0x30005cd0
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [edi + 0x10]
push eax
push 0
mov ecx, edi
call fcn.300057f0
test eax, eax
sets al
mov byte [esp + 0x14], al
test al, al
je 0x30005cf0
mov esi, dword [esi]
jmp 0x30005cf3
mov esi, dword [esi + 8]
cmp byte [esi + 0x39], 0
je 0x30005cc0
mov edx, dword [esp + 0x28]
mov esi, ebx
mov dword [esp + 0x2c], esi
test al, al
je 0x30005d3e
mov eax, dword [edx + 4]
cmp ebx, dword [eax]
jne 0x30005d31
mov ecx, dword [esp + 0x30]
push ecx
push 1
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
mov ebx, edx
call fcn.30005de0
mov ecx, dword [eax]
mov dword [ebp], ecx
mov byte [ebp + 4], 1
jmp 0x30005dbd
lea eax, [esp + 0x2c]
call fcn.300060b0
mov esi, dword [esp + 0x2c]
cmp dword [edi + 0x14], 8
mov edx, dword [edi + 0x10]
lea ecx, [esi + 0xc]
jb 0x30005d4e
mov eax, dword [edi]
jmp 0x30005d50
mov eax, edi
push edx
mov edx, dword [ecx + 0x10]
push eax
push edx
push 0
call fcn.300057f0
test eax, eax
jns 0x30005d86
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x38]
mov ecx, ebx
mov ebx, dword [esp + 0x30]
push edx
call fcn.30005de0
mov eax, dword [eax]
mov dword [ebp], eax
mov byte [ebp + 4], 1
jmp 0x30005dbd
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], 1
lea ecx, [edi + 0x1c]
call fcn.300020d0
mov dword [esp + 0x20], 0xffffffff
mov ecx, edi
call fcn.30002160
mov ecx, dword [esp + 0x30]
push ecx
call fcn.30014501
add esp, 4
mov dword [ebp], esi
mov byte [ebp + 4], 0
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc

Function at 0x300066b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x300066c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x30006702
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x300066fe
lea ebx, [ebx]
cmp esi, eax
jae 0x30006702
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x300066f0
cmp esi, eax
jb 0x30006708
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x3000b63b
Capabilities:
Get file size

Disassembly:
push edi
xor edi, edi
cmp dword [esp + 8], edi
jne 0x3000b648
xor eax, eax
pop edi
ret
push esi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp eax, edi
sbb eax, eax
pop esi
and eax, edi
pop edi
ret

Function at 0x3000c739
Capabilities:
Get disk information

Disassembly:
push 0x50
mov eax, 0x3002c9f6
call fcn.3001540d
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x30034088
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x5c], esi
mov byte [esi], bl
call fcn.30003b10
xor edi, edi
lea eax, [ebp - 0x4c]
inc edi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x50], ebx
call fcn.3000be15
cmp dword [eax + 0x14], 0x10
pop ecx
jb 0x3000c789
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x50]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push ebx
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x54], eax
call fcn.30001a80
cmp dword [ebp - 0x54], ebx
je 0x3000c7fe
push 7
xor eax, eax
mov byte [ebp - 0x30], bl
pop ecx
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4c]
push eax
call fcn.3000be75
pop ecx
mov eax, dword [ebp - 0x4c]
xor edi, edi
inc edi
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 4], edi
jae 0x3000c7d8
lea eax, [ebp - 0x4c]
push dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.30003b10
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.30001a80
mov eax, esi
call fcn.30015457
ret
Function at 0x3000c806
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push ebp
sub esp, 0x460
lea ebp, [esp - 4]
mov eax, dword [0x3003a6b0]
xor eax, ebp
mov dword [ebp + 0x460], eax
push 4
mov eax, 0x3002ca23
call fcn.300153a4
mov esi, dword [ebp + 0x46c]
xor ebx, ebx
push 0x3ff
lea eax, [ebp + 0x61]
push ebx
mov dword [ebp - 0x10], ebx
push eax
mov byte [ebp + 0x60], bl
call fcn.30014dd0
push 0x34
lea eax, [ebp + 0x20]
push ebx
push eax
call fcn.30014dd0
xor eax, eax
mov dword [ebp + 0x54], ebx
lea edi, [ebp + 0x58]
stosd dword es:[edi], eax
add esp, 0x18
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0x38
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp + 0x1c], 0x83ec8b55
mov dword [ebp + 0x20], 0x1b80cec
mov dword [ebp + 0x24], 0xf000000
mov dword [ebp + 0x28], 0x240489a2
mov dword [ebp + 0x2c], 0x4245489
mov dword [ebp + 0x30], 0x8244c89
mov dword [ebp + 0x34], 0x8b08558b
mov dword [ebp + 0x38], 0x2892404
mov dword [ebp + 0x3c], 0x8b0c558b
mov dword [ebp + 0x40], 0x89042444
mov dword [ebp + 0x44], 0x10558b02
mov dword [ebp + 0x48], 0x824448b
mov dword [ebp + 0x4c], 0xc0330289
mov dword [ebp + 0x50], 0xc35de58b
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
lea eax, [ebp]
push eax
call fcn.3000bed5
pop ecx
cmp dword [ebp + 0x14], 0x10
mov eax, dword [ebp]
mov dword [ebp - 4], ebx
jae 0x3000c90e
lea eax, [ebp]
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push eax
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp + 0x60]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.30003b10
push ebx
push 1
lea ecx, [ebp]
call fcn.30001a80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x460]
xor ecx, ebp
call fcn.30014dbb
add ebp, 0x464
leave
ret
Function at 0x3000cb23
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x138
lea ebp, [esp - 4]
mov eax, dword [0x3003a6b0]
xor eax, ebp
mov dword [ebp + 0x138], eax
push 0x18
mov eax, 0x3002ca5b
call fcn.300153a4
mov eax, dword [ebp + 0x144]
mov esi, dword [ebp + 0x148]
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp + 0x30], 7
mov dword [ebp + 0x2c], edi
mov word [ebp + 0x1c], ax
cmp dword [esi + 0x14], 8
jb 0x3000cb75
mov eax, dword [esi]
jmp 0x3000cb77
mov eax, esi
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
mov dword [ebp - 4], edi
cmp ebx, edi
ja 0x3000cb9b
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.30001840
push edi
push 1
jmp 0x3000ccc6
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.3001382b
lea ecx, [ebx + ebx + 2]
push ecx
push edi
push eax
mov dword [ebp - 0x24], eax
call fcn.30014dd0
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x3000cbce
mov eax, dword [esi]
jmp 0x3000cbd0
mov eax, esi
mov esi, dword [ebp - 0x24]
push esi
push ebx
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x3000ccb1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x20], edi
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebx
jne 0x3000ccb1
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x3000ccb1
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp + 0x38]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov word [ebp], ax
add esp, 0x10
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp]
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], edi
call fcn.300010f0
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jae 0x3000cc5d
lea eax, [ebp]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebx
je 0x3000cc8f
push esi
call fcn.300145dd
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.30001840
push edi
push ebx
lea ecx, [ebp]
call fcn.30002110
jmp 0x3000ccc4
cmp dword [ebp - 0x14], edi
je 0x3000cc70
push dword [ebp - 0x14]
lea ecx, [ebp + 0x1c]
call fcn.300010f0
push 0x2e
lea eax, [ebp + 0x1c]
push 0x2c
push eax
call fcn.3000cac0
add esp, 0xc
jmp 0x3000cc70
push esi
call fcn.300145dd
pop ecx
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.30001840
push edi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.30002110
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x138]
xor ecx, ebp
call fcn.30014dbb
add ebp, 0x13c
leave
ret
Function at 0x3000d112
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x104
mov eax, dword [0x3003a6b0]
xor eax, ebp
mov dword [ebp + 0x80], eax
push esi
mov esi, dword [ebp + 0x8c]
push 0xff
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.30014dd0
add esp, 0xc
push pe_nt_image_headers32
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x3000d1b8
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x3000d1c0
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x3000d1c0
cmp word [eax + 0xa], 4
jl 0x3000d1c0
mov byte [ebp - 0x80], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x80]
push 0x300306a0
push eax
call fcn.3001559c
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.30003b10
mov al, 1
jmp 0x3000d1c2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
pop esi
call fcn.30014dbb
add ebp, 0x84
leave
ret
Function at 0x3000e3cf
Capabilities:
Create thread

Disassembly:
push ebp
sub esp, 0x70
lea ebp, [esp - 4]
mov eax, dword [0x3003a6b0]
xor eax, ebp
mov dword [ebp + 0x70], eax
push 0x14
mov eax, 0x3002ce53
call fcn.300153a4
mov esi, dword [ebp + 0x7c]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
cmp esi, ebx
je 0x3000e52a
push 0x1c
call fcn.3001455d
pop ecx
cmp eax, ebx
je 0x3000e420
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ebx
mov byte [eax], bl
mov dword [ebp - 0x18], eax
jmp 0x3000e423
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x18]
push esi
call fcn.30003b10
lea eax, [ebp + 0x54]
push eax
call fcn.3000d718
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 4], ebx
call fcn.3000d778
pop ecx
pop ecx
push dword [ebp + 0x64]
mov ecx, dword [ebp - 0x18]
push ebx
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.30006ab0
cmp dword [ebp + 0x68], 0x10
mov ecx, dword [ebp + 0x54]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 1
jae 0x3000e46e
lea ecx, [ebp + 0x54]
cmp dword [eax + 0x14], 0x10
jb 0x3000e476
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ecx
push eax
call esi
test eax, eax
je 0x3000e4ba
push dword [ebp + 0x48]
mov ecx, dword [ebp - 0x18]
push ebx
lea eax, [ebp]
push eax
call fcn.30006ab0
cmp dword [ebp + 0x4c], 0x10
mov ecx, dword [ebp + 0x38]
mov dword [ebp - 0x14], 3
jae 0x3000e4a7
lea ecx, [ebp + 0x38]
cmp dword [eax + 0x14], 0x10
jb 0x3000e4af
mov eax, dword [eax]
push ecx
push eax
call esi
mov byte [ebp - 0xd], bl
test eax, eax
jne 0x3000e4be
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 2
je 0x3000e4d3
and dword [ebp - 0x14], 0xfffffffd
push ebx
push 1
lea ecx, [ebp]
call fcn.30001a80
test byte [ebp - 0x14], 1
je 0x3000e4e4
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.30001a80
cmp byte [ebp - 0xd], bl
je 0x3000e501
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x18]
push 0x3000e086
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1c], eax
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.30001a80
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.30001a80
cmp dword [ebp - 0x1c], ebx
je 0x3000e52a
push 0xdbba0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.30014dbb
add ebp, 0x74
leave
ret

Function at 0x3000e7c6
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x3003a6b0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
lea ecx, [ebp - 0x198]
push ecx
push eax
push eax
push 0x3000e549
push eax
push eax
mov dword [ebp - 0x198], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.30014dbb
leave
ret
Function at 0x3000ea02
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push str.9AD4427C_A7E4_92FE_ACB4_C121CB00DAJP
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x3000ea38
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x3000f226
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x3000f7c5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x3003a6b0]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.3000f1e3
mov ebx, eax
cmp ebx, esi
je 0x3000f838
lea ecx, [ebp - 0x74]
call fcn.3000f16c
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30014dbb
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x3000f850
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.3000f7c5
cmp eax, esi
jne 0x3000f882
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], pe_nt_image_headers32
call ebx
test eax, eax
je 0x3000f840
lea ecx, [ebp - 0x74]
call fcn.3000f16c
push dword [ebp - 0x78]
mov ecx, edi
call fcn.3000f14d
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.3000f16c
mov eax, esi
jmp 0x3000f81e