joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b9ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4ddea0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46ba11
cmp word [esi], dx
jne 0x46ba11
or byte [edi + eax + 0x28], 4
jmp 0x46ba16
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46bb69
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46bb49
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46ba58
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46ba8e
cmp eax, edx
jae 0x46ba9a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46ba30
jmp 0x46bb69
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46bb45
cmp dword [ebp - 0x14], 0
je 0x46bb45
mov eax, dword [ebx*4 + 0x4ddea0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46bb1d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46bae6
mov word [esi], cx
jmp 0x46bb19
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ddea0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ddea0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ddea0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46bb69
pop ebx
cmp word [ebp - 4], bx
jne 0x46bb2e
cmp esi, dword [ebp + 0xc]
jne 0x46bb2e
mov word [esi], bx
jmp 0x46bb66
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046c717
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46bb69
push 0xd
jmp 0x46bb62
mov ecx, dword [ebx*4 + 0x4ddea0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46bb60
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46bb69
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4728f0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x47298d
push ebx
push esi
call fcn.004728ac
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0046f993
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x47293a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47298c
push edi
push eax
call fcn.0046c902
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x47295a
call fcn.00466ae5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47298b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0046f993
add esp, 0x20
test eax, eax
jne 0x472979
push edi
call fcn.00466ae5
jmp 0x472981
push ebx
call fcn.00466ae5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x472990
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4729a1
pop esi
ret
push ebx
push edi
push esi
call fcn.004728ac
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046c902
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4729c9
push ebx
push esi
push edi
call fcn.0042b920
add esp, 0xc
push 0
call fcn.00466ae5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4732aa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00472c3c

Function at 0x4803e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48040d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48040d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402dd4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035a8
xor eax, eax
push ebp
push 0x4035a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4035e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403ef5
cmp word [0x40a218], 0xd7b2
jne 0x403ebd
cmp dword [0x40a220], 0
jbe 0x403ebd
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409064
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f1c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409024], 0
jne 0x403f11
push 0
push 0x40905c
push 0x409064
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404ca4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404d0a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404260
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f28
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404cf4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404d11
lea eax, [ebp - 0x10]
call fcn.00404018
ret

Function at 0x406aec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406b25
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404108
jmp 0x406b2e
mov eax, ebx
mov edx, esi
call fcn.0040406c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406b38
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406b59
mov al, byte [esp]
jmp 0x406b5b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4071f0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407058
mov eax, dword [0x4093b4]
cmp byte [eax], 0
je 0x40726c
mov eax, dword [0x409308]
call fcn.00402d48
call fcn.004029a8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405fc0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4072b4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4072a2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.00404674
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x407c90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407cf4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404260
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405e88
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407cfb
lea eax, [ebp - 0xc]
call fcn.00404018
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41473b
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], edi
mov dword [0x41cf60], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x3c]
mov dword [edi], str.FM4.0
mov dword [edi + 4], str.fm4.exe
mov dword [edi + 8], str.YySRV.exe
mov dword [edi + 0xc], 0x4172f4
mov dword [edi + 0x10], str.PlayerUpdate.exe
mov dword [edi + 0x2c], 0xa
mov word [edi + 0x30], bx
mov byte [edi + 0x32], bl
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], eax
mov byte [eax], bl
mov byte [ebp - 4], 1
push 0xa0
mov dword [edi + 0x7c], 0x1010101
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
call fcn.004086aa
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4010aa
push eax
call fcn.00402ff0
jmp 0x4010ac
xor eax, eax
lea esi, [ebp - 0x58]
mov dword [edi + 0x34], eax
call fcn.00401110
lea esi, [edi + 0x38]
call fcn.00402870
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x4010d2
push eax
call fcn.00408c41
add esp, 4
push ebx
lea edx, [ebp - 0x68]
push edx
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret

Function at 0x401110
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040caf0
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x26
push 0
mov dword [ebp - 0x10c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401180
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401191
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3f
jl 0x4011b8
lea edx, [edi + 1]
push edx
push 0
mov dword [esi], 0
call fcn.00408f11
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.00408c27
mov edx, dword [esi]
add esp, 0xc
push 0x417314
mov eax, esi
mov byte [edi + edx], 0
call fcn.004026d0
push str.FM4.0
mov eax, esi
call fcn.004026d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
pop edi
call fcn.004084de
mov esp, ebp
pop ebp
ret
Function at 0x402410
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], edx
call fcn.00410266
add esp, 8
lea ecx, [ebp - 0x418]
push ecx
push 0x4152dc
push 1
push 0
push 0x4152ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x402579
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x41c]
push ecx
push 0x4152fc
push eax
call edx
test eax, eax
js 0x40256b
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test ebx, ebx
jne 0x4024af
mov edx, dword [0x41c210]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x4024b6
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test esi, esi
je 0x4024cb
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
jmp 0x4024d8
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test edi, edi
je 0x4024ed
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x402506
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x402541
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.0040872a
add esp, 0x10
jmp 0x4025cb
push 0x5c
test ebx, ebx
je 0x40254a
push ebx
jmp 0x402551
mov edx, dword [0x41c210]
push edx
call fcn.00408aa0
add esp, 8
test eax, eax
jne 0x40258c
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret 8
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.0040872a
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4025b1
sub eax, edx
lea eax, [ebp + eax - 0x108]
mov word [eax - 3], 0x6e6c
mov byte [eax - 1], 0x6b
push 0x104
lea edx, [ebp - 0x414]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x414]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setns al
xor ecx, ebp
pop esi
call fcn.004084de
mov esp, ebp
pop ebp
ret 8
Function at 0x403b70
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x90]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c70
mov edx, dword [0x41cf60]
push edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x88], al
mov eax, dword [edx + 4]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [esi]
push eax
push ecx
push str.__s_s___mini
lea edi, [ebp - 0x8c]
call fcn.00402ca0
lea edx, [ebp - 0x44]
push 5
mov eax, edx
push str.FM4.0
push eax
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x44], 0
call fcn.00408c27
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 5], 0
mov edx, dword [esi + 0x54]
add esp, 0x18
push edx
lea eax, [ebp - 0x48]
call fcn.004026d0
mov edx, dword [ebp - 0x8c]
mov eax, edx
lea esi, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403c17
mov ecx, dword [ebp - 0x90]
sub eax, esi
push eax
mov eax, dword [ebp - 0x48]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
cmp eax, ecx
je 0x403c57
push eax
call fcn.00408c41
add esp, 4
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
cmp eax, edx
je 0x403c70
push eax
call fcn.00408c41
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004084de
mov esp, ebp
pop ebp
ret
Function at 0x403c80
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x138]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e55
push esi
push edi
mov edi, dword [ebx]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xa8], 0
test edi, edi
jne 0x403cd9
mov edi, 0x4173a8
mov ecx, edi
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403ce0
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x403d0e
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0xac], 0
call fcn.00408f11
add esp, 8
mov dword [ebp - 0xac], eax
push esi
push edi
push eax
call fcn.00408c27
mov edx, dword [ebp - 0xac]
add esp, 0xc
push str.SysConfig.ini
lea eax, [ebp - 0xac]
mov byte [esi + edx], 0
call fcn.004026d0
mov eax, dword [ebp - 0xac]
push eax
push 0x63
lea ecx, [ebp - 0x68]
push ecx
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebx]
lea eax, [ebp - 0x68]
push eax
push ecx
lea edx, [ebp - 0x130]
push str.__s_s___mini
lea edi, [ebp - 0x134]
mov dword [ebp - 0x134], edx
mov byte [ebp - 0x130], 0
call fcn.00402ca0
lea edx, [ebp - 0xec]
push 5
mov eax, edx
push str.FM4.0
push eax
mov dword [ebp - 0xf0], edx
mov byte [ebp - 0xec], 0
call fcn.00408c27
mov ecx, dword [ebp - 0xf0]
add esp, 0x18
push str._News
lea eax, [ebp - 0xf0]
mov byte [ecx + 5], 0
call fcn.004026d0
mov edx, dword [ebx + 0x54]
push edx
lea eax, [ebp - 0xf0]
call fcn.004026d0
mov edx, dword [ebp - 0x134]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403dd8
mov ecx, dword [ebp - 0x138]
sub eax, esi
push eax
mov eax, dword [ebp - 0xf0]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
pop edi
pop esi
cmp eax, ecx
je 0x403e23
push eax
call fcn.00408c41
add esp, 4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
cmp eax, edx
je 0x403e3c
push eax
call fcn.00408c41
add esp, 4
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x403e55
push eax
call fcn.00408c41
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004084de
mov esp, ebp
pop ebp
ret
Function at 0xd12510
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xd4fc54]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00d2e180
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0xd125df
mov eax, 0xd485fc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xd12555
sub eax, edx
sar eax, 1
je 0xd125df
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.00d43238]
push 0xd485fc
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00d2c6c7
push 0xd485f4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00d2c16e
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0xd125df
push eax
push 1
push 0x200
push esi
call fcn.00d2c9e4
mov eax, dword [esp + 0x14]
push eax
call fcn.00d2c41c
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00d2bef2
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00d2bef2
add esp, 0x214
ret

Function at 0xd127c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x3e8
mov dword [esp + 0x10], 0
call dword [0xd43250]
push 0xd485f4
lea eax, [esp + 0x10]
push 0xd74960
push eax
call fcn.00d2c16e
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0xd128f1
push 2
push 0
push eax
call fcn.00d2ce5f
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call fcn.00d2d081
mov esi, eax
add esp, 4
push esi
call fcn.00d21b7d
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.00d2ce5f
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.00d2c9e4
add esp, 0x10
cmp esi, eax
jne 0xd128d3
call dword [0xd4323c]
push eax
call fcn.00d2cda1
add esp, 4
call fcn.00d2cdb3
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0xd4a7e0]
fmul qword [0xd4a7d8]
fadd qword [0xd4a7d0]
call fcn.00d2ea20
cmp esi, eax
jl 0xd128d3
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.00d12770
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00d2c41c
add esp, 4
push 0xd74960
call dword [0xd43230]
push 0xd48304
lea edx, [esp + 0x10]
push 0xd74960
push edx
call fcn.00d2c16e
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0xd128f1
push eax
push esi
push 1
push edi
call fcn.00d2c323
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0xd128e4
push eax
call fcn.00d2c41c
add esp, 4
test edi, edi
je 0xd128f1
push edi
call fcn.00d21b88
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret