joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae220
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x4ae2fb
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4ae2cd
cmp eax, 0x6a
je 0x4ae2ea
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x4ae2c8
cmp eax, 0x6a
je 0x4ae2ea
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4ae2e0

Function at 0x4ae680
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x4e41b8], 1
je 0x4ae738
push edi
mov eax, 0x4e41b8
push esi
push ebx
sub esp, 0x10
call fcn.004ae000
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.004ad910
mov edi, dword [0x4e41b8]
test edi, edi
jne 0x4ae6f0
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x4ba07c], eax
cmp eax, 0xffffffff
je 0x4b4409
mov dword [0x4e41b8], 1
mov dword [esp], esi
call fcn.004adc40
test ebx, ebx
je 0x4ae72a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.004ae310
cmp edi, 1
je 0x4ae6d2
mov dword [esp], 2
call dword [0x4ba08c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x4e41b8
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.004adc40
test ebx, ebx
jne 0x4ae6de
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
Function at 0x4ae740
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.004ae400
mov edx, dword [entry4]
test edx, edx
je 0x4ae870
mov ebx, eax
test eax, eax
je 0x4ae870
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], 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 dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004b1bd0
cmp eax, 1
je 0x4ae87c
mov ebp, dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.004b440e
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x4ba07c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4ae881
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004ae220
jmp fcn.004b440e

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

Disassembly:
sub esp, 0x1c
call fcn.004ae680
mov eax, dword [0x4ba07c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4ae8b8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.004ae740
Function at 0x4aeb80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4aebb0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4aec80
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x4aecb0
cmp eax, 3
jne 0x4aeb99
mov eax, dword [0x4ba07c]
cmp eax, 0xffffffff
je 0x4aeb99
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4aeb99
test byte [eax + 0x20], 0x30
je 0x4aece0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4aebf3
call fcn.004ae8c0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4aec25
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 0x4aec17
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.004addc0
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004b1bd0
cmp eax, 1
je 0x4aed9c
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x4aed90
mov eax, dword [0x4ba07c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
jmp 0x4aeb99
mov eax, dword [0x4e4194]
test eax, eax
je 0x4aeb99
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x4e4194], 0
sub esp, 4
jmp 0x4aeb99
mov dword [esp + 4], 0x4adf70
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x4e4194], eax
mov eax, 1
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4aed40
test eax, eax
je 0x4aecfa
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x4aed17
call fcn.004ae8c0
test byte [ebx + 0x24], 4
je 0x4aed80
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4aec25
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x4aec1e
test eax, eax
je 0x4aed80
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], eax
call fcn.004addc0
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004b1bd0
cmp eax, 1
je 0x4aed9c
mov dword [ebx + 0x38], 0xffffffff
jmp 0x4aeb99
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004addc0
lea eax, [ebx + 0x38]
jmp 0x4aed65
mov eax, ebx
call fcn.004ae4c0
jmp 0x4aec59
call fcn.004ae220
lea esi, [esi]
lea esi, [esi]
nop
Function at 0x4af040
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
test edx, edx
je 0x4af160
cmp eax, 1
je 0x4af094
mov eax, ebx
call fcn.004ae000
lea edi, [eax + 4]
mov esi, eax
mov dword [esp], edi
call fcn.004ad910
mov ebp, dword [ebx]
test ebp, ebp
je 0x4af0a0
cmp ebp, 1
jne 0x4af130
mov dword [esp], edi
call fcn.004adc40
test esi, esi
je 0x4af094
mov eax, esi
call fcn.004ae310
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x4ae3d0
mov dword [esp + 0x18], esi
call fcn.004ae680
mov eax, dword [0x4ba07c]
mov ebp, dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4af198
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lock or dword [esp], 0
call fcn.004ae680
mov eax, dword [0x4ba07c]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4af180
lea edx, [esp + 0x14]
mov dword [eax + 0xc], edx
lock or dword [esp], 0
call dword [esp + 0x44]
call fcn.004ae680
mov eax, dword [0x4ba07c]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x4af170
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x4af081
mov dword [esp], 2
call dword [0x4ba08c]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4af081
add esp, 0x2c
mov eax, 0x16
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004ae740
test eax, eax
jne 0x4af118
jmp 0x4b4421
call fcn.004ae740
test eax, eax
jne 0x4af0f2
jmp 0x4b4433
call fcn.004ae740
test eax, eax
jne 0x4af0cc
jmp 0x4b442c
mov eax, dword [esp + 0x1c]
mov dword [0], eax
ud2
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x14]
mov dword [0], eax
ud2

Function at 0x4af630
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004ae680
mov eax, dword [0x4ba07c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4af658
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.004ae740
test eax, eax
jne 0x4af64d
add esp, 0x1c
ret
Function at 0x4af720
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.004ae890
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4af742
call fcn.004ae8c0
test byte [ebx + 0x20], 0x30
jne 0x4af75c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x4ba07c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x4af79d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x4af7dd
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x4af792
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x4af7a6
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.004ae660
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4ba07c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push edx
push edx
jmp 0x4af79d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4af7f1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x4af7be

Function at 0x4af800
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4e41c0]
test eax, eax
jne 0x4af810
xor eax, eax
ret
sub esp, 0x1c
call fcn.004ae680
mov eax, dword [0x4ba07c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4af850
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x4af840
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x4af834
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x4af836
call fcn.004ae740
test eax, eax
jne 0x4af82d
jmp 0x4af834

Function at 0x4af860
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.004ae680
mov eax, dword [0x4ba07c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4af8a0
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x4af890
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.004ae740
test eax, eax
jne 0x4af87d
add esp, 0x1c
ret
Function at 0x4af9a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.004ae680
mov eax, dword [0x4ba07c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4afa10
test byte [ebx + 0x20], 0xc
jne 0x4af9d0
mov eax, dword [0x4e41c0]
test eax, eax
jne 0x4af9e0
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.004ad910
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x4afa02
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x4afa02
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x4afa21
mov dword [esp], esi
call fcn.004adc40
add esp, 0x14
pop ebx
pop esi
ret
call fcn.004ae740
mov ebx, eax
test eax, eax
jne 0x4af9c1
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4afa41
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.004adc40
call fcn.004af8b0
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4afad0
mov dword [esp], eax
call fcn.004b0cb0
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x4afb10
call fcn.004ae680
mov eax, dword [0x4ba07c]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4afb70
test edi, edi
je 0x4afaea
call fcn.004af9a0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4afb48
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004b0db0
call fcn.004af9a0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.004ae680
mov eax, dword [0x4ba07c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4afb60
call fcn.004af9a0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
call fcn.004af9a0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.004ae680
mov eax, dword [0x4ba07c]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x4afaa2
call fcn.004ae740
mov ebx, eax
jmp 0x4afaa2
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
jmp 0x4afabe
call fcn.004ae740
jmp 0x4afaea
call fcn.004ae740
mov ebx, eax
jmp 0x4afa9e

Function at 0x4b35c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004b3260
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004b3260
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x4b3620
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4e4204]
test esi, esi
jle 0x4b3740
mov eax, dword [0x4e4208]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4b3654
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4b36d7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4b3640
mov dword [esp], ebx
call fcn.004b4020
mov edi, eax
test eax, eax
je 0x4b3767
mov eax, dword [0x4e4208]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004b4160
mov edx, dword [0x4e4208]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4b3747
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4b36d0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4b36e0
add dword [0x4e4204], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4e4208]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4b36d0
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004b35c0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4b365e
mov eax, dword [0x4e4208]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004b35c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004b35c0
lea esi, [esi]
nop

Function at 0x4b3c90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4e4220
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4e4218]
sub esp, 4
test ebx, ebx
je 0x4b3ce5
mov ebp, dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x4b3cde
test eax, eax
jne 0x4b3cde
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4b3cc0
mov dword [esp], 0x4e4220
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b4020
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4b4045
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4b4050
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4b4045
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4b4098
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4b408e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4b409a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4b4080
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4010a0
Capabilities:
Get disk information
Get storage device properties

Disassembly:
sub esp, 0x98
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x9c]
push ebx
push ebp
xor ebx, ebx
push 0x3e
lea ecx, [esp + 0x62]
push ebx
push ecx
mov dword [esp + 0x14], eax
mov ebp, 0x41
mov word [esp + 0x68], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x401210
push esi
push edi
test al, 1
je 0x4011fb
movzx esi, bp
push esi
push 0x42183c
lea edx, [esp + 0x6c]
call fcn.00401230
add esp, 8
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x401138
cmp bp, 0x41
je 0x4011fb
mov eax, dword [esp + 0x10]
mov word [eax + ebx*2], bp
add ebx, 1
jmp 0x4011fb
cmp eax, 3
jne 0x4011fb
call fcn.00401000
cmp eax, 2
je 0x4011fb
push 0x3a
lea ecx, [esp + 0x2e]
push 0
push ecx
mov word [esp + 0x34], 0
call sub.MSVCR80.dll_memset
push esi
push str.__c:
lea edx, [esp + 0x3c]
call fcn.00401250
add esp, 0x14
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4011fb
push 0x227
call sub.MFC80U.DLL_Ordinal_265
add esp, 4
mov edi, eax
xor eax, eax
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push 0x227
push edi
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
mov dword [edi + 4], 0x227
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4011eb
cmp dword [edi + 0x1c], 7
jne 0x4011eb
mov edx, dword [esp + 0x10]
mov word [edx + ebx*2], bp
add ebx, 1
push edi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add ebp, 1
shr eax, 1
mov dword [esp + 0x14], eax
jne 0x4010f1
pop edi
pop esi
mov ecx, dword [esp + 0x9c]
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041d7b2
add esp, 0x98
ret
Function at 0x4013a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x134
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
mov esi, dword [edi]
call fcn.00409360
test al, al
pop esi
je 0x40146f
mov eax, dword [str.none]
mov ecx, dword [0x4218a4]
mov dx, word [0x4218a8]
push 0x5a
mov dword [esp + 8], eax
lea eax, [esp + 0x12]
push 0
push eax
mov dword [esp + 0x14], ecx
mov word [esp + 0x18], dx
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.true
lea ecx, [esp + 4]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x6c]
push 0x64
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, dword [edi]
add esp, 0xc
push eax
mov eax, dword [edi + 8]
push 0x64
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [edi + 4]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 4]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
lea ecx, [esp]
jne 0x401469
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, 1
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0041d7b2
add esp, 0x134
ret
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x130]
xor ecx, esp
xor al, al
call fcn.0041d7b2
add esp, 0x134
ret

Function at 0x4014b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xcc
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebp
mov ebp, dword [esp + 0xd4]
push esi
push edi
push 0x44
lea eax, [esp + 0x94]
push 0
mov ecx, 8
mov esi, str.Zbshareware_Lab
lea edi, [esp + 0x78]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR80.dll_memset
mov edx, dword [0x4218dc]
mov eax, dword [0x4218e0]
mov ecx, dword [str.USBGuard]
push 0x52
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x4218e4]
mov dword [esp + 0x20], edx
mov dx, word [0x4218e8]
lea eax, [esp + 0x2e]
push 0
push eax
mov dword [esp + 0x30], ecx
mov word [esp + 0x34], dx
call sub.MSVCR80.dll_memset
add esp, 0x18
push 1
push 0x1a
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x4218ec
push ebp
push ebx
call edi
add esp, 0xc
lea ecx, [esp + 0x70]
mov esi, ebx
call fcn.00409080
test al, al
je 0x40159c
lea ecx, [esp + 0x70]
push ecx
push ebp
push ebx
call edi
push 0x4218ec
push ebp
push ebx
call edi
add esp, 0x18
lea ecx, [esp + 0xc]
call fcn.00409080
test al, al
je 0x40159c
lea edx, [esp + 0xc]
push edx
push ebp
push ebx
call edi
push 0x4218ec
push ebp
push ebx
call edi
add esp, 0x18
mov al, 1
jmp 0x4015ae
push 0x4218f0
push ebp
push ebx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041d7b2
add esp, 0xcc
ret 4