joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x432003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
mov ecx, 0x5c077b65
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x2fa17fce
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x40119e
test eax, eax
je 0x40119e
mov dword [eax + 0xf0], 0xa
mov ecx, dword [esi]
push edi
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax], edx
mov edx, dword [esi + 4]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 4], edi
mov edx, dword [esi + 8]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 8], edi
mov edx, dword [esi + 0xc]
lea ecx, [eax + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov dword [eax + 0xc], esi
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x466ae8]
xor edx, 0x1000000
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x466ee8]
and edi, 0xff0000
and edx, 0xff000000
xor edx, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4666e8]
xor edx, edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x4662e8]
and edi, 0xff00
xor edx, edi
xor edx, dword [eax]
mov edi, dword [ecx]
xor edi, edx
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
xor edx, edi
mov dword [eax + 0x18], edx
xor edx, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], edx
mov esi, 0x4686ec
jmp 0x401110
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov eax, edx
shr eax, 8
mov edi, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x466ee8]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x466ae8]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x4662e8]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4666e8]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
mov dword [ecx + 0x18], edx
cmp esi, str.kernel32.dll
jne 0x401110
pop edi
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x403360
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403374
test al, 0x10
jne 0x4033ee
mov eax, esi
push edi
xor edi, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403380
sub eax, edx
sar eax, 1
je 0x4033e4
push ebx
movzx eax, word [esi + edi*2]
cmp eax, 0x5c
je 0x4033a0
cmp eax, 0x2f
jne 0x4033c5
mov ebx, eax
xor eax, eax
push esi
mov word [esi + edi*2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4033b8
test al, 0x10
jne 0x4033c1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi + edi*2], bx
mov eax, esi
inc edi
lea edx, [eax + 2]
jmp 0x4033d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4033d0
sub eax, edx
sar eax, 1
cmp edi, eax
jb 0x403392
pop ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x403480
Capabilities:
Check os version
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4710b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
mov dword [ebp - 0x11c], 0
call fcn.004426d0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x403561
push str.NtCreateThreadEx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x403516
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_GetProcAddress__NtCreateThreadEx__
call fcn.0043e771
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043db8a
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
push esi
push 0
push 0x1fffff
lea edx, [ebp - 0x11c]
push edx
call eax
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x4035a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_NtCreateThreadEx__
call fcn.0043e771
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043db8a
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x4035a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_CreateRemoteThread__
call fcn.0043e771
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043db8a
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4035d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_WaitForSingleObject__
call fcn.0043e771
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043db8a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0043db8a
mov esp, ebp
pop ebp
ret
Function at 0x403e40
Capabilities:
Create thread
Delete file

Disassembly:
push str.._Launcher.new
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [0x4743a1], 0
je 0x403e9c
mov ecx, dword [esi + 0x4c8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
push 0
call edx
push 0
push 0
push esi
push 0x404ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x403e86
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
mov eax, dword [esi + 4]
push 0x40
push 0x468bd4
push 0x468bdc
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
ret
Function at 0x404e90
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esi]
push eax
push ecx
push 1
push edx
call fcn.0043efbd
mov eax, dword [esi]
push eax
call fcn.0043f1c1
mov ecx, dword [esi]
push ecx
call fcn.0043f28a
add esp, 0x18
mov al, 1
ret
Function at 0x405480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4710b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4055a7
push esi
lea eax, [ebp - 0x90]
push eax
push 4
lea ecx, [ebp - 0x94]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x94]
lea esi, [eax*8]
sub esi, eax
add esi, esi
add esi, esi
mov ebx, esi
test eax, eax
je 0x4055a7
push esi
call fcn.0043e0ba
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x94]
mov dword [ecx], eax
mov eax, dword [ebp - 0x8c]
mov dword [eax], edx
mov ecx, dword [ecx]
add esp, 4
mov dword [ebp - 0x8c], ecx
test esi, esi
je 0x405561
mov eax, dword [ebp - 0x8c]
push 0
lea edx, [ebp - 0x90]
push edx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405561
mov eax, dword [ebp - 0x90]
add dword [ebp - 0x8c], eax
sub ebx, eax
jne 0x405535
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xc], 0
je 0x4055a7
mov ecx, dword [ebp - 0x98]
mov edi, dword [ecx]
lea edx, [ebp - 0x88]
push edx
call fcn.00402930
add esp, 4
cmp esi, 8
jb 0x4055a7
shr esi, 3
lea ecx, [ecx]
push edi
mov eax, edi
lea ecx, [ebp - 0x88]
call fcn.00402f30
add esp, 4
add edi, 8
dec esi
jne 0x405590
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db8a
mov esp, ebp
pop ebp
ret 8
Function at 0x4055c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4710b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
mov edi, edx
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x8c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea edx, [ebp - 0x9c]
push edx
push 4
lea ecx, [ebp - 0x8c]
push ecx
push eax
mov dword [ebp - 0x98], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x8c]
push 0x4036c0
push 0x1c
push edx
push edi
call fcn.0043f420
mov eax, dword [ebp - 0x8c]
lea esi, [eax*8]
sub esi, eax
add esi, esi
add esp, 0x10
add esi, esi
cmp byte [ebp + 0xc], 0
mov ebx, edi
je 0x405691
lea eax, [ebp - 0x88]
push eax
call fcn.00402930
add esp, 4
cmp esi, 8
jb 0x405691
mov eax, esi
shr eax, 3
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x88]
push ebx
push ecx
mov edx, ebx
call fcn.00402bc0
add esp, 8
add ebx, 8
dec dword [ebp - 0x94]
jne 0x405674
test esi, esi
je 0x4056c8
jmp 0x4056a0
mov eax, dword [ebp - 0x98]
push 0
lea edx, [ebp - 0x90]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4056c8
mov eax, dword [ebp - 0x90]
add edi, eax
sub esi, eax
jne 0x4056a0
mov ecx, dword [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db8a
mov esp, ebp
pop ebp
ret 8

Function at 0x4056f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4710b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], edi
mov esi, ebx
mov dword [ebp - 0x8c], 0
test ebx, ebx
je 0x405757
mov edx, dword [ebp - 0x90]
push 0
lea ecx, [ebp - 0x8c]
push ecx
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405751
mov eax, dword [ebp - 0x8c]
add edi, eax
sub esi, eax
jne 0x405729
mov edi, dword [ebp - 0x94]
cmp byte [ebp + 0xc], 0
je 0x40578e
lea eax, [ebp - 0x88]
push eax
mov esi, edi
call fcn.00402930
add esp, 4
cmp ebx, 8
jb 0x40578e
shr ebx, 3
lea ecx, [ebp - 0x88]
push esi
push ecx
mov edx, esi
call fcn.00402bc0
add esp, 8
add esi, 8
dec ebx
jne 0x405776
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db8a
mov esp, ebp
pop ebp
ret 8
Function at 0x4057b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4710b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov edi, ecx
push SysReAllocString
mov esi, edx
mov dword [edi], 0
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [0x477440]
mov dword [esi], ecx
test eax, eax
jne 0x405829
push ecx
mov dword [0x477444], ecx
call fcn.0043e0ba
add esp, 4
jmp 0x405841
cmp ecx, dword [0x477444]
jbe 0x405846
push ecx
push eax
mov dword [0x477444], ecx
call fcn.0043e00d
add esp, 8
mov dword [0x477440], eax
mov dword [edi], eax
mov ebx, dword [esi]
mov dword [ebp - 0x8c], eax
test ebx, ebx
je 0x405886
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x94]
push 0
lea ecx, [ebp - 0x90]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405886
mov eax, dword [ebp - 0x90]
add dword [ebp - 0x8c], eax
sub ebx, eax
jne 0x405854
cmp byte [ebp + 0xc], 0
je 0x4058be
mov edi, dword [edi]
mov esi, dword [esi]
lea ecx, [ebp - 0x88]
push ecx
call fcn.00402930
add esp, 4
cmp esi, 8
jb 0x4058be
shr esi, 3
push edi
mov eax, edi
lea ecx, [ebp - 0x88]
call fcn.00402f30
add esp, 4
add edi, 8
dec esi
jne 0x4058a7
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db8a
mov esp, ebp
pop ebp
ret 8
Function at 0x406870
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4710b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
mov edi, ecx
push edi
push 0x3e8
push 0x469220
push str.update
call ebx
push edi
push 0x104
mov dword [esi + 0x518], eax
lea eax, [esi + 0x520]
push eax
push 0x46872c
push 0x469228
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0x10
push 0x469230
push str.update
call ebx
push 0x2000
push 0
push 0x477a80
mov dword [esi + 0x51c], eax
call fcn.004426d0
mov eax, edi
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4068f5
push 0
push 0
push 0x2000
push 0x477a80
sub eax, ecx
sar eax, 1
push eax
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edi, edi
lea ebx, [esi + 0x730]
push edi
push str.ServerData_d
lea edx, [ebp - 0x24]
call fcn.00409770
add esp, 8
push 0x477a80
push 0x400
lea ecx, [ebp - 0x424]
push ecx
push 0x46924d
lea edx, [ebp - 0x24]
push edx
push str.list
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x406992
push ebx
lea ecx, [ebp - 0x424]
call fcn.00402490
push 0xd5
push str.SrwhsEc1Rk1IaCyS
mov ecx, ebx
call fcn.004025d0
inc dword [esi + 0x72c]
inc edi
add esp, 0xc
add ebx, 0xd5
cmp edi, 8
jl 0x406926
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043db8a
mov esp, ebp
pop ebp
ret
Function at 0x406a10
Capabilities:
Delete file
Get common file path
Move file
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
mov eax, dword [0x4710b0]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push esi
push edi
push 0
mov edi, ecx
mov dword [esp + 0x14], 0
call fcn.0043dc80
add esp, 4
push edx
push eax
push 0x474ad3
push str._s_t_d
lea edx, [esp + 0x438]
call fcn.00409730
add esp, 0x10
push 0x469264
lea eax, [esp + 0x42c]
push eax
lea ecx, [esp + 0x18]
mov edx, edi
call fcn.00404a00
mov esi, eax
test esi, esi
je 0x406c1b
lea ecx, [esp + 0x220]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call fcn.0043dc80
add esp, 4
push edx
push eax
lea edx, [esp + 0x228]
push edx
push str._supdate__d.txt
lea edx, [esp + 0x28]
call fcn.004096f0
push 0x468f10
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0043ee1f
add esp, 0x1c
test eax, eax
jne 0x406afe
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push 1
push esi
call fcn.0043efbd
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0043f1c1
mov edx, dword [esp + 0x28]
add esp, 0x14
push edx
call fcn.0043f28a
add esp, 4
mov bl, 1
jmp 0x406b00
xor bl, bl
push esi
call fcn.0043dc24
add esp, 4
test bl, bl
jne 0x406b4a
mov eax, dword [edi + 4]
push 0x40
push 0x468bd4
push 0x469290
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [edi + 0x4c8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd8]
push 1
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0043db8a
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.00406eb0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, edi
call fcn.00406c30
test eax, eax
jle 0x406c1b
call fcn.00407140
test al, al
je 0x406bf3
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.Lineage
call edi
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov esi, eax
push esi
call ebx
test eax, eax
je 0x406c1b
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0xdc
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push str.Lineage
call edi
mov esi, eax
push esi
call ebx
test eax, eax
jne 0x406ba5
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0043db8a
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
push 0x40
push 0x468bd4
push 0x4692b0
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [edi + 0x4c8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
push 1
call edx
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043db8a
mov esp, ebp
pop ebp
ret
Function at 0x407510
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x456bcb
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4710b0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x4710b0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi + 4]
and eax, 0xff3effff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x6b
mov ecx, esi
call fcn.0040d38f
mov edx, dword [esi + 4]
lea ecx, [esi + 0x274]
push edx
call fcn.0040d7ca
lea ecx, [esp + 0x14]
call fcn.00414af6
mov dword [esp + 0x170], 0
call fcn.0040d914
mov ecx, eax
call fcn.00411bcc
test al, al
je 0x4076a1
push str.RC_SKIN
push 0x81
call fcn.0040d8ff
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4076de
push ebx
call fcn.0040d8ff
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x10], eax
push ebx
test eax, eax
jne 0x4075f6
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4076de
call fcn.0040d8ff
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4076de
push edi
call fcn.0040c4fb
add esp, 4
mov dword [esi + 0x514], eax
mov eax, dword [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esi + 0x514]
push eax
push ecx
call fcn.004407a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x407650
mov eax, dword [esi + 0x514]
cmp dword [eax], 0x6e696b53
jne 0x407681
mov dword [eax], 0x4034b50
mov eax, 4
cmp edi, eax
jbe 0x407681
lea ecx, [ecx]
mov ecx, dword [esi + 0x514]
xor byte [ecx + eax], 0xab
add ecx, eax
inc eax
cmp eax, edi
jb 0x407670
jmp 0x407691
mov eax, dword [esi + 0x514]
push edi
push eax
call fcn.0040d976
add esp, 8
push 0
lea edi, [esi + 0x274]
push edi
push 0
push 0
push ecx
mov eax, esp
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], esp
mov dword [eax], str.launcher.xml
call fcn.0041531e
push eax
mov ecx, edi
call fcn.00410a86
lea eax, [esi + 0x20]
push eax
mov ecx, edi
call fcn.0040dfc2
mov ecx, esi
call fcn.00403a10
lea ecx, [esp + 0x14]
mov dword [esp + 0x170], 0xffffffff
call fcn.004163cd
xor eax, eax
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0043db8a
mov esp, ebp
pop ebp
ret 0x10