joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d1b
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
jne 0x1001d46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001294
jmp 0x1001da8
lea eax, [ebp - 0xc]
push eax
push 0x1001280
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1001d69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001258
jmp 0x1001da8
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
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]
test eax, eax
jne 0x1001db4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001230
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x6ca1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006ca140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006ca140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006ca140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006ca140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6cabfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6cac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6dc87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6cac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6cac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402d24
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403f58
test esi, esi
jne 0x402d5b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404048
jmp 0x402d7c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402bc0
mov dword [esp], eax
test esi, esi
je 0x402d7c
cmp dword [ebx], 0
je 0x402d7c
dec esi
jmp 0x402d63
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x402ebc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x419008], 0x8088405
inc edx
mov dword [ebx + 0x419008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402ed8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x419008], 0x8088405
inc edx
mov dword [ebx + 0x419008], edx
fld qword [ebx + 0x419068]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x40330c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x419024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403384
xor eax, eax
push ebp
push 0x40337d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4033c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403384
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x419024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x419024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403dd4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41d044], 0
je 0x403e35
cmp word [0x41d218], 0xd7b2
jne 0x403dfd
cmp dword [0x41d220], 0
jbe 0x403dfd
mov eax, 0x41d214
call dword [0x41d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x419078
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403e5c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x419034], 0
jne 0x403e51
push 0
push 0x419070
push 0x419078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4059f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405a5a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004041c8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f00
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a44
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a61
lea eax, [ebp - 0x10]
call fcn.00403f58
ret
Function at 0x405f28
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, 0x41d66c
jmp 0x405f40
push 0x4060ec
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebx], eax
push 0x4060fc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4190c4], eax
push 0x40610c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d674], eax
push 0x40611c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d678], eax
push 0x40612c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d67c], eax
push 0x40613c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d680], eax
push 0x40614c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d684], eax
push 0x40615c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d688], eax
push 0x40616c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d690], eax
push 0x406178
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d68c], eax
push 0x406184
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d69c], eax
push 0x406190
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d694], eax
push 0x40619c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d698], eax
push 0x4061ac
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d6a0], eax
push 0x4061c0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d6a4], eax
push 0x4061d0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d6a8], eax
push 0x4061e4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d6b8], eax
push 0x4061f8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d6bc], eax
push 0x406208
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d6c0], eax
push 0x40621c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d6c4], eax
push 0x406228
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d6c8], eax
push 0x406234
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d6cc], eax
push 0x406240
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x41d6d4], eax
jmp 0x4060e8
pop ebx
ret

Function at 0x40a478
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a4b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404048
jmp 0x40a4ba
mov eax, ebx
mov edx, esi
call fcn.00403fac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a4c4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a4e5
mov al, byte [esp]
jmp 0x40a4e7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ab7c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a9e4
mov eax, dword [0x41c170]
cmp byte [eax], 0
je 0x40abf8
mov eax, dword [0x41c060]
call fcn.00402e38
call fcn.00402aec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407dcc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ac40
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ac2e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41c038]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41d660]
call fcn.00404e9c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40b940
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b9a4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004041c8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407980
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9ab
lea eax, [ebp - 0xc]
call fcn.00403f58
ret
Function at 0x41425c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, eax
shr edi, 8
mov esi, eax
shr esi, 0x18
and edi, 0xff00
add esi, edi
mov edi, eax
and edi, 0xff00
and eax, 0xff
shl edi, 8
mov ebx, 0x4193f0
shl eax, 0x18
add esi, edi
add esi, eax
mov eax, esi
not eax
jmp 0x4142ad
movzx edi, byte [edx]
mov esi, eax
inc edx
shr esi, 0x18
xor esi, edi
shl eax, 8
mov esi, dword [ebx + esi*4 + 0x1000]
xor esi, eax
dec ecx
mov eax, esi
test ecx, ecx
je 0x4142b6
test dl, 3
jne 0x414293
sub edx, 4
cmp ecx, 0x20
jb 0x4144ee
Function at 0x40231f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov dword [ebp - 0xc], esi
call fcn.0040132b
push eax
lea ecx, [ebp - 0xc]
call fcn.00403afc
push 0x422b80
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push str._s_s.
push eax
call fcn.00403df0
push 0x250
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.00409110
add esp, 0x1c
lea eax, [ebp - 0x268]
push esi
push esi
push 1
push eax
push esi
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40239a
lea ecx, [esi - 0x10]
jmp 0x4024da
and dword [ebp - 8], 0
call fcn.0040132b
push eax
lea ecx, [ebp - 8]
call fcn.00403afc
mov eax, dword [ebp - 0x268]
and eax, 0x410
cmp eax, 0x10
jne 0x4024ac
cmp word [ebp - 0x34], 0
lea esi, [ebp - 0x34]
jne 0x4023d0
lea esi, [ebp - 0x23c]
push esi
call fcn.00401fc5
test al, al
jne 0x4024ac
push esi
push dword [ebp + 8]
lea eax, [ebp - 8]
push str._s_s
push eax
call fcn.00403df0
add esp, 0x10
lea eax, [ebp - 0x270]
xor esi, esi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
push esi
push ecx
push eax
push dword [ebp - 8]
call fcn.00401ff9
test eax, eax
js 0x4024ac
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [ebp - 0x26c]
xor eax, eax
or eax, dword [ebp - 0x14]
xor ecx, ecx
or ecx, dword [ebp - 0x270]
or edx, esi
mov esi, dword [ebp - 0x10]
sub eax, ecx
mov dword [ebp - 0x278], eax
sbb esi, edx
and dword [ebp - 0x280], 0
mov eax, esi
and esi, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0x274], esi
fild qword [ebp - 0x278]
mov dword [ebp - 0x27c], eax
push ecx
push ecx
fild qword [ebp - 0x280]
fchs
faddp st(1)
fstp qword [ebp - 0x288]
fld qword [ebp - 0x288]
fstp qword [esp]
call fcn.0041b217
fcomp qword [0x423540]
fnstsw ax
pop ecx
pop ecx
test ah, 5
jnp 0x4024ac
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.0040207e
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4023ac
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00401302
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00401302
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401302
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret 8
Function at 0x4024fb
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0xc], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402537
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402537
xor al, al
jmp 0x4025c8
push ecx
push ecx
mov ecx, dword [edi]
mov esi, esp
sub ecx, 0x10
call fcn.00403b35
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0040231f
mov dword [ebp - 8], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 8]
call fcn.00403afc
push 0x104
lea ecx, [ebp - 8]
call fcn.004036e0
push eax
push ebx
push 0x422b80
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov edi, eax
call fcn.004036b4
test edi, edi
je 0x4025bb
cmp edi, 0x6f
je 0x4025bb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4025bb
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x20]
call fcn.004035dd
mov bl, 1
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401302
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret 4

Function at 0x4025d9
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x4025ff
xor al, al
jmp 0x4026ba
xor ebx, ebx
mov dword [ebp - 0xc], ebx
call fcn.0040132b
push eax
lea ecx, [ebp - 0xc]
call fcn.00403afc
push 0x104
lea ecx, [ebp - 0xc]
call fcn.004036e0
push eax
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.004036b4
test esi, esi
js 0x4026ad
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00403668
push 0x422734
lea ecx, [ebp - 8]
call fcn.00403348
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402674
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4026a2
push 0x42295c
lea ecx, [ebp - 8]
call fcn.00403348
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.004024fb
test al, al
je 0x4026a2
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 0x24]
call fcn.004035dd
mov byte [edi + 0x28], 1
mov bl, 1
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401302
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.00401302
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408bf5
leave
ret
Function at 0x402f46
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x426018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00409110
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x403047
cmp eax, esi
jae 0x403047
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], edi
push eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x214], edi
call fcn.00404c4f
test eax, eax
je 0x40303c
push ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], edi
push eax
lea ecx, [ebp - 0x218]
call fcn.00404cf9
mov esi, dword [ebp - 0x210]
cmp dword [esi - 0xc], edi
je 0x403034
cmp dword [esi - 0xc], 7
jl 0x403034
push edi
lea eax, [ebp - 0x21c]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x422920
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403034
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push edi
push 0x422ba4
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00401302
lea ecx, [ebp - 0x218]
call fcn.00404c3b
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408bf5
leave
ret
Function at 0x4088c0
Capabilities:
Parse pe header

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

Function at 0x4131c1
Capabilities:
Encode data using xor

Disassembly:
fisttp word ss:[edi - 0xd]
fisttp word [edi - 0xd]
xor edi, ebx
pushal
sbb ebx, edi
jo 0x4131bf
invalid

Function at 0x4190f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41911d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41911d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4b5e30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4a6015
lea edi, [esi - 0xa5015]
push edi
or ebp, 0xffffffff
jmp 0x4b5e52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b5e59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b5e48
mov eax, 1
add ebx, ebx
jne 0x4b5e6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b5e7c
jne 0x4b5e9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b5e9b
dec eax
add ebx, ebx
jne 0x4b5e88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b5e60
add ebx, ebx
jne 0x4b5e97
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b5eed
xor ecx, ecx
sub eax, 3
jb 0x4b5eb3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b5f22
sar eax, 1
mov ebp, eax
jmp 0x4b5ebe
add ebx, ebx
jne 0x4b5ebe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b5e8c
inc ecx
add ebx, ebx
jne 0x4b5ecc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b5e8c
add ebx, ebx
jne 0x4b5ed9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b5ece
jne 0x4b5eea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b5ece
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b5f0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b5efe
jmp 0x4b5e4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b5f0c
add edi, ecx
jmp 0x4b5e4e
pop esi
mov edi, esi
mov ecx, 0xaca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b5f2a
cmp byte [edi], 7
jne 0x4b5f2a
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 0x4b5f2f
lea edi, [esi + 0xb3000]
mov eax, dword [edi]
or eax, eax
je 0x4b5fa7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1374b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x137554]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b5f5c
mov ecx, edi
jns 0x4b5f8b
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 + 0x137558]
or eax, eax
je 0x4b5fa1
mov dword [ebx], eax
add ebx, 4
jmp 0x4b5f79
call dword [esi + 0x137568]
mov ebp, dword [esi + 0x13755c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4b5fdb
sub esp, 0xffffff80
jmp 0x412a92