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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x498b88
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x498b80]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x413bf5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x413bee
test esi, esi
je 0x413bee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x413bd0
mov dword [esp], 0x498b88
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x413e10
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x413e48
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x413e3e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x413e4a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x413e30
xor eax, eax
pop ebx
pop esi
ret
Function at 0x415280
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.00414120
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea edi, [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 sym._memcpy
lea eax, [esi + 0x10]
lea edx, [edi + eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0x61616161
mov dword [edx + 4], 0x61616161
mov dword [edx + 8], 0x61616161
mov dword [edx + 0xc], 0x61616161
mov dword [edx + 0x10], 0x61616161
mov dword [edx + 0x14], 0x61616161
mov dword [edx + 0x18], 0x61616161
mov dword [edx + 0x1c], 0x61616161
mov dword [ebp - 0x24], edx
mov byte [esp + esi + 0x3c], 0
mov byte [esp + esi + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [edi + esi + 0xf], 0x2d
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x41536f
int3
mov dword [ebp - 0x24], edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
mov edx, dword [ebp - 0x24]
jne 0x415413
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sym._malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x4153aa
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x4153a2
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x415410
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
cmp eax, ebx
mov esi, eax
je 0x41542a
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x1c]
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
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
mov esi, eax
jmp 0x4153e4
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4153e4
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x4153e4
Function at 0x421f40
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4995d0]
test ebx, ebx
je 0x421f70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x4995d0]
test eax, eax
je 0x421f95
cmp dword [eax], 0xffffffff
je 0x421fb8
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov ebx, eax
mov dword [0x4995d0], eax
jmp 0x421f4e
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x421f5f
call sym._abort
lea esi, [esi]
Function at 0x422450
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 [0x4995d4]
test eax, eax
je 0x4225a4
call sym.__pthread_once_raw.constprop.5
mov eax, dword [0x4995d0]
test eax, eax
je 0x4225d0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x422490
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
test eax, eax
mov ebx, eax
je 0x42261c
mov eax, dword [entry3]
test eax, eax
je 0x42261c
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 0x422623
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 [0x4995d0]
test eax, eax
je 0x4225f6
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 0x422623
mov eax, ebx
jmp 0x422488
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d4], eax
jmp 0x422464
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x422476
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x422583
xor eax, eax
jmp 0x422488
call sym._abort
nop
lea esi, [esi]
Function at 0x422b90
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 0x422bb0
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
mov eax, dword [0x4995d0]
test eax, eax
je 0x422d20
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x422b9c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x422b9c
test byte [eax + 0x20], 0x30
je 0x422c70
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x422d10
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x422c20
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 0x422c12
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 sym._pthread_mutex_destroy
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x422d76
mov eax, dword [0x4995d0]
test eax, eax
je 0x422d50
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 0x422cd0
test eax, eax
je 0x422c8a
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 0x422d00
test byte [ebx + 0x24], 4
je 0x422ce7
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x422c19
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x422c19
test eax, eax
je 0x422ce0
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 sym._pthread_mutex_destroy
mov dword [ebx + 0x34], 0xffffffff
jmp 0x422b9c
call sym.__pthread_cleanup_dest.part.3
jmp 0x422ca2
call sym.__pthread_cleanup_dest.part.3
jmp 0x422bee
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x422bbd
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x422c4d
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x422c40
Function at 0x423f10
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 sym.___pthread_self_lite
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x423f8b
test byte [ebx + 0x20], 0x30
je 0x423f92
mov eax, dword [0x4995d0]
test eax, eax
je 0x42401b
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 0x423f82
cmp dword [eax + 0x14], 0
je 0x423fa5
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x423f75
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x423fef
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
call sym.__pthread_cleanup_dest.part.3
jmp 0x423f2d
add ebx, 0x6c
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x423fbc
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 0x424012
mov eax, dword [0x4995d0]
test eax, eax
je 0x424041
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 0x423f82
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 0x423fcf
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x423fcf
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x423f40
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4995d0], eax
jmp 0x423fd8
Function at 0x4268c0
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 sym._strlen
mov ebx, eax
lea eax, [eax + 0x40]
and eax, 0xfffffff0
call fcn.00414120
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 sym._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 0x4269af
int3
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
jne 0x426a53
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x4269e8
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x4269e0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x426a50
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call sym._get_ptr_from_atom_1
cmp eax, ebx
mov esi, eax
je 0x426a6a
mov dword [esp], ebx
call sym._free
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 sym._get_ptr_from_atom_1
mov esi, eax
jmp 0x426a22
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x426a22
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x426a22
Function at 0x10001000
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.msimg32.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x10009d54], eax
jne 0x10001067
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x104
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.vSetDdrawflag
push eax
call esi
test eax, eax
mov dword [0x10009d50], eax
jne 0x1000108a
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x104
ret
mov ecx, dword [0x10009d54]
push str.AlphaBlend
push ecx
call esi
test eax, eax
mov dword [0x10009d44], eax
jne 0x100010ad
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x104
ret
mov edx, dword [0x10009d54]
push str.DllInitialize
push edx
call esi
test eax, eax
mov dword [0x10009d48], eax
jne 0x100010d0
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x104
ret
mov eax, dword [0x10009d54]
push str.GradientFill
push eax
call esi
test eax, eax
mov dword [0x10009d4c], eax
jne 0x100010f2
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x104
ret
mov ecx, dword [0x10009d54]
push str.TransparentBlt
push ecx
call esi
test eax, eax
pop edi
mov dword [0x10009d40], eax
pop esi
pop ebx
setne al
add esp, 0x104
ret

Function at 0x10001370
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
sub eax, 0
je 0x10001407
dec eax
jne 0x1000142b
call fcn.10001000
test al, al
jne 0x1000139d
push str.MSIMG32_Proxy:_GetMsimg32FnAddr___failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
ret 0xc
push str.MSIMG32_Proxy:_DLL_attached_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 0x10001200
push eax
call fcn.10001440
mov ecx, dword [sym.imp.USER32.dll_ClipCursor]
push 0x10001220
push ecx
mov dword [0x10009d3c], eax
call fcn.10001440
mov edx, dword [sym.imp.USER32.dll_SetCursorPos]
push 0x10001240
push edx
mov dword [0x10009d38], eax
call fcn.10001440
mov dword [0x10009d30], eax
mov eax, dword [sym.imp.USER32.dll_RegisterClassA]
add eax, 0xb
push 0x100012a0
push eax
call fcn.100018a0
add esp, 0x20
mov eax, 1
ret 0xc
mov eax, dword [0x10009d54]
test eax, eax
je 0x10001426
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x10001426
push str.MSIMG32_Proxy:_DLL_detached._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.10001b90
mov eax, 1
ret 0xc
Function at 0x10001710
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x10009d5c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10001750
push 0x40
push 0x2000
push 0x20000
push 0
call esi
test eax, eax
mov dword [0x10009d5c], eax
jne 0x1000173b
pop esi
ret
xor ecx, ecx
mov dword [0x10009d68], eax
mov dword [0x10009d60], ecx
mov dword [0x10009d64], ecx
jmp 0x10001756
mov ecx, dword [0x10009d60]
mov edx, dword [0x10009d68]
sub edx, eax
add edx, 0x60
cmp edx, ecx
jbe 0x10001792
cmp ecx, 0x20000
jl 0x10001771
xor eax, eax
pop esi
ret
push 0x40
add ecx, 0x1000
push 0x1000
push ecx
push eax
call esi
test eax, eax
jne 0x10001788
pop esi
ret
add dword [0x10009d60], 0x1000
push edi
mov edi, dword [0x10009d68]
mov ecx, 0x18
xor eax, eax
rep stosd dword es:[edi], eax
mov esi, dword [0x10009d64]
mov ecx, dword [0x10009d68]
inc esi
mov eax, ecx
add ecx, 0x60
mov dword [0x10009d64], esi
pop edi
mov dword [0x10009d68], ecx
pop esi
ret
Function at 0x4012ef
Capabilities:
Create thread

Disassembly:
push 8
push 0x444728
call fcn.0041b4c0
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x401356
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x401356
push ebx
push ebx
push dword [ebp + 8]
push 0x401410
push ebx
push ebx
call fcn.0041e91c
add esp, 0x18
mov dword [esi + 0x34], eax
test eax, eax
je 0x401356
mov al, 1
jmp 0x401390
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x40138e
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401c63
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x54
mov eax, 0x433b6c
call fcn.0041af0e
mov esi, ecx
push ecx
push str._cleanup_
call fcn.00402ef0
mov edi, eax
cmp edi, 0xffffffff
jne 0x401c8a
xor al, al
jmp 0x401dc8
push 8
pop ebx
add edi, 0xa
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401c99
mov ecx, dword [esi]
push dword [ebp - 0x18]
mov edx, dword [esi + 0x10]
push 2
push ecx
push edi
call fcn.00403320
add esp, 0x10
cmp eax, 0xffffffff
je 0x401dc6
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x401cbd
mov ecx, dword [esi]
cmp word [ecx + eax*2], 0x3d
je 0x401dc6
sub eax, edi
mov ecx, esi
push eax
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.00402e9a
and dword [ebp - 4], 0
lea edi, [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jb 0x401ce6
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
push 0x3b
pop eax
mov word [ebp - 0x18], ax
test edx, edx
je 0x401d0c
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040361e
mov esi, eax
pop ecx
test esi, esi
je 0x401d0c
sub esi, edi
sar esi, 1
jmp 0x401d0f
or esi, 0xffffffff
push esi
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402e9a
push 0xffffffffffffffff
lea eax, [esi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402e9a
cmp dword [eax + 0x14], ebx
jb 0x401d3b
mov eax, dword [eax]
push eax
call fcn.0041f5e0
pop ecx
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00404484
cmp dword [ebp - 0x38], 0
je 0x401db6
test esi, esi
je 0x401db6
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401d7d
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._setup.dll
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.00403291
pop ecx
cmp dword [eax + 0x14], ebx
jb 0x401d95
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x60]
call fcn.00404484
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jb 0x401daf
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x48]
call fcn.00404484
lea ecx, [ebp - 0x30]
call fcn.00404484
mov al, 1
call fcn.0041aebd
ret