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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x108
mov eax, dword [ecx + 8]
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0xf0], eax
mov eax, dword [0x405094]
test eax, eax
je 0x401d90
mov dword [esp], edi
call dword [0x405094]
movzx eax, al
bt eax, esi
jae 0x401de8
mov ebx, dword [0x405084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ebx
je 0x401c98
test byte [0x402018], 8
jne 0x401d30
lea ebx, [ebp - 0xe0]
mov dword [ebp - 0xec], ebx
test byte [0x402028], 8
jne 0x401ce8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call dbg.sprintf
mov edx, dword [ebp - 0xf0]
test edx, edx
je 0x401c67
cmp esi, 3
jbe 0x401ca8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x14], edx
mov edx, dword [esi*4 + 0x4030dc]
add edi, 1
add eax, dword [ebp - 0xec]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
mov dword [esp + 8], str._s:_s:_s
add edx, 0xc8
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x401c67
mov dword [esp], 0x402028
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x401c35
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xec]
mov dword [esp], eax
call dbg.sprintf
add dword [ebp - 0xec], eax
jmp 0x401c35
mov dword [esp], 0x402018
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x401c1c
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
shr edx, 6
imul ebx, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, ebx
lea ebx, [ebp - 0xe0]
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
call dbg.sprintf
add eax, ebx
mov dword [ebp - 0xec], eax
jmp 0x401c28
mov ebx, dword fs:[0x18]
mov ecx, dword [ebx + 0x34]
mov dword [esp], str.ntdll.dll
mov dword [ebp - 0xec], ecx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 4], str.__wine_dbg_get_channel_flags
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov edx, dbg.fallback__wine_dbg_get_channel_flags
sub esp, 8
test eax, eax
cmove eax, edx
mov edx, 0x405094
lock xchg dword [edx], eax
mov ecx, dword [ebp - 0xec]
mov dword [ebx + 0x34], ecx
jmp 0x401be2
mov eax, 0xffffffff
jmp 0x401c98
Function at 0x407350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40735f
pop dword [ebp - 0x38]
mov eax, 0x40735f
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x40956
push 0
mov eax, 0x3d903553
sub eax, 0x3d4de33b
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xc31588e0
add ecx, 0x3ceaca71
mov edx, eax
mov edi, 0x87cf0463
add edi, 0x78744f9d
add edi, dword [ebp - 0x38]
mov esi, 0xba8c59e3
sub esi, 0xa066d786
mov ebx, dword [edi]
xor dword [ebp - 0x24], 0x2bec7f1e
xor ebx, esi
add dword [ebp - 4], ecx
mov dword [edx], ebx
xor dword [ebp - 0xc], 0xdce2bef2
add edx, 0xef6538f6
sub edx, 0xef6538f2
add edi, 4
loop 0x4073b9
add eax, 0x4a2a5a49
add eax, 0xb5d6e5ce
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x402c00
pop dword [ebp - 0x10]
mov eax, 0xff68b782
add eax, 0xd7747e
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xd6a573c3
sub dword [ebp - 0x20], 0x88532e78
mov dword [ebp - 0x1c], 0xecc0eca6
sub dword [ebp - 0x1c], 0xba8da061
mov dword [ebp - 0x18], 0xa5e270c4
add dword [ebp - 0x18], 0xa669d36a
mov dword [ebp - 0x14], 0xbec4001d
add dword [ebp - 0x14], 0x413bffe3
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xb16218f
add dword [ebp - 0x20], 0x695c47c7
mov dword [ebp - 0x1c], 0xdf534ed0
add dword [ebp - 0x1c], 0x621912a5
mov dword [ebp - 0x18], 0x5014bb54
sub dword [ebp - 0x18], 0xeca54ee8
mov dword [ebp - 0x14], 0x3b7ac3f3
add dword [ebp - 0x14], 0xc4853c0d
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3a4aa
push 0
call eax
mov ecx, 0x5669
mov esi, eax
mov edi, 0xea248b4f
add edi, 0x161c74b1
add edi, dword [ebp - 0x10]
mov ebx, 0x42249f38
xor dword [ebp - 8], 0xd17abc63
mov edx, dword [edi]
add dword [ebp - 8], eax
add edx, ebx
mov dword [esi], edx
add dword [ebp - 4], 0xdc307886
add esi, 4
add edi, 4
loop 0x402d0c
add eax, 0x9b085fc9
add eax, 0x64f8ecae
mov ebx, eax
add eax, 5
mov ecx, 0xcd731eed
sub ecx, 0xcd331eed
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x402e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x404148
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x407018]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x402fd7
cmp byte [edi + 0x45], 0
je 0x402fd7
push 0xffffffffffffffff
call fcn.004022d0
cmp eax, 0xffffffff
jne 0x402eb0
xor al, al
jmp 0x402fd9
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.00402c60
mov dword [esp + 0x40], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp ebx, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x402f0f
dec eax
je 0x402f13
sub eax, 2
je 0x402fbd
xor bl, bl
jmp 0x402fbf
mov byte [edi + 0x45], 0
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ebx, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub esi, eax
je 0x402f4b
push dword [edi + 0x50]
lea eax, [esp + 0x1c]
push esi
cmp ebx, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x402f08
cmp byte [edi + 0x45], 0
je 0x402fbd
test esi, esi
jne 0x402ec4
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x402fb2
lea esi, [ecx + 8]
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00403170
test al, al
je 0x402ec4
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
cmovae ecx, dword [esp + 0x18]
xorps xmm0, xmm0
movq qword [ecx + eax], xmm0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], esi
mov byte [eax + esi], 0
jmp 0x402ec4
push str.string_too_long
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const__]
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x402fd3
push dword [esp + 0x18]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x402fd9
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004035b2
mov esp, ebp
pop ebp
ret

Function at 0x40d2b5
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x40d2bb
pop dword [ebp - 0x20]
mov eax, 0xa9fffee2
invalid
daa
sub al, 0xbf
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x401bd7
pop dword [ebp - 8]
mov eax, 0xad39aca6
add eax, 0x53066f31
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xc0c2f093
sub dword [ebp - 0x18], 0x7270ab48
mov dword [ebp - 0x14], 0x3e5a52ab
sub dword [ebp - 0x14], 0xc270666
mov dword [ebp - 0x10], 0x1bfcb0b6
add dword [ebp - 0x10], 0x304f9378
mov dword [ebp - 0xc], 0xd96578a2
sub dword [ebp - 0xc], 0xd96578a2
lea eax, [ebp - 0x18]
push eax
mov eax, 0xeb3c5d5d
sub eax, 0xeafbecfd
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xca1c4dfc
sub dword [ebp - 0x18], 0x55a9e4a6
mov dword [ebp - 0x14], 0x375badb0
sub dword [ebp - 0x14], 0xf5ef4c3b
mov dword [ebp - 0x10], 0x8b3145ca
sub dword [ebp - 0x10], 0x27c1d95e
mov dword [ebp - 0xc], 0x8016a5f
add dword [ebp - 0xc], 0xf7fe95a1
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3863f
push 0
call eax
mov ecx, 0x76a8b8c3
sub ecx, 0x76a86980
xor edi, edi
add edi, eax
mov ebx, 0x3817b0ce
add ebx, 0xc8294f32
add ebx, dword [ebp - 8]
mov esi, 0x68863b1f
xor dword [ebp - 4], 0x1286fb51
mov edx, dword [ebx]
xor dword [ebp - 4], esi
sub edx, esi
add dword [ebp - 4], 0x549208b2
mov dword [edi], edx
mov dword [ebp - 4], 0xe2f87031
add edi, 0x2686646c
sub edi, 0x26866468
add ebx, 4
loop 0x401cf0
add eax, 0x12fdf
xor ebx, ebx
add ebx, eax
add eax, 0x1f660b5f
add eax, 0xe099f4a6
mov ecx, 0x2e0a8e57
sub ecx, 0x2dca8e57
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x78b337c3
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x69852009
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x405770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40577f
pop dword [ebp - 0x1c]
mov eax, 0xe32bde99
add eax, 0x1d1478e6
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x5811b
push 0
mov eax, 0x3d0e0285
add eax, 0xc336b037
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xd67aa039
add ecx, 0x2985c772
xor edi, edi
add edi, eax
mov edx, 0x487e00
add edx, dword [ebp - 0x1c]
mov esi, 0x3ee2c414
sub esi, 0xa598166a
add dword [ebp - 0xc], ecx
mov ebx, dword [edx]
xor dword [ebp - 0xc], 0x2b5e55a9
sub ebx, esi
sub dword [ebp - 8], esi
mov dword [edi], ebx
sub dword [ebp - 0x18], ecx
add edi, 0x4ff55266
add edi, 0xb00aad9e
add edx, 4
loop 0x4057da
add eax, 0x561046c3
sub eax, 0x560eb544
mov ebx, eax
add eax, 0xd482459a
sub eax, 0xd4824595
mov ecx, 0xa9149c23
sub ecx, 0xa8d49c23
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x407320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40732f
pop dword [ebp - 0x48]
mov eax, 0x8531d1f7
sub eax, 0x84f15ec8
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x35434
push 0
mov eax, 0x6a6c372e
sub eax, 0x6a2b5656
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x37e7
mov edx, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x48]
mov esi, 0xd74fba53
sub esi, 0x94309f2f
add dword [ebp - 4], ebx
mov edi, dword [ebx]
sub dword [ebp - 4], 0xd1c4dfb8
xor edi, esi
mov dword [ebp - 0x20], 0x9fe19429
mov dword [edx], edi
add dword [ebp - 0x44], edx
add edx, 4
add ebx, 0xeac51279
sub ebx, 0xeac51275
loop 0x407382
add eax, 0xd26f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x40893c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x4085d8
pop eax
and edi, edi
call fcn.0040895b
xor dword [ebx], eax
add esi, 0x2fe1e94f
inc ebx
sub esi, edi
cmp ebx, edx
jne fcn.0040893c
sub esi, edi
ret
Function at 0x403e36
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe2c
mov eax, dword [0x42cc20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x400
mov dword [ebp - 0xe28], eax
lea eax, [ebp - 0x610]
push 0
push eax
mov ebx, ecx
call fcn.00410670
add esp, 0xc
push ebx
lea eax, [ebp - 0x610]
push 0x1ff
push eax
call fcn.0040e672
mov eax, ebx
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x403e87
sub eax, ecx
sar eax, 1
lea edi, [ebp + eax*2 - 0x60e]
mov ecx, 0x80
mov esi, 0x4317f0
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x403ead
sub eax, ecx
sar eax, 1
mov esi, 0x10000
push esi
lea ebx, [eax + eax + 0x202]
call fcn.0040f30c
pop ecx
push esi
xor edi, edi
push edi
push eax
mov dword [ebp - 0xe1c], eax
call fcn.00410670
add esp, 0xc
xor eax, eax
push 0x7fe
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push edi
push eax
mov dword [ebp - 0xe24], esi
call fcn.00410670
add esp, 0xc
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0xe18], edi
mov dword [ebp - 0xe20], edi
mov dword [ebp - 0xe14], edi
call fcn.00410670
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0xe28]
lea ecx, [ebp - 0xe10]
lea esi, [ebp - 0xe18]
call fcn.00403889
pop ecx
test eax, eax
je 0x40403c
push ebx
lea eax, [ebp - 0x610]
push eax
mov esi, 0xbba
push esi
lea ecx, [ebp - 0xe10]
lea edx, [ebp - 0xe18]
call fcn.00403972
add esp, 0xc
test eax, eax
je 0x40403c
push dword [ebp - 0xe1c]
lea eax, [ebp - 0xe14]
push eax
lea edx, [ebp - 0xe10]
lea ebx, [ebp - 0xe24]
lea ecx, [ebp - 0xe18]
call fcn.00403b2f
pop ecx
pop ecx
test eax, eax
je 0x40403c
cmp word [ebp - 0xe14], si
jne 0x40403c
cmp dword [ebp - 0xe24], 0
je 0x40403c
mov eax, dword [ebp - 0xe1c]
cmp byte [eax], 0
jne 0x40403c
push 0x4319f0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040e5f5
and dword [ebp - 0xe14], 0
add esp, 0xc
push 0x427b64
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xe14]
push eax
call fcn.0040e947
add esp, 0xc
cmp dword [ebp - 0xe14], 0
je 0x404032
lea eax, [ebp - 0xe14]
push eax
lea edi, [ebp - 0xe18]
call fcn.0040407b
pop ecx
mov dword [ebp - 0xe20], 1
cmp dword [ebp - 0xe1c], 0
je 0x404051
push dword [ebp - 0xe1c]
call fcn.0040f3d6
pop ecx
cmp dword [ebp - 0xe18], 0
je 0x404066
push dword [ebp - 0xe18]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe20]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e5e6
leave
ret
Function at 0x409780
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
jmp 0x40979a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4097a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409790
mov eax, 1
add ebx, ebx
jne 0x4097b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4097a8
jne 0x4097c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4097a8
xor ecx, ecx
sub eax, 3
jb 0x4097d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40984a
mov ebp, eax
add ebx, ebx
jne 0x4097e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4097f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409814
inc ecx
add ebx, ebx
jne 0x409800
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4097f5
jne 0x409811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4097f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409834
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409825
jmp 0x409796
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409834
add edi, ecx
jmp 0x409796
pop esi
mov edi, esi
mov ecx, 0x1f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409852
cmp byte [edi], 0
jne 0x409852
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 0x409857
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x4098c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb1f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb244]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409884
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb24c]
or eax, eax
je 0x4098c0
mov dword [ebx], eax
add ebx, 4
jmp 0x4098a1
call dword [esi + 0xb248]
mov ebp, dword [esi + 0xb250]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x4098fa
sub esp, 0xffffff80
jmp 0x401d10