joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x38c
push ebx
push ebp
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x99]
push str.softwareRainbow_TechnologiesSentinelSuperPro
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x29c]
mov esi, 1
push 0x421680
push eax
mov ebx, esi
mov byte [esp + 0xa4], 0
call fcn.00413de0
mov edx, dword [0x42167c]
mov ecx, dword [str.NSPOPTS]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x3ac]
mov dword [esp + 0x24], ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x402911
xor ebx, ebx
mov ebp, dword [esp + 0x3a4]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x402928
xor esi, esi
cmp ebx, 1
jne 0x402962
cmp esi, ebx
jne 0x40294a
push ebp
push edx
lea eax, [esp + 0xa0]
push str._l___s___f___s_
push eax
call fcn.00413de0
add esp, 0x10
jmp 0x402989
test esi, esi
jne 0x402a08
push edx
lea ecx, [esp + 0x9c]
push str._l___s_
push ecx
jmp 0x402981
test ebx, ebx
jne 0x402a08
cmp esi, 1
jne 0x402a08
push ebp
lea edx, [esp + 0x9c]
push str._f___s_
push edx
call fcn.00413de0
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 2
push 0
push 0
lea edx, [esp + 0x2b0]
push 0
push edx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402a0a
lea edi, [esp + 0x98]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x98]
not ecx
push ecx
push eax
push 1
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x4029fd
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38c
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38c
ret
Function at 0x404d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x128
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], eax
xor edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], ecx
push ebx
mov dword [esp + 0x38], eax
push ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x24], ecx
push esi
mov dword [esp + 0x44], eax
lea edx, [esp + 0x48]
push edi
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x140]
lea ecx, [esp + 0x38]
push eax
push ecx
push edx
push 3
push 0x4217bc
call fcn.00410fe0
add esp, 0x18
test ax, ax
je 0x404dd7
pop edi
pop esi
pop ebp
mov eax, 0x71
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0x34]
push eax
call fcn.00414030
lea ecx, [esp + 0x20]
mov esi, eax
push ecx
call fcn.00414030
lea edx, [esp + 0x54]
mov ebx, eax
push edx
call fcn.00414030
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
call fcn.00403d30
add esp, 0x18
test ax, ax
je 0x404e1f
pop edi
pop esi
pop ebp
and eax, 0xffff
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push eax
call fcn.004012e0
mov ebp, eax
test bp, bp
je 0x404eca
cmp bp, 3
jne 0x404eb8
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + 0x418]
push edi
call fcn.0040f0c0
add esp, 4
test eax, eax
jne 0x404e83
push edi
call fcn.0040f0d0
mov esi, eax
add esp, 4
cmp word [esi], bx
je 0x404e87
push edi
call fcn.0040f0e0
mov edi, eax
push edi
call fcn.0040f0c0
add esp, 8
test eax, eax
je 0x404e5c
jmp 0x404e87
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xd0]
lea edx, [esp + 0x58]
push edx
push eax
lea edx, [esi + 0x10]
push ecx
add esi, 0x50
push edx
push esi
push 0
push 3
push 4
call fcn.00411d30
lea eax, [esp + 0x78]
push eax
call fcn.00410070
add esp, 0x24
pop edi
mov eax, ebp
pop esi
pop ebp
and eax, 0xffff
pop ebx
add esp, 0x128
ret
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
and ecx, 0xffff
push ecx
push 0x4217b4
push edx
call fcn.00413de0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
and eax, 0xff
push eax
push 0x4217b4
push ecx
call fcn.00413de0
lea edx, [esp + 0x40]
lea eax, [esp + 0x58]
push edx
push eax
push 2
push 0x4217bc
call fcn.00410ae0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x16c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004137e0
add esp, 0x2c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x407140
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x24]
mov esi, str.SoftwareRainbow_TechnologiesSentinelSuperPro
rep stosd dword es:[edi], eax
mov ecx, 0xb
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x10], al
lea eax, [esp + 8]
movsw word es:[edi], word [esi]
push eax
push 0x20019
lea ecx, [esp + 0x2c]
push 0
push ecx
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x20], 0x14
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push str.Protocol
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
call fcn.0041ee60
lea ecx, [esp + 0x14]
push str.NETBEUI
push ecx
call fcn.0041e3c0
add esp, 0xc
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x11c
ret
Function at 0x4095d0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
jne 0x4095e1
mov ax, 2
pop esi
ret 0x14
push eax
call fcn.00409a90
cmp word [eax], 0x7242
mov esi, eax
je 0x4095f8
mov ax, 2
pop esi
ret 0x14
test byte [esi + 0x12], 4
jne 0x40960c
mov word [esi + 6], 0xb39
mov ax, 0x39
pop esi
ret 0x14
mov word [esi + 0x30], 0xf
mov ax, word [esp + 0x18]
mov cx, word [esp + 0xc]
push esi
mov dx, word [esp + 0x14]
mov word [esi + 0x34], ax
mov ax, word [esp + 0x18]
mov word [esi + 0x3a], cx
mov word [esi + 0x3c], dx
mov word [esi + 0x3e], ax
call fcn.004098f0
mov cx, word [esi + 6]
push ecx
call fcn.00408d60
cmp ax, 0xc
jne 0x409654
mov ax, 3
pop esi
ret 0x14
mov ax, word [esi + 6]
push eax
call fcn.00408d60
pop esi
ret 0x14

Function at 0x40a1d0
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 0x40a26c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x40a248
cmp eax, 3
jbe 0x40a261
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40a256
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 0x40a280
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.0040b280
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 0x40a2d2
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.0040b230
test ebx, ebx
je 0x40a2e4
cmp word [esi + 6], 0xffff
jne 0x40a2ea
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x40a720
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 0x40a743
xor al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0040a400
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0040a460
lea eax, [esp + 0x18]
push 0x10
push eax
add bl, 0x31
call fcn.0040a500
lea eax, [esp + 0x18]
push eax
call fcn.00409b40
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 0x426040
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40a7ef
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0040a700
test ax, ax
je 0x40a7b9
movzx eax, ax
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x40a7db
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x40a7db
lea eax, [esp + 0xa]
push esi
push eax
call fcn.00409c40
test al, al
jne 0x40a7ef
jmp 0x40a7ea
lea eax, [esp + 8]
push esi
push eax
call fcn.00409ba0
test al, al
jne 0x40a7ef
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x40a807
cmp ax, 0xffff
je 0x40a807
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 0x40a820
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 0x40a843
xor al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0040a400
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0040a460
lea eax, [esp + 0x18]
push 0x10
push eax
add bl, 0x31
call fcn.0040a500
lea eax, [esp + 0x18]
push eax
call fcn.00409b40
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 0x426040
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40a8ea
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.0040a700
test ax, ax
je 0x40a8ea
movzx eax, ax
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x40a8ea
cmp byte [esp + eax + 0xa], 0x3a
jne 0x40a8ea
lea eax, [esp + eax + 0xb]
push esi
push eax
call fcn.00409ba0
test al, al
je 0x40a8e5
mov ax, word [esi]
cmp ax, 1
jl 0x40a8e5
cmp ax, 6
jle 0x40a8ea
mov word [esi], 0
cmp word [esi], 1
pop esi
sbb al, al
pop ebx
inc al
add esp, 0x40
ret 8
Function at 0x40a900
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.0040a400
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0040a460
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.0040a5c0
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0040a580
lea eax, [esp + 4]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push 0x10
push ecx
push 0x426040
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x40a970
lea eax, [esp + 0x34]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.004099c0
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 0x40a980
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.0040a400
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.0040a460
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.0040a540
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 0x40a9e0
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.00409b60
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.0040a400
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.0040a460
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0040a4b0
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0040a620
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.0040a6b0
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.0040a670
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push 0x10
push ecx
push 0x426040
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40aab4
lea eax, [esp + 0x44]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.004099c0
test al, al
je 0x40aa82
mov word [esi], 2
jmp 0x40aab4
lea eax, [esp + 0x54]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.004099c0
test al, al
je 0x40aa9c
mov word [esi], 3
jmp 0x40aab4
lea eax, [esp + 0x64]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.004099c0
test al, al
je 0x40aab4
mov word [esi], 1
cmp word [esi], 1
pop esi
sbb al, al
add esp, 0x70
inc al
ret 4
Function at 0x40b0c0
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, [edx + esi - 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 0x40b0db
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 0x40b180
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, [edx + esi]
xor ebp, eax
mov eax, ebx
add edi, ebp
dec ebx
test eax, eax
jne 0x40b198
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 0x40b330
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.0040b2e0
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 0x40b39f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x40b37b
cmp eax, 3
jbe 0x40b394
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40b389
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 0x40b3b0
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 0x40b456
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x40b432
cmp eax, 3
jbe 0x40b44b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40b440
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 0x40b480
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.0040b280
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.0040b230
cmp edi, 1
jne 0x40b4c6
cmp word [esi + 6], 0xffff
jne 0x40b4cc
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x40b640
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 0x40bf70
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.0040be80
test al, al
jne 0x40c0e1
test byte [edi + 0x1c], 4
je 0x40bfd3
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 0x40c050
mov dword [ebx + 0xa8], 0
jmp 0x40c05c
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
test cx, cx
jne 0x40c06d
mov dword [ebx + 0xac], 0
jmp 0x40c076
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x40c08b
cmp word [ebp + 0xe], 0xffff
jne 0x40c08b
or dword [ebx + 0x2c], 8
jmp 0x40c091
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x40bfd9
push esi
call fcn.0040bef0
push esi
call fcn.0040be30
push esi
call fcn.0040bdf0
mov eax, dword [esi + 0x10]
push eax
call fcn.0040cee0
mov word [esi + 0xc], ax
test ax, ax
je 0x40c0d7
add esi, 4
push esi
call fcn.0040cd50
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.0040bdc0
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x40f230
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push ebp
call fcn.0040fd10
test eax, eax
mov eax, dword [esp + 0x14]
push eax
jne 0x40f260
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, esi
mov ebx, eax
jne 0x40f27a
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 0x40f27a
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 0x40f2ad
cmp eax, 0x102
jne 0x40f2ba
inc esi
cmp esi, dword [esp + 0x24]
jle 0x40f284
push ebx
call fcn.0040f330
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 0x40f2d0
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.0040fd10
test eax, eax
mov eax, dword [esp + 8]
push eax
push 0
jne 0x40f2f9
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x40f30e
mov eax, 1
pop esi
ret
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x40f30e
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40f325
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret