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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebx
call fcn.00403d70
add esp, 4
cmp eax, 0xffffffff
jne 0x4013cd
or eax, eax
pop ebx
add esp, 8
ret
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
lea eax, [ebx + 0x2068]
lea esi, [edi + 0x12]
push esi
push eax
call fcn.00404040
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x40140f
push esi
push str.Failed_to_extract__s:_failed_to_open_target_file__n
push str.fopen
call fcn.004019f0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [ebx]
test ecx, ecx
jne 0x401444
lea eax, [ebx + 0x68]
push 0x42121c
push eax
call fcn.00402a60
mov ecx, eax
add esp, 8
mov dword [ebx], ecx
test ecx, ecx
jne 0x401444
push esi
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00401b50
add esp, 8
or ebp, 0xffffffff
jmp 0x401554
mov eax, dword [ebx + 4]
add eax, dword [edi + 4]
push 0
push eax
push ecx
call fcn.0040a81a
add esp, 0xc
test eax, eax
jns 0x401475
push esi
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.004019f0
add esp, 0xc
or ebp, 0xffffffff
jmp 0x401554
cmp byte [edi + 0x10], 1
jne 0x40148f
push 0
push ebp
push edi
push ebx
call fcn.00401030
add esp, 0x10
mov ebp, eax
jmp 0x401554
push 0x2000
xor ebp, ebp
call fcn.0040a0df
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4014c1
push esi
push str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
push str.malloc
call fcn.004019f0
add esp, 0xc
or ebp, 0xffffffff
jmp 0x401554
mov edi, dword [edi + 0xc]
test edi, edi
je 0x40154b
mov ecx, 0x2000
push dword [ebx]
cmp edi, 0x2000
mov esi, edi
push 1
cmova esi, ecx
push esi
push eax
call fcn.0040a423
add esp, 0x10
cmp eax, 1
jb 0x40152a
push dword [esp + 0x14]
push 1
push esi
push dword [esp + 0x1c]
call fcn.0040b060
add esp, 0x10
cmp eax, 1
jb 0x401516
mov eax, dword [esp + 0x10]
mov ecx, 0x2000
sub edi, esi
jne 0x4014d1
jmp 0x401547
mov eax, dword [esp + 0x20]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_write_data_chunk__n
push str.fwrite
jmp 0x40153c
mov eax, dword [esp + 0x20]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.004019f0
add esp, 0xc
or ebp, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call fcn.0040a0c4
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x401569
push eax
call fcn.0040a161
add esp, 4
mov dword [ebx], 0
push dword [esp + 0x14]
call fcn.0040a161
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x403ad0
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407c90
mov eax, dword [0x42d014]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push edi
push 0
push eax
push 0
call fcn.00404d40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x403b28
push str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00401b50
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407c7a
add esp, 0x4004
ret
push esi
push 0x1000
lea eax, [esp + 0x200c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov esi, eax
call fcn.0040a0c4
add esp, 4
test esi, esi
jne 0x403b72
push str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.00401b50
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407c7a
add esp, 0x4004
ret
push 0x1000
lea eax, [esp + 0x200c]
push eax
push 0
call fcn.0040e45e
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x403bb5
push str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00401b50
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407c7a
add esp, 0x4004
ret
push ebx
push 0x2000
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00408cb0
push 0x5c
push esi
call fcn.00409077
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x403c13
nop
mov ecx, edi
lea eax, [esp + 0xc]
sub ecx, esi
sar ecx, 1
inc ecx
push ecx
push esi
push eax
call fcn.0040eca8
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call ebx
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.00409077
mov edi, eax
add esp, 8
test edi, edi
jne 0x403be0
push 0
push esi
call ebx
mov ecx, dword [esp + 0x400c]
mov eax, esi
pop ebx
pop esi
pop edi
xor ecx, esp
call fcn.00407c7a
add esp, 0x4004
ret
Function at 0x403c40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00407c90
mov eax, dword [0x42d014]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1018]
push 0x42121c
push eax
call fcn.00402a60
push esi
push edi
mov ebx, eax
call fcn.00404040
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x403d3f
push ebx
test esi, esi
je 0x403d44
call fcn.0040a1e5
add esp, 4
test eax, eax
jne 0x403d16
nop dword [eax + eax]
push ebx
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040a423
add esp, 0x10
test eax, eax
jne 0x403cd9
push ebx
call fcn.0040a211
add esp, 4
test eax, eax
je 0x403cfb
push ebx
jmp 0x403d0b
push esi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040b060
add esp, 0x10
test eax, eax
je 0x403d0a
push esi
call fcn.0040a211
add esp, 4
test eax, eax
jne 0x403d0a
push ebx
call fcn.0040a1e5
add esp, 4
test eax, eax
je 0x403cb0
jmp 0x403d16
push esi
call fcn.004103ce
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.0040a161
push esi
call fcn.0040a161
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00407c7a
add esp, 0x1004
ret
test esi, esi
je 0x403d4c
push esi
call fcn.0040a161
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407c7a
add esp, 0x1004
ret
Function at 0x403dc0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov eax, 0x2028
call fcn.00407c90
mov eax, dword [0x42d014]
xor eax, esp
mov dword [esp + 0x2024], eax
mov eax, dword [esp + 0x202c]
push ebx
push ebp
mov ebp, dword [esp + 0x2038]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x403e3f
push 0x42292c
call fcn.00403f90
push ebp
mov ebx, eax
call fcn.00403ad0
mov edi, eax
add esp, 8
test edi, edi
je 0x403efb
push edi
push 0x422930
call fcn.0040f293
push edi
mov esi, eax
call fcn.0040a0c4
add esp, 0xc
test esi, esi
je 0x403e43
push str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
call fcn.00401b50
add esp, 4
xor eax, eax
jmp 0x403f75
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._MEI_d
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.00404860
add esp, 0x10
xor esi, esi
nop
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004103b3
mov edi, eax
push edi
call fcn.00404be0
add esp, 0xc
test eax, eax
je 0x403eff
push edi
call fcn.0040a0c4
inc esi
add esp, 4
cmp esi, 5
jl 0x403e70
test ebp, ebp
je 0x403efb
push 0
push 0x42292c
push 0
call fcn.00404d40
test ebx, ebx
je 0x403ee4
push 0
push ebx
push 0
mov edi, eax
call fcn.00404d40
mov esi, eax
push esi
push edi
call fcn.0040f293
push edi
call fcn.0040a0c4
push esi
call fcn.0040a0c4
push ebx
call fcn.0040a0c4
add esp, 0x2c
xor eax, eax
jmp 0x403f75
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040a0c4
add esp, 4
xor eax, eax
jmp 0x403f75
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00404de0
push edi
call fcn.0040a0c4
add esp, 0x10
test ebp, ebp
je 0x403f70
push 0
push 0x42292c
push 0
call fcn.00404d40
test ebx, ebx
je 0x403f59
push 0
push ebx
push 0
mov edi, eax
call fcn.00404d40
mov esi, eax
push esi
push edi
call fcn.0040f293
push edi
call fcn.0040a0c4
push esi
call fcn.0040a0c4
push ebx
call fcn.0040a0c4
add esp, 0x2c
jmp 0x403f70
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040a0c4
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407c7a
add esp, 0x2028
ret
Function at 0x403f90
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407c90
mov eax, dword [0x42d014]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00404d40
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404020
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00404de0
add esp, 0xc
test eax, eax
je 0x404020
cmp byte [eax], 0
je 0x404020
push eax
call fcn.0041192a
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407c7a
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.00407c7a
add esp, 0x4004
ret

Function at 0x404510
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00404d40
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.0040a0c4
add esp, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x404540
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00407c90
mov eax, dword [0x42d014]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.00404d40
push 1
push 0x16
call fcn.0040fe38
push 1
push 2
call fcn.0040fe38
push 1
push 0xf
call fcn.0040fe38
push 1
push 0x15
call fcn.0040fe38
add esp, 0x2c
mov dword [esp + 4], 0xc
lea eax, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.0040b210
push eax
call fcn.0041197e
push eax
call fcn.0040f9bd
push 1
mov dword [esp + 0x68], eax
call fcn.0040b210
push eax
call fcn.0041197e
push eax
call fcn.0040f9bd
push 2
mov dword [esp + 0x78], eax
call fcn.0040b210
push eax
call fcn.0041197e
push eax
call fcn.0040f9bd
add esp, 0x24
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404697
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.00407c7a
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x422a34
call fcn.00401aa0
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.00407c7a
add esp, 0x2068
ret
Function at 0x404be0
Capabilities:
Create directory

Disassembly:
mov eax, 0x201c
call fcn.00407c90
mov eax, dword [0x42d014]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
mov ebx, dword [esp + 0x2024]
lea eax, [esp + 8]
push esi
push eax
xor esi, esi
mov dword [esp + 0x10], 0xffffffff
push 8
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404c8b
lea eax, [esp + 8]
push eax
push esi
push esi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x404c51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404c8b
push dword [esp + 8]
push 1
call fcn.0040a0b9
mov esi, eax
add esp, 8
test esi, esi
je 0x404c8b
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push esi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x404c8b
lea eax, [esp + 0x10]
push eax
push dword [esi]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push esi
call fcn.0040a0c4
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 0xffffffff
je 0x404ca4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov eax, str.S_1_3_4
test esi, esi
cmovne eax, esi
push eax
push str.D:_A__FA____s_
lea eax, [esp + 0x28]
push 0x1000
push eax
call fcn.00404a80
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xc
push eax
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x404d21
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404d21
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.00407c7a
add esp, 0x201c
ret
mov ecx, dword [esp + 0x2020]
or eax, 0xffffffff
pop esi
pop ebx
xor ecx, esp
call fcn.00407c7a
add esp, 0x201c
ret
Function at 0x41352b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004133a1

Function at 0x417919
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041746c
Function at 0x401940
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
sub esp, 8
push ebx
push edi
cmp eax, 0xffffffff
je 0x40195e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push str.laucnher.log
call edi
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x4019a1
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push str.laucnher.log
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4019b1
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push str.logging.max_file_size
mov dword [ebp - 4], eax
call fcn.00424920
mov ebx, 0x100000
mov ecx, eax
call fcn.004247d0
test eax, eax
jle 0x401a23
cmp dword [ebp - 4], eax
jb 0x401a23
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x401a02
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push str.laucnher.log
call edi
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4019a9
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020a0
Capabilities:
Get file size
Parse pe header
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ce1b
mov eax, dword fs:[0]
push eax
mov eax, 0x1460
call fcn.00537af0
mov eax, dword [0x5b5be8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push 0
mov dword [ebp - 0x1468], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40226e
push 0
lea eax, [ebp - 0x146c]
push eax
push 0x1000
lea ecx, [ebp - 0x1410]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x13d4]
mov edx, 0x5a4d
lea ecx, [ebp + ecx - 0x1410]
cmp word [ebp - 0x1410], dx
jne 0x402267
cmp dword [ecx], 0x4550
jne 0x402267
movzx eax, word [ecx + 6]
xor edx, edx
xor edi, edi
test eax, eax
jle 0x402187
add ecx, 0x10c
mov esi, eax
mov eax, dword [ecx]
cmp eax, edx
jbe 0x402181
mov edi, dword [ecx - 4]
mov edx, eax
add edi, eax
add ecx, 0x28
dec esi
jne 0x402174
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x40226e
sub esi, edi
mov ebx, esi
mov esi, dword [ebp - 0x1468]
mov eax, ebx
call fcn.004098d0
lea eax, [ebp - 0x410]
push eax
lea esi, [ebp - 0x1464]
call fcn.00419120
mov dword [ebp - 4], 0
inc dword [ebp - 0x141c]
cmp dword [ebp - 0x1418], 0xffffffff
je 0x4021e2
mov edx, dword [ebp - 0x1460]
jmp 0x40222f
mov edx, dword [ebp - 0x1464]
mov eax, dword [edx + 0x14]
push 0
lea ecx, [ebp - 0x1464]
call eax
mov ecx, dword [ebp - 0x1414]
push eax
push 0
push 2
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1418], eax
cmp eax, 0xffffffff
je 0x40222d
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1460], eax
mov edx, eax
jmp 0x40222f
xor edx, edx
mov eax, dword [ebp - 0x1468]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
add edx, edi
je 0x402258
test ebx, ebx
je 0x402258
test ecx, ecx
je 0x402258
cmp eax, ebx
jb 0x402258
push ebx
push edx
push eax
push ecx
call fcn.005326d1
add esp, 0x10
lea ecx, [ebp - 0x1464]
call fcn.004191e0
mov al, 1
jmp 0x402270
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005320a3
mov esp, ebp
pop ebp
ret
Function at 0x4042e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
push str.action:_start_repacking.
push 2
mov eax, 0x5be6a0
call fcn.00401690
mov eax, dword [esi + 0x20]
add esp, 8
push 0
push 0x14
push 0
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push str.NavigateMainPage___n
call fcn.00418dd0
mov ecx, dword [esi + 0x1d4]
add esp, 4
push 0
push 0
push 0
push 0
push 0
push ecx
mov ecx, esi
call fcn.00436f70
mov ecx, 0x5b7664
call fcn.00414b40
mov esi, dword [0x5be5dc]
mov dword [0x5be6a4], 0
mov dword [0x5be6a0], 0x5b7664
mov dword [0x5be6a8], 0x5b7608
call fcn.004111b0
push 0xc
call fcn.004310a7
add esp, 4
lea edx, [ebp - 4]
push edx
push 0
push eax
push 0x410030
mov dword [eax], 0x5be6a0
mov dword [eax + 4], esi
mov byte [eax + 8], 0
push 0
push 0
mov dword [0x5be740], 6
mov dword [ebp - 4], 0
call fcn.00534525
add esp, 0x18
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404ff0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e678
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5b5be8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 7
mov eax, str.Global_
lea esi, [ebp - 0x2c]
mov ebx, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00409b10
mov ecx, esi
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x1d0]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0040b2f0
push eax
mov eax, str._LAUNCHER
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040b2f0
add esp, 8
mov edi, eax
mov esi, 0x5b75b4
mov byte [ebp - 4], 2
call fcn.00409930
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jb 0x405094
mov edx, dword [ebp - 0x48]
push edx
call fcn.004310e1
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x50], edi
jb 0x4050b8
mov eax, dword [ebp - 0x64]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x18], edi
jb 0x4050de
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004310e1
add esp, 4
mov eax, dword [0x5b75b4]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [0x5b75c8], edi
jae 0x4050fe
mov eax, 0x5b75b4
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebx + 0x15c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4051c4
cmp eax, 5
je 0x4051c4
push 0x58ca18
mov ecx, ebx
call fcn.0043eef5
mov ecx, ebx
call fcn.004380a0
mov edx, dword [ebx + 0x154]
mov eax, dword [ebx + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edx
push 1
push 0x80
push eax
call esi
mov ecx, dword [ebx + 0x154]
mov edx, dword [ebx + 0x20]
push ecx
push 0
push 0x80
push edx
call esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
call esi
push 0x11
mov edi, eax
call esi
mov ecx, dword [0x5b75b0]
mov esi, dword [0x5b75ac]
sub eax, ecx
cdq
push 1
sub eax, edx
push ecx
sar eax, 1
push esi
push eax
mov eax, edi
sub eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
mov ecx, ebx
call fcn.0043ef80
push str.download.continue
call fcn.00424920
xor ebx, ebx
mov ecx, eax
call fcn.004247d0
test eax, eax
setne al
mov byte [0x5be780], al
lea eax, [ebx + 1]
jmp 0x4051ce
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005320a3
mov esp, ebp
pop ebp
ret
Function at 0x40bd50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40bd6b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40bda2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40bd9e
jmp 0x40bd90
cmp esi, eax
jae 0x40bda2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40bd90
cmp esi, eax
jb 0x40bda9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40cab0
Capabilities:
Create tcp socket

Disassembly:
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], vtable.ISocketObject.0
mov dword [esi + 0x10], vtable.XSocket.0
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], vtable.IStreamIntf.0
mov dword [esi], vtable.IStreamSocketConnection.1.0
mov dword [esi + 0xc], vtable.IStreamSocketConnection.2.0
mov dword [esi + 0x18], vtable.IStreamSocketConnection.0
push 6
mov byte [esi + 0x1c], al
mov dword [esi + 0x9c], eax
push 1
mov byte [esi + 0xa0], al
mov dword [esi + 0x120], eax
push 2
mov byte [esi + 0x124], al
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x40cb26
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov dword [ecx + 0x18], str.winsock_socket___error
mov eax, esi
ret