joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b270
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x492e44]
test eax, eax
je 0x41b3c4
call fcn.0041b1f0
mov eax, dword [0x492e40]
test eax, eax
je 0x41b3f0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41b2b0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041abb0
test eax, eax
mov ebx, eax
je 0x41b43c
mov eax, dword [entry3]
test eax, eax
je 0x41b43c
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x38], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub esp, 0x10
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call esi
mov edx, eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x41b443
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
mov dword [ebx + 0x64], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x492e40]
test eax, eax
je 0x41b416
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41b443
mov eax, ebx
jmp 0x41b2a8
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call fcn.00420330
mov dword [0x492e44], eax
jmp 0x41b284
mov dword [esp + 8], 0x41a1f0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00420330
mov dword [0x492e40], eax
jmp 0x41b296
mov dword [esp + 8], 0x41a1f0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00420330
mov dword [0x492e40], eax
jmp 0x41b3a3
xor eax, eax
jmp 0x41b2a8
call sub.msvcrt.dll_abort
nop
lea esi, [esi]
sub esp, 0x1c
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_key_dest_shmem
call fcn.00420330
add esp, 0x1c
ret
Function at 0x41b9b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
cmp dword [esp + 0x24], 3
je 0x41b9d0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x492e40]
test eax, eax
je 0x41bb40
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41b9bc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41b9bc
test byte [eax + 0x20], 0x30
je 0x41ba90
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41bb30
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41ba40
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x41ba32
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.0041eea0
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x41bb96
mov eax, dword [0x492e40]
test eax, eax
je 0x41bb70
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
mov eax, 1
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [eax + 0x64]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x41baf0
test eax, eax
je 0x41baaa
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x64], 1
test eax, eax
jne 0x41bb20
test byte [ebx + 0x24], 4
je 0x41bb07
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41ba39
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x41ba39
test eax, eax
je 0x41bb00
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.0041eea0
mov dword [ebx + 0x34], 0xffffffff
jmp 0x41b9bc
call fcn.0041b7c0
jmp 0x41bac2
call fcn.0041b7c0
jmp 0x41ba0e
mov dword [esp + 8], 0x41a1f0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00420330
mov dword [0x492e40], eax
jmp 0x41b9dd
mov dword [esp + 8], 0x41a1f0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00420330
mov dword [0x492e40], eax
jmp 0x41ba6d
mov eax, ebx
call fcn.0041ade0
jmp 0x41ba60
Function at 0x41cd30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.0041b270
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x41cdab
test byte [ebx + 0x20], 0x30
je 0x41cdb2
mov eax, dword [0x492e40]
test eax, eax
je 0x41ce3b
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x41cda2
cmp dword [eax + 0x14], 0
je 0x41cdc5
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41cd95
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x41ce0f
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call fcn.0041b7c0
jmp 0x41cd4d
add ebx, 0x6c
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41cddc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
je 0x41ce32
mov eax, dword [0x492e40]
test eax, eax
je 0x41ce61
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41cda2
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x14], 0
jne 0x41cdef
mov eax, ebx
call fcn.0041ade0
jmp 0x41cdef
mov dword [esp + 8], 0x41a1f0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00420330
mov dword [0x492e40], eax
jmp 0x41cd60
mov dword [esp + 8], 0x41a1f0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.00420330
mov dword [0x492e40], eax
jmp 0x41cdf8
Function at 0x420330
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov ebx, eax
lea eax, [eax + 0x40]
and eax, 0xfffffff0
call fcn.0040e1b0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
lea esi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sub.msvcrt.dll_memcpy
lea eax, [ebx + 0x10]
lea edi, [esi + eax]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x30]
mov dword [edi], 0x61616161
mov dword [edi + 4], 0x61616161
mov dword [edi + 8], 0x61616161
mov dword [edi + 0xc], 0x61616161
mov dword [edi + 0x10], 0x61616161
mov dword [edi + 0x14], 0x61616161
mov dword [edi + 0x18], 0x61616161
mov dword [edi + 0x1c], 0x61616161
mov dword [ebp - 0x1c], eax
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [esi + ebx + 0xf], 0x2d
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x42041f
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x4204c3
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x420458
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x420450
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x4204c0
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.004202b0
cmp eax, ebx
mov esi, eax
je 0x4204da
mov dword [esp], ebx
call fcn.00419e78
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.004202b0
mov esi, eax
jmp 0x420492
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x420492
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x420492
Function at 0x402a10
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x118]
stosw word es:[edi], ax
mov ebx, dword [edx + 8]
stosb byte es:[edi], al
mov eax, dword [edx + 4]
test eax, eax
jne 0x402a45
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor ebp, ebp
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 0x3a
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x10], al
je 0x402a7f
cmp ebp, ebx
jge 0x402a7f
mov cl, byte [esp + ebp + 0x11]
inc ebp
cmp cl, al
jne 0x402a72
mov al, byte [esp + ebp + 0x11]
inc ebp
cmp al, 0x5c
je 0x402a95
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x104
ret
inc ebp
cmp byte [esp + ebp + 0x10], 0x5c
je 0x402aaa
cmp ebp, ebx
jge 0x402aac
mov al, byte [esp + ebp + 0x11]
inc ebp
cmp al, 0x5c
jne 0x402a9d
cmp ebp, ebx
jg 0x402af9
lea ecx, [esp + 0x10]
push 0
mov byte [esp + ebp + 0x14], 0
push ecx
inc ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x118]
mov eax, dword [edx + 4]
test eax, eax
jne 0x402ad4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402a96
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x104
ret
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x40a0b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esp, 0x1fffffa
cmp dword [ebp - 0x398], 0
je 0x40a0d5
cmp dword [ebp - 0x398], 0
je 0x40a29f
cmp dword [ebp + 0xc], 1
je 0x40a29f
cmp dword [ebp + 0xc], 8
jne 0x40a267
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
invalid
invalid
dec edi
Function at 0x408320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call fcn.004017a0
mov eax, dword [0x40c044]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x25], 0x64737153
mov dword [ebp - 0x21], 0x4d625a64
mov dword [ebp - 0x1d], 0x5a645172
mov dword [ebp - 0x19], 0x66457656
mov dword [ebp - 0x15], 0x59476c79
mov dword [ebp - 0x11], 0x6c6c642e
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x25]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4083ab
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_load_DLL._Error_code:__d_n
call fcn.00408434
mov eax, 1
jmp 0x40841a
mov dword [esp + 4], str.bQIrThymdBVHLlJenmzh
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x408400
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_get_function_address._Error_code:__d_n
call fcn.00408434
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 1
jmp 0x40841a
mov eax, dword [ebp - 0x34]
call eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 0
mov edx, dword [ebp - 0xc]
sub edx, dword [0x40c044]
je 0x40842a
call fcn.004016b0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401760
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov esi, eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 8]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x28
ret

Function at 0x4017e0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
ret
Function at 0x402690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00405e28
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.00404c80
add esp, 8
test eax, eax
je 0x4026f3
push eax
lea ecx, [esp + 0x10]
push str.error__d_with_zipfile_in_unzGetGlobalInfo__n
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jb 0x402776
ja 0x402707
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x402776
mov ebx, dword [esp + 0x3c]
lea eax, [esp + 0x38]
push ebx
lea ecx, [esp + 0x38]
push eax
push ecx
push edi
call fcn.004018f0
add esp, 0x10
test eax, eax
jne 0x402776
mov ecx, dword [esp + 0x14]
inc esi
cmp eax, ecx
ja 0x402741
jb 0x402734
cmp esi, dword [esp + 0x10]
jae 0x402741
push edi
call fcn.00405320
add esp, 4
test eax, eax
jne 0x402755
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp eax, ecx
jb 0x40270b
ja 0x402776
cmp esi, dword [esp + 0x10]
jb 0x40270b
jmp 0x402776
push eax
lea edx, [esp + 0x10]
push str.error__d_with_zipfile_in_unzGoToNextFile_n
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10

Function at 0x4029a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x408fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push esi
lea ecx, [esp + 4]
call fcn.00405e28
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 4]
xor esi, esi
mov dword [esp + 0xc], 0x3e8
mov eax, dword [eax]
mov dword [esp + 0x80], esi
push eax
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0xc]
add esp, 8
lea edx, [esp + 8]
push edx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x402a3d
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.AcadLocation
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
cmp eax, esi
mov eax, dword [esp + 8]
sete dl
push eax
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 4]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x78]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x80
ret 8
Function at 0x4032c0
Capabilities:
Access peb ldr_data
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x409220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::CStringArray
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], esi
call fcn.00405e28
mov edi, dword [esp + 0x38]
push str..shx
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
mov eax, dword [edi]
push eax
push str._s_s
push ecx
call sub.MFC42.DLL_CString::Format
lea edx, [esp + 0x24]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004031c0
add esp, 0x18
lea ecx, [esp + 0xc]
call fcn.00405e28
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.00405e28
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x30], 3
cmp eax, esi
jle 0x4033b3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebp
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
mov edx, dword [ecx + esi*4]
lea ecx, [esp + 0x14]
push edx
push eax
push str._s_s.shx
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp]
mov eax, dword [edx + esi*4]
lea edx, [esp + 0x20]
push eax
push ecx
push str._s_s.shx
push edx
call sub.MFC42.DLL_CString::Format
lea eax, [esp + 0x30]
push eax
call fcn.00403150
add esp, 0x24
test eax, eax
jne 0x4033a8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 1
push ecx
push edx
call ebx
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x403354
pop ebp
pop ebx
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00405e4c
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x401090
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 0x4010a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4010e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4010e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4010e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010d0
cmp esi, eax
jb 0x4010ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401b10
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0xc]
mov dword [esi], eax
call fcn.004012e0
mov eax, dword [eax]
test eax, eax
je 0x401b31
mov eax, dword [eax]
jmp 0x401b33
xor eax, eax
lea ecx, [esi + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, dword [esp + 8]
test edi, edi
mov dword [esi + 4], eax
je 0x401b81
lea edx, [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x401b81
test edi, edi
je 0x401b81
mov eax, dword [edi]
test eax, eax
je 0x401b68
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x401b78
push eax
call fcn.00404247
add esp, 4
push edi
call fcn.00403fc2
add esp, 4
pop edi
mov eax, esi
pop esi
pop ecx
ret