joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401350
Capabilities:
Execute command

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 5
mov dword [esp + 4], str.Adios
mov dword [esp], 0x48a940
call fcn.00477de0
mov eax, dword [0x48a940]
mov eax, dword [eax - 0xc]
mov ebx, dword [eax + 0x48a9bc]
test ebx, ebx
je 0x4013ef
cmp byte [ebx + 0x1c], 0
je 0x4013c3
movsx eax, byte [ebx + 0x27]
mov ecx, 0x48a940
mov dword [esp], eax
call fcn.00456e80
sub esp, 4
mov ecx, eax
call fcn.00457080
mov dword [esp], 0x1f4
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp], str.exit
call sub.msvcrt.dll_system
add esp, 0x18
pop ebx
ret
mov ecx, ebx
call fcn.00402340
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
mov eax, 0xa
cmp edx, 0x432dc0
je 0x40138c
mov dword [esp], 0xa
mov ecx, ebx
call edx
sub esp, 4
movsx eax, al
jmp 0x40138c
call fcn.00402660
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x41bf20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x41bf80
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x41c076
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x41bff0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x41bfc5
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x41bfd5
cmp byte [esp + 0x1e], 0
je 0x41bfd5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x41bfd5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0041bf20
nop
Function at 0x41c310
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x490320
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x490338]
sub esp, 4
test ebx, ebx
je 0x41c35b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x41c354
test esi, esi
je 0x41c354
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x41c330
mov dword [esp], 0x490320
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x41d900
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 sub.msvcrt.dll_strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.0041d5e0
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 sub.msvcrt.dll_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 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
mov dword [ebp - 0x24], edx
call sub.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 sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x41d9ed
int3
mov dword [esp], edi
mov dword [ebp - 0x24], edx
call sub.KERNEL32.dll_FindAtomA
sub esp, 4
test ax, ax
mov edx, dword [ebp - 0x24]
jne 0x41da90
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
nop
bt ebx, eax
jae 0x41da28
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x41da20
mov dword [esp], edi
call sub.KERNEL32.dll_AddAtomA
sub esp, 4
test ax, ax
je 0x41da84
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call fcn.0041d880
cmp eax, ebx
mov esi, eax
je 0x41daa7
mov dword [esp], ebx
call fcn.00425e50
mov edi, dword [ebp - 0x1c]
mov dword [esp], edi
call sub.KERNEL32.dll_ReleaseMutex
sub esp, 4
mov dword [esp], edi
call sub.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 fcn.0041d880
mov esi, eax
jmp 0x41da61
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 0x41da61
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x41da61
Function at 0x427a80
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x490d44]
test ebx, ebx
je 0x427ab0
call sub.KERNEL32.dll_TlsAlloc
mov dword [ebx], eax
mov eax, dword [0x490d44]
test eax, eax
je 0x427ad5
cmp dword [eax], 0xffffffff
je 0x427af8
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], 0x426f10
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042c460
mov ebx, eax
mov dword [0x490d44], eax
jmp 0x427a8e
mov dword [esp + 8], 0x426f10
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042c460
mov dword [0x490d44], eax
jmp 0x427a9e
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x427f90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov eax, dword [0x490d48]
test eax, eax
je 0x4280e0
call fcn.00427f10
mov eax, dword [0x490d44]
test eax, eax
je 0x428110
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
test eax, eax
je 0x427fd0
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call fcn.004278d0
test eax, eax
mov ebx, eax
je 0x42815c
mov eax, dword [entry3]
test eax, eax
je 0x42815c
mov dword [ebx + 0x24], 1
call sub.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 sub.KERNEL32.dll_CreateEventA
mov dword [ebx + 0x1c], 0xffffffff
sub esp, 0x10
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x14], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov edi, eax
call sub.KERNEL32.dll_GetCurrentThread
mov esi, eax
call sub.KERNEL32.dll_GetCurrentProcess
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], edi
mov dword [esp + 4], esi
mov dword [esp], edx
call sub.KERNEL32.dll_DuplicateHandle
sub esp, 0x1c
test eax, eax
je 0x428163
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.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 [0x490d44]
test eax, eax
je 0x428136
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
je 0x428163
mov eax, ebx
jmp 0x427fc6
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call fcn.0042c460
mov dword [0x490d48], eax
jmp 0x427fa3
mov dword [esp + 8], 0x426f10
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042c460
mov dword [0x490d44], eax
jmp 0x427fb5
mov dword [esp + 8], 0x426f10
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042c460
mov dword [0x490d44], eax
jmp 0x4280be
xor eax, eax
jmp 0x427fc6
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.0042c460
add esp, 0x1c
ret
Function at 0x4286d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
cmp dword [esp + 0x24], 3
je 0x4286f0
add esp, 0x18
mov eax, 1
pop ebx
ret 0xc
mov eax, dword [0x490d44]
test eax, eax
je 0x428860
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4286db
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
test eax, eax
mov ebx, eax
je 0x4286db
test byte [eax + 0x20], 0x30
je 0x4287b0
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x428850
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x42875f
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x428751
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00426cc0
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x34], 0xffffffff
test edx, edx
je 0x4288b6
mov eax, dword [0x490d44]
test eax, eax
je 0x428890
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
mov eax, 1
add esp, 0x18
pop ebx
ret 0xc
mov eax, dword [eax + 0x64]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x428810
test eax, eax
je 0x4287c9
mov dword [esp], eax
call sub.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 0x428840
test byte [ebx + 0x24], 4
je 0x428826
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x428758
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x428758
test eax, eax
je 0x42881f
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00426cc0
mov dword [ebx + 0x34], 0xffffffff
jmp 0x4286db
call fcn.004284e0
jmp 0x4287e1
call fcn.004284e0
jmp 0x42872d
mov dword [esp + 8], 0x426f10
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042c460
mov dword [0x490d44], eax
jmp 0x4286fd
mov dword [esp + 8], 0x426f10
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042c460
mov dword [0x490d44], eax
jmp 0x42878c
mov eax, ebx
call fcn.00427b00
jmp 0x42877f
Function at 0x429a50
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.00427f90
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb0]
test eax, eax
jne 0x429ae0
test byte [ebx + 0x20], 0x30
je 0x429bca
mov eax, dword [0x490d44]
test eax, eax
je 0x429b50
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
test eax, eax
mov ebx, eax
je 0x429acb
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x429af0
mov esi, dword [eax + 4]
mov dword [eax + 0x64], 1
mov eax, dword [eax + 0x18]
test eax, eax
je 0x429aba
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
test byte [ebx + 0x24], 4
mov dword [ebx + 0x18], 0
jne 0x429b76
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sub.msvcrt.dll__endthreadex
call fcn.004284e0
jmp 0x429a6d
mov dword [eax], 0xdeadbeef
mov eax, dword [eax + 0x18]
test eax, eax
je 0x429b08
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov edx, dword [ebx + 0xac]
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
test edx, edx
je 0x429b98
mov eax, dword [0x490d44]
test eax, eax
je 0x429ba4
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sub.msvcrt.dll__endthreadex
mov dword [esp + 8], 0x426f10
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042c460
mov dword [0x490d44], eax
jmp 0x429a84
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
cmp dword [ebx + 0xac], 0
mov dword [ebx + 0x14], 0
jne 0x429b1c
mov eax, ebx
call fcn.00427b00
jmp 0x429b1c
mov dword [esp + 8], 0x426f10
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0042c460
mov dword [0x490d44], eax
jmp 0x429b25
add ebx, 0x6c
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
lea esi, [esi]
Function at 0x42c460
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.0041d5e0
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 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
mov dword [ebp - 0x1c], eax
call sub.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 sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
test eax, eax
je 0x42c54d
int3
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
sub esp, 4
test ax, ax
jne 0x42c5e3
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, edi
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x42c57d
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x42c575
mov dword [esp], esi
call sub.KERNEL32.dll_AddAtomA
sub esp, 4
test ax, ax
je 0x42c5e0
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0042c3e0
cmp eax, ebx
mov esi, eax
je 0x42c5fa
mov dword [esp], ebx
call fcn.00425e50
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call sub.KERNEL32.dll_ReleaseMutex
sub esp, 4
mov dword [esp], edi
call sub.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.0042c3e0
mov esi, eax
jmp 0x42c5b6
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 0x42c5b6
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x42c5b6
Function at 0x4018fa
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x4011d8
xor edi, edi
mov ebx, ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40192d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40192d
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
test ebx, ebx
je 0x401935
mov dword [ebx], esi
xor esi, esi
test esi, esi
je 0x401940
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x401a4d
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
mov ebx, edx
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401aa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401af4
movzx eax, ax
or eax, 0x80070000
jmp 0x401af4
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401adb
test ebx, ebx
je 0x401ae0
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x401ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x401ae0
movzx edi, di
or edi, 0x80070000
jmp 0x401ae0
mov edi, 0x8000ffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401af9
Capabilities:
Check if file exists
Get file attributes
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4030b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov ebx, edx
mov dword [ebp - 0x218], eax
push edi
test esi, esi
je 0x401c4d
xor eax, eax
mov dword [ebp - 0x210], eax
cmp word [esi], ax
je 0x401c4d
test ebx, ebx
je 0x401c4d
cmp word [ebx], ax
je 0x401c4d
push 9
pop ecx
lea edi, [ebp - 0x23c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x23c]
test eax, eax
je 0x401b8a
cmp eax, 9
je 0x401b83
mov eax, 0x8000ffff
jmp 0x401c52
mov edi, 0x401168
jmp 0x401b8f
mov edi, 0x401170
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_memset
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x210]
jne 0x401bab
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp ax, word [esi + ecx*2 - 2]
mov eax, 0x401178
je 0x401bd2
mov eax, 0x401188
push ebx
push edi
push esi
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004016c0
add esp, 0x18
test eax, eax
js 0x401c52
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401c14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401c52
movzx eax, ax
or eax, 0x80070000
jmp 0x401c52
test al, 0x10
je 0x401c1f
mov eax, 0x800700a1
jmp 0x401c52
mov edx, dword [ebp - 0x214]
lea ecx, [ebp - 0x20c]
call fcn.0040189a
test eax, eax
je 0x401c00
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x401c40
mov ecx, 0x4013b0
mov edx, dword [ebp - 0x218]
call fcn.00401a4d
jmp 0x401c52
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402740
leave
ret 8

Function at 0x401f58
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 4], eax
push edi
test esi, esi
je 0x401fca
test eax, eax
je 0x401fca
mov eax, dword [esi + 0x3c]
push 0
pop ebx
add eax, esi
je 0x401f8e
cmp dword [eax + 0x74], ebx
jbe 0x401f8e
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x401f8e
mov ebx, dword [eax + 0x7c]
lea edi, [ecx + esi]
jmp 0x401f90
mov edi, ebx
test edi, edi
je 0x401fca
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x18]
add eax, esi
mov ecx, dword [ebp - 4]
push eax
mov eax, dword [edi + 0x20]
add eax, esi
push eax
push esi
call fcn.00401fd1
movzx ecx, ax
cmp ecx, dword [edi + 0x14]
jae 0x401fca
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
add eax, esi
cmp eax, edi
jbe 0x401fcc
lea ecx, [ebx + edi]
cmp eax, ecx
jae 0x401fcc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4027c4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402c98
call fcn.00402a88
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402824
cmp eax, 0xffffffff
je 0x402824
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40281d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40281d
cmp edx, 0x10000000
jae 0x40281d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40281a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402890
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4028ce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4028c6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4028d0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4028b6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4029a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4029d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4029d1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4029d1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408d8d
Capabilities:
Get disk information

Disassembly:
xor eax, eax
lea eax, [eax + 0x40a51c]
call dword [eax]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx - 0x3ca214], cl
jmp dword [sym.imp.kernel32.dll_OpenMutexW]