joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4104ae
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
push 0x4120f0
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
add esp, 8
mov edi, eax
push 2
push 0
push edi
call sub.msvcrt.dll_fseek
add esp, 0xc
push edi
call sub.msvcrt.dll_ftell
pop ecx
mov esi, eax
push esi
call sub.msvcrt.dll_malloc
pop ecx
mov ebx, eax
push 0
push 0
push edi
call sub.msvcrt.dll_fseek
add esp, 0xc
push edi
push esi
push 1
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
push edi
call sub.msvcrt.dll_fclose
pop ecx
mov eax, ebx
mov edx, dword [eax + 0x3c]
add edx, ebx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
movzx edi, word [ecx + 6]
mov eax, dword [eax + 0x3c]
add eax, ebx
add eax, 0xf8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push dword [edx + 0x78]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410470
add esp, 0x10
add eax, ebx
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x4105d9
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x20]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410470
add esp, 0x10
lea edx, [ebx + eax]
mov ecx, dword [ebp - 4]
push dword [edx + ecx*4]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410470
add esp, 0x10
add eax, ebx
push eax
call sub.msvcrt.dll_strcmp
add esp, 8
test eax, eax
jne 0x4105d6
mov eax, dword [ebp - 0x10]
push dword [eax + 0x24]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410470
add esp, 0x10
lea edx, [ebx + eax]
mov ecx, dword [ebp - 4]
movzx eax, word [edx + ecx*2]
push eax
mov edx, dword [ebp - 0x10]
push dword [edx + 0x1c]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410470
add esp, 0x10
lea ecx, [ebx + eax]
pop eax
push dword [ecx + eax*4]
push esi
push edi
push dword [ebp - 0xc]
call fcn.00410470
add esp, 0x10
mov esi, eax
push ebx
call sub.msvcrt.dll_free
pop ecx
mov eax, esi
jmp 0x4105e8
inc dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [ebp - 4]
ja 0x410549
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4105ef
Capabilities:
Allocate or change rwx memory
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.004103d4
add esp, 8
mov ebx, eax
test esi, esi
je 0x4106aa
test edi, edi
je 0x4106aa
push 0x104
lea eax, [ebp - 0x110]
push eax
push esi
call sub.kernel32.dll_GetModuleFileNameA
push edi
lea edx, [ebp - 0x110]
push edx
call fcn.004104ae
add esp, 8
mov edi, eax
cmp edi, 0xffffffff
je 0x4106aa
push 0x4120f3
lea ecx, [ebp - 0x110]
push ecx
call sub.msvcrt.dll_fopen
add esp, 8
mov esi, eax
push 0
push edi
push esi
call sub.msvcrt.dll_fseek
add esp, 0xc
push esi
push 5
push 1
lea eax, [ebp - 8]
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
push esi
call sub.msvcrt.dll_fclose
pop ecx
lea edx, [ebp - 0xc]
push edx
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
lea ecx, [ebp - 8]
mov eax, dword [ecx]
mov dword [ebx], eax
mov dl, byte [ebp - 4]
mov byte [ebx + 4], dl
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xc]
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4106b1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4106e4
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], 0x8b55ff8b
mov byte [ebx + 4], 0xec
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
pop ebx
pop ecx
pop ebp
ret

Function at 0x4106e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x410701
mov edi, dword fs:[0x30]
mov eax, dword [edi + 8]
ret
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x1c]
mov dword [ebp - 4], ebx
jmp 0x41072b
push esi
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
call sub.kernel32.dll_lstrcmpiW
test eax, eax
je 0x410734
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x410713
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x410745
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
jmp 0x410747
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x410818
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor ebx, ebx
push 0x200
call sub.msvcrt.dll_malloc
pop ecx
mov esi, eax
push 0
push 0
push 0
push 0
push dword [ebp + 0x1c]
call dword [ebp + 8]
mov dword [ebp - 8], eax
push 0
push dword [ebp + 0x24]
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 8]
call dword [ebp + 0xc]
mov edi, eax
jmp 0x41088d
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.004107eb
add esp, 0x10
add ebx, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebx + 0x200]
push ecx
push esi
call sub.msvcrt.dll_realloc
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x200
lea edx, [ebp - 0x208]
push edx
push edi
call dword [ebp + 0x10]
cmp dword [ebp - 4], 0
jne 0x41085f
push edi
call dword [ebp + 0x14]
push dword [ebp - 8]
call dword [ebp + 0x14]
push 0x4121a9
push dword [ebp + 0x20]
call sub.msvcrt.dll_fopen
add esp, 8
mov edi, eax
push edi
push 1
push ebx
push esi
call sub.msvcrt.dll_fwrite
add esp, 0x10
push edi
call sub.msvcrt.dll_fclose
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x75aa6942
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..pdata_1
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xcdb2d2e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
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
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402458
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push edi
mov eax, esi
call fcn.00402632
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push bind
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
je 0x40257b
push 0xfe
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
push str.SMSNF100
call sub.msvcrt.dll_strlen
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
add esp, 0x10
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x108]
mov dword [ebp - 8], ebx
call edi
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push str.SMSNF100
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x402515
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push str.SMSNF200
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x402515
mov eax, esi
call fcn.00402632
xor eax, eax
jmp 0x402587
lea eax, [ebp - 0x103]
push eax
call sub.msvcrt.dll_atoi
pop ecx
push ebx
mov dword [esi + 0x110], eax
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [esi + 0x108]
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
lea ecx, [eax - 1]
cmp cx, 0xfe
ja 0x40257b
push ebx
movzx eax, ax
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x108]
call edi
push 4
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + 0x118]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
cmp dword [esi + 0x108], 0xffffffff
setne al
pop edi
pop ebx
leave
ret

Function at 0x4025a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, eax
xor esi, esi
cmp dword [edi + 0x114], esi
mov dword [edi + 0x110], 0xc8
je 0x4025c9
push 0x41a960
call fcn.004069fc
pop ecx
push edi
call fcn.004065e6
cmp eax, 0xffffffff
pop ecx
mov dword [edi + 0x10c], eax
je 0x402622
push str.SMSNF200
push eax
mov dword [ebp - 4], esi
call fcn.004065ff
pop ecx
pop ecx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 8]
push eax
push dword [edi + 0x10c]
mov dword [ebp - 8], 4
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [edi + 0x118]
push eax
push dword [edi + 0x10c]
call esi
xor eax, eax
cmp dword [edi + 0x10c], 0xffffffff
pop edi
setne al
pop esi
leave
ret
Function at 0x404a54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4306f0]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 4], ebx
jne 0x404a96
push 0x41ab84
push 0x73
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, ebx
je 0x404a8f
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
je 0x404a8f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x404a91
xor eax, eax
mov dword [0x4306f0], eax
cmp eax, ebx
mov esi, eax
je 0x404ae1
mov bl, byte [eax]
jmp 0x404abe
push 2
lea eax, [esi + 1]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll__memicmp
add esp, 0xc
test eax, eax
movzx eax, bl
je 0x404ac5
lea esi, [esi + eax + 3]
mov bl, byte [esi]
sub bl, 0x41
jne 0x404aa0
jmp 0x404ae1
push eax
add esi, 3
push esi
push edi
call sub.msvcrt.dll_memcpy
movzx eax, bl
add esp, 0xc
mov byte [eax + edi], 0
mov dword [ebp - 4], 1
cmp byte [edi], 0
pop esi
pop ebx
jne 0x404af3
push dword [ebp + 8]
push edi
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x404afa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4306f4]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 4], ebx
jne 0x404b3c
push 0x41ab84
push 0x76
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, ebx
je 0x404b35
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
je 0x404b35
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x404b37
xor eax, eax
mov dword [0x4306f4], eax
cmp eax, ebx
mov esi, eax
je 0x404b87
mov bl, byte [eax]
jmp 0x404b64
push 2
lea eax, [esi + 1]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll__memicmp
add esp, 0xc
test eax, eax
movzx eax, bl
je 0x404b6b
lea esi, [esi + eax + 3]
mov bl, byte [esi]
sub bl, 0x41
jne 0x404b46
jmp 0x404b87
push eax
add esi, 3
push esi
push edi
call sub.msvcrt.dll_memcpy
movzx eax, bl
add esp, 0xc
mov byte [eax + edi], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x406774
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.004065cd
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x406803
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4067ec
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4067ec
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x4067f5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x40680c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x406ac1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x406c9f
Capabilities:
Get common file path

Disassembly:
cmp byte [0x4306f8], 0
push esi
mov esi, 0x4306f8
jne 0x406cbf
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x430800], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x430800]
pop ecx
pop ecx
pop esi
ret

Function at 0x40704e
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x41a57f
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret
Function at 0x408b3d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push dword [ebp + 8]
mov esi, eax
call fcn.004065cd
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x408bae
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
test edi, edi
jbe 0x408ba6
call fcn.004089b3
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push edi
push eax
push ebx
mov dword [esi], eax
call fcn.00407256
mov eax, dword [esi]
add esp, 0x10
mov byte [edi + eax], 0
call fcn.004089d6
mov eax, dword [esi]
test eax, eax
je 0x408b9f
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [esi], 0
pop ecx
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4

Function at 0x409159
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00419b10
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x423b58
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x41a57f
push dword [ebp + 8]
push 0x423c60
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
pop esi
je 0x4091c5
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_strcpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4091c9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00419b10
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x423b58
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x41a57f
push dword [ebp + 8]
mov esi, 0x423c60
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
jne 0x409231
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x409233
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4094e4
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00406ac1
test eax, eax
pop ecx
je 0x409552
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x423b58
push edi
call sub.msvcrt.dll_strcpy
push str.general
mov esi, 0x423c60
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
push edi
push 0
push 0x41aee0
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
push edi
push 0x3f
dec eax
push 0x423cb0
neg eax
push 0x41a57f
sbb eax, eax
push str.charset
inc eax
push esi
mov dword [0x423ca8], eax
mov byte [0x423cb0], 0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
pop edi
pop esi
ret
Function at 0x40c806
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov esi, eax
push esi
call fcn.0040c7e8
test eax, eax
je 0x40c87c
push 0x41b1b8
lea edi, [ebp - 0x104]
call fcn.004069fc
pop ecx
push 2
mov eax, edi
push eax
call fcn.0040c5be
test eax, eax
je 0x40c887
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c857
mov eax, edi
push eax
call fcn.00406774
pop ecx
jmp 0x40c85d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40c86d
push dword [esi + 0x108]
call fcn.00406643
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x40c887
lea edi, [esi + 0xa48]
call fcn.00413810
pop edi
pop esi
leave
ret

Function at 0x40d3e4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 0xa94]
push 0x41a57f
or eax, 0xffffffff
mov edi, ebx
mov dword [ebp - 8], ebx
call fcn.0040797c
mov edi, dword [esi + 0xa44]
push 0x9c6f
push esi
call fcn.0040c77c
mov eax, ebx
call fcn.004079c0
test eax, eax
jle 0x40d4d2
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
mov edi, str.NirSoft_IPNetInfo
push edi
call esi
mov ebx, eax
test ebx, ebx
jne 0x40d4a1
mov ebx, dword [ebp + 8]
add ebx, 0xaa8
cmp byte [ebx], al
je 0x40d4d2
push 0x3ff
push eax
mov byte [ebp - 0x40c], al
lea eax, [ebp - 0x40b]
push eax
call sub.msvcrt.dll_memset
push ebx
lea eax, [ebp - 0x40c]
push str.__s___nodlgstart
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x18
push 5
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x40d4d2
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x500
push ebx
call esi
mov eax, dword [ebp - 8]
call fcn.00407970
push eax
mov eax, dword [ebp - 8]
call fcn.004079c0
push eax
push 0x501
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40e5f3
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
push ebx
push edi
mov ebx, 0x259
call fcn.00408c97
push 0x3ff
mov dword [ebp - 8], eax
lea eax, [ebp - 0x50f]
push 0
push eax
mov dword [ebp - 4], str..ssp
mov byte [ebp - 0x510], 0
call sub.msvcrt.dll_memset
lea eax, [ebp - 8]
push 1
push eax
lea ebx, [ebp - 0x510]
call fcn.00407445
push 0x104
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call sub.msvcrt.dll_memset
add esp, 0x20
push 0x12
pop ebx
call fcn.00408c97
mov ecx, dword [esi + 0x108]
push 0x41b340
push eax
lea eax, [ebp - 0x510]
push eax
xor ebx, ebx
lea edi, [ebp - 0x110]
call fcn.004071e0
add esp, 0xc
test eax, eax
pop edi
pop ebx
je 0x40e6a6
mov eax, dword [esi + 0x90c]
cmp byte [eax], 0
je 0x40e6a6
push 0
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
leave
ret
Function at 0x40e941
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp eax, 4
push edi
je 0x40e969
cmp eax, 5
jne 0x40e95b
cmp dword [esi + 0xbc0], 2
je 0x40e9ac
jmp 0x40e969
cmp eax, 6
jne 0x40e997
cmp dword [esi + 0xbc0], 2
jne 0x40e9ac
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
lea edi, [esi + 0xa58]
push eax
mov eax, edi
call fcn.004079c0
push eax
mov eax, edi
call fcn.00407970
push eax
push dword [esi + 0xbcc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x40e9ac
cmp eax, 7
jne 0x40e9a4
push esi
call fcn.0040dcee
jmp 0x40e9ac
push eax
mov eax, esi
call fcn.0040defd
pop edi
leave
ret
Function at 0x40f78b
Capabilities:
Delete registry key
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0xeec
push ebx
push esi
push edi
mov dword [0x420ca8], eax
call fcn.00404b90
test eax, eax
jne 0x40f7b1
inc eax
jmp 0x40f9ca
push str.riched20.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
call fcn.00413a70
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00412c70
lea eax, [esp + 0xd68]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], 0x20
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], edi
call fcn.0040f3b0
push dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xd68], eax
call fcn.00407aee
mov esi, dword [esp + 0xd60]
push str._nocapdriver
call fcn.00407c69
test eax, eax
jge 0x40f858
mov esi, 0x4305b0
call fcn.00414e7b
mov esi, dword [esp + 0xd60]
push str._savelangfile
call fcn.00407c69
test eax, eax
jl 0x40f881
mov dword [0x423cac], 0x420c70
call fcn.0040965a
jmp 0x40f9a4
call fcn.00409553
mov esi, dword [esp + 0xd60]
push str._deleteregkey
call fcn.00407c69
test eax, eax
jl 0x40f8b0
push str.SoftwareNirSoftSmartSniff
push bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40f9a4
mov eax, dword [esp + 0xd60]
cmp dword [eax + 0x30], 1
jle 0x40f8ce
lea eax, [esp + 0x60]
call fcn.0040f6ac
test eax, eax
jne 0x40f9a4
push 0x67
push dword [0x420ca8]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
lea esi, [esp + 0x60]
mov dword [esp + 0x180], eax
call fcn.0040f373
cmp dword [esp + 0x190], 3
jne 0x40f8fa
push 3
jmp 0x40f8fc
push 5
push dword [esp + 0x16c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x168]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea eax, [esp + 0x50]
push eax
call ebx
test eax, eax
je 0x40f998
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageA]
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x184]
push dword [esp + 0x170]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x40f98a
mov eax, dword [0x423abc]
cmp eax, edi
je 0x40f962
lea ecx, [esp + 0x44]
push ecx
push eax
call esi
test eax, eax
jne 0x40f98a
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x16c]
call esi
test eax, eax
jne 0x40f98a
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push edi
push edi
lea eax, [esp + 0x50]
push eax
call ebx
test eax, eax
jne 0x40f930
call dword [sym.imp.WS2_32.dll_WSACleanup]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ebx, [esp + 0x60]
call fcn.0040f575
lea esi, [esp + 0x10]
call fcn.0040785e
lea esi, [esp + 0x30]
call fcn.00412aa4
lea esi, [esp + 0x10]
call fcn.0040785e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10