joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c70
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585cc6
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5effd4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x21c]
call fcn.004032f0
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0055ed40
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x5ca130
lea edx, [ebp - 0x218]
push edx
push 0x5ca150
lea eax, [ebp - 0x21c]
push eax
call fcn.00403050
add esp, 0x10
lea ecx, [ebp - 0x220]
call fcn.004032f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.00402310
push eax
push 0x64
push 0x64
mov ecx, 0x5f92e4
call fcn.00402f30
push eax
push 0x5ca15c
push str.360_from
push 0x5ca174
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, 0x5f92e4
call fcn.00402ae0
lea ecx, [ebp - 0x21c]
call fcn.00402310
push eax
push 0x64
push 0x64
mov ecx, 0x5f92e8
call fcn.00402f30
push eax
push 0x5ca188
push str.360_channel
push 0x5ca1a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, 0x5f92e8
call fcn.00402ae0
lea ecx, [ebp - 0x21c]
call fcn.00402310
push eax
push 0x64
push 0x64
mov ecx, 0x5f92ec
call fcn.00402f30
push eax
push 0x5ca1b8
push str.360_subsite
push 0x5ca1d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, 0x5f92ec
call fcn.00402ae0
lea ecx, [ebp - 0x21c]
call fcn.00402310
push eax
push 0x64
push 0x64
mov ecx, 0x5f92f0
call fcn.00402f30
push eax
push 0x5ca1e8
push str.360_pkg_size
push 0x5ca208
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, 0x5f92f0
call fcn.00402ae0
mov dword [ebp - 0x224], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00403170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00403170
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c24d
mov esp, ebp
pop ebp
ret
Function at 0x401e50
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5effd4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0055ed40
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x20c]
add edx, 0xfffffffe
mov dword [ebp - 0x210], edx
mov eax, dword [ebp - 0x210]
mov cx, word [eax + 2]
mov word [ebp - 0x212], cx
add dword [ebp - 0x210], 2
cmp word [ebp - 0x212], 0
jne 0x401e9c
mov edi, dword [ebp - 0x210]
mov ecx, 0xa
mov esi, str.360SDK_binUtil.dll
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5f9420], eax
cmp dword [0x5f9420], 0
jne 0x401f0d
push 0
push 0
push str.LoadLibrary_util.dll_failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c24d
mov esp, ebp
pop ebp
ret

Function at 0x4039c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4039e4
xor eax, eax
jmp 0x403a64
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4039fb
xor eax, eax
jmp 0x403a64
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x403a47
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x403a47
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x403a1e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x403a53
xor eax, eax
jmp 0x403a64
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x403a61
xor eax, eax
jmp 0x403a64
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404990
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c4
mov eax, dword [0x5effd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c4], ecx
mov eax, dword [ebp - 0x3c4]
cmp dword [eax + 0xe0], 0
je 0x4049cf
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x3c4]
mov edx, dword [ecx + 0xe0]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
mov ecx, dword [ebp - 0x3c4]
call fcn.00418096
mov dword [ebp - 0x3c0], 0x3bc
push 0x3b8
push 0
lea ecx, [ebp - 0x3bc]
push ecx
call fcn.0055ed40
add esp, 0xc
mov edx, dword [ebp - 0x3c4]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x3bc], eax
lea ecx, [ebp - 0x3c0]
push ecx
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c24d
mov esp, ebp
pop ebp
ret
Function at 0x409f70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5864a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5effd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xec], 0
je 0x40a031
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0xcc], 0
je 0x409fd8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x14]
sub eax, dword [edx + 0xd0]
cmp eax, 0x7d0
jae 0x409fd8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409fb8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xec]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov ecx, dword [edx + 0xec]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x18], eax
push 0x409ea0
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
call eax
movzx ecx, al
test ecx, ecx
jne 0x40a02f
push 0
push 0x5cb76c
push 0x5cb774
call fcn.004053a0
mov ecx, eax
call fcn.0040bf90
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 0xd], 0
jmp 0x40a054
push 0
push 0x5cb79c
push 0x5cb7a4
call fcn.004053a0
mov ecx, eax
call fcn.0040bf90
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x40a08b
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5cb7d8
call fcn.00404d70
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
call fcn.004053a0
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.00409410
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40a220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5effd4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x210], ecx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0xe8]
cmp dword [ecx + 4], 0
je 0x40a263
push 0x5cb854
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 0xe8]
mov ecx, dword [eax + 4]
call ecx
mov edx, dword [ebp - 0x210]
cmp dword [edx + 0xe8], 0
je 0x40a2a5
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0xe8]
mov dword [ebp - 0x224], ecx
push 8
mov edx, dword [ebp - 0x224]
push edx
call fcn.0055c4f8
add esp, 8
mov eax, dword [ebp - 0x210]
mov dword [eax + 0xe8], 0
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0055ed40
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
mov dx, word [ecx + 2]
mov word [ebp - 0x216], dx
add dword [ebp - 0x214], 2
cmp word [ebp - 0x216], 0
jne 0x40a2dc
mov edi, dword [ebp - 0x214]
mov ecx, 0xd
mov esi, str.360SDK_binPCGameSDK.dll
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x21c], 7
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x21c]
sub ecx, 1
mov dword [ebp - 0x21c], ecx
cmp dword [ebp - 0x228], 0
je 0x40a36d
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x40a369
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40a36b
jmp 0x40a36d
jmp 0x40a31a
mov ecx, dword [ebp - 0x210]
mov dword [ecx + 0xcc], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c24d
mov esp, ebp
pop ebp
ret
Function at 0x40a420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586528
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5effd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x28]
push eax
call fcn.00413fd0
mov ecx, eax
call fcn.00405170
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0x5cb8c4
call fcn.0040a820
add esp, 8
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0x28]
call fcn.00403170
movzx edx, byte [ebp - 0x11]
test edx, edx
je 0x40a56c
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404d70
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0040a980
push 0
push str.360.cn
lea ecx, [ebp - 0x18]
call fcn.0040a9d0
cmp eax, 0xffffffff
je 0x40a518
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x34], 0
je 0x40a518
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x34]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x34]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0x18]
call edx
mov byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x40a518
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403170
mov eax, dword [ebp - 0x30]
jmp 0x40a588
push 5
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
push 0x5cb8ec
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403170
jmp 0x40a55a
mov dword [ebp - 4], 0xffffffff
jmp 0x40a56a
jmp 0x40a583
push 5
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x5cb904
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40b5d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
xor eax, eax
jne 0x40b5d9
cmp dword [ebp + 0xc], 0
je 0x40b5ec
mov dword [ebp - 0xc], 1
jmp 0x40b5f3
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x40b606
mov eax, 0xd
jmp 0x40b65b
xor edx, edx
jne 0x40b5dd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x40b619
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x40b919
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b95c
mov eax, dword [ebp - 8]
jmp 0x40b9c2
cmp dword [ebp - 0xc], 1
je 0x40b96f
cmp dword [ebp - 0xc], 2
je 0x40b96f
mov eax, 0xd
jmp 0x40b9c2
cmp dword [ebp + 0xc], 0
je 0x40b9b6
cmp dword [ebp - 4], 0
je 0x40b9a5
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x40b99c
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x40b9a3
mov eax, 0xd
jmp 0x40b9c2
jmp 0x40b9b6
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d320
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5effd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
mov eax, dword [ebp - 0x210]
cmp dword [eax], 0
jne 0x40d349
or eax, 0xffffffff
jmp 0x40d38f
push 0x5cbe20
push 0x100
lea ecx, [ebp - 0x20c]
push ecx
push 0x5cbe3c
push 0x5cbe4c
push 0x5cbe60
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push 0xa
push 5
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0x5cbe70
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c24d
mov esp, ebp
pop ebp
ret 4
Function at 0x40d4f0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5effd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
call fcn.00402690
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x114]
cmp dword [eax + 4], 0
jne 0x40d527
xor al, al
jmp 0x40d6f0
push 0
push 0
lea ecx, [ebp - 0x11c]
push ecx
push 0x104
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x40d56e
mov edx, dword [ebp - 0x114]
mov byte [edx + 0x20], 1
xor al, al
jmp 0x40d6f0
cmp dword [ebp - 0x11c], 0
je 0x40d6c6
push 0
lea eax, [ebp - 0x11c]
push eax
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x114]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d6c6
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x128], ecx
cmp dword [ebp - 0x128], 0x105
jae 0x40d5c2
jmp 0x40d5c7
call fcn.0055c8de
mov edx, dword [ebp - 0x128]
mov byte [ebp + edx - 0x10c], 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x40d5f9
mov dword [ebp - 0x130], 0
jmp 0x40d6b1
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x118]
mov cl, byte [eax]
mov byte [ebp - 0x10d], cl
add dword [ebp - 0x118], 1
cmp byte [ebp - 0x10d], 0
jne 0x40d614
mov edx, dword [ebp - 0x118]
sub edx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
add eax, 1
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0x3fffffff
jle 0x40d66b
mov dword [ebp - 0x12c], 0
jmp 0x40d6a5
mov eax, dword [ebp - 0x120]
shl eax, 1
call fcn.0055cea0
mov dword [ebp - 0x144], esp
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.0040bdb0
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x114]
add ecx, 0x10
call fcn.0040b8f0
mov ecx, dword [ebp - 0x114]
movzx edx, byte [ecx + 0x18]
test edx, edx
je 0x40d6ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x114]
sub eax, dword [ecx + 0x1c]
cmp eax, 0x2710
jbe 0x40d6ee
xor al, al
jmp 0x40d6f0
mov al, 1
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c24d
mov esp, ebp
pop ebp
ret
Function at 0x40e6c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5effd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], ecx
call fcn.00402690
mov dword [ebp - 0x34], eax
lea ecx, [ebp + 8]
call fcn.00402310
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40e6f5
mov dword [ebp - 0x24], 0
jmp 0x40e76c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx]
mov word [ebp - 0x12], ax
add dword [ebp - 0xc], 2
cmp word [ebp - 0x12], 0
jne 0x40e704
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x2c]
sar ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x3fffffff
jle 0x40e73f
mov dword [ebp - 0x20], 0
jmp 0x40e766
mov eax, dword [ebp - 0x18]
shl eax, 1
call fcn.0055cea0
mov dword [ebp - 0x38], esp
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x18]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.0040e840
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 5], al
add dword [ebp - 0x10], 1
cmp byte [ebp - 5], 0
jne 0x40e781
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
push 0
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp + 8]
call fcn.00403170
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c24d
mov esp, ebp
pop ebp
ret 4
Function at 0x412100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 2
jne 0x412148
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [ebp - 0x10], eax
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00412420
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
jmp 0x412219
cmp dword [ebp + 0x10], 0
jne 0x412158
call fcn.00404e50
mov dword [ebp - 0x14], eax
jmp 0x41215e
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0055e240
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.004122a0
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x412f00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov edx, dword [0x5f9490]
cmp edx, dword [ecx + 4]
jle 0x412f6a
push 0x5f9490
call fcn.0055c6a6
add esp, 4
cmp dword [0x5f9490], 0xffffffff
jne 0x412f6a
push 0x5cdc04
push 0
push 0x5cdc28
push 0x5cdc30
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x412f51
mov byte [ebp - 1], 1
jmp 0x412f55
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov byte [0x5f9494], al
push 0x5f9490
call fcn.0055c65c
add esp, 4
mov al, byte [0x5f9494]
mov esp, ebp
pop ebp
ret
Function at 0x412f80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x5d0490
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5f9440], eax
mov eax, dword [0x5f9440]
push eax
call dword [sym.imp.dbghelp.dll_ImageNtHeader]
cmp dword [eax + 8], 0x5b690d68
jae 0x412fc2
push 0
push 0
push str.ceflib.dll_version_mismatch
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.InitializeCef
mov ecx, dword [0x5f9440]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 4]
add esp, 0x14
mov esp, ebp
pop ebp
ret