joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40826c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x4082a4
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x408306
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042bb65
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x408301
cmp dword [ebp - 4], 0
je 0x4082fa
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x408306
movzx esi, si
or esi, 0x80070000
jmp 0x408306
xor eax, eax
mov word [ecx], ax
jmp 0x408306
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x408700
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push esi
push edi
push ebx
push eax
mov edi, ecx
call fcn.0040867b
cmp byte [ebp - 0x220], 0
je 0x40873c
mov eax, dword [ebp - 0x224]
jmp 0x4087fb
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x21c]
and dword [ebp - 0x218], 0
or eax, 0xf003f
push 0
push eax
push ebx
push dword [edi + 4]
mov dword [ebp - 0x21c], 0x43b6d8
mov dword [ebp - 0x214], 0x200
call fcn.00407f85
mov esi, eax
cmp esi, 0x80070002
je 0x408783
cmp esi, 0x80070003
jne 0x408796
xor esi, esi
inc esi
jmp 0x408796
lea eax, [ebp - 0x20c]
push eax
call fcn.00408700
mov esi, eax
test esi, esi
jne 0x4087e4
xor ecx, ecx
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x22c]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x21c]
test eax, eax
je 0x408788
call fcn.00407e8d
push ebx
mov ecx, edi
call fcn.00407e0f
mov esi, eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x43b6d8
call fcn.00407e8d
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416f09
leave
ret 4
Function at 0x408d72
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x408dd8
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.00416f09
leave
ret

Function at 0x4092eb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.00417a80
mov esi, dword [0x443f34]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.0040497d
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.004015ce
lea ecx, [ebp - 0x808]
call fcn.00409a32
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x40939f
sub eax, 1
jne 0x409390
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.00416f09
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x409a32
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409aa1
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x409a7d
push ebx
push edi
push eax
call fcn.00418ed0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x409a98
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x40c357
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 9
mov esi, ecx
lea edi, [ebp - 0x44]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x40]
lea ebx, [edi - 1]
not ebx
and ebx, dword [ebp + 8]
je 0x40c3a8
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 0xc]
call fcn.0040cd99
cmp eax, dword [esi + 0xc]
je 0x40c39c
cmp ebx, dword [eax + 0x10]
jae 0x40c39f
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x40c3b1
sub ebx, edi
jne 0x40c383
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 7
lea esi, [eax + 0x14]
pop ecx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
add ecx, ebx
cmp ecx, dword [ebp + 8]
jbe 0x40c3a8
mov eax, ebx
jmp 0x40c3aa

Function at 0x40c6b0
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x74]
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0xc], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
and dword [esi + 8], eax
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x30]
push eax
push 0
jmp 0x40c7b6
cmp dword [ebp - 0x20], 0x1000
jne 0x40c7a7
mov eax, dword [ebp - 0xc]
lea esi, [ebp - 0x30]
push 7
pop ecx
lea edi, [ebp - 0x50]
add eax, 0xc
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
call fcn.0040cd99
mov esi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp esi, eax
je 0x40c742
cmp edi, dword [esi + 0x10]
jae 0x40c784
push 0x30
call fcn.004045e1
mov edx, eax
xor eax, eax
pop ecx
mov ecx, dword [ebp - 4]
push 7
lea edi, [edx + 0x10]
mov dword [edi], ecx
add edi, 4
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0x10]
push edx
push eax
push esi
lea eax, [ebp - 0x14]
mov word [edx + 0xc], 0
push eax
call fcn.0040d21d
mov esi, dword [ebp - 0x14]
lea edi, [esi + 0x14]
push 7
pop ecx
lea esi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
test byte [ebp - 0x1c], 0x70
je 0x40c7a7
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov eax, ecx
div dword [ebp - 0x70]
mov edx, dword [ebp - 0xc]
add dword [edx + 8], eax
jmp 0x40c7aa
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
add eax, ecx
lea ecx, [ebp - 0x30]
push 0x1c
push ecx
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x40c6fd
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x40f9ae
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40fa4b
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40fa4b
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40fa4b
push 4
push 0xffffffffffffffff
push esi
push 0x410165
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40fa4b
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40fa16
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40fa4b
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40fa51
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40fa4d

Function at 0x40fb5d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x2c
push ebx
mov dword [ebp - 8], ebx
lea esi, [edi + 0xa0]
push esi
call fcn.00417a80
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 8]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
jne 0x40fbac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [ebp - 1]
mov ebx, eax
test cl, cl
jne 0x40fbc3
cmp ebx, 0x3e5
je 0x40fbc3
push 0xa
mov ecx, edi
call fcn.0040fdee
jmp 0x40fbcd
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4117f5
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
push 0x4118bb
mov edi, ecx
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.00401371
push eax
lea ecx, [esp + 0x18]
call fcn.00401791
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push dword [ebp + 8]
push str._s_s.dmp
push eax
call fcn.00408b3d
lea ecx, [esp + 0x24]
call fcn.00408f27
mov bl, byte [esp + 0x23]
lea eax, [esp + 0x24]
mov dl, byte [edi]
mov cl, bl
push 0
push eax
call fcn.00411da5
add esp, 0x18
cmp byte [edi + 1], 0
je 0x4118a6
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
push dword [ebp + 8]
push str._s_s_full.dmp
push eax
call fcn.00408b3d
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.00408f27
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.004030c1
test al, al
je 0x4118aa
mov dl, byte [edi]
lea eax, [esp + 0x14]
push 0
push eax
mov cl, bl
call fcn.00411da5
pop ecx
pop ecx
jmp 0x4118aa
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0x10]
call fcn.004015ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4149e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, cl
push esi
push edi
test bl, bl
je 0x414a14
call fcn.0041562c
test al, al
je 0x414a14
mov eax, 0x80004005
jmp 0x414b74
xor esi, esi
mov dword [ebp - 0x1c], 0x43c518
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
mov cl, bl
call fcn.00414580
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call dword [eax + 4]
mov dword [ebp - 0x2c], 0x43b6d8
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x200
call fcn.00412c14
mov eax, str.HKLMSoftwareGoogleUpdate_
test bl, bl
jne 0x414a57
mov eax, str.HKCUSoftwareGoogleUpdate_
push esi
push ecx
push 0xf003f
push ecx
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407f38
mov edi, eax
test edi, edi
js 0x414b52
push esi
push esi
push esi
push esi
push 0x43e9d8
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414a90
mov edi, esi
jmp 0x414b52
call fcn.00401371
push eax
lea ecx, [ebp - 0x20]
call fcn.00401791
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x414ad8
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.00403794
push eax
lea ecx, [ebp - 0x20]
call fcn.004015e6
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov eax, esi
test eax, eax
mov esi, dword [ebp - 0x20]
js 0x414b48
xor edi, edi
lea ecx, [ebp - 0x2c]
inc edi
push edi
push esi
push 0x43e9d8
call fcn.0040846c
test eax, eax
js 0x414b48
mov ecx, 0x442c90
call fcn.00409beb
lea ecx, [ebp - 0x2c]
call fcn.00414991
xor eax, eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.004142e3
test eax, eax
js 0x414b3e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x414b3e
sub esp, 0xc
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.0041376f
mov cl, bl
call fcn.004145e1
add esp, 0xc
mov edi, eax
lea ecx, [ebp - 0x10]
call fcn.00404b8e
jmp 0x414b4a
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004015ce
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x43b6d8
call fcn.00407e8d
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call dword [eax + 8]
lea ecx, [ebp - 0x1c]
call fcn.00407cfe
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416f09
leave
ret
Function at 0x401800
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x20330
call fcn.0040a050
mov eax, dword [0x4111b4]
xor eax, esp
mov dword [esp + 0x20328], eax
push ebp
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x132]
push ecx
mov word [esp + 0x134], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
push 0x1fffe
push edx
lea eax, [esp + 0x33a]
push eax
mov word [esp + 0x33c], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor ecx, ecx
push 0x80
push ecx
lea edx, [esp + 0x22]
push edx
mov word [esp + 0x24], cx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
push 0x80
push eax
lea ecx, [esp + 0xaa]
push ecx
mov word [esp + 0xac], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
je 0x401990
push 0x104
lea edx, [esp + 0x12c]
push edx
push 0x40c510
push esi
call fcn.004086af
mov esi, eax
add esp, 0x10
mov dword [esp + 0x10], esi
test esi, esi
je 0x401978
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x128]
push eax
push 0x40
lea ecx, [esp + 0x20]
push ecx
push 0x40c3e8
push 0x40c3f4
push 0x40c41c
call ebp
lea ecx, [esp + 0x18]
call fcn.00401d70
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x10]
push 1
mov ecx, ebx
call eax
lea ecx, [esp + 0x128]
push ecx
push 0x40
lea edx, [esp + 0x20]
push edx
push 0x40c3e8
push 0x40c42c
push 0x40c41c
call ebp
lea ecx, [esp + 0x18]
call fcn.00401d70
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x10]
push 0
mov ecx, ebx
call eax
lea ecx, [esp + 0x128]
push ecx
push 0x10000
lea edx, [esp + 0x338]
push edx
push 0x40c44c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [esp + 0x14], eax
test eax, eax
jbe 0x401976
cmp word [esp + 0x330], 0
lea edi, [esp + 0x330]
mov dword [esp + 0xc], edi
jne 0x4019bc
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20328]
xor ecx, esp
call fcn.00409ade
add esp, 0x20330
ret
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20328]
xor ecx, esp
call fcn.00409ade
add esp, 0x20330
ret
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, edi
lea edx, [esp + 0x330]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x401976
lea esi, [esp + 0x18]
call fcn.00401790
test eax, eax
je 0x401a34
lea eax, [esp + 0x128]
push eax
push 0x40
lea ecx, [esp + 0xa8]
push ecx
push 0x40c468
mov edx, esi
push edx
push 0x40c44c
call ebp
lea ecx, [esp + 0xa0]
call fcn.00401d70
mov edi, eax
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, esi
push ecx
mov ecx, ebx
call edx
mov ebp, eax
xor esi, esi
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push edi
push ebp
push esi
mov ecx, ebx
call edx
inc esi
cmp esi, 2
jl 0x401a18
mov edi, dword [esp + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a40
sub eax, edx
sar eax, 1
lea eax, [edi + eax*2 + 2]
mov dword [esp + 0xc], eax
cmp word [eax], cx
jne 0x4019b0
mov ecx, dword [esp + 0x20334]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00409ade
add esp, 0x20330
ret
Function at 0x401a80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x420
mov eax, dword [0x4111b4]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
test edi, edi
je 0x401b01
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x40c510
push edi
call fcn.004086af
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x401b7c
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [esp + 0x10]
push eax
push 0
push 0x40c474
push 0x40c41c
call ebx
mov edx, dword [esi]
mov ecx, esi
test eax, eax
je 0x401b1b
mov eax, dword [edx + 0x18]
call eax
jmp 0x401b22
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00409ade
add esp, 0x420
ret
mov eax, dword [edx + 0x1c]
push 1
call eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x40c490
push 0x40c41c
call ebx
test eax, eax
je 0x401b6f
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x222]
push eax
mov word [esp + 0x224], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ebx, [esp + 0x218]
call fcn.00401ba0
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
mov eax, ebx
push eax
jmp 0x401b76
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 0
mov ecx, esi
call edx
mov eax, ebp
mov ecx, dword [esp + 0x424]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409ade
add esp, 0x420
ret

Function at 0x402240
Capabilities:
Create thread

Disassembly:
push esi
mov esi, edx
test eax, eax
je 0x4022bd
test ecx, ecx
je 0x4022bd
cmp dword [esi + 0x1c], 0
jne 0x4022bd
cmp dword [esi + 0x20], 0
jne 0x4022bd
cmp dword [esi + 0x24], 0
jne 0x4022bd
cmp dword [esi + 0x30], 0
jne 0x4022bd
mov dword [esi + 0x30], ecx
push eax
mov ecx, esi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 1
call dword [0x40b15c]
call fcn.004024c0
test eax, eax
je 0x4022bd
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x20], eax
test eax, eax
je 0x4022bd
push 0
push 0
push esi
push 0x402420
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x1c], eax
pop esi
mov eax, ecx
ret
xor eax, eax
pop esi
ret

Function at 0x402640
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x804
mov eax, dword [0x4111b4]
xor eax, esp
mov dword [esp + 0x800], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x814]
lea edx, [esp + 0x818]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x3ff
push ecx
call dword [sym.imp.MSVCR90.dll__vsnwprintf]
add esp, 0x1c
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00409ade
add esp, 0x804
ret
Function at 0x4027a9
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push ebx
push esi
push edi
xor edi, edi
push 0x228
lea eax, [ebp - 0x78]
push edi
push eax
mov dword [ebp - 0x7c], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
push esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40282d
lea eax, [ebp - 0x58]
push 0x40b464
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x402833
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40280e
jmp 0x402861
push dword [ebp - 0x74]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x402861
push dword [ebp + 0x1bc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40285e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
push dword [ebp - 0x80]
call ebx
mov ecx, dword [ebp + 0x1b0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ade
add ebp, 0x1b4
leave
ret 4

Function at 0x40290a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call sub.MSVCR90.dll_memset
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call dword [sym.imp.MSVCR90.dll__vsnwprintf_s]
add esp, 0x20
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409ade
leave
ret

Function at 0x402e0c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x810], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x808], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0x80c], ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
push 0x400
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x810]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x80c]
push dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push eax
call fcn.00402d17
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409ade
leave
ret 0x18