joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4487f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b19a0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x627490]
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 edi, ecx
cmp byte [edi + 0x2d], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
jne 0x4489e3
lea eax, [edi + 0x4c]
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x14]
mov eax, 2
mov word [ebp - 0x44], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x10]
mov word [ebp - 0x42], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push ebx
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4489da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4488d2
xor esi, esi
jmp 0x448890
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x48]
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4489da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4488d2
inc esi
cmp esi, 0xa
jl 0x448890
jmp 0x4489da
push 0
push 0x5fa61d
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404c00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7c]
mov edx, ebx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], 1
call fcn.004057e0
push eax
mov edx, str.sendto_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00405a70
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x44896e
cmp dword [ebp - 0x14], 0x10
jb 0x448953
push dword [ebp - 0x28]
call fcn.00448bc8
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004045c0
cmp dword [ebp - 0x50], 0x10
jb 0x44897f
push dword [ebp - 0x64]
call fcn.00448bc8
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jb 0x4489a6
push dword [ebp - 0x7c]
call fcn.00448bc8
add esp, 4
cmp byte [edi + 0x2d], 0
jne 0x4489c9
cmp dword [edi + 0xc], 0
je 0x4489c9
sub esp, 0x24
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004066e0
mov eax, dword [edi + 0xc]
push edi
call eax
add esp, 0x28
cmp dword [ebp - 0x14], 0x10
jb 0x4489da
push dword [ebp - 0x28]
call fcn.00448bc8
add esp, 4
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.00570aac
mov esp, ebp
pop ebp
ret 0x10
Function at 0x458068
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4580ad
call fcn.00462978
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4580ad
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4580c9
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00462b11
mov ebx, eax
test edi, edi
je 0x4580c7
test esi, esi
je 0x4580c7
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45e3ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00462978
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45e3e3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0045e404
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d911e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00461db2
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4d915a
call fcn.004d933d
mov dword [esi + 0xc], 1
jmp 0x4d915f
call fcn.004d933d
cmp dword [esi], 0
je 0x4d91a8
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4d9182
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00458120
jmp 0x4d9193
push 0xff
mov ecx, esi
call fcn.0040cc90
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00455fff
jmp 0x4d91cc
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4d91cc
push dword [esi]
push dword [ebp - 4]
call fcn.004654d5
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d9292
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004d933d
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4d92da
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00458120
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00455fff
jmp 0x4d92e5
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004654d5
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x53bb40
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0056c7f1
call fcn.004629cc
cmp dword [eax + 0x14], 0
jne 0x53bb5b
mov ecx, esi
pop esi
jmp fcn.0053af46
pop esi
ret

Function at 0x548341
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004057d0
call fcn.004629cc
cmp dword [eax + 0x14], 0
jne 0x54835c
mov ecx, esi
pop esi
jmp fcn.00547c2a
pop esi
ret
Function at 0x5888f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x627490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0057b17e
mov dword [ebp - 0x14], eax
cmp dword [0x634b88], esi
jne 0x5889e8
push 0x800
push esi
push 0x5f2ed0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x588975
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x588ac8
push esi
push esi
push 0x5f2ed0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x588ac8
push 0x5f2ee8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x588ac8
push eax
call ebx
push 0x5f2ef4
push edi
mov dword [0x634b88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5f2f04
push edi
mov dword [0x634b8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x634b90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x634b98], eax
test eax, eax
je 0x5889e5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x634b94], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x588a0d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x588a00
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x588a22
push 4
pop eax
jmp 0x588aca
cmp dword [ebp - 0x14], esi
je 0x588a22
push dword [0x634b88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x588a07
mov eax, dword [0x634b94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x588a80
cmp dword [0x634b98], edi
je 0x588a80
push eax
call ebx
push dword [0x634b98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x588a80
test eax, eax
je 0x588a80
call ecx
test eax, eax
je 0x588a75
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x588a75
test byte [ebp - 8], 1
jne 0x588a80
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x588ab0
mov eax, dword [0x634b8c]
cmp eax, edi
je 0x588aad
push eax
call ebx
test eax, eax
je 0x588aad
call eax
mov esi, eax
test esi, esi
je 0x588aad
mov eax, dword [0x634b90]
cmp eax, edi
je 0x588aad
push eax
call ebx
test eax, eax
je 0x588aad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x634b88]
call ebx
test eax, eax
je 0x588ac8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x588aca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570aac
mov esp, ebp
pop ebp
ret
Function at 0x5987d2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x10002176
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
mov dword [ebp + 0x74], 0x1009a059
mov dword [ebp + 0x24], 0
lea eax, [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x74]
mov edx, dword [ecx]
push edx
call fcn.10002656
add esp, 8
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x74]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp + 0x74]
mov eax, dword [edx + 0x64]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
mov edx, dword [ebp + 0x74]
mov eax, dword [edx + 0xc]
push eax
call fcn.100025a6
add esp, 0x10
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp + 0x74]
mov edx, dword [ecx + 0x2c]
push edx
push 0
call dword [ebp + 0x20]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x74]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp + 0x74]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
mov edx, dword [ebp + 0x74]
mov eax, dword [edx + 0xc]
push eax
call fcn.100025a6
add esp, 0x10
mov dword [ebp + 0x1c], eax
push 0x104
mov ecx, dword [ebp + 0x60]
push ecx
push 0
call dword [ebp + 0x1c]
mov dword [ebp + 0x18], eax
mov edx, dword [ebp + 0x74]
mov eax, dword [edx + 0x50]
mov dword [ebp + 0x3c], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x68], ecx
mov edx, dword [ebp + 0x68]
mov eax, dword [ebp + 0x60]
movzx ecx, word [eax + edx*2 - 2]
mov edx, dword [ebp + 0x74]
movzx eax, word [edx + 0x18]
cmp ecx, eax
je 0x10002248
xor ecx, ecx
mov edx, dword [ebp + 0x68]
mov eax, dword [ebp + 0x60]
mov word [eax + edx*2], cx
mov ecx, dword [ebp + 0x68]
sub ecx, 1
mov dword [ebp + 0x68], ecx
jmp 0x1000221b
mov dword [ebp + 0x58], 0

Function at 0x100025a6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*8 + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x20]
and byte [ecx + 0x4d8bf045], cl
clc
Function at 0x10002656
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword fs:[0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 0xc
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
je 0x100026cd
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
push eax
call fcn.100020e6
add esp, 4
cmp dword [ebp + 8], eax
jne 0x100026c3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18]
jmp 0x100026cf
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 4], eax
jmp 0x10002699
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100060d0
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x10006170
mov ecx, dword [eax + 8]
rol ecx, 1
mov edx, dword [eax + 0xc]
rol edx, 7
add edx, ecx
mov esi, dword [eax + 0x10]
rol esi, 0xc
mov ecx, dword [eax + 0x14]
rol ecx, 0x12
add ecx, esi
add ecx, edx
add ecx, dword [eax]
mov edx, dword [eax + 0x28]
add eax, 0x18
and edx, 0xf
cmp edx, 4
jb 0x1000612b
imul esi, dword [eax], 0xc2b2ae3d
add esi, ecx
rol esi, 0x11
add eax, 4
imul ecx, esi, 0x27d4eb2f
add edx, 0xfffffffc
cmp edx, 3
ja 0x1000610f
test edx, edx
je 0x1000614b
xor esi, esi
movzx edi, byte [eax + esi]
imul edi, edi, 0x165667b1
add edi, ecx
rol edi, 0xb
imul ecx, edi, 0x9e3779b1
inc esi
cmp edx, esi
jne 0x10006131
mov eax, ecx
shr eax, 0xf
xor eax, ecx
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
pop esi
pop edi
pop ebp
ret
mov ecx, 0x165667b1
add ecx, dword [eax + 0x10]
jmp 0x100060ff

Function at 0x10006fd0
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp eax, 0x10
jae 0x1000705e
add esi, 0x165667b1
mov edx, esi
add edx, eax
and eax, 0xf
cmp eax, 4
jb 0x10007015
imul esi, dword [ecx], 0xc2b2ae3d
add esi, edx
rol esi, 0x11
add ecx, 4
imul edx, esi, 0x27d4eb2f
add eax, 0xfffffffc
cmp eax, 3
ja 0x10006ff9
test eax, eax
je 0x10007035
xor esi, esi
movzx edi, byte [ecx + esi]
imul edi, edi, 0x165667b1
add edi, edx
rol edi, 0xb
imul edx, edi, 0x9e3779b1
inc esi
cmp eax, esi
jne 0x1000701b
mov eax, edx
shr eax, 0xf
xor eax, edx
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
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [ecx + eax]
add edx, 0xfffffff1
mov dword [ebp - 0x18], edx
lea edx, [esi + 0x24234428]
mov dword [ebp - 0x10], edx
lea edx, [esi - 0x7a143589]
mov dword [ebp - 0x14], edx
lea edx, [esi + 0x61c8864f]
imul edi, dword [ecx], 0x85ebca77
add edi, dword [ebp - 0x10]
mov dword [ebp - 0x10], edi
imul edi, dword [ecx + 4], 0x85ebca77
add edi, dword [ebp - 0x14]
mov dword [ebp - 0x14], edi
imul ebx, dword [ecx + 8], 0x85ebca77
imul edi, dword [ecx + 0xc], 0x85ebca77
add ebx, esi
add edi, edx
mov edx, dword [ebp - 0x10]
rol edx, 0xd
imul edx, edx, 0x9e3779b1
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x14]
rol edx, 0xd
imul edx, edx, 0x9e3779b1
mov dword [ebp - 0x14], edx
rol ebx, 0xd
rol edi, 0xd
imul esi, ebx, 0x9e3779b1
imul edx, edi, 0x9e3779b1
add ecx, 0x10
cmp ecx, dword [ebp - 0x18]
jb 0x1000707f
mov ebx, dword [ebp - 0x10]
rol ebx, 1
mov edi, dword [ebp - 0x14]
rol edi, 7
add edi, ebx
rol esi, 0xc
rol edx, 0x12
add edx, esi
add edx, edi
jmp 0x10006fef
Function at 0x1000cf10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x30], ecx
mov eax, dword [0x1009a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2c]
push 0x10088020
push esi
call fcn.1000d340
add esp, 8
cmp dword [esi], 0
je 0x1000d0b5
cmp dword [0x1009a204], 0xffffffff
jne 0x1000d0c4
lea ebx, [ebp - 0x28]
mov ecx, ebx
call fcn.1000cdd0
cmp byte [ebx + 4], 0
jne 0x1000d0cd
mov esi, dword [ebp - 0x28]
movzx eax, word [esi]
test ax, ax
je 0x1000cf8e
lea ecx, [esi + 2]
lea edx, [eax - 0x41]
cmp dx, 0x19
jbe 0x1000cf85
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cf6f
jmp 0x1000cf8e
add eax, 0x20
mov word [ecx - 2], ax
jmp 0x1000cf78
push 0x12
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov edi, eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov word [eax + 0x10], 0
movzx ecx, word [esi]
mov eax, 0
test cx, cx
je 0x1000cfd1
lea edx, [esi + 2]
xor eax, eax
movzx ecx, cx
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x1000cfb8
mov dword [ebp - 0x34], esi
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp], edi
call fcn.10048a70
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], 0
mov esi, dword [ebp - 0x2c]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ecx, ebx
push eax
push esi
call fcn.1000d0f0
mov ecx, ebx
push 0x20
push 0x100909cc
call fcn.1000d0f0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ecx, ebx
push eax
push edi
call fcn.1000d0f0
cmp dword [ebp - 0x14], 8
jb 0x1000d036
mov ebx, dword [ebp - 0x28]
sub esp, 0x1c
mov eax, ebx
xor ebx, ebx
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x10088c00]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0x4000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1009a204], eax
cmp eax, 0xffffffff
mov esi, dword [ebp - 0x30]
je 0x1000d0db
mov byte [esi + 4], bl
lea ecx, [ebp - 0x28]
call fcn.1000f1e0
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
push dword [ebp - 0x34]
call sym.mozglue.dll__aligned_free
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x1000d0a1
lea ecx, [ebp - 0x2c]
push eax
call fcn.1000d2e0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100468e0
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp - 0x30]
mov byte [esi + 4], 1
mov dword [esi], 0xb
jmp 0x1000d08a
mov esi, dword [ebp - 0x30]
mov byte [esi + 4], 0
jmp 0x1000d08a
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
mov byte [esi + 4], 1
mov dword [esi], eax
jmp 0x1000d08a
mov dword [esi], 0xa
mov bl, 1
jmp 0x1000d06b
Function at 0x1000e7f0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x1009a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
lea eax, [ecx + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [0x1009a3c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x1009ba58]
cmp ecx, dword [eax + 4]
jg 0x1000e8b7
mov ebx, dword [0x1009ba54]
mov eax, dword [ebp + 0xc]
add eax, edi
dec eax
xor edx, edx
div ebx
mov ecx, eax
mov eax, edi
xor edx, edx
div ebx
mov edi, eax
inc ecx
sub ecx, eax
je 0x1000e8a3
mov eax, ebx
lea edx, [esi + 4]
mov dword [ebp - 0x3c], edx
imul edi, ebx
xor ebx, ebx
inc ebx
cmp ecx, 2
cmovae ebx, ecx
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x34]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000e8f5
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
je 0x1000e905
mov ecx, dword [esi + 4]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
inc dword [esi + 8]
mov eax, dword [ebp - 0x40]
add edi, eax
dec ebx
jne 0x1000e871
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100468e0
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1009ba58
call fcn.10046148
add esp, 4
cmp dword [0x1009ba58], 0xffffffff
jne 0x1000e83b
lea ebx, [ebp - 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebx + 4]
mov dword [0x1009ba54], eax
push 0x1009ba58
call fcn.100460fe
add esp, 4
jmp 0x1000e83b
mov dword [ebp - 0x34], 0
mov ecx, esi
call fcn.10076710
jmp 0x1000e8a3
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x3c]
call fcn.100767d0
test al, al
je 0x1000e8fc
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x38]
jmp 0x1000e88e

Function at 0x1000ec80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov byte [eax + 0xc], 0
test ecx, ecx
je 0x1000ecf3
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x1000ecf3
mov esi, dword [ecx + 0x3c]
lea edx, [ecx + esi]
mov dword [eax + 4], edx
cmp dword [ecx + esi], 0x4550
jne 0x1000ecf3
movzx esi, word [edx + 0x18]
cmp esi, 0x10b
jne 0x1000ecf3
mov esi, dword [edx + 0x50]
cmp esi, 0x138
jb 0x1000ecf3
add ecx, esi
dec ecx
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0x74]
cmp ecx, 0x10
mov edi, 0x10
cmovb edi, ecx
cmp edi, 2
jb 0x1000ecf3
cmp dword [edx + 0x80], esi
setae byte [eax + 0xc]
pop esi
pop edi
pop ebp
ret 4
Function at 0x10012cd0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, edx
sub eax, ecx
cmp eax, 0x1981
setge cl
test esi, esi
jle 0x10012d6a
cmp eax, 0x1981
jl 0x10012d6a
mov ebx, edx
mov ecx, edi
mov dword [ebp - 0x18], edx
call fcn.1004a9b0
mov ecx, esi
shr ecx, 1
shr esi, 2
add esi, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
sub eax, edi
sar eax, 2
imul eax, eax, 0xfafafafb
sub ebx, edx
sar ebx, 2
imul ecx, ebx, 0xfafafafb
cmp eax, ecx
jl 0x10012d54
mov ecx, edx
mov edx, dword [ebp - 0x18]
push esi
call fcn.10012cd0
add esp, 4
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov eax, edx
sub eax, edi
cmp eax, 0x1981
setge cl
jl 0x10012d6a
mov ebx, edx
test esi, esi
jne 0x10012cf7
jmp 0x10012d6a
mov ecx, dword [ebp - 0x10]
mov edi, edx
mov edx, dword [ebp - 0x14]
push esi
call fcn.10012cd0
add esp, 4
mov edx, dword [ebp - 0x18]
jmp 0x10012d3e
test cl, cl
jne 0x10012d83
cmp eax, 0xcd
jl 0x10012db6
mov ecx, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1004a820
mov ecx, edi
mov dword [ebp - 0x10], edi
mov ebx, edx
call fcn.10062970
mov esi, ebx
sub esi, dword [ebp - 0x10]
cmp esi, 0xcd
jl 0x10012db6
mov ecx, edi
mov edx, ebx
call fcn.10062d80
mov eax, 0xffffff34
add ebx, eax
add esi, eax
cmp esi, 0xcc
jg 0x10012d9c
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret