joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4147b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00413910
add eax, 0xd4
cmp dword [eax + 0x14], 8
jb 0x4147d5
mov eax, dword [eax]
mov ecx, str.platform
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414806
test dx, dx
je 0x414802
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414806
add eax, 4
add ecx, 4
test dx, dx
jne 0x4147e0
xor eax, eax
jmp 0x41480b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41490b
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x21e]
push ecx
mov word [ebp - 0x220], ax
call fcn.0048f070
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x224], 0x104
call fcn.00410980
add esp, 0x14
test al, al
je 0x41490b
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414860
sub eax, edx
sar eax, 1
je 0x41490b
push esi
push 0x4b1930
lea ecx, [ebp - 0x220]
push 0x104
push ecx
call fcn.0048f473
push str.PlatformParam.ini
lea edx, [ebp - 0x220]
push 0x104
push edx
call fcn.0048f473
add esp, 0x18
lea ecx, [ebp - 0x220]
push ecx
push 0xa
lea edx, [ebp - 0x18]
push edx
xor eax, eax
push 0x4b1b10
push str.HWND
push str.HWNDApp
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x18]
push eax
call fcn.0048fa2d
mov esi, eax
add esp, 4
test esi, esi
je 0x41490a
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41490a
push 0
push 0xb
push 0x1911
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
Function at 0x4184a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push ebx
push edi
push 0x4b23c8
push str.SMSetup
mov dword [ebp - 0x22c], ecx
call fcn.0041a1c0
call fcn.00413910
mov ecx, dword [ebp + 8]
mov esi, eax
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
mov byte [esi + 0x2c], 1
mov dword [esi + 0x28], ecx
mov dword [esi + 0x24], edi
push eax
mov word [ebp - 0x20c], dx
call fcn.0048f070
add esp, 0x20
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418524
sub eax, edx
sar eax, 1
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov edx, 0x104
push str.ms_d
sub edx, edi
push edx
lea eax, [ebp + edi*2 - 0x20c]
push eax
call fcn.0048f18c
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
push 0x4b19ac
lea edx, [ebp - 0x20c]
push edx
push eax
push ecx
call fcn.0041ee90
add esp, 0x20
test eax, eax
jne 0x4185c7
push 1
push str.SUSN
push str.SMSetup
call fcn.0041a1c0
add esp, 0xc
lea ecx, [ebp - 0x228]
call fcn.00418bb0
push 1
push 4
lea ecx, [ebp - 0x228]
call fcn.00418f40
lea ecx, [ebp - 0x228]
call fcn.00418bd0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
push eax
push ebx
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x22c]
call fcn.004176c0
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
mov edi, eax
call fcn.00412750
push edi
push 0x4b2340
push str.SMSetup
call fcn.0041a1c0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418940
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x144]
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea ecx, [ebp - 0x120]
push 0
push ecx
call fcn.0048f070
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 2
jne case.default.0x4189f7
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x418af2
mov eax, dword [ebp - 0x118]
cmp eax, 4
ja case.default.0x4189f7
jmp dword [eax*4 + 0x418b90]
cmp byte [ebp - 6], 1
jne 0x418a18
mov eax, dword [ebp + 0xc]
push str.Windows_10
push eax
push esi
call fcn.0048f16e
jmp 0x418b7b
mov ecx, dword [ebp + 0xc]
push str.Windows_Server_10
push ecx
push esi
call fcn.0048f16e
jmp 0x418b7b
cmp byte [ebp - 6], 1
jne 0x418a46
mov edx, dword [ebp + 0xc]
push str.Windows_8.1
push edx
push esi
call fcn.0048f16e
jmp 0x418b7b
mov eax, dword [ebp + 0xc]
push str.Windows_Server_2012_R2
push eax
push esi
call fcn.0048f16e
jmp 0x418b7b
mov ecx, edi
call fcn.004188e0
cmp eax, 3
jl 0x418a94
cmp byte [ebp - 6], 1
jne 0x418a80
mov ecx, dword [ebp + 0xc]
push str.Windows_8.1
push ecx
push esi
call fcn.0048f16e
jmp 0x418b7b
mov edx, dword [ebp + 0xc]
push str.Windows_Server_2012_R2
push edx
push esi
call fcn.0048f16e
jmp 0x418b7b
cmp byte [ebp - 6], 1
jne 0x418aa8
mov eax, dword [ebp + 0xc]
push str.Windows_8
push eax
jmp 0x418b75
push str.Windows_Server_2012
jmp 0x418b71
cmp byte [ebp - 6], 1
jne 0x418ac6
mov edx, dword [ebp + 0xc]
push str.Windows_7
push edx
jmp 0x418b75
mov eax, dword [ebp + 0xc]
push str.Windows_Server_2008_R2
push eax
jmp 0x418b75
cmp byte [ebp - 6], 1
jne 0x418ae4
push str.Windows_Vista
jmp 0x418b71
mov edx, dword [ebp + 0xc]
push str.Windows_Server_2008
push edx
jmp 0x418b75
cmp eax, 5
jne case.default.0x4189f7
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x418b6c
dec eax
je 0x418b61
dec eax
jne case.default.0x4189f7
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x418b22
push str.Windows_Server_2003_R2
jmp 0x418b27
push str.Windows_Server_2003
push edi
push esi
call fcn.0048f00d
add esp, 0xc
test dword [ebp - 8], 0x8000
je 0x418b49
push str.Windows_Home_Server
push edi
push esi
call fcn.0048f00d
add esp, 0xc
cmp byte [ebp - 6], 1
jne case.default.0x4189f7
cmp word [ebp - 0x144], 9
jne case.default.0x4189f7
push str.Windows_XP_Professional_x64_Edition
push edi
jmp 0x418b75
mov eax, dword [ebp + 0xc]
push str.Windows_XP
push eax
jmp 0x418b75
push str.Windows_2000
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.0048f00d
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 8
Function at 0x418c00
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x13
push 0x4b1854
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x110], 0xf
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x124], 0
call fcn.00404620
push 1
push 0x4b1850
lea ecx, [ebp - 0x124]
call fcn.00404500
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418c60
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x124]
call fcn.00404500
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0048f070
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x108]
push edx
push esi
mov dword [ebp - 0x128], 0x104
call fcn.00411470
add esp, 0x18
test al, al
je 0x418d67
push 0x4b1850
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0048efa0
push 0x4b19dc
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0048efa0
add esp, 0x18
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x418d67
mov esi, dword [ebp + 0x10]
push esi
push 0
push edi
call fcn.0048f070
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push esi
push edi
push 0x4c72f7
push str.Version
push str.PlayApp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, edi
lea edx, [eax + 1]
jmp 0x418d30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418d30
sub eax, edx
je 0x418d67
cmp dword [ebp - 0x110], 0x10
jb 0x418d53
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.0048e224
add esp, 4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x110], 0x10
jb 0x418d7f
mov edx, dword [ebp - 0x124]
push edx
call fcn.0048e224
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418da0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x13
push 0x4b1854
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x110], 0xf
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x124], 0
call fcn.00404620
push 1
push 0x4b1850
lea ecx, [ebp - 0x124]
call fcn.00404500
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418e00
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x124]
call fcn.00404500
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0048f070
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x108]
push edx
push esi
mov dword [ebp - 0x128], 0x104
call fcn.00411470
add esp, 0x18
test al, al
je 0x418f07
push 0x4b1850
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0048efa0
push 0x4b19dc
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0048efa0
add esp, 0x18
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x418f07
mov esi, dword [ebp + 0x10]
push esi
push 0
push edi
call fcn.0048f070
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push esi
push edi
push 0x4c72f7
push str.Market
push str.PlayApp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, edi
lea edx, [eax + 1]
jmp 0x418ed0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418ed0
sub eax, edx
je 0x418f07
cmp dword [ebp - 0x110], 0x10
jb 0x418ef3
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.0048e224
add esp, 4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x110], 0x10
jb 0x418f1f
mov edx, dword [ebp - 0x124]
push edx
call fcn.0048e224
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.0048ef91
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 2
jne 0x419d75
lea ecx, [ebp - 4]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x419da5
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x419d9b
mov bl, 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push ecx
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419e01
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 4]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419df7
mov bl, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x419e45
lea ecx, [ebp - 4]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x419e75
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x419e6b
mov bl, 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push ecx
push edx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419ed1
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 4]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419ec7
mov bl, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419ee0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419f22
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x419f18
mov bl, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419f30
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push ecx
push edx
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419f71
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 4]
test eax, eax
push edx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419f80
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4ea080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
test byte [0x4ebd98], 1
jne 0x419fd5
or dword [0x4ebd98], 1
push 0x4b0350
mov dword [0x4ebd90], 0xf
mov dword [0x4ebd8c], ebx
mov byte [0x4ebd7c], bl
call fcn.0048fa00
add esp, 4
cmp dword [0x4ebd8c], ebx
jne 0x41a02d
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.0048f070
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.00411d70
lea eax, [ebp - 0x108]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41a012
sub eax, edx
push eax
lea edx, [ebp - 0x108]
push edx
mov ecx, 0x4ebd7c
call fcn.00404620
cmp dword [0x4ebd90], 0x10
mov eax, dword [0x4ebd7c]
mov dword [ebp - 0x10c], ebx
jae 0x41a046
mov eax, 0x4ebd7c
push 0x4b2860
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00490069
mov esi, dword [ebp - 0x10c]
add esp, 0xc
cmp esi, ebx
je 0x41a0a3
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41a070
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.0048ff1c
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.0048fd51
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
push str.SMClient
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ef91
mov esp, ebp
pop ebp
ret
Function at 0x41b120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41b12e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x41b20d
mov esi, edx
shr esi, 3
push edi
jmp 0x41b150
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b3d78]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b3d78]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b3d78]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b3d78]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b3d78]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b3d78]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b3d78]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b3d78]
add ecx, 8
sub edx, 8
dec esi
jne 0x41b150
pop edi
test edx, edx
je 0x41b22a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4b3d78]
inc ecx
dec edx
jne 0x41b211
not eax
pop esi
pop ebp
ret

Function at 0x41b230
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4b3d78]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4b3d78]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x41b280
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [ebp + 0xc]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4b3d78]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4b3d78]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x41b6e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x41b720
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b714
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x41b731
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0048e410
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x41b900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x41b94b
cmp byte [esi + 1], 0
je 0x41b953
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x41b967
cmp byte [esi + 1], 0
je 0x41b95b
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ebx, eax
mov dword [ebp + 8], ebx
jmp 0x41b96f
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x41b925
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 0
mov ebx, dword [ebp + 8]
jmp 0x41b96f
mov edx, dword [esi + 0x1c]
mov dword [ebp + 8], edx
mov ebx, edx
push edi
mov edi, 0xffff
mov dword [ebp - 4], edi
cmp ebx, edi
jae 0x41b981
mov dword [ebp - 4], ebx
mov edi, ebx
push 0x404
call fcn.004905a0
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41b99f
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x10], 0xffffffff
cmp edi, eax
jbe 0x41baad
jmp 0x41b9be
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
add eax, 0x400
mov dword [ebp - 8], edi
cmp eax, edi
ja 0x41b9cd
mov dword [ebp - 8], eax
mov eax, ebx
sub eax, dword [ebp - 8]
sub ebx, eax
mov dword [ebp - 0x18], eax
cmp ebx, 0x404
jbe 0x41b9e4
mov ebx, 0x404
cmp byte [esi], 0
je 0x41ba09
cmp byte [esi + 1], 0
je 0x41baad
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41ba0c
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x41ba35
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ba30
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x41ba5e
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x41ba46
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0xc]
push edi
add ecx, eax
push ecx
push edx
call fcn.0048e410
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x41baad
lea eax, [ebx - 3]
test eax, eax
js 0x41ba9b
mov edi, edi
mov ecx, dword [ebp - 0xc]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x41ba8f
cmp byte [eax + ecx + 1], 0x4b
jne 0x41ba8f
cmp byte [eax + ecx + 2], 5
jne 0x41ba8f
cmp byte [eax + ecx + 3], 6
je 0x41ba95
test eax, eax
jns 0x41ba70
jmp 0x41ba9b
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41baad
mov edx, dword [ebp - 4]
cmp dword [ebp - 8], edx
jb 0x41b9b5
mov eax, dword [ebp - 0xc]
push eax
call fcn.0048fb45
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret