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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5a1ca0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40f3b4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x40f402
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x5a41f4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x40f430
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5a1ca0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40f460
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5a1ca0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x40f49e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x40f49e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x40f4a0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40f8c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5a1ca0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x417390
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4173b0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4173b0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4173b0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4338f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xa8
mov eax, dword [0x5a3fd8]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x433977
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x9c
mov dword [esp + 0x10], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x43396b
mov dword [0x5a3fd8], 2
add esp, 0xa8
ret
mov dword [0x5a3fd8], 1
jmp 0x43397c
cmp eax, 2
je 0x4339c8
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x4339aa
mov eax, dword [esp + 4]
cmp eax, dword [esp]
jg 0x4339c8
push 4
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
add esp, 0xa8
ret
Function at 0x441320
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push dword [esp + 0x108]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x441369
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x441369
lea eax, [esp]
push eax
call dword [0x5a1cb0]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x4461b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.DLL_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x446343
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x44632d
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4461ff
lea ebx, [eax + 0xe]
jmp 0x44620b
cmp eax, 0x17
jne 0x4462ba
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4462ba
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4462ba
cmp eax, ebx
jb 0x4462ba
push 0x20
call dword [0x5a1ca4]
mov esi, eax
add esp, 4
test esi, esi
je 0x446322
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x5a1ca4]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x446311
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4462a5
push eax
call dword [0x5a1cb0]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4462f7
test ebp, ebp
jne 0x4462ab
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4462b6
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4461f2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x4462d9
push eax
call dword [sym.imp.WS2_32.DLL_freeaddrinfo]
test ebx, ebx
je 0x446329
push ebp
call fcn.00446170
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0x5a1ca8]
push esi
call dword [0x5a1ca8]
add esp, 8
jmp 0x4462c9
push esi
mov ebx, 8
call dword [0x5a1ca8]
add esp, 4
jmp 0x4462c9
mov ebx, 8
jmp 0x4462c9
test ebp, ebp
jne 0x446339
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x446790
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x264], 2
je fcn.00446740
mov al, 1
ret
Function at 0x44c1eb
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov esi, 0x5a4034
cmp dword [0x5a4030], edi
jne 0x44c21a
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x5a4030], 1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x5a402c]
test esi, esi
je 0x44c275
test edi, edi
jne 0x44c3bc
xor eax, eax
lea ecx, [esi + 0x114]
inc eax
cmp ebx, dword [ecx]
je 0x44c24b
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x44c23c
jmp 0x44c267
push dword [esp + 0x1c]
add eax, 0x84
push dword [esp + 0x1c]
lea eax, [esi + eax*4]
push eax
call fcn.0044c194
xor edi, edi
add esp, 0xc
inc edi
mov esi, dword [esi]
test esi, esi
jne 0x44c22b
test edi, edi
jne 0x44c3bc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x10]
push ebp
push ebp
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x44c3bc
mov esi, dword [0x5a402c]
jmp 0x44c2b6
cmp dword [esi + 0xc], 0x3f
jl 0x44c357
mov esi, dword [esi]
test esi, esi
jne 0x44c2aa
push 0x310
push 8
push dword [0x5a3750]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x44c3b6
push ebp
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 8], eax
test eax, eax
je 0x44c3a8
push ebp
push ebp
push esi
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
push 0x44c3cf
mov dword [esi + 0x114], ebx
lea ebx, [esi + 0x214]
push 0x1000
mov dword [esi + 0x14], eax
mov dword [ebx], ebp
push ebp
mov dword [esi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x44c3a3
push eax
call edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
call fcn.0044c194
mov eax, dword [0x5a402c]
add esp, 0xc
mov dword [esi + 4], ebp
mov dword [esi], eax
test eax, eax
je 0x44c34f
mov dword [eax + 4], esi
mov dword [0x5a402c], esi
jmp 0x44c3bc
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x110], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x210], ebp
mov eax, dword [esi + 0xc]
add eax, 0x84
lea eax, [esi + eax*4]
push eax
call fcn.0044c194
add esp, 0xc
inc dword [esi + 0xc]
push ebp
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x44c3bc
push dword [esi + 8]
call edi
push esi
push ebp
push dword [0x5a3750]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call edi
push 0x5a4034
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x10001010
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
mov esi, ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000108d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1000106f
push eax
call fcn.10003a24
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x1000106f
mov edx, dword [esi]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1000108d
cmp dword [esi + 4], 0
je 0x1000108d
call fcn.100010a0
mov ecx, esi
call fcn.100012e0
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x10002190
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x1001303c]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [0x10014170]
push esi
push edi
cmp eax, 0xffffffff
jne 0x100021db
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push str.LckDeskSrv.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x10014170], eax
cmp eax, 0xffffffff
je 0x100022bb
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x103
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.10008b50
xor eax, eax
add esp, 0xc
lea edx, [esp + 0xc]
xor ecx, ecx
push edx
mov word [esp + 0x10], cx
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [esp + 0x1c]
movzx edx, word [esp + 0x1a]
push eax
movzx eax, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x20]
push ecx
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x22]
push eax
push ecx
push edx
push str._02d__02d__02d:_02d:_02d__03d___4d__4d_
mov ecx, 0x104
lea edi, [esp + 0x44]
call fcn.10002040
mov eax, edi
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002273
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
sub eax, edx
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [0x10014170]
lea edx, [esp + 0x2c]
push edx
push eax
call esi
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100022a0
push 0
lea ecx, [esp + 0x20]
push ecx
sub eax, edx
mov edx, dword [0x10014170]
push eax
push ebx
push edx
call esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
xor ecx, esp
call fcn.100039ab
add esp, 0x12c
ret
Function at 0x10002390
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 4
mov dword [esp + 0x20], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 0xffffffff
jne 0x100023db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERROR__CreateToolhelp32Snapshot_failed__Error:_08x_r_n
call fcn.100022e0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], 0x1c
call sub.KERNEL32.dll_Thread32First
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x14]
je 0x10002477
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x28], ecx
jne 0x10002477
push eax
push 0
push 2
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002433
call ebp
mov edx, dword [esp + 0x24]
push eax
push edx
push str._ERROR__OpenThread_failed__threadid:_d_Error:_08x_r_n
call fcn.100022e0
add esp, 0xc
jmp 0x10002477
cmp byte [esp + 0x3c], 0
push esi
je 0x10002443
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x10002449
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x10002473
call ebp
movzx ecx, byte [esp + 0x3c]
push eax
mov eax, dword [esp + 0x28]
push edi
push eax
push ecx
push str._ERROR__ResumeThread:_d_failed__threadid:_d_Rlt:_08x_Error:_08x_r_n
call fcn.100022e0
add esp, 0x14
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100023fa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x100039ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001303c]
jne 0x100039b5
repz ret
jmp fcn.10004375

Function at 0x1000c145
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100053bf
and dword [ebp - 4], 0
cmp dword [0x10014b84], 0
mov ebx, eax
jne 0x1000c1f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000c2a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000c2a7
push eax
call fcn.1000534d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10014b84], eax
call esi
push eax
call fcn.1000534d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10014b88], eax
call esi
push eax
call fcn.1000534d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10014b8c], eax
call esi
push eax
call fcn.1000534d
pop ecx
mov dword [0x10014b94], eax
test eax, eax
je 0x1000c1f6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000534d
pop ecx
mov dword [0x10014b90], eax
mov eax, dword [0x10014b90]
cmp eax, ebx
je 0x1000c24e
cmp dword [0x10014b94], ebx
je 0x1000c24e
push eax
call fcn.100053c8
push dword [0x10014b94]
mov esi, eax
call fcn.100053c8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000c24e
test edi, edi
je 0x1000c24e
call esi
test eax, eax
je 0x1000c245
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000c245
test byte [ebp - 0xc], 1
jne 0x1000c24e
or dword [ebp + 0x10], 0x200000
jmp 0x1000c287
mov eax, dword [0x10014b88]
cmp eax, ebx
je 0x1000c287
push eax
call fcn.100053c8
pop ecx
test eax, eax
je 0x1000c287
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000c287
mov eax, dword [0x10014b8c]
cmp eax, ebx
je 0x1000c287
push eax
call fcn.100053c8
pop ecx
test eax, eax
je 0x1000c287
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10014b84]
call fcn.100053c8
pop ecx
test eax, eax
je 0x1000c2a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000c2a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3a1190
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x3a11d0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x3a11c7
push 0
lea edx, [ebp - 4]
push edx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x3a1220
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x3b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
push 0
push esi
call fcn.003a76b0
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.003a76b0
add esp, 0x18
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x3b2c8c], eax
test eax, eax
je 0x3a1294
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x3b2c8c]
cmp byte [ebp - 0x214], 0
push edi
push 0x105
je 0x3a12b7
lea edx, [ebp - 0x210]
push edx
mov edi, 0xca
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x3a12c9
lea eax, [ebp - 0x210]
push eax
mov edi, 0xc9
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.DumpIt.sys
lea ecx, [ebp - 0x210]
push ecx
push str._sDrivers_s
push 0x105
push esi
call fcn.003a1dc5
movzx edi, di
push esi
mov eax, edi
call fcn.003a1190
add esp, 0x18
test al, al
jne 0x3a13b0
push 0x20a
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.003a76b0
push str.DumpIt.sys
push str._TEMP__s
lea eax, [ebp - 0x210]
push 0x20a
push eax
call fcn.003a1dc5
add esp, 0x1c
push 0x105
push esi
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
mov eax, edi
call fcn.003a1190
add esp, 4
test al, al
jne 0x3a13b0
push 0x20a
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.003a76b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.DumpIt.sys
lea ecx, [ebp - 0x210]
push ecx
push str._s_s
push 0x105
push esi
call fcn.003a1dc5
push esi
mov eax, edi
call fcn.003a1190
add esp, 0x18
test al, al
jne 0x3a13b0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.003a1db6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.003a1db6
mov esp, ebp
pop ebp
ret
Function at 0x3a1720
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x3b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.DumpIt
push str.RegistryMachineSystemCurrentControlSetServices_s
lea eax, [ebp - 0x218]
push 0x20a
xor esi, esi
push eax
mov dword [ebp - 0x21c], esi
call fcn.003a1dc5
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x224]
push edx
call dword [0x3b1b48]
lea eax, [ebp - 0x224]
push eax
call dword [0x3b1b4c]
test eax, eax
jne 0x3a17b9
lea ecx, [ebp - 0x21c]
push ecx
push 0xf003f
push eax
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x3a17b9
mov edx, dword [ebp - 0x21c]
push str.DumpIt
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x3a17b9
lea esi, [eax + 1]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x3a17ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.003a1db6
mov esp, ebp
pop ebp
ret

Function at 0x3a1870
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x3b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x664]
push ecx
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x664], 0x20
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x20a
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.003a76b0
movzx ecx, word [ebp - 0x654]
movzx edx, word [ebp - 0x656]
movzx eax, word [ebp - 0x658]
add esp, 0xc
push ecx
movzx ecx, word [ebp - 0x65a]
push edx
movzx edx, word [ebp - 0x65e]
push eax
movzx eax, word [ebp - 0x660]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push ecx
push str._s__04d_02d_02d__02d_02d_02d.raw
lea edx, [ebp - 0x238]
push 0x20a
push edx
call fcn.003a1dc5
push 0x20a
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.003a76b0
add esp, 0x34
lea ecx, [ebp - 0x670]
push ecx
lea edx, [ebp - 0x448]
push edx
push 0x105
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [ebp - 0x650]
push ecx
lea edx, [ebp - 0x66c]
push edx
call dword [0x3b1b48]
push 0
push 0
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x448]
push ecx
call dword [0x3b1b44]
mov bl, al
test bl, bl
je 0x3a19a1
movzx eax, word [ebp - 0x66c]
lea esi, [eax + 2]
shr esi, 1
cmp esi, 0x20a
ja 0x3a19a1
mov edx, dword [ebp - 0x668]
push eax
push edx
push edi
call fcn.003aab20
add esp, 0xc
xor eax, eax
mov word [edi + esi*2 - 2], ax
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.003a1db6
mov esp, ebp
pop ebp
ret
Function at 0x3a1a70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x3b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x38]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x3a1ab2
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.003a1db6
mov esp, ebp
pop ebp
ret
push str.NtQuerySystemInformation
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x3b1b40], esi
test esi, esi
je 0x3a1a9f
push 0x2c
lea ecx, [ebp - 0x30]
push 0
push ecx
call fcn.003a76b0
add esp, 0xc
push 0
push 0x2c
lea edx, [ebp - 0x30]
push edx
push 0
call esi
test eax, eax
js 0x3a1a9f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
inc eax
mul dword [ebp - 0x28]
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov esi, edx
mul dword [ebp - 0x3c]
push 0
push ecx
push edx
push eax
call fcn.003ab2e0
mov dword [ebp - 0x48], eax
mov edi, edx
mov edx, ebx
mov eax, esi
shrd edx, eax, 0x14
shr eax, 0x14
push eax
push edx
push 7
push esi
push ebx
push 0xf
push str._n____Address_space_size:____I64d_bytes___I64d_Mb__n
call fcn.003a1e01
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, edi
shrd ecx, edx, 0x14
shr edx, 0x14
push edx
push ecx
push 7
push edi
push eax
push 0xf
push str.____Free_space_size:_______I64d_bytes___I64d_Mb__n_n
call fcn.003a1e01
add esp, 0x38
cmp edi, esi
ja 0x3a1b6b
jb 0x3a1a9f
cmp dword [ebp - 0x48], ebx
jb 0x3a1a9f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.003a1db6
mov esp, ebp
pop ebp
ret