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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b9d0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
push edi
push 1
call dword [sym.imp.MSVCR120.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x53a5c4
lea eax, [esi + 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
mov edx, dword [sym.imp.MSVCR120.dll_free]
lea ecx, [ebp - 0x1c]
push esi
call fcn.00430f80
add esp, 4
mov dword [ebp - 4], 0
lea ebx, [edi - 8]
cmp byte [0x5c6a90], 0
lea edi, [esi + 8]
je 0x53a5fc
mov ecx, dword [ebp + 8]
mov edx, edi
push ebx
call fcn.005029e0
add esp, 4
jmp 0x53a619
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53a616
or eax, 0xffffffff
jmp 0x53a619
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x53a627
mov esi, 1
jmp 0x53a6b6
mov dword [ebp - 0x2c], vtable.CAutoFreeBase.0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], vtable.CAutoFree_struct_ECP_DNS_DATA__void___cdecl_free_void___.0
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], vtable.CAutoFreePtr_struct_ECP_DNS_DATA__void___cdecl_free_void___.0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 3
cmp byte [ebp - 0x28], 0
mov ebx, dword [edi]
jne 0x53a669
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call dword [eax]
push ebx
push 1
call dword [sym.imp.MSVCR120.dll_calloc]
mov ecx, eax
add esp, 8
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x53a683
lea esi, [eax + 1]
jmp 0x53a6aa
push dword [edi]
mov eax, dword [esi + 0xc]
add eax, esi
push eax
push ecx
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 0x28], 1
mov edx, dword [eax]
mov ecx, dword [ecx + 8]
call fcn.004d45a0
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0053abc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00416890
mov ax, si
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 0x53b330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56bb98
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], vtable.CArray_struct_CECPRequest::xmlAttributes::attr__struct_CECPRequest::xmlAttributes::attr_const__.0
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 1
lea ecx, [ebx + 8]
mov eax, dword [ebx + 8]
call dword [eax + 4]
push ecx
push 1
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0053cee0
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 8]
mov dword [edx], str.name
mov dword [edx + 4], esi
mov eax, dword [ebx + 8]
call dword [eax + 8]
mov esi, dword [esp + 0x18]
mov edi, eax
push ecx
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x18]
call fcn.0053cee0
mov eax, dword [esp + 0x14]
mov edx, str.ecp:command
mov ecx, dword [ebp + 8]
push 1
push 2
mov dword [eax + esi*8], str.version
mov dword [eax + esi*8 + 4], edi
lea eax, [esp + 0x18]
push eax
call fcn.00537920
add esp, 0xc
movzx edi, ax
mov eax, dword [ebx]
mov ecx, ebx
mov esi, edi
push dword [ebp + 8]
call dword [eax + 0xc]
movzx eax, ax
test di, di
je 0x53b418
cmp edi, 1
jne 0x53b41a
test ax, ax
je 0x53b41a
mov esi, eax
mov ecx, dword [ebp + 8]
mov edx, str.ecp:command
push 1
push 2
call fcn.00537af0
add esp, 8
movzx eax, ax
test si, si
je 0x53b441
cmp si, 1
jne 0x53b443
test ax, ax
je 0x53b443
mov esi, eax
mov dword [esp + 0x30], 2
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
test eax, eax
je 0x53b465
push eax
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], vtable.CArray_struct_CECPRequest::xmlAttributes::attr__struct_CECPRequest::xmlAttributes::attr_const__.0
test eax, eax
je 0x53b48f
push eax
call edi
add esp, 4
mov ax, si
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x547300
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x54730b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00547320
Function at 0x54e760
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.SysInspector_
mov esi, ecx
mov dword [ebp - 0x22c], 0x105
push 0x104
push esi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x218]
mov edx, 0x104
push eax
mov ecx, esi
call fcn.0052fae0
add esp, 4
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x54e86b
test eax, eax
je 0x54e82f
push eax
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
sub eax, 0x7d0
push eax
push str.__02d_02d_02d__02d_02d_02d__d
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.0052fc70
add esp, 0x28
jmp 0x54e8b9
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
sub eax, 0x7d0
push eax
push str.__02d_02d_02d__02d_02d_02d
jmp 0x54e8a5
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
sub eax, 0x7d0
push eax
push 0x59b3b0
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.0052fc70
add esp, 0x24
push str..xml
mov edx, 0x105
lea ecx, [ebp - 0x218]
call fcn.0052fae0
lea eax, [ebp - 0x218]
mov edx, 0x104
push eax
mov ecx, esi
call fcn.0052fae0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x54e960
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ebx, edx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x54e990
sub eax, edx
sar eax, 1
cmp eax, 0xd
je 0x54e9b8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov eax, dword [0x59b3b8]
mov esi, dword [sym.imp.MSVCR120.dll_wcstoul]
mov dword [ebp - 0xc], eax
movzx eax, word [0x59b3bc]
mov word [ebp - 8], ax
movzx eax, word [edi]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 2]
push 0xa
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
cmp ax, 0x5a
push 0xa
sbb ecx, ecx
and ecx, 0x64
add ecx, 0x76c
add ax, cx
mov word [ebp - 0x1c], ax
movzx eax, word [edi + 4]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 6]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
mov word [ebp - 0x1a], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 0xa]
push 0xa
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
mov word [ebp - 0x16], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 0x10]
push 0xa
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0x12]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 0x14]
push 0xa
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
mov word [ebp - 0x12], ax
movzx eax, word [edi + 0x16]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 0x18]
push 0xa
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
add esp, 0x48
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x54eac0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x59b3b8]
mov dword [ebp - 0xc], eax
mov ax, word [0x59b3bc]
mov word [ebp - 8], ax
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x54eb07
sub eax, edx
sar eax, 1
cmp eax, 0xd
je 0x54eb2d
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
movzx eax, word [edi]
push esi
mov esi, dword [sym.imp.MSVCR120.dll_wcstoul]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 2]
push 0xa
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
add eax, 0x64
mov dword [ebp - 0x1c], eax
movzx eax, word [edi + 4]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 6]
push 0xa
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
dec eax
mov dword [ebp - 0x20], eax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 0xa]
push 0xa
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
mov dword [ebp - 0x24], eax
movzx eax, word [edi + 0xe]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 0x10]
push 0xa
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
mov dword [ebp - 0x28], eax
movzx eax, word [edi + 0x12]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 0x14]
push 0xa
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
mov dword [ebp - 0x2c], eax
movzx eax, word [edi + 0x16]
mov word [ebp - 0xc], ax
movzx eax, word [edi + 0x18]
push 0xa
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push 0
push eax
call esi
add esp, 0x48
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], 0xffffffff
push eax
call dword [sym.imp.MSVCR120.dll__mktime32]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
pop edi
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x54ec10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov edi, edx
xor edx, edx
push 3
push 1
mov dword [ebp - 0xc], edi
call fcn.00501940
mov esi, eax
add esp, 0xc
test esi, esi
je 0x54eccc
mov ecx, esi
call fcn.00501bb0
mov ebx, eax
mov dword [ebp - 8], edx
lea eax, [ebx + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [edi], eax
lea ecx, [ebx + 1]
push ecx
push 0
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [edi]
add esp, 0xc
cmp byte [0x5c6a90], 0
je 0x54ec7e
push ebx
mov edx, eax
mov ecx, esi
call fcn.005029e0
add esp, 4
mov edi, eax
jmp 0x54ec99
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x54ec96
or edi, 0xffffffff
jmp 0x54ec99
mov edi, dword [ebp - 4]
push esi
call fcn.00501c60
add esp, 4
cmp ebx, edi
jne 0x54ecc0
cmp dword [ebp - 8], 0
jne 0x54ecc0
mov eax, dword [ebp + 8]
lea ecx, [ebx + 1]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x54edf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov dword [ebp - 8], ecx
push edi
mov dword [ebp - 4], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
je 0x54ee2d
nop
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x54ee1f
cmp word [eax], 0
je 0x54ee22
inc edi
jmp 0x54ee10
test edi, edi
jne 0x54ee36
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 2
add edi, edi
lea eax, [edi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
mov esi, eax
push ebx
push esi
call sub.MSVCR120.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push dword [ebp - 4]
lea eax, [esi - 2]
push dword [ebp - 8]
add eax, edi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4010df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401135
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401135
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401127
cmp esi, ecx
jae 0x401135
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401115
cmp esi, ecx
jae 0x401135
cmp word [esi], 0
je 0x401135
mov eax, esi
jmp 0x401137
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4016cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [0x422428]
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov ecx, edx
shr edx, 4
and ecx, 0xf
inc edx
push eax
movzx eax, dx
push eax
push 6
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x40172b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40172b
mov ecx, dword [ebp - 4]
movzx eax, word [esi]
add esi, 2
test ax, ax
je 0x401725
mov dword [ebp - 4], eax
cmp edi, ecx
je 0x40173f
lea esi, [esi + eax*2]
inc edi
cmp edi, 0x10
jl 0x401710
call fcn.00401200
push eax
mov ecx, ebx
call fcn.0040305b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
call fcn.00401200
push eax
push dword [ebp - 4]
mov ecx, ebx
push esi
call fcn.00402ffa
jmp 0x401738

Function at 0x4018b8
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0x8004ffff
lea ebx, [esi + 0x10]
je 0x401900
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x4018e5
push edi
mov ecx, ebx
call fcn.004027fe
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x14]
jne 0x4018cf
mov ecx, ebx
call fcn.00402823
lea edi, [esi + 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.00402c54
jmp 0x401903
lea edi, [esi + 0x1c]
lea ecx, [esi + 0x20]
call fcn.00402fdf
mov ecx, edi
call fcn.00402fdf
mov ecx, ebx
call fcn.00402823
lea ecx, [esi + 8]
call fcn.00402fdf
pop edi
lea ecx, [esi + 4]
pop esi
pop ebx
jmp fcn.00402fdf
Function at 0x402017
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
or esi, 0xffffffff
call fcn.004061f0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41ee6c
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x402114
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402baf
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.0040285c
lea ecx, [ebp - 0x214]
call fcn.00402fdf
push 0x41ed24
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402114
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402114
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402114
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402114
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.004023a6
pop ecx
test eax, eax
jne 0x40210a
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x402114
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e9e
leave
ret
Function at 0x4023a6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x9c], eax
push edi
mov edi, ecx
cmp esi, 0xd
jae 0x4023d6
or eax, 0xffffffff
jmp 0x40256b
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x40238a
push eax
xor ebx, ebx
mov dword [ebp - 0x90], 0x402398
push ecx
mov edx, edi
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], ebx
call fcn.00405130
xor eax, eax
mov dword [ebp - 0x58], ebx
inc eax
mov dword [ebp - 0x34], ebx
add edi, 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
sub esi, 0xd
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [edi]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], esi
call fcn.00416a8f
add esp, 0xc
mov dword [ebp - 0x84], ebx
mov edi, eax
lea eax, [ebp - 0x84]
mov edx, edi
push eax
push ecx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x7c]
add eax, 8
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00404fd2
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x94]
push dword [ebp - 0x6c]
push eax
call dword [ebp - 0x90]
push dword [ebp - 0x68]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x6c], ebx
push eax
call dword [ebp - 0x90]
add esp, 0x10
mov dword [ebp - 0x68], ebx
test esi, esi
je 0x4024a5
or ebx, 0xffffffff
jmp 0x40255e
mov edx, dword [edi]
lea ecx, [edi + 4]
mov eax, dword [ecx]
push 4
pop esi
add ecx, esi
mov dword [ebp - 0x98], eax
push edx
mov dword [ebp - 0x80], edx
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x88], eax
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x8c], eax
mov ebx, dword [ecx]
add ecx, esi
mov dword [ebp - 0x84], ecx
call fcn.00416a8f
mov edx, dword [ebp - 0x88]
mov esi, eax
pop ecx
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x8c]
push esi
push ebx
mov ebx, dword [ebp - 0x98]
lea eax, [ecx + edx]
add eax, ebx
add eax, dword [ebp - 0x84]
push eax
push ecx
mov ecx, dword [ebp - 0x84]
lea eax, [edx + ebx]
add eax, ecx
push eax
push edx
lea eax, [ebx + ecx]
mov edx, ebx
push eax
call fcn.004051a2
add esp, 0x20
xor ebx, ebx
test eax, eax
je 0x402529
inc ebx
jmp 0x402553
push ebx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x80]
push esi
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402550
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0xa0], eax
je 0x402553
or ebx, 0xffffffff
test esi, esi
je 0x40255e
push esi
call fcn.004167ea
pop ecx
test edi, edi
je 0x402569
push edi
call fcn.004167ea
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e9e
leave
ret
Function at 0x403402
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0040349a
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x403492
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40348b
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x403482
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403482
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x403494
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040349a
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x403625
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x403683
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403683
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x403683
cmp dword [edx + ecx], 0x4550
jne 0x403683
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x40366e
mov edi, 0x8664
cmp ax, di
je 0x403683
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x403683
add ecx, 0xc
cmp esi, ecx
jae 0x403685
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x401230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.Config
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
push 0x548b5c
mov ecx, dword [ebp - 4]
add ecx, 0x628
push ecx
call fcn.004af679
add esp, 0x10
mov edx, dword [ebp - 4]
add edx, 0x628
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40127f
mov eax, dword [ebp - 4]
add eax, 0x628
push eax
call fcn.0040f7e0
add esp, 4
push 0x548b68
mov ecx, dword [ebp - 4]
add ecx, 0x628
push ecx
call fcn.004af779
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x4012a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp - 0x214]
add eax, 0x10
push eax
push str._sUseData_
lea ecx, [ebp - 0x210]
push ecx
call fcn.004af679
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4012f7
lea eax, [ebp - 0x210]
push eax
call fcn.0040f7e0
add esp, 4
lea ecx, [ebp - 0x210]
push ecx
push str._sUseData.ini
mov edx, dword [ebp - 0x214]
add edx, 0x420
push edx
call fcn.004af679
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret

Function at 0x4013b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], ecx
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.004af7d0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jne 0x401421
cmp dword [ebp - 0x120], 0
je 0x401411
cmp dword [ebp - 0x120], 1
jne 0x401421
movzx edx, byte [ebp - 0xe]
cmp edx, 1
jne 0x401421
mov eax, 1
jmp 0x401423
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret