joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401810
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
push 0xf01ff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40183f
mov eax, 1
jmp 0x40187b
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40186f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x40186f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x40187b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401880
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xf01ff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4018cb
mov eax, 1
jmp 0x4018d7
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403870
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x403883
mov ax, 0x10
pop edi
pop esi
ret 0xc
push esi
call fcn.00405450
mov edi, eax
mov ax, word [edi]
cmp ax, 0x7243
jne 0x4038c5
mov word [edi], 0x7242
push edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call fcn.004065c0
push eax
call fcn.004033a0
mov word [edi + 6], ax
add esp, 8
mov word [edi], 0x7243
mov ax, word [edi + 6]
pop edi
pop esi
ret 0xc
cmp ax, 0x7242
jne 0x4038ea
mov eax, dword [esp + 0x14]
push edi
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call fcn.004065c0
push eax
call fcn.004033a0
add esp, 8
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
call fcn.00406a60
pop edi
pop esi
ret 0xc

Function at 0x403900
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x403913
mov ax, 0x10
pop edi
pop esi
ret 0x10
push esi
call fcn.00405450
mov edi, eax
mov ax, word [edi]
cmp ax, 0x7243
jne 0x40395a
mov word [edi], 0x7242
push edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push esi
call fcn.004065e0
push eax
call fcn.004033a0
mov word [edi + 6], ax
add esp, 8
mov word [edi], 0x7243
mov ax, word [edi + 6]
pop edi
pop esi
ret 0x10
cmp ax, 0x7242
jne 0x403984
mov eax, dword [esp + 0x18]
push edi
mov ecx, dword [esp + 0x18]
push eax
mov edx, dword [esp + 0x18]
push ecx
push edx
push esi
call fcn.004065e0
push eax
call fcn.004033a0
add esp, 8
pop edi
pop esi
ret 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
push esi
call fcn.00406e10
pop edi
pop esi
ret 0x10

Function at 0x404960
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push ebp
call fcn.00408800
test eax, eax
mov eax, dword [esp + 0x14]
push eax
jne 0x404990
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, esi
mov ebx, eax
jne 0x4049aa
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
jne 0x4049aa
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebp, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
push ebx
call edi
test eax, eax
je 0x4049dd
cmp eax, 0x102
jne 0x4049ea
inc esi
cmp esi, dword [esp + 0x24]
jle 0x4049b4
push ebx
call fcn.00404a60
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
ret
mov eax, 0x73
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x404a00
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.00408800
test eax, eax
mov eax, dword [esp + 8]
push eax
push 0
jne 0x404a29
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x404a3e
mov eax, 1
pop esi
ret
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x404a3e
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x404a55
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x408880
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov eax, 0x65
mov ecx, 0x72
push ebx
xor ebx, ebx
mov byte [esp + 5], al
mov byte [esp + 4], 0x54
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 6], cl
mov byte [esp + 0xe], al
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xf], cl
mov byte [esp + 0x11], al
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], bl
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0x10], 0x76
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x40890a
cmp al, 4
lea eax, [esp + 4]
push eax
jbe 0x408900
call fcn.00408920
add esp, 4
mov ebx, eax
mov eax, ebx
pop ebx
add esp, 0x10
ret
call fcn.00408920
add esp, 4
mov ebx, eax
mov eax, ebx
pop ebx
add esp, 0x10
ret

Function at 0x408920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [esp + 0x1c], ebx
push str.SystemCurrentControlSetControlProductOptions
mov dword [esp + 0x1c], ebx
push reloc.WSOCK32.dll_bind
call ebp
test eax, eax
jne 0x4089e4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push ebx
push str.ProductSuite
push edx
call edi
test eax, eax
jne 0x4089e4
cmp dword [esp + 0x14], ebx
je 0x4089e4
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push 0x40
call ebp
mov esi, eax
test esi, esi
je 0x4089ef
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push ebx
push str.ProductSuite
push edx
call edi
test eax, eax
jne 0x4089e4
cmp dword [esp + 0x18], 7
jne 0x4089e4
mov ebp, esi
cmp byte [esi], bl
je 0x4089e4
mov edi, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4089df
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x4089c0
jmp 0x4089e4
mov ebx, 1
test esi, esi
je 0x4089ef
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x10], 0
je 0x408a03
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x409150
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
mov dword [esp], 0x10
push esi
push edi
push 0x4e8
push 5
push 6
call fcn.00409ce0
add esp, 0xc
mov esi, eax
cmp esi, 0xffffffff
je 0x4091e7
mov edx, dword [esp + 8]
lea edi, [esp + 0xc]
xor eax, eax
mov ecx, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov word [esp + 0xc], 6
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push esi
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x4091e7
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
je 0x4091e7
lea eax, [esp + 0xc]
push eax
call fcn.004090d0
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.004134a5
add esp, 8
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
push str.00_00_00_00_FF_FF_FF_FF_FF_FF
push eax
call fcn.004134a5
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x14
ret

Function at 0x409230
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
mov eax, 0x52
mov byte [esp], al
push esi
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov esi, dword [esp + 0x14]
mov byte [esp + 9], al
mov ax, word [esp + 0x18]
push 0
add al, 0x30
push 0x80
mov byte [esp + 0x13], al
push 3
lea ecx, [esp + 0x10]
push 0
push 3
mov dword [esi], 0
mov byte [esp + 0x1e], 0x56
mov byte [esp + 0x20], 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4092cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x4092a8
cmp eax, 3
jbe 0x4092c1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4092b6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x80b
pop esi
add esp, 0xc
ret 8
mov ax, 0x80c
pop esi
add esp, 0xc
ret 8
mov ax, 0x800
pop esi
add esp, 0xc
ret 8

Function at 0x4092e0
Capabilities:
Enumerate pe sections
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov word [esi + 6], 0xffff
push esi
call fcn.0040dcc0
lea eax, [esp + 0xc]
push 0
mov edi, dword [esp + 0x18]
push eax
xor eax, eax
mov ecx, dword [edi]
mov ax, word [esi + 2]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
je 0x409332
lea eax, [esp + 0xc]
push 0
push eax
mov ecx, dword [edi]
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
push esi
call fcn.0040dc70
test ebx, ebx
je 0x409344
cmp word [esi + 6], 0xffff
jne 0x40934a
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x40db00
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov edx, 0xc6ef3720
push edi
mov esi, dword [eax]
push ebp
mov edi, dword [eax + 4]
mov ebx, 0x1f
mov ecx, dword [esp + 0x18]
mov eax, esi
mov ebp, esi
shl eax, 4
add edx, 0x61c88647
shr ebp, 5
add eax, dword [ecx + 8]
add ebp, dword [ecx + 0xc]
xor eax, ebp
lea ebp, [esi + edx - 0x61c88647]
xor eax, ebp
sub edi, eax
mov ebp, edi
mov eax, edi
shl ebp, 4
shr eax, 5
add ebp, dword [ecx]
add eax, dword [ecx + 4]
xor ebp, eax
lea eax, [edi + edx - 0x61c88647]
xor ebp, eax
mov eax, ebx
sub esi, ebp
dec ebx
test eax, eax
jne 0x40db1b
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x40dbc0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
xor edx, edx
push edi
mov esi, dword [eax]
push ebp
mov edi, dword [eax + 4]
mov ebx, 0x1f
mov ecx, dword [esp + 0x18]
sub edx, 0x61c88647
mov eax, edi
shl eax, 4
mov ebp, edi
shr ebp, 5
add eax, dword [ecx]
add ebp, dword [ecx + 4]
xor eax, ebp
lea ebp, [edi + edx]
xor eax, ebp
add esi, eax
mov ebp, esi
mov eax, esi
shl ebp, 4
shr eax, 5
add ebp, dword [ecx + 8]
add eax, dword [ecx + 0xc]
xor ebp, eax
lea eax, [esi + edx]
xor ebp, eax
mov eax, ebx
add edi, ebp
dec ebx
test eax, eax
jne 0x40dbd8
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x40dd70
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
lea ecx, [esp]
push esi
push eax
push ecx
call fcn.0040dd20
lea ecx, [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40dddf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x40ddbb
cmp eax, 3
jbe 0x40ddd4
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40ddc9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8
Function at 0x40ddf0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
mov eax, 0x5c
mov byte [esp], al
push esi
mov byte [esp + 5], al
mov byte [esp + 7], al
mov byte [esp + 6], 0x2e
mov byte [esp + 8], 0x53
mov byte [esp + 0xa], 0x74
mov byte [esp + 0xc], 0x6c
mov byte [esp + 0xd], 0x55
mov eax, 0x6e
push 0
mov byte [esp + 0xd], al
mov byte [esp + 0xf], al
mov byte [esp + 0x12], 0x73
mov byte [esp + 0x13], 0x62
lea ecx, [esp + 8]
push 0x80
mov byte [esp + 0x18], 0
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40de96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x40de72
cmp eax, 3
jbe 0x40de8b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40de80
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x40deb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
mov word [esi + 6], 0xffff
push esi
call fcn.0040dcc0
lea eax, [esp + 8]
push 0
mov ecx, dword [esp + 0x14]
push eax
xor eax, eax
mov edx, dword [ecx]
mov ax, word [esi + 2]
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call fcn.0040dc70
cmp edi, 1
jne 0x40def6
cmp word [esi + 6], 0xffff
jne 0x40defc
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x40e070
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov eax, 0x53
mov byte [esp + 8], al
mov byte [esp + 0xa], al
mov byte [esp + 9], 0x59
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov ecx, 0x49
mov byte [esp + 0x14], al
mov byte [esp + 0xf], cl
mov byte [esp + 0x11], cl
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x12], 0
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov edx, 0x65
mov byte [esp + 0x1c], al
mov byte [esp + 0x15], dl
mov byte [esp + 0x1a], dl
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1d], dl
mov byte [esp], cl
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp + 1], 0x6f
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
lea eax, [esp + 8]
lea ecx, [esp]
lea edx, [esp + 0x14]
push eax
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x79
mov byte [esp + 0xb], 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x24
ret
Function at 0x40eeb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov bx, word [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov word [esi], 0
cmp bx, 4
jbe 0x40eed3
xor al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0040eb90
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0040ebf0
lea eax, [esp + 0x18]
push 0x10
push eax
add bl, 0x31
call fcn.0040ec90
lea eax, [esp + 0x18]
push eax
call fcn.004054f0
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
movzx eax, ax
push ecx
push 0x10
lea ecx, [esp + 0x40]
push edx
mov byte [esp + eax + 0x24], bl
push 0x423fa4
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40ef7f
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0040ee90
test ax, ax
je 0x40ef49
movzx eax, ax
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x40ef6b
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x40ef6b
lea eax, [esp + 0xa]
push esi
push eax
call fcn.004055f0
test al, al
jne 0x40ef7f
jmp 0x40ef7a
lea eax, [esp + 8]
push esi
push eax
call fcn.00405550
test al, al
jne 0x40ef7f
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x40ef97
cmp ax, 0xffff
je 0x40ef97
mov al, 1
pop esi
pop ebx
add esp, 0x40
ret 8
xor al, al
pop esi
pop ebx
add esp, 0x40
ret 8

Function at 0x40efb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov bx, word [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov word [esi], 0
cmp bx, 4
jbe 0x40efd3
xor al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0040eb90
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0040ebf0
lea eax, [esp + 0x18]
push 0x10
push eax
add bl, 0x31
call fcn.0040ec90
lea eax, [esp + 0x18]
push eax
call fcn.004054f0
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
movzx eax, ax
push ecx
push 0x10
lea ecx, [esp + 0x40]
push edx
mov byte [esp + eax + 0x24], bl
push 0x423fa4
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40f07a
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0040ee90
test ax, ax
je 0x40f07a
movzx eax, ax
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x40f07a
cmp byte [esp + eax + 0xa], 0x3a
jne 0x40f07a
lea eax, [esp + eax + 0xb]
push esi
push eax
call fcn.00405550
test al, al
je 0x40f075
mov ax, word [esi]
cmp ax, 1
jl 0x40f075
cmp ax, 6
jle 0x40f07a
mov word [esi], 0
cmp word [esi], 1
pop esi
sbb al, al
pop ebx
inc al
add esp, 0x40
ret 8
Function at 0x40f090
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.0040eb90
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0040ebf0
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.0040ed50
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0040ed10
lea eax, [esp + 4]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push 0x10
push ecx
push 0x423fa4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x40f100
lea eax, [esp + 0x34]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00405380
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
cmp esi, 1
pop esi
sbb al, al
add esp, 0x50
inc al
ret 8

Function at 0x40f110
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.0040eb90
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.0040ebf0
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.0040ecd0
lea eax, [esp]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x34]
cmp eax, 1
mov word [ecx], ax
sbb cl, cl
add esp, 0x30
inc cl
mov al, cl
ret 4

Function at 0x40f170
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
push 0
push eax
call fcn.00405510
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.0040eb90
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.0040ebf0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0040ec40
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0040edb0
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.0040ee40
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.0040ee00
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push 0x10
push ecx
push 0x423fa4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40f244
lea eax, [esp + 0x44]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00405380
test al, al
je 0x40f212
mov word [esi], 2
jmp 0x40f244
lea eax, [esp + 0x54]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00405380
test al, al
je 0x40f22c
mov word [esi], 3
jmp 0x40f244
lea eax, [esp + 0x64]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00405380
test al, al
je 0x40f244
mov word [esi], 1
cmp word [esi], 1
pop esi
sbb al, al
add esp, 0x70
inc al
ret 4
Function at 0x40f410
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
mov byte [esp + 3], 0
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push ebp
lea eax, [esi + 4]
mov dword [esi], eax
mov cx, word [edi + 4]
mov word [esi + 4], cx
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov dx, word [edi + 0x14]
mov word [esi + 0x16], dx
lea edx, [esi + 0x24]
mov cx, word [edi + 8]
mov word [esi + 8], cx
lea ecx, [esi + 4]
mov ax, word [edi + 6]
push ecx
mov word [esi + 0xa], ax
mov dword [esi + 0x10], edx
call fcn.0040f320
test al, al
jne 0x40f581
test byte [edi + 0x1c], 4
je 0x40f473
mov byte [esp + 0x13], 1
xor cx, cx
xor dx, dx
movzx ebp, cx
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
shl ebp, 2
lea eax, [eax + eax*4]
mov word [eax + esi + 0x36], cx
lea ebx, [eax + esi]
cmp cx, 3
lea eax, [ebp + ebp*8]
lea ebp, [eax + edi]
mov ax, word [ebp + 0xe]
mov word [ebx + 0x9c], ax
mov ax, word [ebp + 0x12]
mov word [ebx + 0x8e], ax
mov ax, word [ebp + 0x16]
mov word [ebx + 0x34], ax
mov ax, word [ebp + 0x18]
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 4]
mov dword [ebx + 0xa4], eax
jne 0x40f4f0
mov dword [ebx + 0xa8], 0
jmp 0x40f4fc
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
test cx, cx
jne 0x40f50d
mov dword [ebx + 0xac], 0
jmp 0x40f516
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x40f52b
cmp word [ebp + 0xe], 0xffff
jne 0x40f52b
or dword [ebx + 0x2c], 8
jmp 0x40f531
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x40f479
push esi
call fcn.0040f390
push esi
call fcn.0040f2d0
push esi
call fcn.0040f290
mov eax, dword [esi + 0x10]
push eax
call fcn.00410380
mov word [esi + 0xc], ax
test ax, ax
je 0x40f577
add esi, 4
push esi
call fcn.004101f0
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.0040f260
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8