joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a548
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4215b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40410e
cmp byte [ebx + 0x49], 0
je 0x40410e
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x404102
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x403fd5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403ff2
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x404029
dec eax
je 0x40402d
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x404109
call fcn.004027f0
xor al, al
jmp 0x404110
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40403d
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40406a
cmp edi, 0x10
jae 0x40404c
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040881f
add esp, 0x10
cmp esi, eax
jne 0x4040fa
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x404106
test esi, esi
jne 0x403fe6
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40412b
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40412b
cmp edi, esi
jae 0x4040e3
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404740
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x403fe6
mov ecx, eax
cmp edi, 0x10
jae 0x4040bf
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4040da
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x403fe0
test esi, esi
jne 0x4040b5
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4040f2
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x403fe0
lea ecx, [ebp - 0x2c]
call fcn.004027f0
xor al, al
jmp 0x404110
lea ecx, [ebp - 0x2c]
call fcn.004027f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407791
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00406c9d
int3
Function at 0x4045f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a48b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4215b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00406df1
push 4
mov dword [ebp - 4], 0
call fcn.00408cb6
mov edi, eax
add esp, 4
test edi, edi
je 0x40466c
call fcn.00406bec
mov dword [edi], eax
call fcn.004069ab
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00406db2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404662
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00406dda
jmp 0x40466e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406463
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x41a26d
call fcn.0040978a
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x40655a
cmp byte [esi + 0x4a], bl
je 0x40655a
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x40649f
xor al, al
jmp 0x40655c
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004043e0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4064fd
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x406502
dec eax
je 0x406506
dec eax
dec eax
je 0x406556
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403c40
mov al, bl
jmp 0x40655c
mov edx, dword [ebp - 0x2c]
jmp 0x4064c8
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406512
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x406538
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406525
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0040881f
add esp, 0x10
cmp edi, eax
jne 0x4064eb
cmp byte [esi + 0x4a], 0
je 0x406556
test edi, edi
jne 0x4064ba
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00403ad0
jmp 0x4064ba
mov bl, 1
jmp 0x4064ed
mov al, 1
call fcn.004097d4
ret
Function at 0x406562
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x41a240
call fcn.0040978a
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x406584
xor eax, eax
jmp 0x4066f7
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x4065b2
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4065b2
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x4066f7
cmp dword [esi + 0x54], ebx
je 0x4066f2
mov ecx, esi
call fcn.00405975
cmp dword [esi + 0x44], ebx
jne 0x4065e2
push dword [esi + 0x54]
push edi
call fcn.00405bae
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x4066f7
jmp 0x4066f2
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004043e0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40669f
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x4066e7
cmp eax, ebx
jg 0x4066a7
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406651
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x406676
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x406664
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.0040881f
add esp, 0x10
cmp edi, eax
jne 0x4066e7
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x4066d6
test edi, edi
jne 0x406603
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x4066ec
push 8
call fcn.00403ad0
jmp 0x406603
mov edx, dword [ebp - 0x2c]
jmp 0x406615
cmp eax, 3
jne 0x4066e7
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.00405bae
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x4066c6
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403c40
mov ax, si
jmp 0x4066f7
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403c40
mov ax, word [ebp + 8]
jmp 0x4066f7
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00403c40
mov eax, 0xffff
call fcn.004097d4
ret 4

Function at 0x407791
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4215b0]
jne 0x40779b
repz ret
jmp fcn.0040cc6c
Function at 0x416204
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4215b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040ed73
and dword [ebp - 0x14], 0
cmp dword [0x42382c], 0
mov dword [ebp - 0x18], eax
jne 0x4162b7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41635f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41635f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42382c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x423830], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x423834], eax
call edi
push eax
call esi
mov dword [0x42383c], eax
test eax, eax
je 0x4162b7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x423838], eax
mov eax, dword [0x423838]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x416310
cmp dword [0x42383c], ecx
je 0x416310
push eax
call esi
push dword [0x42383c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x416310
test ebx, ebx
je 0x416310
call edi
test eax, eax
je 0x416307
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x416307
test byte [ebp - 8], 1
jne 0x416310
or dword [ebp + 0x10], 0x200000
jmp 0x416343
mov eax, dword [0x423830]
cmp eax, dword [ebp - 0x18]
je 0x416343
push eax
call esi
test eax, eax
je 0x416343
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x416343
mov eax, dword [0x423834]
cmp eax, dword [ebp - 0x18]
je 0x416343
push eax
call esi
test eax, eax
je 0x416343
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42382c]
call esi
test eax, eax
je 0x41635f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416361
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407791
leave
ret
Function at 0x401000
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x4161c0]
push ebx
push esi
push edi
mov dword [esp + 0x244], eax
xor eax, eax
mov dword [esp + 0x10], 0
mov ecx, 0x8a
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4010d4
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4010d4
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x401070
lea ecx, [esp + 0x34]
push ecx
call fcn.00407682
lea edx, [esp + 0x38]
push str.lava.exe
push edx
call fcn.00407624
add esp, 0xc
test eax, eax
je 0x4010be
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x4010be
push ecx
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
je 0x4010b7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401070
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
call fcn.004077be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4010f0
Capabilities:
Delete file

Disassembly:
cmp eax, 1
jne 0x40116f
push 0x416be0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x401117
push 1
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
ret
cmp dword [0x416050], 0x3c
jne 0x401125
call section..text
mov eax, dword [0x416050]
dec eax
test eax, eax
mov dword [0x416050], eax
jle 0x40115d
push 0x3e8
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [0x416050]
push 0
mov ecx, 0x78
sub ecx, edx
push ecx
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
ret
push 1
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push 2
push esi
call dword [sym.imp.USER32.dll_EndDialog]
ret
Function at 0x401170
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
mov eax, dword [0x4161c0]
push esi
push edi
mov dword [esp + 0x23c], eax
xor eax, eax
mov dword [esp + 8], 0
mov ecx, 0x8a
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov esi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x401216
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401216
mov edi, edi
cmp dword [esp + 0x10], esi
je 0x4011e7
lea ecx, [esp + 8]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4011d0
jmp 0x40120f
mov edx, dword [esp + 0x20]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401208
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
call fcn.004077be
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a69
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401a7d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401a9e
cmp esi, eax
jae 0x401a77
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401a90
cmp esi, eax
jae 0x401a77
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4020a0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x4161c0]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov dword [esp + 0x260], eax
push edi
je 0x4021e9
mov ax, word [ebx]
test ax, ax
je 0x4021e9
cmp ax, 0x2e
je 0x4021e9
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x4021e9
push ebx
push str.DelDirAndAllFile_lpDir_s_n
call fcn.00403310
xor eax, eax
mov dword [esp + 0x18], 0
mov ecx, 0x93
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x416088]
add esp, 8
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402175
test byte [esp + 0x10], 0x10
jne 0x40213f
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x40216e
jmp 0x402150
test byte [esp + 0x10], 0x10
jne 0x402162
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x402150
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [0x416088]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4021d4
test byte [esp + 0x10], 0x10
je 0x40219f
lea edx, [esp + 0x3c]
push edx
call fcn.004020a0
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x4021cd
jmp 0x4021b0
test byte [esp + 0x10], 0x10
je 0x4021c1
lea ecx, [esp + 0x3c]
push ecx
call fcn.004020a0
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x4021b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x416084]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
call fcn.00408598
add esp, 4
mov ecx, dword [esp + 0x264]
call fcn.004077be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402550
Capabilities:
Delete file
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x411d50
push eax
mov eax, dword [0x416bd8]
mov dword fs:[0], esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push 0x402240
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 2
jne 0x402598
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
cmp dword [0x416bd0], ebx
jne 0x402719
mov edx, dword [0x4178f4]
push ebp
mov ecx, 0x4178f4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
push str.path
lea eax, [esp + 0x14]
push str.Uninstall_User_Data
push eax
mov dword [esp + 0x2c], ebx
call fcn.00405da0
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.00401f40
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402608
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x4026fc
mov eax, dword [str.login.xml]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00402ab0
add esp, 8
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
mov byte [esp + 0x24], 2
jne 0x402655
add eax, 0xfffffff0
mov byte [esp + 0x24], bl
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4026f2
mov dword [esp + 0x10], eax
push edi
lea ebx, [ebx]
push ebx
push 0x412610
push str._account
push eax
lea ecx, [esp + 0x24]
lea edi, [esp + 0x2c]
call fcn.004023e0
add esp, 0x10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call fcn.00401f40
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 2
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x10]
cmp dword [esi - 0xc], ebx
je 0x4026c4
push esi
call fcn.004020a0
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x402660
push str.appdata
call fcn.004020a0
mov eax, dword [str.login.xml]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x4026fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x24], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x402717
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
pop ebp
mov ecx, dword [esp + 0x14]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x402790
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jbe 0x4027b2
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
shl eax, 8
shr esi, 0x18
or eax, edi
xor eax, dword [esi*4 + 0x412628]
inc ecx
dec edx
jne 0x402798
pop edi
pop esi
mov ecx, eax
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x412628]
shl eax, 8
xor eax, edx
mov edx, eax
shr edx, 0x18
mov ecx, dword [edx*4 + 0x412628]
shl eax, 8
xor eax, ecx
mov ecx, eax
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x412628]
shl eax, 8
xor eax, edx
mov edx, eax
shr edx, 0x18
mov ecx, dword [edx*4 + 0x412628]
shl eax, 8
xor eax, ecx
ret
Function at 0x403230
Capabilities:
Move file

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
push 0x412a54
call fcn.0040829d
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, 0x10000
jl 0x403261
push 1
push 0x412ad4
push 0x412a54
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x24
ret

Function at 0x403570
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4161c0]
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp]
push 0x5c
push ecx
call fcn.004080e6
add esp, 8
push str.llsetup.ini
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x214]
mov ecx, dword [esp + 0x210]
lea edx, [esp]
push edx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x208]
call fcn.004077be
add esp, 0x20c
ret

Function at 0x4035e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4161c0]
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp]
push 0x5c
push ecx
call fcn.004080e6
add esp, 8
add eax, 2
push str.INSTALL.INI
push eax
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov al, byte [esp + 0x210]
test al, al
jne 0x40364e
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x208]
call fcn.004077be
add esp, 0x20c
ret
lea eax, [esp]
push eax
push 0x412fa8
push 0x412c68
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
push str.SetInstalledFlag_n
call fcn.00403310
mov ecx, dword [esp + 0x210]
add esp, 8
call fcn.004077be
add esp, 0x20c
ret