joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4547e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x462c00]
cmp dword [eax + 0x30], 0
je 0x454892
cmp dword [ebx + 0x94], 0
jne 0x45488c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454778
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45488c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x454852
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45488c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a6a8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454861
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455370
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4553a5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404530
jmp 0x4553b2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404494
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4563d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456411
mov eax, esi
call fcn.0043c8f4
test al, al
je 0x456411
mov eax, dword [ebx + 0x84]
call fcn.0043c5f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456411
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c5f0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4580d4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4176d8]
call fcn.00404e1c
xor eax, eax
push ebp
push 0x458218
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x460d8c], 0
jne 0x458127
mov ecx, dword [0x460eb4]
mov dl, 1
mov eax, dword [0x407804]
call fcn.0040be10
call fcn.00403ea0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402fe0
mov eax, ebx
call fcn.00404c8c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x458228
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040619c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c9c
test eax, eax
jle 0x4581bf
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4581b8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004046c0
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004046a8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408604
test eax, eax
jne 0x4581b8
mov ebx, 0x15
jmp 0x4581c4
mov ebx, 0x10
jmp 0x4581c4
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x460d8c]
call fcn.0045802c
mov eax, dword [ebp - 8]
call fcn.0045802c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004061b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45821f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404464
lea eax, [ebp - 0x10]
mov edx, dword [0x4176d8]
call fcn.00404eec
ret
Function at 0x404f94
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [edi + 5]
push eax
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x4050b7
test edi, edi
jle 0x4051ff
mov ecx, edi
dec ecx
test ecx, ecx
jl 0x4051ff
inc ecx
xor esi, esi
mov eax, ebx
add eax, 5
xor edx, edx
push edx
push eax
mov eax, esi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x90
inc esi
dec ecx
jne 0x4050cd
jmp 0x4051ff
mov byte [ebx], 0xe9
mov edx, ebx
mov eax, edx
add eax, 5
push eax
mov eax, dword [ebp - 4]
pop ecx
sub eax, ecx
inc edx
mov dword [edx], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
add edi, 5
push edi
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x40530d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407364
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
jmp 0x407488
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x40], 0xe9
jne 0x40795a
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4075c5
cmp byte [ebp - 5], 5
je 0x4075d5
cmp byte [ebp - 5], 0xa
jne 0x407727
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [ebp - 4]
call fcn.00406d94
mov dword [ebp - 0x10], eax
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
mov byte [eax], 0xb8
jmp 0x407704
push 4
lea ecx, [ebp - 0x10]
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
inc edx
mov eax, dword [0x4121bc]
mov eax, dword [eax]
call fcn.0040409c
jmp 0x407849
mov dword [ebp - 0x14], 0x4120b4
jmp 0x40782c
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.0040409c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x407954
mov byte [ebp - 6], 1
jmp 0x40795e
mov byte [ebp - 6], 0
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret

Function at 0x407968
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
jmp 0x407a5c
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x40], 0xe9
jne 0x407cc1
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x407b74
push 5
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
lea ecx, [edx + eax + 0x40]
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
call fcn.0040409c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x407cbb
mov byte [ebp - 6], 1
jmp 0x407cc5
mov byte [ebp - 6], 0
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret
Function at 0x410320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x410446
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00410829
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, dword [0x4121c0]
mov eax, dword [eax]
call fcn.00409f7c
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x2c
call fcn.004057ac
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00403740
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004041bc
mov eax, dword [ebp - 0x1c]
call fcn.004037e4
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, 5
call fcn.004057ac
mov edx, eax
lea eax, [ebp - 0x28]
call fcn.00403740
mov edx, dword [ebp - 0x28]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004041bc
mov eax, dword [ebp - 0x24]
call fcn.004037e4
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x2b
call fcn.004057ac
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00403740
mov edx, dword [ebp - 0x30]
mov eax, dword [0x4121bc]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004041bc
mov eax, dword [ebp - 0x2c]
call fcn.004037e4
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004108f4
add esp, 0x20
push 1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41044d
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00403660
ret
Function at 0x41058a
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
push 0x4120f0
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
add esp, 8
mov edi, eax
push 2
push 0
push edi
call sub.msvcrt.dll_fseek
add esp, 0xc
push edi
call sub.msvcrt.dll_ftell
pop ecx
mov esi, eax
push esi
call sub.msvcrt.dll_malloc
pop ecx
mov ebx, eax
push 0
push 0
push edi
call sub.msvcrt.dll_fseek
add esp, 0xc
push edi
push esi
push 1
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
push edi
call sub.msvcrt.dll_fclose
pop ecx
mov eax, ebx
mov edx, dword [eax + 0x3c]
add edx, ebx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
movzx edi, word [ecx + 6]
mov eax, dword [eax + 0x3c]
add eax, ebx
add eax, 0xf8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push dword [edx + 0x78]
push esi
push edi
push dword [ebp - 0xc]
call fcn.0041054c
add esp, 0x10
add eax, ebx
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x4106b5
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x20]
push esi
push edi
push dword [ebp - 0xc]
call fcn.0041054c
add esp, 0x10
lea edx, [ebx + eax]
mov ecx, dword [ebp - 4]
push dword [edx + ecx*4]
push esi
push edi
push dword [ebp - 0xc]
call fcn.0041054c
add esp, 0x10
add eax, ebx
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
jne 0x4106b2
mov eax, dword [ebp - 0x10]
push dword [eax + 0x24]
push esi
push edi
push dword [ebp - 0xc]
call fcn.0041054c
add esp, 0x10
lea edx, [ebx + eax]
mov ecx, dword [ebp - 4]
movzx eax, word [edx + ecx*2]
push eax
mov edx, dword [ebp - 0x10]
push dword [edx + 0x1c]
push esi
push edi
push dword [ebp - 0xc]
call fcn.0041054c
add esp, 0x10
lea ecx, [ebx + eax]
pop eax
push dword [ecx + eax*4]
push esi
push edi
push dword [ebp - 0xc]
call fcn.0041054c
add esp, 0x10
mov esi, eax
push ebx
call sub.msvcrt.dll_free
pop ecx
mov eax, esi
jmp 0x4106c4
inc dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [ebp - 4]
ja 0x410625
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4106cb
Capabilities:
Allocate or change rwx memory
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.004104b0
add esp, 8
mov ebx, eax
test esi, esi
je 0x410786
test edi, edi
je 0x410786
push 0x104
lea eax, [ebp - 0x110]
push eax
push esi
call sub.kernel32.dll_GetModuleFileNameA
push edi
lea edx, [ebp - 0x110]
push edx
call fcn.0041058a
add esp, 8
mov edi, eax
cmp edi, 0xffffffff
je 0x410786
push 0x4120f3
lea ecx, [ebp - 0x110]
push ecx
call sub.msvcrt.dll_fopen
add esp, 8
mov esi, eax
push 0
push edi
push esi
call sub.msvcrt.dll_fseek
add esp, 0xc
push esi
push 5
push 1
lea eax, [ebp - 8]
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
push esi
call sub.msvcrt.dll_fclose
pop ecx
lea edx, [ebp - 0xc]
push edx
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
lea ecx, [ebp - 8]
mov eax, dword [ecx]
mov dword [ebx], eax
mov dl, byte [ebp - 4]
mov byte [ebx + 4], dl
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xc]
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41078d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4107c0
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], 0x8b55ff8b
mov byte [ebx + 4], 0xec
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
pop ebx
pop ecx
pop ebp
ret

Function at 0x4107c4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4107dd
mov edi, dword fs:[0x30]
mov eax, dword [edi + 8]
ret
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x1c]
mov dword [ebp - 4], ebx
jmp 0x410807
push esi
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
call sub.kernel32.dll_lstrcmpiW
test eax, eax
je 0x410810
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4107ef
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x410821
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
jmp 0x410823
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4108f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor ebx, ebx
push 0x200
call sub.msvcrt.dll_malloc
pop ecx
mov esi, eax
push 0
push 0
push 0
push 0
push dword [ebp + 0x1c]
call dword [ebp + 8]
mov dword [ebp - 8], eax
push 0
push dword [ebp + 0x24]
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 8]
call dword [ebp + 0xc]
mov edi, eax
jmp 0x410969
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.004108c7
add esp, 0x10
add ebx, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebx + 0x200]
push ecx
push esi
call sub.msvcrt.dll_realloc
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x200
lea edx, [ebp - 0x208]
push edx
push edi
call dword [ebp + 0x10]
cmp dword [ebp - 4], 0
jne 0x41093b
push edi
call dword [ebp + 0x14]
push dword [ebp - 8]
call dword [ebp + 0x14]
push 0x4121a9
push dword [ebp + 0x20]
call sub.msvcrt.dll_fopen
add esp, 8
mov edi, eax
push edi
push 1
push ebx
push esi
call sub.msvcrt.dll_fwrite
add esp, 0x10
push edi
call sub.msvcrt.dll_fclose
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d306
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1000d346
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0x4fa0
push 0x23a2
push 0x2fc1
push 0
push dword [ebp - 4]
push 0xe39
push dword [ebp - 8]
call fcn.10020f56
add esp, 0x1c
jmp 0x1000d384
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1000d366
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
jmp 0x1000d384
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x1000d384
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x1002bc94
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002bcc7
push 1
push 0x285c
push 0x7c95
push 0x73d7
push 0x6501
push 0x2af9
call fcn.1002bd10
add esp, 0x18
jmp 0x1002bd0c
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1002bcee
push 1
push 0
push 0x40f
call dword [sym.imp.USER32.dll_SetWindowRgn]
jmp 0x1002bd0c
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1002bd0c
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x10030815
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100308cc
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10030863
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x10030861
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x100308ca
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0xffffffe7
jmp 0x10030885
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x2e
je 0x100308ca
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100308b1
push 0
push 1
push 0x24e4
push 0
push 0x55ee
call fcn.100318ca
add esp, 0x14
mov byte [ebp - 2], 0
lea eax, [ebp - 2]
push eax
push 0
push 0x488d
call fcn.1003ce22
add esp, 0xc
jmp 0x1003087a
jmp 0x100308de
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
push 1
push dword [ebp - 0x24]
call fcn.1002749b
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x10030e1b
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x10030eb4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10030e67
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x10030eb2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10030e95
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jge 0x10030eb2
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.10021a50
mov dword [eax], 0xee8c4b05
jmp 0x10030e8a
jmp 0x10030ee4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
push 0x1942
push 0x50ce
push dword [ebp - 0x20]
push 0x3dae
push 1
push 0x6f59
push dword [ebp - 0x24]
call fcn.100274b0
add esp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x10032a88
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10032ae4
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10032ac2
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10032ac0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x10032ae2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x10032ae2
push 0
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
jmp 0x10032b23
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
push 0x711d
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0x3b20
push 0x3b5
push 0x659a
push 0x49d9
push 1
push 0x7f3a
push 0x684c
call fcn.1002b98a
add esp, 0x28
mov esp, ebp
pop ebp
ret

Function at 0x10032b27
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10032b54
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x550c
push 1
push 0x7093
push dword [ebp - 4]
call fcn.10032b9a
add esp, 0x10
jmp 0x10032b96
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10032b76
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x10032b96
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x10032b96
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov esp, ebp
pop ebp
ret

Function at 0x10033d44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10033d95
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10033d81
mov byte [ebp - 1], 0
push 0xccb
push 1
push 1
push 0x3565
lea eax, [ebp - 1]
push eax
call fcn.100312be
add esp, 0x14
jmp 0x10033d93
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x10033d9d
push 0
call fcn.1002feb9
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10035978
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100359cf
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x100359b1
mov byte [ebp - 1], 0
push 1
push 0x7e07
push 1
lea eax, [ebp - 1]
push eax
call fcn.100327ed
add esp, 0x10
jmp 0x100359ca
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x100359ca
push 0x16cd
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x10035ac0
lea eax, [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x10035a1e
mov byte [ebp - 3], 0
movzx eax, byte [ebp - 3]
test eax, eax
je 0x10035a19
push 0xb0f
push 0xbde
push 0x35b
push 0x25db
push 0
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x10035ac0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0x1a
jmp 0x10035a58
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xfffffffe
jle 0x10035ac0
mov dword [ebp - 0xc], 0xfffffffd
mov dword [ebp - 0x3c], 0xc42206dd
mov dword [ebp - 0x30], 0x811fc80a
cmp dword [ebp - 0xc], 0
je 0x10035a7d
jmp 0x10035ac0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push 0x7e5a
push 0x1a03
push dword [ebp - 0x38]
push 0
push 0x7db
push 1
push 0x69b3
push dword [ebp - 8]
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x1e7a
lea eax, [ebp - 0xc]
push eax
push 0x495f
call fcn.1003667b
add esp, 0x3c
jmp 0x10035a4d
mov esp, ebp
pop ebp
ret