joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a557
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x4b273c
push str.Msi.dll
call fcn.0040192e
mov esi, eax
test esi, esi
jns 0x46a59a
push str.Failed_to_load_Msi.DLL
push esi
push 0x37
push 5
push 0x99
push str.d:_awixwix_srclibsdutilwixtoolset.dutilwiutil.cpp
call fcn.004012a1
add esp, 0x18
jmp 0x46a6f0
push 0x4b276c
push 0x4b2768
push dword [ebp - 4]
call fcn.0040588e
push str.MsiDeterminePatchSequenceW
push dword [0x4b273c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4b2720], 0
mov dword [0x4b2740], eax
jne 0x46a5d0
mov dword [0x4b2720], eax
push str.MsiDetermineApplicablePatchesW
push dword [0x4b273c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4b2724], 0
mov dword [0x4b2744], eax
jne 0x46a5f4
mov dword [0x4b2724], eax
push str.MsiEnumProductsExW
push dword [0x4b273c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4b2728], 0
mov dword [0x4b2748], eax
jne 0x46a618
mov dword [0x4b2728], eax
push str.MsiGetPatchInfoExW
push dword [0x4b273c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4b272c], 0
mov dword [0x4b274c], eax
jne 0x46a63c
mov dword [0x4b272c], eax
push str.MsiGetProductInfoExW
push dword [0x4b273c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4b2730], 0
mov dword [0x4b2750], eax
jne 0x46a660
mov dword [0x4b2730], eax
push str.MsiSetExternalUIRecord
push dword [0x4b273c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4b2734], 0
mov dword [0x4b2754], eax
jne 0x46a684
mov dword [0x4b2734], eax
push str.MsiSourceListAddSourceExW
push dword [0x4b273c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4b2738], 0
mov dword [0x4b2758], eax
jne 0x46a6a8
mov dword [0x4b2738], eax
cmp dword [0x4b275c], 0
jne 0x46a6c7
push str.MsiBeginTransactionW
push dword [0x4b273c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b275c], eax
cmp dword [0x4b2760], 0
jne 0x46a6e6
push str.MsiEndTransaction
push dword [0x4b273c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b2760], eax
mov dword [0x4b2764], 1
cmp dword [ebp - 4], 0
je 0x46a6fe
push dword [ebp - 4]
call fcn.00404128
mov eax, esi
pop esi
leave
ret
Function at 0x46d47d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b1040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
or eax, 0x8000
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x46d4cb
push dword [ebp + 0xc]
push str.Failed_to_get_folder_path_for_CSIDL:__d
push esi
push 0x2d
push 5
push 0xb7
jmp 0x46d514
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00403958
mov esi, eax
test esi, esi
jns 0x46d4f7
lea eax, [ebp - 0x20c]
push eax
push str.Failed_to_copy_shell_folder_path:__ls
push esi
push 0x2d
push 5
push 0xba
jmp 0x46d514
push edi
call fcn.00405cbf
mov esi, eax
test esi, esi
jns 0x46d521
push dword [edi]
push str.Failed_to_backslash_terminate_shell_folder_path:__ls
push esi
push 0x2d
push 5
push 0xbd
push str.d:_awixwix_srclibsdutilwixtoolset.dutil_shelutil.cpp
call fcn.004012a1
add esp, 0x1c
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451586
leave
ret 8

Function at 0x46e9bb
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push dword [ebp + 8]
push str..pipe_ls
push eax
call fcn.00403578
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x46e9fc
push dword [ebp + 8]
push str.Failed_to_allocate_full_name_of_pipe:__ls
push esi
push 0x22
push 5
push 0x58
push str.d:_awixwix_srclibsdutilwixtoolset.dutilpipeutil.cpp
call fcn.004012a1
add esp, 0x1c
jmp 0x46ea6e
push dword [ebp + 0xc]
mov eax, 0x10000
push 1
push eax
push eax
push 1
push 0
push 0x80003
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x46ea69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x46ea38
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x46ea3f
mov esi, 0x80004005
push edi
push esi
push 0x5e
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpipeutil.cpp
push edi
call fcn.0040129e
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
push esi
push 0x22
push 5
push 0x5e
push edi
call fcn.004012a1
add esp, 0x1c
pop edi
jmp 0x46ea6e
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
je 0x46ea7c
push dword [ebp - 4]
call fcn.00404128
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x46eedb
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], 1
push ebx
push ebx
lea eax, [ebp - 4]
mov esi, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x46ef3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x46ef17
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x46ef1e
mov esi, 0x80004005
push esi
mov ebx, 0x1d1
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpipeutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_set_pipe_to_non_blocking.
jmp 0x46f017
mov edi, ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x46ef8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x217
je 0x46efca
cmp esi, 0x218
jne 0x46efbb
cmp edi, 0x708
jae 0x46efb4
push 0x64
push dword [ebp + 8]
inc edi
call fcn.004017b5
mov esi, eax
cmp esi, 0x80070102
jne 0x46ef86
mov esi, 0x80070218
jmp 0x46ef3c
test esi, esi
js 0x46ef8f
mov esi, 0x80070080
cmp esi, 0x80070218
je 0x46ef3c
test esi, esi
jns 0x46efcc
push esi
mov ebx, 0x202
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpipeutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_wait_for_child_to_connect_to_pipe.
jmp 0x46f017
mov esi, 0x800705b4
jmp 0x46ef9b
test esi, esi
jle 0x46ef99
movzx esi, si
or esi, 0x80070000
jmp 0x46ef97
mov esi, ebx
push ebx
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x46f026
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x46eff9
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x46f000
mov esi, 0x80004005
push esi
mov ebx, 0x208
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutilpipeutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_reset_pipe_to_blocking.
push esi
push 0x22
push 5
push ebx
push edi
call fcn.004012a1
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x470dea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 0xc]
push 0xa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov edi, eax
test edi, edi
jne 0x470e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x470e1e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x470e25
mov esi, 0x80004005
push esi
mov ebx, 0xbb
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_find_resource.
push esi
push 0x26
push 5
push ebx
push edi
call fcn.004012a1
add esp, 0x18
jmp 0x470f32
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x470e97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x470e77
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x470e7e
mov esi, 0x80004005
push esi
mov ebx, 0xbe
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_load_resource.
jmp 0x470e3c
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x470ee1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x470ebe
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x470ec5
mov esi, 0x80004005
push esi
mov ebx, 0xc3
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_get_size_of_resource.
jmp 0x470e3c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
test ecx, ecx
jne 0x470f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x470f0a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x470f11
mov esi, 0x80004005
push esi
mov ebx, 0xc7
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutil_resrutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_lock_data_resource.
jmp 0x470e3c
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x472078
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push str._ls.R
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
call fcn.00403578
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x4720ee
push str.Failed_to_create_resume_path.
push esi
push 0xf
push 5
push 0x313
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.004012a1
add esp, 0x18
test esi, esi
jns 0x4720ee
push dword [ebp + 8]
push str.Failed_to_calculate_resume_path_from_working_path:__ls
push esi
push 0xf
push 5
push 0xce
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.004012a1
add esp, 0x1c
jmp 0x4721f2
push 0
push 0x80
push 4
push 0
push 4
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x472152
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x472126
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x47212d
mov esi, 0x80004005
push esi
mov edi, 0xd3
mov ebx, str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
push edi
push ebx
call fcn.0040129e
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_create_resume_file:__ls
push esi
push 0xf
push 5
push edi
push ebx
jmp 0x4720e1
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47219a
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
je 0x472184
cmp ecx, 8
jb 0x472155
cmp ecx, 8
je 0x472190
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x4721e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4721b1
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4721b8
mov esi, 0x80004005
push esi
mov ebx, 0xda
push ebx
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.0040129e
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_read_resume_file:__ls
push esi
push 0xf
push 5
push ebx
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.004012a1
add esp, 0x1c
cmp edi, 0xffffffff
je 0x4721f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4727b7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
add dword [edi], eax
adc dword [edi + 4], ecx
cmp dword [ebp + 0xc], 0xffffffff
je 0x47282f
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ecx
call fcn.00405685
mov esi, eax
test esi, esi
jns 0x472808
push str.Failed_to_seek_to_start_point_in_file.
push esi
push 0xf
push 5
push 0x1fd
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.004012a1
add esp, 0x18
jmp 0x47282f
push 0
lea eax, [ebp - 4]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 4]
cmp dword [ebp - 4], 0
je 0x47282f
cmp ebx, 8
jb 0x472808
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x472838
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call fcn.00405685
mov esi, eax
test esi, esi
jns 0x47287e
push str.Failed_to_seek_to_start_point_in_file.
push esi
push 0xf
push 5
push 0x1c5
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.004012a1
add esp, 0x18
jmp 0x4729a7
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x472962
mov eax, dword [ebp - 4]
test eax, eax
je 0x4729a6
xor ebx, ebx
and dword [ebp - 8], ebx
push 0
lea ecx, [ebp - 8]
sub eax, ebx
push ecx
push eax
mov eax, dword [ebp + 0x20]
add eax, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47292b
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x4728d6
mov eax, dword [ebp - 4]
cmp ebx, eax
jb 0x4728aa
push ebx
push dword [ebp + 0x14]
push edi
call fcn.004727b7
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x472906
cmp dword [eax], 0
je 0x472906
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.00471efe
mov esi, eax
test esi, esi
js 0x472915
cmp dword [ebp - 4], 0
jne 0x47287f
jmp 0x4729a6
push str.UX_aborted_on_cache_progress.
push esi
push 0xf
push 5
push 0x1e4
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
jmp 0x47299e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x472942
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x472949
mov esi, 0x80004005
push esi
mov ebx, 0x1d8
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_to_write_data_from_internet.
jmp 0x472997
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x472979
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x472980
mov esi, 0x80004005
push esi
mov ebx, 0x1cc
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
push ebx
push edi
call fcn.0040129e
push str.Failed_while_reading_from_internet.
push esi
push 0xf
push 5
push ebx
push edi
call fcn.004012a1
add esp, 0x18
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x24
Function at 0x476910
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47693d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47693d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4c97e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x4c9805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x4c9878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4c983a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x4c986d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x4c986b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x4c9831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4c97fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x710c85
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x7109ec
sub eax, 0x35153dcc
call fcn.00710cc0
add ecx, 0x7b92cc
inc eax
sub eax, 0x4996914f
xor dword [esi], edx
add ecx, 0x43f949b7
mov eax, eax
inc esi
add ecx, ecx
cmp esi, edi
jne fcn.00710c85
mov eax, eax
sub ecx, 1
ret
Function at 0x401300
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x218
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov edi, dword [0x40bf90]
xor ebx, ebx
push 0x20a
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.004057a0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.WRD2431.tmp
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401411
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push esi
call ebp
push eax
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x401409
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4013fa
push 0
push esi
call ebp
push 4
mov dword [edi + 0x14], eax
push 0x3000
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [edi + 0x10], eax
test eax, eax
je 0x4013f3
mov edx, dword [edi + 0x14]
push edx
push ebx
push eax
call fcn.00403c70
add esp, 0xc
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040154d
add esp, 0x218
ret

Function at 0x401430
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x105
lea eax, [esp + 4]
push 0
push eax
call fcn.004057a0
add esp, 0xc
push 0x105
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401470
sub eax, edx
add eax, 0xffffffff
js 0x401490
mov cl, 0x5c
cmp byte [esp + eax], cl
je 0x40148c
sub eax, 1
jns 0x401480
jmp 0x401490
mov byte [esp + eax], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040154d
add esp, 0x10c
ret
Function at 0x1003a98
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1003af0
call fcn.01003b0c
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1003ae7
cmp ecx, 0xffffffff
je 0x1003ae7
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1003ae0
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x1003ae0
cmp edx, 0x10000000
jae 0x1003ae0
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x1006d0b
mov dword [ebp - 4], 0xfffffffe
call fcn.010023d0
ret 4
and cl, byte [0x3032220a]
Function at 0x10c4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010c41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10c407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c406a
add dl, dl
jne 0x10c4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c40dc
xor eax, eax
add dl, dl
jne 0x10c4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c417d
add dl, dl
jne 0x10c40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10c40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10c4075
mov eax, 1
add dl, dl
jne 0x10c40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c40e1
sub eax, ebx
mov ebx, 1
jne 0x10c4128
mov ecx, 1
add dl, dl
jne 0x10c410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10c413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c4136
cmp eax, 0x7d00
jae 0x10c416d
cmp eax, 0x500
jb 0x10c4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c4075
cmp eax, 0x7f
ja 0x10c4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10c419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10c4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10