joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b2cc
Capabilities:
Terminate process

Disassembly:
sub esp, 0x2d0
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov eax, dword [edi + 0x180]
test eax, eax
je 0x40b2f6
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40b39a
lea esi, [edi + 0x17c]
mov ecx, esi
call fcn.0041a2ac
xor ecx, ecx
lea edx, [esp + 0xd0]
inc ecx
call fcn.00420b32
push ebp
lea edx, [esp + 0x6c]
mov ecx, 0x2937498d
call fcn.00420763
push 0x44
pop edx
push edx
push ebp
lea eax, [esp + 0x28]
push eax
call fcn.0041869b
push dword [edi + 0xc]
lea eax, [esp + 0x6c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esp + 0x10]
mov edx, 0x401464
push eax
lea eax, [esp + 0x24]
push eax
push ebp
lea ecx, [esp + 0xdc]
call fcn.0041a152
test eax, eax
jne 0x40b369
xor al, al
jmp 0x40b39c
push 0x10
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0041863c
push 0x3e8
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b39a
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, esi
call fcn.0041a2ac
jmp 0x40b365
mov al, 1
pop edi
pop esi
pop ebp
add esp, 0x2d0
ret
Function at 0x40b437
Capabilities:
Terminate process

Disassembly:
sub esp, 0x28c
push ebx
push ebp
push esi
push edi
mov esi, edx
mov edi, ecx
mov ecx, esi
call fcn.00414504
movzx eax, ax
mov dword [esp + 0x14], eax
test al, 1
jne 0x40b5f0
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, dword [esp + 0x2a0]
test eax, eax
je 0x40b532
mov edx, dword [edi + 0x4c]
lea eax, [edi + 0x50]
push 2
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1c]
lea ecx, [edi + 0x3c]
call fcn.0041d3e2
lea ecx, [esp + 0x28]
call fcn.0041c557
mov bh, al
mov bl, bh
test bh, bh
je 0x40b534
test byte [esp + 0x14], 0x10
jne 0x40b534
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
movzx ecx, word [ebp + 0xc]
movzx eax, word [ebp + 8]
shl ecx, 0x10
or ecx, eax
movzx eax, word [ebp]
push ecx
movzx ecx, word [ebp + 4]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [edi + 8]
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x40b534
push 0x64
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b5f0
push 0x101
lea eax, [esp + 0x94]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0x90]
push eax
push 0x401470
push 2
push 0x1e2
push 0x4014c8
push 0x401510
call fcn.0041a5ac
add esp, 0x18
jmp 0x40b534
xor bl, bl
mov ecx, edi
call fcn.0040b2cc
test al, al
je 0x40b5a8
mov eax, dword [edi + 0x10]
push 0x10
push ebp
add eax, 0x114
push eax
call fcn.0041863c
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push 0xfffffffffffffffc
push dword [edi + 8]
push dword [edi + 0x188]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
je 0x40b5a8
push 0x3e8
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40b591
mov ecx, dword [edi + 0x10]
cmp byte [ecx + 0x124], 1
jne 0x40b5a8
mov al, bl
jmp 0x40b5f2
push 0
lea esi, [edi + 0x17c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, esi
call fcn.0041a2ac
mov eax, dword [esp + 0x2a4]
test dword [eax + 0x24], 0x40000000
jne 0x40b5f0
push ebp
add eax, 4
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
push 6
lea eax, [esp + 0x1c]
push eax
push dword [edi + 0x154]
call dword [sym.imp.USER32.dll_FillRect]
push 0xf
push 0xa
lea eax, [esp + 0x20]
push eax
push dword [edi + 0x154]
call dword [sym.imp.USER32.dll_DrawEdge]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28c
ret 8
Function at 0x40b6c9
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
push esi
push ebx
push 0x47a
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40b7c9
push ebx
mov edx, ebp
mov ecx, edi
call fcn.004207ba
mov dword [esp + 0x10], eax
test eax, eax
je 0x40b7a4
sub eax, dword [0x429544]
push ebx
push ebx
push ebx
add eax, 0x421036
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebp, eax
test ebp, ebp
je 0x40b774
mov esi, dword [esp + 0x10]
push ebp
push esi
push 0x40152c
push ebx
push 0x33
mov ebx, 0x401568
push ebx
push 0x4015b0
call fcn.0041a5ac
add esp, 0x1c
push 0x2710
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b769
push ebp
push esi
push 0x4015c8
push 1
push 0x36
push ebx
push 0x4015b0
call fcn.0041a5ac
add esp, 0x1c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x40b7c0
push esi
push 0x401640
push 2
push 0x3d
push 0x401568
push 0x4015b0
call fcn.0041a5ac
mov esi, dword [esp + 0x28]
add esp, 0x18
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x40b7c0
push esi
push 0x4016b0
push 2
push 0x42
push 0x401568
push 0x4015b0
call fcn.0041a5ac
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b7e5
push esi
push 0x401708
push 2
push 0x48
push 0x401568
push 0x4015b0
call fcn.0041a5ac
add esp, 0x18
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 4
Function at 0x40b7ef
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push ebx
push ebp
push esi
push edi
push 0x401750
push 0
push 0x60
push 0x401568
push 0x40177c
xor bl, bl
call fcn.0041a5ac
xor esi, esi
add esp, 0x14
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
and dword [esp + 0x24], 0
mov ebp, eax
mov dword [esp + 0x28], ebp
cmp ebp, 0xffffffff
je 0x40b9e6
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x22c
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x40b9ca
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x40b9be
cmp ecx, dword [0x4297a0]
je 0x40b9be
xor eax, eax
test edi, edi
je 0x40b88b
cmp dword [esi + eax*4], ecx
je 0x40b9be
inc eax
cmp eax, edi
jb 0x40b87d
call fcn.00420716
mov dword [esp + 0x14], eax
test eax, eax
je 0x40b9be
push dword [esp + 0x38]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40b9a5
lea edx, [esp + 0x2c]
mov ecx, edi
call fcn.00419e98
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x40b9ab
mov eax, dword [esp + 0x2c]
cmp eax, dword [0x429540]
jne 0x40b998
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, dword [0x429538]
jne 0x40b998
mov edx, dword [0x429534]
mov ecx, dword [ebp]
push eax
mov edx, dword [edx]
call fcn.0041866f
test eax, eax
jne 0x40b998
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
lea edx, [edi*4 + 4]
call fcn.00418586
test al, al
je 0x40b976
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov dword [esi + edi*4], eax
inc edi
push dword [esp + 0x38]
inc dword [esp + 0x28]
push 0x401798
push 0
push 0x8d
push 0x401568
push 0x40177c
mov dword [esp + 0x38], edi
call fcn.0041a5ac
mov edi, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [esp + 0x3c]
mov edx, edi
call fcn.0040b6c9
test al, al
je 0x40b99c
mov bl, 1
jmp 0x40b99c
push 0x4017c0
push 2
push 0x92
push 0x401568
push 0x40177c
call fcn.0041a5ac
mov esi, dword [esp + 0x30]
add esp, 0x14
mov edi, dword [esp + 0x14]
mov ecx, ebp
call fcn.00418601
jmp 0x40b9af
mov edi, dword [esp + 0x14]
jmp 0x40b9b3
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40b85f
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
jne 0x40b828
jmp 0x40ba04
push 0x401800
push 2
push 0xa2
push 0x401568
push 0x40177c
call fcn.0041a5ac
add esp, 0x14
test esi, esi
je 0x40ba17
push esi
push 0
push dword [0x42ac50]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov al, bl
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bf9e
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
push ebx
push esi
push edi
push 0x26
mov esi, edx
mov ebx, ecx
lea edx, [esp + 0x2c]
pop ecx
call fcn.004255fb
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ebx
xor ecx, ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x18], ecx
push eax
push ecx
push ecx
push 0x21
push ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40c040
push 0x27
lea edx, [esp + 0x24]
pop ecx
call fcn.004255fb
sub esp, 0xc
lea eax, [esp + 0x20]
mov edi, 0x40bf19
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x44]
push eax
push edi
push 4
push 1
call fcn.0041e6ee
lea eax, [esp + 0x20]
lea edx, [esp + 0x38]
push eax
mov ecx, edx
call fcn.0041e80a
test al, al
je 0x40c040
sub esp, 0xc
lea eax, [esp + 0x20]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x44]
push eax
push edi
push 4
push 1
call fcn.0041e6ee
test bl, 2
je 0x40c054
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c123
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], edx
push edx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, 0x1000
call fcn.004185cd
mov esi, eax
test esi, esi
jne 0x40c15e
xor ecx, ecx
call fcn.00418601
xor al, al
jmp 0x40c23d
push 0x40c0b9
push ebx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov edi, eax
xor ecx, ecx
mov eax, dword [ebp + 8]
mov bl, 1
push 0x28
pop edx
push edx
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
push ecx
mov dword [eax], ecx
lea eax, [esp + 0x20]
push eax
call fcn.0041869b
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], esi
push 0
push 8
lea eax, [esp + 0x20]
mov dword [esp + 0x38], 0x1000
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x40c1ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40c203
push ecx
push ecx
lea edx, [esp + 0x1c]
call fcn.0041c4bd
jmp 0x40c191
cmp dword [esp + 0x30], 0
je 0x40c205
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
add edx, dword [esp + 0x30]
call fcn.00418586
test al, al
je 0x40c203
mov eax, dword [ebp + 8]
push dword [esp + 0x30]
mov edx, dword [ebp + 0xc]
push esi
mov eax, dword [eax]
add eax, dword [edx]
push eax
call fcn.0041863c
mov eax, dword [esp + 0x30]
add dword [edx], eax
jmp 0x40c191
xor bl, bl
xor eax, eax
cmp edi, 0xffffffff
cmove edi, eax
push edi
push dword [esp + 0x14]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov ecx, esi
call fcn.00418601
test bl, bl
jne 0x40c23b
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x40c23b
push dword [eax]
push 0
push dword [0x42ac50]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40d1f2
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x4c
mov eax, edx
mov edx, dword [esp + 0x50]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor bl, bl
push 0
mov ecx, eax
call fcn.0040cc84
mov esi, eax
test esi, esi
je 0x40d27c
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push 1
push ecx
push esi
call dword [eax + 0x30]
test eax, eax
jne 0x40d272
cmp dword [esp + 0x1c], eax
jne 0x40d272
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + 4]
call fcn.004185cd
mov edi, eax
test edi, edi
je 0x40d272
mov ecx, dword [esi]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
lea eax, [edi + 4]
push eax
push esi
call dword [ecx + 0xc]
test eax, eax
jne 0x40d26b
mov eax, dword [esp + 0x18]
mov edx, edi
mov dword [edi], eax
mov ecx, ebp
mov eax, dword [esp + 0x18]
add eax, 4
push eax
call fcn.0041bd49
mov bl, al
mov ecx, edi
call fcn.00418601
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
test bl, bl
jne 0x40d291
and dword [esp + 0x60], 0
lea eax, [esp + 0x60]
push 0
push 4
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x4c
ret 8
Function at 0x40e29b
Capabilities:
Encrypt data using dpapi

Disassembly:
sub esp, 0xbc
push ebx
push ebp
push esi
mov esi, dword [esp + 0xd0]
mov ebx, ecx
push edi
push 0x4c
mov edx, ebx
mov dword [esp + 0x40], ebx
mov ecx, esi
call fcn.0040e250
push 0x4f
mov edx, ebx
mov dword [esp + 0x18], eax
mov ecx, esi
call fcn.0040e250
push 0x50
mov edx, ebx
mov dword [esp + 0x24], eax
mov ecx, esi
call fcn.0040e250
mov edi, eax
mov edx, ebx
push 0x4d
mov ecx, esi
mov dword [esp + 0x20], edi
call fcn.0040e250
push 0x4e
mov edx, ebx
mov dword [esp + 0x28], eax
mov ecx, esi
call fcn.0040e250
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebp, eax
mov eax, dword [esp + 0x14]
test eax, eax
setne byte [esp + 0x13]
test eax, eax
je 0x40e457
mov ecx, dword [esp + 0x1c]
xor edi, edi
test ecx, ecx
jne 0x40e326
mov dword [esp + 0x18], edi
jmp 0x40e32f
call fcn.00418d59
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x20]
test esi, esi
je 0x40e365
push 0x44
lea edx, [esp + 0x34]
pop ecx
call fcn.004255fb
push esi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x58]
push 0xc
push eax
call fcn.004194ac
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.00418d59
mov esi, eax
jmp 0x40e367
mov esi, edi
mov ecx, ebp
call fcn.004192e4
test ebp, ebp
je 0x40e3e2
cmp eax, 1
jle 0x40e3e2
test al, 1
jne 0x40e3e2
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [esp + 0x30], eax
call fcn.004185cd
mov dword [esp + 0x34], eax
test eax, eax
je 0x40e3e2
mov edx, eax
mov ecx, ebp
call fcn.00418ea0
test al, al
je 0x40e3d9
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
push dword [esp + 0xe0]
lea eax, [esp + 0x44]
push edi
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, 1
jne 0x40e3d9
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
call fcn.004189e5
push dword [esp + 0x2c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x34]
call fcn.00418601
push 0x4b
lea edx, [esp + 0x6c]
pop ecx
call fcn.004255fb
push 0x54
lea edx, [esp + 0x44]
pop ecx
call fcn.004255fb
mov edx, dword [esp + 0x24]
mov ecx, 0x403ecc
test edi, edi
mov eax, ecx
cmovne eax, edi
test edx, edx
push eax
mov eax, ecx
cmovne eax, edx
cmp dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x48]
cmovne ecx, eax
lea eax, [esp + 0x70]
push ecx
push esi
push dword [esp + 0x24]
mov esi, dword [esp + 0xec]
push dword [esp + 0x50]
push eax
mov ecx, dword [esi]
call fcn.004192e4
push eax
push esi
call fcn.00419567
add esp, 0x24
mov ecx, edi
call fcn.00418601
push dword [esp + 0x14]
call ebx
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e462
push eax
call ebx
test edi, edi
je 0x40e469
push edi
call ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e474
push eax
call ebx
test ebp, ebp
je 0x40e47b
push ebp
call ebx
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 0xc
Function at 0x40ee66
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x148
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
push 3
pop edx
mov ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
xor edi, edi
call fcn.0041947c
test eax, eax
je 0x40ee98
mov ecx, esi
call fcn.004192e4
mov dword [esp + 0xc], eax
jmp 0x40eeb2
lea eax, [esp + 0x18]
mov dword [esp + 0xc], 0x1c
push 0x58
mov edx, eax
mov dword [esp + 0x14], eax
pop ecx
call fcn.004255fb
mov ecx, ebx
call fcn.004192e4
mov esi, eax
cmp esi, 0x1fe
jge 0x40ef2b
lea edx, [esp + 0x54]
call fcn.00418ea0
test al, al
je 0x40ef2b
mov eax, esi
cdq
sub eax, edx
push ebp
mov ebp, eax
mov eax, edi
sar ebp, 1
dec ebp
test ebp, ebp
jle 0x40ef24
lea ecx, [esp + 0x59]
mov dl, byte [esp + edi + 0x58]
xor esi, esi
cmp eax, dword [esp + 0x10]
cmovne esi, eax
mov eax, dword [esp + 0x14]
mov bl, byte [eax + esi*2]
xor bl, byte [ecx + edi]
mov al, bl
dec al
cmp bl, dl
movzx ecx, al
movzx eax, bl
mov ebx, dword [esp + 0x18]
cmovae ecx, eax
sub cl, dl
movzx eax, cl
lea ecx, [esp + 0x59]
mov word [ebx + edi*2], ax
inc edi
lea eax, [esi + 1]
cmp edi, ebp
jl 0x40eee5
xor eax, eax
mov word [ebx + edi*2], ax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x148
ret

Function at 0x40f1b0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
lea eax, [ebp - 8]
push esi
push edi
push 8
xor edi, edi
push edi
push eax
call fcn.0041869b
push 0x60
lea edx, [ebp - 0x70]
pop ecx
call fcn.004255fb
push 0x61
lea edx, [ebp - 0x30]
pop ecx
call fcn.004255fb
mov esi, 0x104
lea eax, [ebp - 0x278]
push esi
push eax
lea eax, [ebp - 0x30]
mov ecx, reloc.WS2_32.dll_bind
push eax
lea edx, [ebp - 0x70]
call fcn.0041cea9
cmp eax, 0xffffffff
je 0x40f229
test eax, eax
je 0x40f229
push esi
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 8]
lea ecx, [ebp - 0x480]
call fcn.0040ef37
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40f29b
push 0x62
lea edx, [ebp - 0x48]
pop ecx
call fcn.004255fb
lea eax, [ebp - 0x48]
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0x14], 0x1a
mov esi, edi
mov dword [ebp - 0x10], 0x26
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x278]
push eax
push edi
push edi
push dword [ebp + esi*4 - 0x18]
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40f28e
sub esp, 0xc
lea eax, [ebp - 8]
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x278]
push eax
push 0x40efa0
push 2
push 1
call fcn.0041e6ee
inc esi
cmp esi, 3
jb 0x40f258
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f2ad
mov ecx, dword [ebp - 8]
push 0xcb
push 0x63
pop edx
call fcn.0040da8c
jmp 0x40f2b5
mov ecx, dword [ebp - 8]
call fcn.00418601
pop edi
pop esi
leave
ret

Function at 0x40f2b9
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul eax, dword [ecx], 0x8088405
push 0x20
push 0
push edx
push 0
inc eax
push eax
mov dword [ecx], eax
call fcn.0041c5de
push edx
push eax
call fcn.0041c612
ret
Function at 0x40f2d7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
call fcn.004192e4
mov esi, eax
cmp esi, 0x1fe
jge 0x40f3fc
lea edx, [esp + 0x18]
call fcn.00418ea0
test al, al
je 0x40f3fc
mov eax, esi
mov dword [esp + 0x10], 0xcf671
cdq
xor ebp, ebp
sub eax, edx
mov esi, ebp
mov edi, eax
sar edi, 1
sub edi, 4
test edi, edi
jle 0x40f354
push 8
pop edx
lea ecx, [esp + 0x10]
call fcn.0040f2b9
mov bl, byte [esp + esi + 0x18]
mov cl, 8
sub cl, al
mov dl, bl
shr dl, cl
mov cl, al
shl bl, cl
or dl, bl
mov byte [esp + esi + 0x18], dl
inc esi
cmp esi, edi
jl 0x40f32d
mov dword [esp + 0x10], 0x3039
mov ebx, 0x100
mov edx, edi
lea ecx, [esp + 0x10]
call fcn.0040f2b9
mov edx, edi
movsx esi, al
lea ecx, [esp + 0x10]
call fcn.0040f2b9
mov cl, byte [esp + esi + 0x18]
movsx edx, al
mov al, byte [esp + edx + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edx + 0x18], cl
sub ebx, 1
jne 0x40f361
mov ebx, dword [esp + 0x14]
mov esi, ebp
mov dword [esp + 0x10], 0xa564
test edi, edi
jle 0x40f3bb
mov edx, 0x100
lea ecx, [esp + 0x10]
call fcn.0040f2b9
xor byte [esp + esi + 0x18], al
inc esi
cmp esi, edi
jl 0x40f3a4
mov dword [esp + 0x10], 0xd431
mov esi, ebp
test edi, edi
jle 0x40f3f2
mov edx, 0x100
lea ecx, [esp + 0x10]
call fcn.0040f2b9
sub byte [esp + esi + 0x18], al
inc esi
cmp esi, edi
jl 0x40f3c9
test edi, edi
jle 0x40f3f2
movzx ecx, byte [esp + ebp + 0x18]
mov word [ebx + ebp*2], cx
inc ebp
cmp ebp, edi
jl 0x40f3e4
xor eax, eax
mov word [ebx + edi*2], ax
mov eax, edi
jmp 0x40f3fe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f44f
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0x10], edx
push edi
mov ecx, 0x1fffe
call fcn.004185cd
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x40f60c
push ebp
push 0xffff
push edi
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40f5fb
lea edx, [eax + 1]
mov ecx, edi
call fcn.004196c5
test al, al
je 0x40f5fb
mov ecx, 0xc08
call fcn.004185cd
mov ebx, eax
test ebx, ebx
je 0x40f5fb
push 0x65
lea eax, [ebx + 0x5fa]
mov esi, edi
lea edx, [esp + 0x64]
mov dword [esp + 0x14], eax
pop ecx
call fcn.004255fb
push 0x66
lea edx, [esp + 0x2c]
pop ecx
call fcn.004255fb
push 0x67
lea edx, [esp + 0x20]
pop ecx
call fcn.004255fb
push 0x68
lea edx, [esp + 0x3c]
pop ecx
call fcn.004255fb
push 0x69
lea edx, [esp + 0x50]
pop ecx
call fcn.004255fb
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40f5df
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40f5df
push ebp
push 0xff
push ebx
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40f5df
push ebp
push 0xff
lea eax, [ebx + 0x1fe]
push eax
push 0
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40f5df
push ebp
push 0xff
lea eax, [ebx + 0x3fc]
push eax
push 0
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40f5df
lea ecx, [ebx + 0x3fc]
call fcn.0040f2d7
test eax, eax
jle 0x40f5df
push 0x56
lea edx, [esp + 0x7c]
pop ecx
call fcn.004255fb
push ebx
lea ecx, [ebx + 0x1fe]
lea eax, [ecx + 0x1fe]
push eax
push ecx
lea eax, [esp + 0x84]
push eax
push 0x307
push dword [esp + 0x24]
call fcn.004194ac
add esp, 0x18
test eax, eax
jle 0x40f5df
mov edx, dword [esp + 0x10]
mov ecx, edi
push eax
call fcn.00418a17
test al, al
je 0x40f5df
inc dword [edi + 4]
mov ecx, esi
call fcn.004196fe
mov esi, eax
test esi, esi
jne 0x40f503
mov ecx, ebx
call fcn.00418601
mov edi, dword [esp + 0x18]
mov ecx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
jmp fcn.00418601
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret