joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c79c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x472810]
pop ebx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x44c7e0
cmp word [edx], bx
jne 0x44c7e0
or byte [eax + edi + 0x28], 4
jmp 0x44c7e5
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + esi*2]
push edx
pop ebx
mov dword [ebp - 0x10], eax
push edx
pop esi
cmp edx, eax
jae 0x44c94e
lea eax, [edx + 2]
movzx ecx, word [ebx]
mov dword [ebp - 0xc], ecx
cmp ecx, 0x1a
mov ecx, dword [ebp - 8]
je 0x44c92e
push 0xd
pop edx
cmp word [ebp - 0xc], dx
mov edx, dword [ebp + 0xc]
je 0x44c82c
mov ecx, dword [ebp - 0xc]
add ebx, 2
mov word [esi], cx
add esi, 2
add eax, 2
jmp 0x44c923
cmp eax, dword [ebp - 0x10]
jae 0x44c864
push 0xa
pop edx
cmp word [eax], dx
mov edx, dword [ebp + 0xc]
jne 0x44c850
push 0xa
pop ecx
add ebx, 4
mov word [esi], cx
add eax, 4
add esi, 2
jmp 0x44c923
push 0xd
pop edx
mov word [esi], dx
add ebx, 2
add esi, 2
add eax, 2
jmp 0x44c920
add eax, 2
add ebx, 2
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44c914
cmp dword [ebp - 0x18], 0
je 0x44c914
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x472810]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x44c8e2
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x44c8b6
mov word [esi], ax
jmp 0x44c91d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x472810]
push 0xa
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ecx*4 + 0x472810]
mov byte [eax + edi + 0x2b], dh
mov eax, dword [ecx*4 + 0x472810]
pop edx
mov byte [eax + edi + 0x2c], dl
jmp 0x44c91d
cmp word [ebp - 4], ax
jne 0x44c8fa
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x44c8fa
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0xc]
jmp 0x44c923
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044c1ac
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44c91d
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 0x10]
jb 0x44c7fa
jmp 0x44c94e
mov ecx, dword [ecx*4 + 0x472810]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44c945
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44c94e
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e7cf
Capabilities:
Enumerate files on windows

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
sub esp, 0x150
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x148], esi
jmp 0x44e811
mov al, byte [ecx]
cmp al, 0x2f
je 0x44e815
cmp al, 0x5c
je 0x44e815
cmp al, 0x3a
je 0x44e815
push ecx
push ebx
call fcn.004561c0
pop ecx
pop ecx
push eax
pop ecx
cmp ecx, ebx
jne 0x44e7f8
mov dl, byte [ecx]
cmp dl, 0x3a
jne 0x44e833
lea eax, [ebx + 1]
cmp ecx, eax
je 0x44e833
push esi
xor edi, edi
push edi
push edi
push ebx
call fcn.0044e739
add esp, 0x10
jmp 0x44e8ad
xor edi, edi
cmp dl, 0x2f
je 0x44e848
cmp dl, 0x5c
je 0x44e848
cmp dl, 0x3a
je 0x44e848
push edi
pop eax
jmp 0x44e84b
sub eax, eax
inc eax
movzx eax, al
sub ecx, ebx
inc ecx
neg eax
push 0x140
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x144]
push edi
push eax
call fcn.00436dd0
add esp, 0xc
lea eax, [ebp - 0x144]
push edi
push edi
push edi
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExA]
push eax
pop esi
mov eax, dword [ebp - 0x148]
cmp esi, 0xffffffff
jne 0x44e8be
push eax
push edi
push edi
push ebx
call fcn.0044e739
add esp, 0x10
mov edi, eax
cmp esi, 0xffffffff
je 0x44e8ab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434f2b
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
mov dword [ebp - 0x150], ecx
cmp byte [ebp - 0x118], 0x2e
jne 0x44e8ed
mov cl, byte [ebp - 0x117]
test cl, cl
je 0x44e908
cmp cl, 0x2e
jne 0x44e8ed
cmp byte [ebp - 0x116], 0
je 0x44e908
push eax
push dword [ebp - 0x14c]
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.0044e739
add esp, 0x10
test eax, eax
jne 0x44e89d
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov eax, dword [ebp - 0x148]
jne 0x44e8cc
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x150]
sub eax, edx
sar eax, 2
cmp ecx, eax
je 0x44e89f
push 0x44e591
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00440f40
add esp, 0x10
jmp 0x44e89f
Function at 0x452484
Capabilities:
Get geographical location

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004480d5
mov esi, dword [ebp + 8]
push eax
pop edi
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
jne 0x4524be
xor eax, eax
jmp 0x4524ee
cmp esi, dword [ebp - 4]
je 0x4524eb
cmp dword [ebp + 0xc], 0
je 0x4524eb
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4524cf
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00451fd8
pop ecx
cmp eax, esi
je 0x4524ba
sub eax, eax
inc eax
pop edi
pop esi
push ebp
pop esp
pop ebp
ret
Function at 0x452551
Capabilities:
Get geographical location

Disassembly:
push ebx
pop ebx
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47100c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004480d5
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
sub eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004480d5
lea ecx, [ebp - 0x10]
sub edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
or ecx, ecx
je 0x4525c8
cmp word [ecx], dx
je 0x4525c8
mov eax, dword [0x460344]
push edi
dec eax
push eax
push 0x460230
call 0x4524f4
mov eax, dword [ebp - 0x14]
add esp, 0xc
sub edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
or eax, eax
je 0x45263f
cmp word [eax], dx
je 0x45263f
mov eax, dword [edi]
test eax, eax
je 0x4525ec
cmp word [eax], dx
je 0x4525ec
lea eax, [ebp - 0x10]
push eax
call fcn.00451edc
jmp 0x4525f5
lea eax, [ebp - 0x10]
push eax
call fcn.00451f77
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x452684
mov eax, dword [0x46022c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x45ff20
call 0x4524f4
add esp, 0xc
test al, al
je 0x452669
mov eax, dword [edi]
sub edi, edi
test eax, eax
je 0x452633
cmp word [eax], di
je 0x452633
lea eax, [ebp - 0x10]
push eax
call fcn.00451edc
jmp 0x45263c
lea eax, [ebp - 0x10]
push eax
call fcn.00451f77
pop ecx
jmp 0x45266b
mov eax, dword [edi]
test eax, eax
je 0x452656
cmp word [eax], dx
je 0x452656
lea eax, [ebp - 0x10]
push eax
call fcn.00451e91
pop ecx
jmp 0x452669
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
jne 0x452686
sub eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434f2b
mov esp, ebp
pop ebp
ret
sub edi, edi
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0045237d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x452671
cmp esi, 0xfde8
je 0x452671
cmp esi, 0xfde9
je 0x452671
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x452671
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x452671
mov eax, dword [ebp - 0x18]
or eax, eax
je 0x4526da
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00448a09
or ebx, ebx
je 0x452750
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00448a09
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x452671
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x452671
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00441e2f
add esp, 0x10
sub eax, eax
inc eax
jmp 0x452673
Function at 0x4571b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
or ebx, ebx
je 0x4571ec
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4571e4
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4571ee
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4571d4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4572c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4572d4
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
sub eax, eax
cmp dword [ecx], 0x4550
jne 0x4572ef
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x50250c27
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x6feb6a0b
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x41dbc8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc48
xor eax, eax
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x3a0], eax
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x3ac], eax
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41dd6d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3a4]
xor eax, eax
call fcn.004029a0
mov eax, dword [ebp - 0x3a4]
lea edx, [ebp - 0x3a0]
call fcn.00408148
push dword [ebp - 0x3a0]
lea edx, [ebp - 0x3ac]
xor eax, eax
call fcn.004029a0
mov eax, dword [ebp - 0x3ac]
lea edx, [ebp - 0x3a8]
call fcn.00408210
push dword [ebp - 0x3a8]
push 0x41dd80
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b0c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402d44
lea eax, [ebp - 0x1d0]
call fcn.00402ad4
lea eax, [ebp - 0x1d0]
call fcn.00402ee8
lea eax, [ebp - 0x3b0]
call fcn.0041ca9c
lea eax, [ebp - 0x3b0]
mov edx, 0x41dd90
call fcn.00404a54
mov edx, dword [ebp - 0x3b0]
lea eax, [ebp - 0x39c]
call fcn.00402d44
lea eax, [ebp - 0x39c]
call fcn.00402ad4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x39c]
call fcn.00404d90
call fcn.00403558
lea eax, [ebp - 0x39c]
call fcn.00402ee8
push 0
lea eax, [ebp - 0x3b4]
call fcn.0041ca9c
lea eax, [ebp - 0x3b4]
mov edx, 0x41dd90
call fcn.00404a54
mov eax, dword [ebp - 0x3b4]
call fcn.00404c44
push eax
call sub.kernel32.dll_WinExec
push 0x5dc
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x3b8]
call fcn.0041ca9c
lea eax, [ebp - 0x3b8]
mov edx, 0x41dd90
call fcn.00404a54
mov eax, dword [ebp - 0x3b8]
call fcn.004080e0
mov eax, dword [ebp - 4]
call fcn.004080e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dd74
lea eax, [ebp - 0x3b8]
mov edx, 7
call fcn.004047b8
lea eax, [ebp - 4]
call fcn.00404794
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x32c9141b
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x6a5371fe
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x1002c5e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x3ec
push ebx
push esi
push edi
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp + 0x64], ecx
mov dword [ebp - 0xcc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xbc], 1
jne 0x1002dd3
cmp dword [ebp - 0xc8], 4
jne 0x1002dd3
cmp dword [ebp - 0xc4], 0xa
je 0x1002cb6
cmp dword [ebp - 0xc4], 0x5a
jne 0x1002dd3
push 0x6a
pop ecx
xor eax, eax
lea edi, [ebp - 0x274]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x378]
push eax
xor ebx, ebx
push ebx
mov dword [ebp - 0x274], 0x1a8
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1002d2a
mov cl, byte [ebp - 0x378]
xor eax, eax
jmp 0x1002cfd
cmp cl, 0x2e
je 0x1002d03
mov cl, byte [ebp + eax - 0x377]
inc eax
cmp cl, bl
jne 0x1002cf0
jmp 0x1002d1a
push 3
lea eax, [ebp + eax - 0x377]
push 0x1001384
push eax
call fcn.01004940
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp + 0x70], eax
cmp dword [ebp + 0x70], ebx
je 0x1002e34
push 0x100136c
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp + 0x68], eax
je 0x1002e1c
mov esi, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
push ebx
lea eax, [ebp - 0x274]
push eax
mov dword [ebp + 0x6c], ebx
push ebx
jmp 0x1002dc3
test byte [ebp - 0x1d0], 4
jne 0x1002db5
test byte [ebp - 0x1d0], 1
je 0x1002db5
mov eax, dword [ebp + 0x7c]
cmp dword [ebp + 0x6c], eax
je 0x1002d7f
cmp eax, 0xffffffff
jne 0x1002db5
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x270]
push eax
mov word [ebp - 0x14], 0x9c
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
mov ecx, dword [ebp + 0x64]
lea eax, [ebp - 0x270]
push eax
call fcn.01002c33
test eax, eax
jne 0x1002de0
inc dword [ebp + 0x6c]
push ebx
lea eax, [ebp - 0x274]
push eax
push dword [ebp + 0x6c]
push ebx
call esi
test eax, eax
jne 0x1002d60
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x274]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x38], ebx
mov dword [ebp - 0x10], 0x180020
call dword [ebp + 0x68]
test eax, eax
jne 0x1002e2b
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x274]
push eax
call dword [ebp + 0x68]
test eax, eax
jne 0x1002e1c
xor esi, esi
inc esi
jmp 0x1002e1e
xor esi, esi
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x1002dd6
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x1002dd6
Function at 0x10032a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.010020e0
lea eax, [esi + 0x154]
push eax
mov dword [esi], 0x100131c
mov dword [eax], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10032ef
mov ecx, esi
call fcn.01003273
xor ecx, ecx
lea edx, [esi + 0x38]
push edx
push ecx
lea eax, [esi + 0x140]
push eax
push 0x10029a9
push ecx
push ecx
mov dword [eax], esi
mov dword [esi + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
mov eax, esi
pop esi
ret

Function at 0x1003562
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.010020e0
lea eax, [esi + 0x154]
push eax
mov dword [esi], 0x1001388
mov dword [eax], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10035c2
lea ecx, [esi + 0x40]
push ecx
xor edx, edx
push edx
lea eax, [esi + 0x148]
push eax
push 0x10034e0
push edx
push edx
mov dword [eax], esi
mov dword [ecx], 0x400115
mov dword [esi + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
push 2
push eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov ecx, esi
call fcn.0100354b
mov eax, esi
pop esi
ret

Function at 0x1003ceb
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [0x100a684], 0
je 0x1003d6f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [ebp + 8]
add eax, 4
push eax
lea eax, [ebp - 0x400]
push 0x1001404
push eax
call fcn.01004a9a
lea eax, [ebp - 0x400]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003d28
push esi
push edi
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub eax, edx
lea eax, [ebp + eax - 0x400]
push eax
call fcn.01004a43
lea edi, [ebp - 0x400]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003d51
lea eax, [ebp - 0x400]
mov esi, 0x1001400
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
leave
ret
Function at 0x1003d97
Capabilities:
Create service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push 0xf003f
xor ebx, ebx
push ebx
mov esi, ecx
push ebx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x1003dc4
xor eax, eax
jmp 0x1003ee6
push 0x104
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x118]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
lea eax, [esi + 4]
push eax
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1003edb
mov eax, dword [ebp - 8]
push edi
push 0xe
pop ecx
mov esi, 0x1001450
lea edi, [ebp - 0x218]
add eax, 4
mov dword [ebp - 4], ebx
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003e26
lea edi, [ebp - 0x218]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1003e36
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x218]
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
pop edi
jne 0x1003ed2
lea eax, [ebp - 0x118]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003e72
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
lea eax, [ebp - 0x118]
push eax
push 2
push ebx
push 0x100143c
push dword [ebp - 4]
call esi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
push 0x100142c
push dword [ebp - 4]
mov dword [ebp - 0x10], 7
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
push ebx
push ebx
add eax, 4
push eax
push 0x64
push 4
call fcn.01003c84
xor ebx, ebx
inc ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x10043d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push ebx
push edi
push 4
pop eax
mov edx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov ecx, 0x142
lea edi, [ebp - 0x518]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x518]
push eax
mov ecx, edx
xor ebx, ebx
mov dword [ebp - 0x518], 0x508
call fcn.010026a9
test eax, eax
jne 0x1004418
xor al, al
jmp 0x1004487
push esi
push 0x12
lea eax, [ebp - 0x514]
push 0x1001764
push eax
lea esi, [ebp - 0x514]
call fcn.01004b40
add esp, 0xc
test eax, eax
jne 0x100443f
lea esi, [ebp - 0x502]
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop esi
jne 0x1004485
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x100175c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100447c
mov bl, byte [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop ebx
leave
ret