joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418cd5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00418c51
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x418e44
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x418e44
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x418df9
jg 0x418d31
test eax, eax
je 0x418def
push 1
push 0x1000
call fcn.0040c92b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x418d54
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x418de6
push 0x8000
push ebx
call fcn.0040ba76
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x418d7d
jg 0x418d78
cmp ecx, 0x1000
jb 0x418d7d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00413c75
add esp, 0x10
cmp eax, 0xffffffff
je 0x418dc2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x418d78
jl 0x418da9
test ecx, ecx
jne 0x418d6a
push dword [ebp - 0xc]
push ebx
call fcn.0040ba76
push esi
call fcn.0040c988
add esp, 0xc
xor ebx, ebx
jmp 0x418e52
cmp byte [edi + 0x24], 0
je 0x418dd9
cmp dword [edi + 0x20], 5
jne 0x418dd9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x418de4
mov ebx, dword [edi + 0x18]
jmp 0x418de6
xor ebx, ebx
push esi
call fcn.0040c988
pop ecx
jmp 0x418e52
test ecx, ecx
jg 0x418dbb
jl 0x418df9
test eax, eax
jae 0x418dbb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004181d8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x418e19
cmp byte [edi + 0x1c], 0
je 0x418dbb
jmp 0x418e4a
push ebx
call fcn.00412065
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x418dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x418e52
cmp byte [edi + 0x1c], 0
je 0x418e4f
mov ebx, dword [edi + 0x18]
jmp 0x418e52
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004181d8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41afd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41affd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41affd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4013b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x401420
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x401418
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4040a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x4013dd
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x401af0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x401cc8
mov edx, dword [0x4040a4]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x401cb8
test byte [0x402028], 8
jne 0x401c60
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x402038], 8
jne 0x401c20
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401b7b
cmp dword [ebp + 8], 3
jbe 0x401be0
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x401b8a
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x403130]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x401b7b
mov dword [esp], 0x402038
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x401b50
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x401b50
mov dword [esp], 0x402028
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x401b3d
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [esp + 0x28]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x401b43
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x401bd8
Function at 0x401d50
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4ee604
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4ee661
mov eax, dword [edi + 0x3c]
xor esi, esi
mov ecx, dword [eax + edi + 0x78]
mov eax, dword [ecx + edi + 0x20]
add ecx, edi
add eax, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov ebp, dword [ecx + 0x18]
test ebp, ebp
je 0x4ee661
invalid
mov ebx, dword [esp + 0x1c]
mov ch, byte [ebx]
mov edx, dword [eax + esi*4]
add edx, edi
mov cl, byte [edx]
cmp cl, ch
jne 0x4ee65c
mov eax, ebx
sub edx, ebx
test cl, cl
je 0x4ee669
cmp byte [eax], 0
je 0x4ee669
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, byte [eax]
je 0x4ee646
mov eax, dword [esp + 0x18]
inc esi
cmp esi, ebp
jb 0x4ee637
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4ee694
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0xc]

Function at 0x4ee704
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
sub esp, 0x10
mov eax, dword [eax + 0xc]
add eax, 0xc
nop
mov eax, dword [eax]
cmp dword [eax + 0x30], 0
je 0x4ee714
push ebx
push ebp
push esi
mov esi, dword [eax + 0x18]
mov eax, dword [0x507808]
push edi
push eax
mov dword [esp + 0x20], esi
call fcn.004ee694
Function at 0x40e000
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40e02b
push edx
push ebx
push ecx
push esi
push edi
push ebp
call 0x40e036
pop ebp
sub ebp, 0x36
call fcn.0040e1b1
pushal
mov edx, 0xbe441649
call 0x40e04d
pop edi
mov esi, 0x36
add esi, edi
mov ecx, 0xa3
push esi
sub esi, 9
mov edi, esi
xor eax, eax
lodsb al, byte [esi]
xor eax, edx
rol edx, 5
imul edx, edx, 0xfb712715
add eax, 0xab358cdf
stosb byte es:[edi], al
dec ecx
jne 0x40e063
das
jp 0x40e084
mov esp, 0x874c592f
invalid
mov edx, 0xee0a63b
cmpsb byte [esi], byte es:[edi]
loopne 0x40e097
add eax, 0xd76ae2df
adc al, 0x3c
mov edx, dword [edx]
sub dword [ebx - 0x1a], ebp
jbe 0x40e086
insd dword es:[edi], dx
cdq
in eax, dx
lodsb al, byte [esi]
mov ah, 0xd
xchg ecx, eax
stc
rep lodsd eax, dword [esi]
sub cl, byte [edi - 0x4c50eec3]
inc ebx
pushfd
dec eax
pop ss
retf
Function at 0x10005950
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10021100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 2
mov dword [ebp - 0x130], eax
or edi, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x100059d7
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100059d0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push dword [ebp - 0x130]
lea eax, [ebp - 0x108]
push eax
call ebx
test eax, eax
je 0x100059c9
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100059a3
jmp 0x100059cf
mov edi, dword [ebp - 0x124]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1000e22a
mov esp, ebp
pop ebp
ret

Function at 0x10007450
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10021100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10007488
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e22a
mov esp, ebp
pop ebp
ret 0xc
mov al, byte [ebp + 0x10]
mov byte [esi], al
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1000e22a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100074c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10021100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10007582
cmp dword [ebp + 0x1c], 0
mov bl, byte [ebp + 0x10]
jne 0x10007541
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi], eax
test eax, eax
je 0x10007582
push dword [ebp - 0xc]
push esi
push eax
call fcn.1000ef90
mov eax, dword [edi]
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov byte [eax + edx + 1], bl
mov eax, esi
mov ecx, dword [edi]
sub eax, ecx
sub eax, 5
mov dword [ecx + edx + 2], eax
lea ecx, [esi + 1]
jmp 0x1000754e
mov eax, dword [esi + 1]
lea ecx, [esi + 1]
add eax, 5
add eax, esi
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
sub eax, esi
mov byte [esi], bl
sub eax, 5
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e22a
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e22a
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10008360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10008383
call sym.SouthAmerica.dll_zAnsi
push 0
push 0
push 0
push 0x10005a90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10019730
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001975d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001975d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401239
Capabilities:
Enumerate files on windows

Disassembly:
push 0x348
mov eax, 0x46df45
call fcn.004517f7
mov eax, dword [ebp + 8]
lea esi, [eax + 0xc0]
mov dword [ebp - 0x27c], eax
mov edi, ecx
mov ebx, edx
call fcn.00401912
push edi
lea ecx, [ebp - 0x268]
call fcn.004024c3
and dword [ebp - 4], 0
push 0x477378
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.004017f8
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
lea eax, [ebp - 0x298]
push eax
call fcn.0040184d
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
je 0x40136d
push 0x477398
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004017f8
add esp, 0xc
lea ecx, [ebp - 0x238]
push ecx
push eax
lea eax, [ebp - 0x278]
push eax
mov byte [ebp - 4], 3
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.0040285d
push dword [ebp - 0x268]
mov edx, dword [ebp - 0x278]
push ebx
lea ecx, [ebp - 0x354]
call fcn.0040441b
lea eax, [ebp - 0x354]
push eax
lea edi, [ebp - 0x298]
mov byte [ebp - 4], 6
call fcn.004018a9
lea ecx, [ebp - 0x354]
call fcn.00403ef5
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.0040285d
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4012bd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jle 0x401408
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + ebx*4]
test edi, edi
jle 0x4013fe
mov eax, dword [ebp - 0x284]
mov eax, dword [eax]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov esi, dword [ebp - 0x284]
test eax, eax
je 0x4013b4
cmp eax, dword [ebp - 0x298]
je 0x4013b9
call fcn.0044d6b8
cmp dword [ebp - 0x26c], esi
je 0x4013fe
lea esi, [ebp - 0x270]
call fcn.00408bf0
cmp dword [eax + 0x10], edi
je 0x4013d8
call fcn.004019e0
jmp 0x40139c
mov edi, dword [ebp - 0x27c]
cmp dword [edi + 0xd8], 0x1e
jae 0x4013fe
lea esi, [ebp - 0x270]
call fcn.00408bf0
push eax
add edi, 0xc0
call fcn.004018a9
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0x401378
mov eax, dword [ebp - 0x27c]
mov esi, dword [eax + 0xd8]
lea eax, [ebp - 0x298]
call fcn.0040188a
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, esi
call fcn.0045187a
ret 0xc
Function at 0x4016f7
Capabilities:
Read .ini file

Disassembly:
push 0x88
mov eax, 0x469d03
call fcn.004517f7
and dword [ebp - 0x94], 0
mov esi, ecx
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp + 8]
jle 0x401785
cmp dword [ebp + 8], 0
jl 0x401785
push dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.0042ad58
test eax, eax
jne 0x401731
call fcn.0042a7f8
add eax, 8
push eax
lea ecx, [ebp - 0x94]
call fcn.0040283c
and dword [ebp - 4], 0
push dword [esi + 0x2c]
mov esi, dword [ebp - 0x94]
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0x47741c
push str.name
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov word [ebp - 0x52], ax
lea eax, [ebp - 0x90]
push eax
mov ecx, edi
call fcn.004024c3
lea ecx, [esi - 0x10]
call fcn.0040285d
jmp 0x40178c
mov ecx, edi
call fcn.0040279b
mov eax, edi
call fcn.0045187a
ret 4

Function at 0x40288c
Capabilities:
Read .ini file

Disassembly:
push 0x90
mov eax, 0x46afe9
call fcn.004517f7
mov eax, dword [ebp + 8]
and dword [ebp - 0x9c], 0
lea ebx, [ebp - 0x9c]
mov dword [ebp - 0x94], eax
call fcn.004084ad
and dword [ebp - 4], 0
push str.NSMInfo.ini
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff0
call fcn.0040285d
push dword [ebp - 0x98]
mov esi, 0x477450
push 0
push str.KeywordLock
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x40294d
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push eax
call fcn.0044de40
add esp, 0xc
push dword [ebp - 0x98]
lea eax, [ebp - 0x90]
push 0x40
push eax
push 0x47741c
push str.Keyword
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push eax
call fcn.004024c3
jmp 0x402958
mov ecx, dword [ebp - 0x94]
call fcn.0040279b
mov ecx, dword [ebp - 0x98]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, dword [ebp - 0x94]
call fcn.0045187a
ret

Function at 0x402972
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x469cdd
call fcn.0045178e
lea ebx, [ebp - 0x14]
call fcn.004084ad
and dword [ebp - 4], 0
push str.NSMInfo.ini
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004017f8
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040285d
push dword [ebp - 0x10]
push 0
push str.GroupEnabled
push 0x477450
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
add ecx, 0xfffffff0
neg esi
call fcn.0040285d
mov eax, esi
call fcn.00451866
ret

Function at 0x4029d7
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x469cdd
call fcn.0045178e
lea ebx, [ebp - 0x14]
call fcn.004084ad
and dword [ebp - 4], 0
push str.NSMInfo.ini
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004017f8
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040285d
push dword [ebp - 0x10]
push 0
push str.GroupNumber
push 0x477450
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040285d
mov eax, esi
call fcn.00451866
ret
Function at 0x402a36
Capabilities:
Get hostname

Disassembly:
push 0x38
mov eax, 0x46afae
call fcn.004517f7
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], ebx
call fcn.0040279b
xor edi, edi
mov dword [ebp - 4], ebx
inc edi
push esi
mov dword [ebp - 0x40], edi
call fcn.00402d62
pop ecx
cmp byte [ebp + 8], bl
je 0x402ae1
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x402a91
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0x11
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x402a91
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.0040247a
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x402ae1
lea ebx, [ebp - 0x3c]
call fcn.004084ad
push str.NSMInfo.ini
push eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], edi
call fcn.004017f8
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040285d
push dword [ebp - 0x38]
mov eax, dword [esi]
push eax
push str.Name
push 0x477450
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.0040285d
mov eax, esi
call fcn.0045187a
ret

Function at 0x402ae9
Capabilities:
Read .ini file

Disassembly:
push 0x218
mov eax, 0x46af65
call fcn.004517f7
lea ebx, [ebp - 0x224]
call fcn.004084ad
and dword [ebp - 4], 0
push str.NSMInfo.ini
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004017f8
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040285d
call fcn.0042a8d7
push eax
lea ecx, [ebp - 0x220]
call fcn.00402773
mov byte [ebp - 4], 3
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x47741c
push str.Name
push 0x477450
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push 0x4774a8
push eax
call fcn.0040314f
mov esi, dword [ebp - 0x220]
add esp, 0xc
cmp dword [esi - 0xc], 0
je 0x402bac
push ecx
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], esp
mov ecx, esp
push eax
call fcn.0040283c
call fcn.00402c00
pop ecx
lea ecx, [esi - 0x10]
call fcn.0040285d
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.0040285d
call fcn.0045187a
ret