joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4989c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x2c
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
call sym._wrapSocket__pureZnet_u1781_8
mov dword [esp], 0x4db1c8
call sym.___emutls_get_address
cmp byte [eax], 0
jne 0x498a90
mov esi, eax
mov eax, edi
test al, al
jne 0x498a50
test ebp, ebp
jle 0x498a32
mov eax, dword [esp + 0x1c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._isIpAddress__pureZnet_u842_8
sub esp, 8
cmp byte [esi], 0
jne 0x498a90
test al, al
jne 0x498a32
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0xfb4]
add edx, 4
call sym._SSL_set_tlsext_host_name__wrappersZopenssl_u711_8
cmp byte [esi], 0
jne 0x498a90
call dword [0x519378]
mov eax, dword [ebx + 0xfb4]
mov dword [esp], eax
call dword [0x51935c]
jmp 0x498a65
call dword [0x519378]
mov eax, dword [ebx + 0xfb4]
mov dword [esp], eax
call dword [0x519358]
mov dword [esp + 0x48], 0
mov ecx, ebx
mov edx, eax
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._socketError__pureZnet_u167_20
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x4a8df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea eax, [esp + 0x30]
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x24], ecx
mov dword [esp + 8], eax
lea ecx, [esp + 0x44]
mov dword [esp + 0xc], 1
mov dword [esp], 0xc
mov dword [esp + 4], 0x4eeaa4
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebp
call sym._silentExec__osutils_u154_16
sub esp, 0x10
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
mov dword [esp], 0x4db1c8
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], eax
call sym.___emutls_get_address
mov ebx, eax
movzx eax, byte [eax]
test al, al
jne 0x4a8e7f
test edi, edi
jne 0x4a8ea8
mov byte [ebx], 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x24], al
call sym._eqdestroy___pureZosproc_u1790_4
cmp byte [ebx], 0
jne 0x4a8e9b
movzx eax, byte [esp + 0x24]
mov byte [ebx], al
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea ecx, [esi + 0x1a]
mov edi, 0x2074
call sym._rawNewString_4
lea ecx, [eax + edx + 4]
mov dword [ecx], 0x6c756f63
mov dword [ecx + 4], 0x6f6e2064
mov dword [ecx + 8], 0x68632074
mov dword [ecx + 0xc], 0x6f6b6365
mov dword [ecx + 0x10], 0x63207475
mov dword [ecx + 0x14], 0x696d6d6f
mov word [ecx + 0x18], di
mov byte [ecx + 0x1a], 0
mov ecx, eax
add ecx, 0x1a
jo 0x4a9008
test esi, esi
jle 0x4a8f3d
mov eax, esi
add eax, 1
jo 0x4a9022
test eax, eax
js 0x4a8fa0
lea edi, [ecx + edx + 4]
add ebp, 4
mov dword [esp + 8], eax
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call sym._memcpy
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esi, ecx
jo 0x4a8fe9
mov ecx, esi
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._error__context_u319_20
movzx eax, byte [ebx]
sub esp, 0x10
test al, al
jne 0x4a8e7f
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4a8e7f
test dword [edx], 0x40000000
jne 0x4a8e7f
mov dword [esp], edx
call sym._deallocShared
movzx eax, byte [ebx]
jmp 0x4a8e7f
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], 0x80000000
mov dword [esp + 4], 0xffffffff
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call sym._raiseRangeErrorI
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x4a8f3d
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call sym._raiseOverflow
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
jmp 0x4a8f3d
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
call sym._raiseOverflow
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x4a8ef5
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call sym._raiseOverflow
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x4a8f3d
Function at 0x4aae10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
lea ecx, [esp + 0x44]
mov dword [esp + 0xc], 1
mov dword [esp], 7
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4eeb20
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], esi
call sym._silentExec__osutils_u154_16
sub esp, 0x10
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov dword [esp], 0x4db1c8
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], edx
call sym.___emutls_get_address
movzx ebp, byte [eax]
mov ebx, eax
mov eax, ebp
test al, al
jne 0x4aaeab
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x4aaed0
mov byte [ebx], 0
lea ecx, [esp + 0x38]
call sym._eqdestroy___pureZosproc_u1790_4
cmp byte [ebx], 0
jne 0x4aaec0
mov eax, ebp
mov byte [ebx], al
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea ecx, [esi + 0x14]
call sym._rawNewString_4
mov ecx, eax
lea ebp, [eax + edx + 4]
add ecx, 0x13
mov dword [ebp], 0x6c756f63
mov dword [ebp + 4], 0x6f6e2064
mov dword [ebp + 8], 0x67272074
mov dword [ebp + 0xc], 0x74207469
mov dword [ebp + 0x10], 0x206761
jo 0x4ab050
lea ebp, [eax + edx + 0x17]
test esi, esi
jle 0x4aaf5a
mov eax, esi
add eax, 1
jo 0x4ab011
test eax, eax
js 0x4aafc8
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 8], eax
add edx, 4
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 0x24], ecx
call sym._memcpy
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
add esi, ecx
jo 0x4ab011
lea ebp, [esi + edx + 4]
mov ecx, esi
mov eax, 0x27
mov word [ebp], ax
mov eax, ecx
add eax, 1
jo 0x4ab030
mov dword [esp + 8], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], edx
mov edx, dword [edi + 4]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._error__context_u319_20
movzx ebp, byte [ebx]
sub esp, 0x10
mov eax, ebp
test al, al
jne 0x4aaeab
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4aaeab
test dword [edx], 0x40000000
jne 0x4aaeab
mov dword [esp], edx
call sym._deallocShared
movzx ebp, byte [ebx]
jmp 0x4aaeab
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], 0x80000000
mov dword [esp + 4], 0xffffffff
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
call sym._raiseRangeErrorI
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
jmp 0x4aaf5a
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
call sym._raiseOverflow
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
jmp 0x4aaf5a
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
call sym._raiseOverflow
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
jmp 0x4aaf6e
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
call sym._raiseOverflow
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
jmp 0x4aaf0e
Function at 0x4c5fb8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x4c6b08
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x4c6b27
mov eax, 0
jmp 0x4c6b6b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x4c6b4a
mov eax, 0
jmp 0x4c6b6b
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4c6b66
mov eax, 0
jmp 0x4c6b6b
mov eax, 1
leave
ret

Function at 0x4c6b6d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4c6bcc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4c6bc4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4c6bc4
mov eax, dword [ebp - 4]
jmp 0x4c6be0
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x4c6ba1
mov eax, 0
leave
ret
Function at 0x4d1a95
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
je 0x4d1bae
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
jne 0x4d1ba4
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea eax, [ebp - 0x4f]
mov ecx, 0x43
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x4d1b5a
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x4d1b71
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x4d1b56
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x4d1b8f
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sym._abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x4d1baf
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x4d29b6
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call eax
mov dword [0x4db5b4], eax
mov eax, dword [0x4db5b4]
cmp eax, 0xffffffff
jne 0x4d29d7
call sym._abort
nop
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], sym._pthread_tls_init
mov dword [esp], 0x519e60
call sym.__pthread_once_raw
mov eax, dword [0x4db5b4]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4d2b90
mov eax, dword [ebp - 0x20]
jmp 0x4d2cdb
call sym._pop_pthread_mem
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x4d2ba7
cmp dword [ebp - 0x20], 0
jne 0x4d2bb1
mov eax, 0
jmp 0x4d2cdb
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._replace_spin_keys
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x4d2c83
call sym._abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x4db5b4]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x4d2cd8
call sym._abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4d2d9f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call sym.___pthread_self_lite
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call sym.__pthread_cleanup_dest
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x4d2dfa
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_longjmp]
call eax
mov eax, dword [0x4db5b4]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4d2f24
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4d2e8c
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4d2e49
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._push_pthread_mem
mov dword [ebp - 0x10], 0
mov eax, dword [0x4db5b4]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x4d2f24
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4d2ebc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x4d2f24
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._push_pthread_mem
mov dword [ebp - 0x10], 0
mov eax, dword [0x4db5b4]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax
Function at 0x403ba4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov esi, edx
mov ebx, eax
lea edi, [ebp - 4]
xor eax, eax
push ebp
push 0x403c9f
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x403bf8
push 0x105
lea eax, [ebp - 0x10d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x10d]
mov eax, esi
call fcn.00401b3c
jmp 0x403c86
call sub.kernel32.dll_GetCommandLineA
mov dword [edi], eax
mov eax, dword [edi]
call fcn.00403b2c
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call fcn.00403b54
mov dword [edi], eax
test ebx, ebx
je 0x403c26
dec ebx
test ebx, ebx
jl 0x403c26
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x403bff
push esi
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 8]
call fcn.00401b94
mov eax, dword [ebp - 0x114]
mov ecx, dword [edi]
sub ecx, dword [ebp - 8]
mov edx, 1
call fcn.00401e30
mov eax, dword [esi]
call fcn.00401bdc
cmp eax, 2
jl 0x403c86
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x403c86
mov eax, dword [esi]
call fcn.00401bdc
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x22
jne 0x403c86
push esi
mov eax, dword [esi]
call fcn.00401bdc
mov ecx, eax
sub ecx, 2
mov eax, dword [esi]
mov edx, 2
call fcn.00401e30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ca6
lea eax, [ebp - 0x114]
call fcn.00401a50
ret
Function at 0x403d00
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x403e54
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00401a50
lea eax, [ebp - 4]
mov edx, esi
call fcn.00401ae8
jmp 0x403def
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x403e6c
call fcn.00403964
cmp dword [ebx], 0
je 0x403d6e
mov eax, ebx
mov edx, 0x403e6c
call fcn.00401be4
cmp dword [ebx], 0
jne 0x403d95
mov eax, dword [ebp - 8]
call fcn.00401bdc
cmp eax, 2
jne 0x403d95
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x3a
jne 0x403d95
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00401aa4
jmp 0x403def
push 0x200
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov edx, dword [ebx]
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 8]
call fcn.00401c28
mov eax, dword [ebp - 0x16c]
call fcn.00401dd4
push eax
call sub.shell32.dll_SHGetFileInfoA
cmp byte [ebp - 0x15c], 0
je 0x403de5
lea eax, [ebp - 8]
lea edx, [ebp - 0x15c]
mov ecx, 0x104
call fcn.00401bc4
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00401be4
cmp dword [ebp - 4], 0
jne 0x403d4d
lea edx, [ebp - 0x170]
mov eax, dword [ebx]
call fcn.0040403c
cmp dword [ebp - 0x170], 0
jne 0x403e29
lea edx, [ebp - 0x174]
mov eax, esi
call fcn.0040403c
mov edx, dword [ebp - 0x174]
mov eax, ebx
call fcn.00401be4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e5b
lea eax, [ebp - 0x174]
mov edx, 3
call fcn.00401a74
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401a74
ret

Function at 0x40417c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4041e6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00401b94
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00403fb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041ed
lea eax, [ebp - 0x10c]
call fcn.00401a50
ret

Function at 0x4041f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40425e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00401b94
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00403fb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404265
lea eax, [ebp - 0x10c]
call fcn.00401a50
ret

Function at 0x40426c
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.00401b94
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.00403fb4
ret
Function at 0x40429c
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff44
mov edi, edx
mov esi, eax
xor ebx, ebx
mov dword [esp + 0x20], 0x94
lea eax, [esp + 0x20]
push eax
call sub.kernel32.dll_GetVersionExA
xor eax, eax
mov edx, dword [esp + 0x30]
cmp edx, 2
jne 0x4042d2
cmp dword [esp + 0x24], 4
setae al
jmp 0x404300
cmp edx, 1
jne 0x404300
mov edx, dword [esp + 0x24]
cmp edx, 4
seta al
test al, al
jne 0x404300
cmp edx, 4
jne 0x404300
cmp dword [esp + 0x28], 0
seta al
test al, al
jne 0x404300
cmp word [esp + 0x2c], 0x1111
setae al
test al, al
je 0x40431d
push 0x40438c
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x404398
push ebx
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x404338
push edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, esi
call fcn.00401dd4
push eax
call ebx
jmp 0x404380
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, esi
call fcn.00401dd4
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
lea ecx, [esp + 0xb4]
mov eax, dword [esp]
imul dword [esp + 4]
xor edx, edx
call fcn.004036f4
lea eax, [esp + 0xb4]
mov ecx, edi
mov edx, dword [esp + 8]
call fcn.00408dd8
add esp, 0xbc
pop edi
pop esi
pop ebx
ret

Function at 0x404918
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp], eax
test ebx, ebx
je 0x40495c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00401dd4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40495c
cmp dword [esp + 4], 4
je 0x404961
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x40496c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00401dd4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete al
pop ebp
ret