joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013a0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x401461
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401461
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp + 8]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x401457
cmp dword [ebp + 8], 1
jne 0x401457
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edi, [ebp - 0x108]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 4]
not ecx
dec ecx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 7
push ebx
mov byte [ebp + ecx - 0x107], bl
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret
Function at 0x401464
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], edi
je 0x401625
cmp byte [eax], 0
je 0x401625
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
je 0x401625
cmp byte [ebx], 0
je 0x401625
lea ecx, [ebp + 8]
push ecx
push 0xf003f
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401625
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 8]
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40161b
cmp dword [ebp - 8], 7
jne 0x40161b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, dword [ebp + 0xc]
jg 0x40161b
push dword [ebp + 0xc]
call fcn.00401be2
mov ebx, eax
pop ecx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push ebx
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 0xc]
cmp byte [ebx], 0
mov edi, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
je 0x401576
mov eax, dword [ebp + 0xc]
add eax, ebx
cmp edi, eax
ja 0x401576
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 0x14]
mov esi, eax
inc esi
push edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401548
add edi, esi
mov dword [ebp - 0xc], edi
jmp 0x401571
mov ecx, ebx
mov dword [ebp - 0x10], 1
sub ecx, esi
add esi, edi
sub ecx, edi
add ecx, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
sub dword [ebp + 0xc], eax
mov edi, dword [ebp - 0xc]
cmp byte [edi], 0
jne 0x40151d
cmp dword [ebp + 0x18], 0
je 0x4015e7
cmp dword [ebp - 0x10], 0
je 0x4015e7
push dword [ebp - 4]
call fcn.00401be2
pop ecx
mov dword [ebp + 0x18], eax
push dword [ebp + 0x14]
push 0x40a1f0
push eax
call fcn.00401b90
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov esi, ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 0x18]
mov dword [ebp + 0x14], edi
push edx
lea edi, [eax + edx + 1]
mov eax, dword [ebp + 0x14]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
mov esi, edx
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0xc], eax
call fcn.00401b85
pop ecx
cmp byte [ebx], 0
jne 0x4015fa
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x401614
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jb 0x401614
push eax
push ebx
push 7
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call fcn.00401b85
pop ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x401629
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov ebx, 0x104
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push ebx
push eax
call edi
test eax, eax
je 0x4016b5
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push str._sINF_s.INF
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.004016ba
add esp, 0x14
test eax, eax
jne 0x4016b5
lea eax, [ebp - 0x104]
push ebx
push eax
call edi
test eax, eax
je 0x4016b5
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push str._sINF_s.PNF
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4018b7
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 2
lea eax, [ebp - 0x10c]
push ebx
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4018fc
xor eax, eax
jmp 0x401943
push esi
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x40193b
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401935
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
je 0x401935
mov dword [ebp - 4], ebx
push edi
call esi
mov ebx, dword [ebp - 4]
push dword [ebp - 8]
call esi
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40198c
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
lea eax, [ebp - 0x114]
push 0x40a1f0
push eax
mov dword [ebp - 8], 1
call fcn.00401b90
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x114]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 4]
mov ecx, ebx
push eax
xor ebx, ebx
push 0xf003f
lea eax, [ebp - 0x114]
and ecx, 3
push ebx
push eax
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401a63
push 4
lea eax, [ebp + 8]
pop edi
mov esi, str.DeleteFlag
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
mov dword [ebp + 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401a58
cmp dword [ebp - 0xc], 1
jne 0x401a55
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp + 0xc]
push edi
push eax
push edi
push ebx
push str.Start
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x401a58
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401a66
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a6e
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x401b27
push edi
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
je 0x401b14
lea eax, [ebp - 0x24]
push esi
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401af8
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x24]
push eax
push edi
call esi
test eax, eax
je 0x401aeb
cmp dword [ebp - 0x20], 3
jne 0x401aeb
mov eax, ebx
inc ebx
cmp eax, 0xa
je 0x401af1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push edi
jmp 0x401ac5
cmp dword [ebp - 0x20], 1
je 0x401af8
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
pop esi
jne 0x401b0b
mov dword [ebp - 4], 2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401b1b
mov dword [ebp - 4], 3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
jmp 0x401b2e
mov dword [ebp - 4], 4
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x403b89
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a5c8
cmp edx, dword [eax]
je 0x403bab
add eax, 8
inc ecx
cmp eax, 0x40a658
jl 0x403b9c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a5c8]
jne 0x403cd9
mov eax, dword [0x40cf20]
cmp eax, 1
je 0x403cb3
test eax, eax
jne 0x403bdc
cmp dword [0x40a274], 1
je 0x403cb3
cmp edx, 0xfc
je 0x403cd9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403c13
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004059c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404f30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403c56
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404f30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40856c
push edi
call fcn.00406110
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004059c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004059d0
lea eax, [ebp - 0xa0]
push 0x40854c
push eax
call fcn.004059d0
push dword [esi + 0x40a5cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004059d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040607f
add esp, 0x2c
pop edi
jmp 0x403cd9
lea eax, [ebp + 8]
lea esi, [esi + 0x40a5cc]
push 0
push eax
push dword [esi]
call fcn.00404f30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10036ee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebx
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x34], edx
mov edx, dword [ecx + 0x38]
or dword [eax + 0x3c], 0xffffffff
mov dword [eax + 0x38], edx
mov dl, byte [ecx + 0x3c]
mov byte [eax + 0x40], dl
mov edx, dword [eax + 0x2c]
xor ebx, ebx
cmp edx, ebx
mov byte [eax + 0x41], bl
jne 0x1003764
mov dword [eax + 0x44], ebx
jmp 0x1003797
cmp edx, 3
je 0x1003790
cmp edx, 5
je 0x1003790
cmp edx, 2
je 0x1003790
cmp edx, 1
je 0x100377d
cmp edx, 4
jne 0x1003797
mov dl, byte [eax + 0x30]
not dl
movzx edx, dl
shr edx, 5
and edx, 1
mov dword [eax + 0x44], edx
jmp 0x1003797
mov dword [eax + 0x44], 1
mov dword [eax + 0x48], ebx
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x58], edx
mov edx, dword [ecx + 0x44]
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 0x48]
mov dword [eax + 0x60], edx
mov edx, dword [ecx + 0x50]
mov dword [eax + 0x68], edx
mov edx, dword [ecx + 0x54]
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0x58]
mov dword [eax + 0x70], edx
mov edx, dword [ecx + 0x5c]
mov dword [eax + 0x74], edx
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x78], edx
mov edx, dword [ecx + 0x64]
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x68]
mov dword [eax + 0x80], edx
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x84], edx
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x88], edx
mov edx, dword [ecx + 0x74]
mov dword [eax + 0x90], edx
mov edx, dword [ecx + 0x78]
mov dword [eax + 0x94], edx
mov edx, dword [ecx + 0x7c]
mov dword [eax + 0x98], edx
mov edx, dword [ecx + 0x80]
mov dword [eax + 0x9c], edx
mov ecx, dword [ecx + 0x84]
mov dword [eax + 0xa4], ebx
mov dword [eax + 0xa0], ecx
pop ebx
ret
Function at 0x40eea0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [esp + 4], 0x41d41a
mov dword [esp], ebp
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
je 0x40ef48
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov dword [esi], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_fseek
mov eax, dword [esi]
inc eax
mov dword [esp], eax
call sub.avutil_50.dll_av_malloc
mov dword [edi], eax
test eax, eax
je 0x40ef88
mov dword [esp + 0xc], ebx
mov edx, dword [esi]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi]
mov eax, dword [esi]
mov byte [edx + eax], 0
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], str.Cannot_read_file__s:__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0040cd68
call sub.msvcrt.dll__errno
mov eax, dword [eax]
neg eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.Could_not_allocate_file_buffer_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.0040cd68
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, 0xfffffff4
jmp 0x40ef40

Function at 0x40fbf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
Function at 0x40fc40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x40fc66
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40fcfa
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x40fcb5
cmp eax, 0x40
je 0x40fcb5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x40fc59
cmp eax, 0x40
je 0x40fc59
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x40fc59
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040fbf0
lea esi, [esi]
lea edi, [edi]
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x403450
push 0x67
push edi
call esi
push 0x64
push 0x403388
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x401180
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 0x6d
mov dword [ebp - 0xc], 0x403388
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x403450
push 0x403388
push 0
mov dword [0x403380], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x4010ea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012d9
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
push 0
push eax
call esi
test eax, eax
je 0x401161
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop word [eax + eax]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401150
lea eax, [ebp - 0x50]
push eax
call edi
lea eax, [ebp - 0x50]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
call esi
test eax, eax
jne 0x401130
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
pop edi
pop esi
call fcn.004012d9
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401b0f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b4e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b4e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b4e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b4e
cmp dword [ecx + 0x74], 0xe
jbe 0x401b4e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403d3a
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00403eea
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x403e38
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x403ddb
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x403e1e
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x403df2
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x403e0d
test al, 0x40
je 0x403e04
mov ecx, dword [edi + 0x20]
jmp 0x403e0b
test al, 0x80
je 0x403e1e
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x403e1e
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x403daa
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x42b870
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49c91b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00490aac
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42b8f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048e16d
mov eax, dword [eax]
push 0x4d723c
push eax
call fcn.004801a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00490d37
test bl, bl
je 0x42b8f2
push 0x4d723c
lea ecx, [esp + 0xc]
call fcn.004910c7
push 0x4dadc4
lea ecx, [esp + 0xc]
call fcn.004910c7
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42b92e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00490d37
jmp 0x42b9f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x42b9b2
lea edx, [esp + 0x7c]
push 0x4dadc0
push edx
call fcn.004801a4
add esp, 8
test eax, eax
je 0x42b9b2
lea eax, [esp + 0x7c]
push 0x4dadbc
push eax
call fcn.004801a4
add esp, 8
test eax, eax
je 0x42b9b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42b942
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00490d37
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x42c1f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42c252
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc