joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0290
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a02be
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a02dc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a01f6
jmp 0x4a02dc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a02dc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a01f6
test edi, edi
mov eax, edi
jne 0x4a02c6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4053e0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ecx
push esi
push edi
sub esp, 8
mov esi, eax
mov edi, edx
xor edx, edx
mov ecx, eax
inc eax
cmp byte [ecx], 0
je 0x4053f7
inc edx
jmp 0x4053ec
push 0
lea eax, [esp + 4]
push eax
push edx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push 0xfffffffffffffff4
mov word [esp + 0x18], 0xa0d
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, edi
jmp 0x402390

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x402470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x425004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x62c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x618], 0
mov dword [ebp - 0x610], 0
test ecx, ecx
jne 0x4024d5
push ecx
lea eax, [ebp - 0x608]
push eax
push 4
lea eax, [ebp - 0x618]
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405531
mov esp, ebp
pop ebp
ret 8
push esi
push ecx
mov ecx, edi
call fcn.00402380
mov esi, eax
test esi, esi
jne 0x402510
push eax
lea eax, [ebp - 0x608]
push eax
push 4
lea eax, [ebp - 0x618]
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405531
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
lea ecx, [ebp - 0x614]
push ecx
push 0
lea ecx, [ebp - 0x604]
push ecx
lea ecx, [ebp - 0x610]
push ecx
push esi
call dword [eax + 0x18]
mov eax, dword [esi]
lea ecx, [ebp - 0x620]
push ecx
push dword [ebp - 0x610]
push esi
call dword [eax + 0x10]
push 0
lea eax, [ebp - 0x608]
push eax
push 4
lea eax, [ebp - 0x620]
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
nop dword [eax]
mov eax, dword [esi]
lea ecx, [ebp - 0x614]
push ecx
push pe_nt_image_headers32
lea ecx, [ebp - 0x604]
push ecx
lea ecx, [ebp - 0x610]
push ecx
push esi
call dword [eax + 0x18]
cmp dword [ebp - 0x614], 0
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x61c], 0
jbe 0x40268b
lea ebx, [ebp - 0x604]
push 0
lea eax, [ebp - 0x608]
push eax
push 4
push ebx
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x628]
mov dword [ebp - 0x60c], 0
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x624]
push ecx
lea ecx, [ebp - 0x60c]
push ecx
push 0xff
lea ecx, [ebp - 0x204]
push ecx
push dword [ebx]
push esi
call dword [eax + 0x30]
mov eax, dword [ebp - 0x60c]
add eax, eax
push 0
mov dword [ebp - 0x60c], eax
lea eax, [ebp - 0x608]
push eax
push 4
lea eax, [ebp - 0x60c]
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x608]
push eax
push dword [ebp - 0x60c]
lea eax, [ebp - 0x204]
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x608]
push eax
push 4
lea eax, [ebp - 0x624]
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x608]
push eax
push 4
lea eax, [ebp - 0x628]
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x61c]
add ebx, 4
inc eax
mov dword [ebp - 0x61c], eax
cmp eax, dword [ebp - 0x614]
jb 0x4025a3
mov eax, dword [ebp - 0x62c]
test eax, eax
je 0x402560
push dword [ebp - 0x610]
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.00405531
mov esp, ebp
pop ebp
ret 8
Function at 0x4026c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [edx]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
push edx
mov dword [ebp - 0x18], 0
call dword [eax + 0x2c]
test eax, eax
jne 0x40279b
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x10]
push edx
push 0x41d450
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x402792
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x402792
lea edx, [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ecx]
push edx
push 0
push 0
push 0x12
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x402789
mov dword [ebp + 0xc], 0
lea edx, [ebp + 0xc]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x1c]
test eax, eax
jne 0x402789
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402789
mov eax, dword [ecx]
lea edx, [ebp + 0x10]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x402780
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x402780
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
push ecx
call dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cdq
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push 8
push edi
push dword [eax + 0x18]
call ebx
test eax, eax
je 0x402809
add esi, dword [ebp + 0x10]
add edi, dword [ebp + 0x10]
cmp esi, 8
jb 0x4027b0
mov eax, dword [ebp - 0x18]
lea edi, [ebp + 0x10]
mov dword [ebp + 0x10], eax
xor esi, esi
nop dword [eax + eax]
push 0
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push 4
push edi
push dword [eax + 0x18]
call ebx
test eax, eax
je 0x40281e
add esi, dword [ebp + 0xc]
add edi, dword [ebp + 0xc]
cmp esi, 4
jb 0x4027e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x424658
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], str.Write_Error
push eax
call fcn.004069d9
push 0x424658
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], str.Write_Error
push eax
call fcn.004069d9
int3
Function at 0x403152
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x22f], bl
jne 0x4032e8
cmp byte [esi + 0x22b], bl
jne 0x4032e8
cmp byte [esi + 0x22e], bl
je 0x4032e8
cmp byte [esi + 0x228], bl
jne 0x4032e8
lea eax, [ebp - 0x270]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4032e8
lea eax, [ebp - 0x16c]
push eax
push ebx
lea eax, [ebp - 0x270]
push str.Setup
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4032e8
lea eax, [ebp - 0x16c]
push ebx
push eax
lea ecx, [esi + 0x240]
call fcn.00406e1e
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4032e8
push edi
push ebx
push 0x4000000
push 3
push ebx
push 1
lea eax, [ebp - 0x16c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x10
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
push str.__clone_of_
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x68], 0x44
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24c]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.0040171c
push 0x40a2f0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.0040171c
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esi + 0x234]
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0040171c
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
call fcn.00406e1e
push eax
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x10]
call fcn.004016cb
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x24]
call fcn.004032ee
cmp dword [ebp - 8], 0xffffffff
pop edi
je 0x4032e4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4032ea
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x40737a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x4073cc
push eax
call fcn.00401c7e
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4073cc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40a614
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4073d0
xor al, al
jmp 0x407431
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x40742f
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00401c7e
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x40742f
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x40741d
mov al, 1
pop ebx
leave
ret 4

Function at 0x13bf001
Capabilities:
Parse pe header

Disassembly:
jmp 0x13fe010
push 0
call dword [0x143d0e8]
test eax, eax
je 0x13fe04f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x13fe04f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x13fe04f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x13fe04f
cmp dword [ecx + 0x74], 0xe
jbe 0x13fe04f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x13bf31c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x13d4fe0
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x146af90], eax
pop edi
pop esi
ret
Function at 0x4016a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x360
mov eax, dword [0x444e60]
xor eax, esp
push esi
push edi
mov edi, dword [esp + 0x36c]
mov dword [esp + 0x364], eax
lea eax, [esp + 0x15c]
push 0x104
push eax
mov esi, ecx
call fcn.00402760
add esp, 8
lea ecx, [esp + 0x58]
push ecx
push 0
push 0x43895c
lea edx, [esp + 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x58]
push eax
push edi
push str._s__s
push edi
call fcn.0041ed40
lea ecx, [esp + 0x270]
push ecx
lea edx, [esi + 0xba0]
push edx
call fcn.00402670
mov eax, dword [esi + 0x11a4]
push eax
lea ecx, [esp + 0x54]
push 0x438950
push ecx
call fcn.0041ed40
mov edx, dword [esi + 0x11a8]
push edx
lea eax, [esp + 0x50]
push 0x438950
push eax
call fcn.0041ed40
mov ecx, dword [esi + 0x11ac]
push ecx
lea edx, [esp + 0x7c]
push 0x438950
push edx
call fcn.0041ed40
mov edx, dword [esi + 0x11b0]
xor eax, eax
test edx, edx
setne al
lea ecx, [esp + 0x44]
push eax
push 0x438950
push ecx
call fcn.0041ed40
mov eax, dword [esi + 0x11b4]
add esp, 0x48
xor edx, edx
test eax, eax
setne dl
lea eax, [esp + 0x18]
push edx
push 0x438950
push eax
call fcn.0041ed40
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
lea ecx, [esp + 0x58]
push ecx
lea edx, [esi + 0xa0]
push edx
push str.PROTOCOL
push str.neffymansp
call edi
lea eax, [esp + 0x58]
push eax
lea ecx, [esi + 0x1a0]
push ecx
push str.BROKER
push str.neffymansp
call edi
lea edx, [esp + 0x58]
push edx
lea eax, [esi + 0x2a0]
push eax
push str.PROVIDER
push str.neffymansp
call edi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esi + 0x3a0]
push edx
push str.SKINURL
push str.neffymansp
call edi
lea eax, [esp + 0x58]
push eax
lea ecx, [esi + 0x4a0]
push ecx
push str.SKINPATH
push str.neffymansp
call edi
lea edx, [esp + 0x58]
push edx
lea eax, [esi + 0x5a0]
push eax
push str.SKINVERSION
push str.neffymansp
call edi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x3c]
push edx
push str.MAXSPEED
push str.neffymansp
call edi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str.LIMITSENDBPS
push str.neffymansp
call edi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x4c]
push eax
push str.MINRECVBPS
push str.neffymansp
call edi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esi + 0x9a0]
push edx
push str.HASH
push str.neffymansp
call edi
lea eax, [esp + 0x58]
push eax
lea ecx, [esi + 0xaa0]
push ecx
push str.TITLE
push str.neffymansp
call edi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x264]
push eax
push str.DEFAULTDIR
push str.neffymansp
call edi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0xc]
push edx
push str.AUTOSTART
push str.neffymansp
call edi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.AUTOCLOSE
push str.neffymansp
call edi
lea edx, [esp + 0x58]
push edx
add esi, 0xfa0
push esi
push str.SUPERPEER
push str.neffymansp
call edi
mov ecx, dword [esp + 0x364]
pop edi
pop esi
xor ecx, esp
call fcn.0041f1a4
add esp, 0x360
ret 4
Function at 0x401a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401a6d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401a8e
cmp esi, eax
jae 0x401a67
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401a80
cmp esi, eax
jae 0x401a67
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401c10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x26c
mov eax, dword [0x444e60]
xor eax, esp
push esi
push edi
mov dword [esp + 0x270], eax
lea eax, [esp + 8]
push eax
mov esi, ecx
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x28]
push edx
push str.EXEPATH
push str.SoftwareCDNetworksNeffyManSp
push 0x80000002
mov dword [esp + 0x20], 0x104
mov byte [esp + 0x80], 0
call fcn.00402310
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x188]
push 0x438960
push ecx
call fcn.0041ed40
add esp, 0x24
lea edx, [esp + 0x16c]
push edx
mov ecx, esi
call fcn.004016a0
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x28]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18c]
push eax
push 0
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 1
mov word [esp + 0x7c], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
pop esi
jne 0x401d26
push eax
push eax
lea ecx, [esp + 0xc]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 4]
push 0
push 0
push edx
call fcn.0043442a
xor eax, eax
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0041f1a4
add esp, 0x26c
ret
mov ecx, dword [esp + 0x268]
xor ecx, esp
mov eax, 1
call fcn.0041f1a4
add esp, 0x26c
ret
Function at 0x402380
Capabilities:
Get file version info

Disassembly:
sub esp, 0x40
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x50]
lea eax, [esp + 0xc]
push eax
push edi
xor ebp, ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x402444
push ebx
push esi
call fcn.00432113
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebx, eax
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40242d
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x4389ac
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40242d
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x2c]
movzx edx, ax
push edx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x68]
push str._d__d__d__d
push eax
call fcn.0041ed40
add esp, 0x18
mov ebp, 1
test ebx, ebx
je 0x40243a
push ebx
call fcn.0043210e
add esp, 4
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x40
ret
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x40
ret
Function at 0x409b30
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
lea edx, [ecx + eax]
mov eax, 0x1505
cmp ecx, edx
jae 0x409b57
push esi
mov esi, eax
shl esi, 5
add eax, esi
movsx esi, byte [ecx]
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x409b45
pop esi
ret

Function at 0x40cad0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov esi, dword [edi + 0x334]
mov dword [esp + 0x14], eax
mov ebp, dword [eax + 0x9c]
test ebp, ebp
jne 0x40caff
mov eax, dword [eax + 0x98]
test eax, eax
mov ebp, eax
jne 0x40caff
mov ebp, 0x12c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp + ebp*4]
mov ecx, dword [esi + 0x18]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x14]
mov ebp, eax
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x14], 0
push ecx
call ebx
test ebp, ebp
mov dword [esi + 0x18], 0
mov bl, 1
jne 0x40cb6e
mov edx, dword [esi]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40cbc6
mov eax, dword [esi]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x32c], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40cb8e
mov ecx, dword [edi + 0x328]
mov dword [eax], ecx
mov eax, dword [edi + 0x328]
xor esi, esi
test eax, eax
jne 0x40cc70
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x40cbe2
push ebp
mov esi, ebp
call fcn.0041aec0
mov edx, dword [esp + 0x18]
push eax
push 0x4411b8
push edx
call fcn.0040dc60
add esp, 0x10
jmp 0x40cc70
mov ecx, dword [edi + 0x330]
push ecx
call dword [0x4384f8]
mov edx, dword [esi]
lea ebp, [esi + 8]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x40cb7e
mov al, byte [edi + 0x32c]
test al, al
je 0x40cc44
mov al, byte [edi + 0xe7]
test al, al
mov eax, dword [edi + 0x330]
push eax
push edi
je 0x40cc21
call fcn.0041b260
mov ecx, dword [edi + 0x48]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push 0x441198
push edx
call fcn.0040dc60
add esp, 0x18
mov esi, 5
jmp 0x40cc70
call fcn.0041b260
mov ecx, dword [edi + 0x34]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push 0x441178
push edx
call fcn.0040dc60
add esp, 0x18
mov esi, 6
jmp 0x40cc70
cmp ebp, 0xffffffff
je 0x40cc55
cmp dword [edi + 0x330], 0x2afc
jne 0x40cc6b
mov eax, dword [edi + 0x34]
mov ecx, dword [esp + 0x14]
push eax
push 0x441158
push ecx
call fcn.0040dc60
add esp, 0xc
mov esi, 0x1c
lea edx, [edi + 0x320]
push edx
call fcn.0040c9f0
mov eax, dword [edi + 0x328]
add esp, 4
test eax, eax
jne 0x40cc8f
mov byte [edi + 0xe4], bl
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x419570
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
mov eax, dword [esp + 0x108]
push eax
call fcn.004219c8
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4195a0
lea ecx, [esp]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp]
test edx, edx
je 0x4195c5
mov al, byte [esp]
test al, al
je 0x4195c5
lea eax, [esp]
push eax
call dword [0x4400b0]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret