joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b5a0
Capabilities:
Hash data with md5

Disassembly:
push esi
push eax
mov dword [esp], ecx
mov eax, dword [0x4a7904]
or eax, 0xfe804ebf
mov dword [0x4a7904], eax
mov dword [ecx], 0
mov eax, dword [0x4a7140]
or eax, 0x76d193b8
mov dword [0x4a7140], eax
mov dword [ecx + 4], 0
mov eax, dword [0x49ebdc]
not eax
imul eax, eax, 0x20d5137
mov edx, dword [0x4a3ef0]
add eax, edx
mov si, word [0x4b58ae]
mov dx, si
imul edx, eax
mov si, dx
mov word [0x4b58ae], si
mov dword [ecx + 8], 0x67452301
mov si, word [0x4b4f1a]
mov ax, si
and eax, 0x7fee
mov si, ax
mov word [0x4b4f1a], si
mov dword [ecx + 0xc], 0xefcdab89
mov word [0x4b27d4], 0xb7d5
mov dword [ecx + 0x10], 0x98badcfe
mov eax, dword [0x4abff4]
or eax, 0x5786
mov si, word [0x4b5100]
mov dx, si
add edx, eax
mov si, dx
mov word [0x4b5100], si
mov dword [ecx + 0x14], 0x10325476
mov eax, dword [0x4a25e8]
add eax, 0xe93f8d0f
mov dword [0x4a25e8], eax
add esp, 4
pop esi
ret
Function at 0x46e324
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x499600]
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.0045d41b
mov dword [ebp - 0x14], eax
cmp dword [0x4b9754], esi
jne 0x46e417
push 0x800
push esi
push 0x486fe0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x46e3a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x46e4f7
push esi
push esi
push 0x486fe0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x46e4f7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46e4f7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4b9754], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4b9758], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b975c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b9764], eax
test eax, eax
je 0x46e414
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b9760], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x46e43c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46e42f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x46e451
push 4
pop eax
jmp 0x46e4f9
cmp dword [ebp - 0x14], esi
je 0x46e451
push dword [0x4b9754]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x46e436
mov eax, dword [0x4b9760]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x46e4af
cmp dword [0x4b9764], edi
je 0x46e4af
push eax
call ebx
push dword [0x4b9764]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x46e4af
test eax, eax
je 0x46e4af
call ecx
test eax, eax
je 0x46e4a4
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 0x46e4a4
test byte [ebp - 8], 1
jne 0x46e4af
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x46e4df
mov eax, dword [0x4b9758]
cmp eax, edi
je 0x46e4dc
push eax
call ebx
test eax, eax
je 0x46e4dc
call eax
mov esi, eax
test esi, esi
je 0x46e4dc
mov eax, dword [0x4b975c]
cmp eax, edi
je 0x46e4dc
push eax
call ebx
test eax, eax
je 0x46e4dc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b9754]
call ebx
test eax, eax
je 0x46e4f7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x46e4f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bc13
mov esp, ebp
pop ebp
ret
Function at 0x10004b10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x10]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x60]
call fcn.10053e70
mov esi, dword [edi + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esi], ecx
mov ecx, edi
mov dword [esi + 4], edx
or edx, 0xffffffff
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
call fcn.100373e0
mov edx, 0xfffffffe
mov ecx, edi
mov ebx, eax
call fcn.10037120
movzx ecx, bl
mov eax, ebx
xor ecx, 0x811c9dc5
shr eax, 0x10
imul edx, ecx, 0x1000193
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
movzx eax, al
shr ebx, 0x18
xor edx, ecx
imul ecx, edx, 0x1000193
pop edi
pop esi
xor ecx, eax
imul eax, ecx, 0x1000193
xor eax, ebx
imul ecx, eax, 0x1000193
mov eax, dword [ebp - 4]
pop ebx
mov eax, dword [eax + 0x20]
and eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x100050a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ecx]
mov edx, dword [eax]
mov ecx, dword [edi + 0x10]
mov ecx, dword [ecx + 0x60]
call fcn.10053e70
mov esi, dword [edi + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esi], ecx
mov ecx, edi
mov dword [esi + 4], edx
or edx, 0xffffffff
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
call fcn.100373e0
mov edx, 0xfffffffe
mov ecx, edi
mov ebx, eax
call fcn.10037120
movzx ecx, bl
mov eax, ebx
xor ecx, 0x811c9dc5
shr eax, 0x10
imul edx, ecx, 0x1000193
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
movzx eax, al
shr ebx, 0x18
xor edx, ecx
imul ecx, edx, 0x1000193
pop edi
pop esi
xor ecx, eax
imul eax, ecx, 0x1000193
xor eax, ebx
imul eax, eax, 0x1000193
pop ebx
pop ebp
ret 4

Function at 0x100057d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov edx, 0x811c9dc5
mov esi, dword [eax + 4]
mov edi, dword [eax]
test esi, esi
je 0x10005801
nop dword [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100057f0
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10009060
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
push edi
mov edi, dword [eax]
mov edx, dword [edx]
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x10]
mov ecx, dword [ecx + 0x60]
call fcn.10053e70
mov esi, dword [edi + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esi], ecx
mov ecx, edi
mov dword [esi + 4], edx
or edx, 0xffffffff
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
add dword [edi + 8], 0x10
call fcn.100373e0
mov edx, 0xfffffffe
mov ecx, edi
mov ebx, eax
call fcn.10037120
movzx ecx, bl
mov eax, ebx
xor ecx, 0x811c9dc5
mov esi, dword [ebp - 4]
imul edx, ecx, 0x1000193
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
shr eax, 0x10
movzx eax, al
xor edx, ecx
shr ebx, 0x18
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, esi
xor eax, ebx
imul eax, eax, 0x1000193
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.10006cd0
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x10009108
mov ecx, dword [esi + 0xc]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10028790
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f99cc
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10133400]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ebx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x10028844
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 5
push 9
mov byte [edi + 0x60], al
call fcn.10029240
mov byte [ebp - 4], 6
xor ebx, ebx
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x1002888b
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x1002888b
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x10028895
add ecx, ebx
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
and ecx, 0x1f
lea eax, [ebp - 0xd]
push ecx
push edx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.1002b3e0
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x100288c3
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x1003bb60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x1003bb7f
mov ecx, edi
call fcn.10043440
mov esi, dword [edi + 0x10]
push 0x78
push 0
push 0
push dword [esi + 0x10]
mov eax, dword [esi + 0xc]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1003bce4
add dword [esi + 0x44], 0x78
mov edx, edi
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x1c]
mov dword [ebx], eax
movzx eax, byte [ecx + 0x14]
mov dword [ecx + 0x1c], ebx
and al, 3
mov byte [ebx + 5], al
mov ecx, ebx
mov byte [ebx + 4], 8
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x36], 0x1000000
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x30], 0
mov word [ebx + 0x34], ax
mov byte [ebx + 6], al
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x50], eax
call fcn.1004fbb0
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x4c]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], ecx
mov eax, dword [edi + 0x50]
mov dword [ebx + 0x50], eax
movzx eax, byte [edi + 0x38]
mov byte [ebx + 0x38], al
mov ecx, dword [edi + 0x3c]
mov dword [ebx + 0x3c], ecx
mov eax, dword [edi + 0x44]
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x40], ecx
mov eax, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], 8
add dword [edi + 8], 0x10
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 8]
jae 0x1003bc74
cmp eax, 0x1011b5c0
je 0x1003bc74
cmp dword [eax + 8], 6
jne 0x1003bc74
mov eax, dword [eax]
cmp byte [eax + 6], 0
je 0x1003bc88
push str.Lua_function_expected
mov edx, 1
mov ecx, edi
call fcn.10037d40
add esp, 4
mov esi, dword [edi + 8]
mov edx, 0x1011b5c0
cmp dword [edi + 0xc], esi
cmovb edx, dword [edi + 0xc]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov edx, dword [edi + 8]
mov dword [esp + 0xc], edx
lea eax, [edx + 0x10]
mov dword [edi + 8], eax
cmp edi, ebx
je 0x1003bcd8
mov dword [edi + 8], edx
mov esi, dword [ebx + 8]
lea ecx, [esi + 0x10]
mov dword [ebx + 8], ecx
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esi], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edx
mov ecx, dword [ecx + 8]
mov dword [esi + 8], ecx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, edi
call fcn.10040e70
int3
Function at 0x100446c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10133400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x218], edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x200
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
push edi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x214], ebx
nop
lea ecx, [ebp - 0x210]
call fcn.10038e50
test eax, eax
je 0x10044785
cmp dword [ebp - 0x20c], 1
jle 0x10044785
mov ebx, dword [ebp - 0x208]
or edx, 0xffffffff
mov ecx, ebx
mov esi, 1
call fcn.10037320
mov edi, eax
nop
mov edx, esi
mov ecx, ebx
not edx
call fcn.10037320
mov edx, dword [ebp - 0x20c]
mov ecx, edx
sub ecx, esi
inc ecx
cmp ecx, 0xa
jge 0x1004475f
cmp edi, eax
jbe 0x10044766
inc esi
add edi, eax
cmp esi, edx
jl 0x10044740
mov edx, esi
mov ecx, ebx
call fcn.10037c00
mov ebx, dword [ebp - 0x214]
mov eax, 1
sub eax, esi
mov esi, dword [ebp + 8]
add dword [ebp - 0x20c], eax
push dword [ebp - 0x218]
cmp ebx, esi
mov eax, esi
cmovbe eax, ebx
mov ebx, eax
lea eax, [ebp - 0x204]
push ebx
push 1
push eax
mov dword [ebp - 0x214], ebx
call fcn.100cf075
add dword [ebp - 0x210], eax
add esp, 0x10
sub esi, eax
mov dword [ebp + 8], esi
je 0x100447c1
cmp eax, ebx
je 0x10044710
lea ecx, [ebp - 0x210]
call fcn.10038e50
mov esi, dword [ebp - 0x20c]
mov edi, dword [ebp - 0x208]
cmp esi, 2
jl 0x10044815
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x44]
cmp eax, dword [ecx + 0x40]
jb 0x100447ef
mov ecx, edi
call fcn.10043440
mov eax, dword [edi + 8]
mov edx, esi
sub eax, dword [edi + 0xc]
mov ecx, edi
sar eax, 4
dec eax
push eax
call fcn.10056c60
shl esi, 4
mov eax, 0x10
sub eax, esi
add esp, 4
add dword [edi + 8], eax
jmp 0x1004483a
test esi, esi
jne 0x1004483a
mov esi, dword [edi + 8]
mov edx, 0x1011a289
push 0
mov ecx, edi
call fcn.1004fd60
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 4
add dword [edi + 8], 0x10
cmp dword [ebp + 8], 0
pop edi
pop esi
mov dword [ebp - 0x20c], 1
pop ebx
je 0x1004486d
mov ecx, dword [ebp - 0x21c]
or edx, 0xffffffff
call fcn.10037320
test eax, eax
jne 0x1004486d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c0c44
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.100c0c44
mov esp, ebp
pop ebp
ret
Function at 0x1004fd60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, eax
mov dword [esp + 0xc], ecx
shr esi, 5
mov ebx, eax
push edi
mov edi, edx
inc esi
mov dword [esp + 0x18], edi
mov edx, eax
cmp eax, esi
jb 0x1004fdab
nop word [eax + eax]
movzx ecx, byte [edi + edx - 1]
mov eax, ebx
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, esi
jae 0x1004fd90
mov edx, dword [esp + 0x10]
add edx, 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edx
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x1004fe69
mov ecx, dword [ebp + 8]
cmp dword [edi + 0xc], ecx
jne 0x1004fe2b
mov edx, dword [esp + 0x18]
lea eax, [edi + 0x10]
mov esi, ecx
sub esi, 4
jb 0x1004fdf6
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x1004fdfb
add edx, 4
add eax, 4
sub esi, 4
jae 0x1004fde5
cmp esi, 0xfffffffc
je 0x1004fe3e
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x1004fe28
cmp esi, 0xfffffffd
je 0x1004fe3e
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x1004fe28
cmp esi, 0xfffffffe
je 0x1004fe3e
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x1004fe28
cmp esi, 0xffffffff
je 0x1004fe3e
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x1004fe3e
mov ecx, dword [ebp + 8]
mov edi, dword [edi]
test edi, edi
jne 0x1004fdd2
mov edi, dword [esp + 0x10]
lea eax, [edi + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x1004fe6d
mov edx, dword [esp + 0x14]
mov al, byte [edi + 5]
mov ecx, dword [edx]
movzx edx, byte [ecx + 0x14]
not edx
movzx ecx, al
and edx, ecx
test dl, 3
je 0x1004ff00
xor al, 3
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 8]
lea eax, [esi + 1]
cmp eax, 0xffffffed
jbe 0x1004fe86
push str.memory_allocation_error:_block_too_big
push edi
call fcn.10040cb0
add esp, 8
lea eax, [esi + 0x11]
xor edx, edx
push eax
push 0
mov ecx, edi
call fcn.10047bf0
mov edx, dword [esp + 0x1c]
mov edi, eax
push esi
push dword [esp + 0x24]
mov dword [edi + 0xc], esi
lea eax, [edi + 0x10]
mov dword [edi + 8], ebx
mov ecx, dword [edx]
push eax
mov cl, byte [ecx + 0x14]
and cl, 3
mov byte [edi + 4], 4
mov byte [edi + 5], cl
mov byte [edi + 6], 0
call fcn.100c2ee0
mov edx, dword [esp + 0x30]
add esp, 0x14
mov byte [edi + esi + 0x10], 0
mov edx, dword [edx]
mov ecx, dword [edx + 8]
mov eax, dword [edx]
dec ecx
and ecx, ebx
mov eax, dword [eax + ecx*4]
mov dword [edi], eax
mov eax, dword [edx]
mov dword [eax + ecx*4], edi
inc dword [edx + 4]
mov eax, dword [edx + 8]
cmp dword [edx + 4], eax
jbe 0x1004ff00
cmp eax, 0x3ffffffe
jg 0x1004ff00
mov ecx, dword [esp + 0x10]
lea edx, [eax + eax]
call fcn.1004fc80
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006f6c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1006f76f
push esi
call fcn.10086430
add esp, 4
test al, al
jne 0x1006f76f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1006f6e7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.1008f7f0
add esp, 0xc
test eax, eax
je 0x1006f71b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.1008f7f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1006f71d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x1006f74e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.10083290
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x1006f730
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10076280
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x14
mov eax, dword [0x10133400]
xor eax, esp
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x28]
mov eax, dword [eax + 4]
and eax, 0xa
cmp al, 0xa
mov eax, dword [ecx + 0xc]
jne 0x100762b7
mov esi, dword [eax + 0x78]
mov ebx, dword [eax + 0x7c]
mov ebp, dword [eax + 0x80]
jmp 0x100762c3
mov esi, dword [eax + 0x30]
mov ebx, dword [eax + 0x34]
mov ebp, dword [eax + 0x4c0]
test esi, esi
je 0x100763a4
mov eax, dword [edi]
test eax, eax
je 0x10076300
mov ecx, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100762f3
test dl, dl
je 0x100762ef
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100762f3
add ecx, 2
add eax, 2
test dl, dl
jne 0x100762d3
xor eax, eax
jmp 0x100762f8
sbb eax, eax
or eax, 1
test eax, eax
je 0x100763a4
push edi
call fcn.10076230
push esi
call dword [0x1013300c]
mov edx, eax
add esp, 8
mov dword [edi], edx
test edx, edx
je 0x1007635a
test ebx, ebx
je 0x1007637b
mov ecx, ebx
nop
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x10076340
test al, al
je 0x1007633c
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x10076340
add esi, 2
add ecx, 2
test al, al
jne 0x10076320
xor eax, eax
jmp 0x10076345
sbb eax, eax
or eax, 1
test eax, eax
je 0x1007637b
push ebx
call dword [0x1013300c]
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x1007637e
push edi
call fcn.10076230
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.100c0c44
add esp, 0x14
ret
mov dword [edi + 4], edx
mov esi, dword [edi]
test esi, esi
je 0x100763da
cmp byte [esi], 0
je 0x100763da
mov ebx, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x10]
push eax
push esi
push 2
call ebx
test eax, eax
je 0x100763c3
mov dword [edi + 0xc], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100c0c44
add esp, 0x14
ret
lea eax, [esp + 0x10]
push eax
push esi
push 0x17
call ebx
test eax, eax
je 0x100763da
mov dword [edi + 0xc], 2
jmp 0x100763a4
mov ecx, dword [edi]
mov dword [edi + 0xc], 0
cmp byte [ecx], 0
je 0x100763a4
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100763f0
sub esi, edx
je 0x10076403
cmp byte [ecx + esi - 1], 0x2e
jne 0x10076403
dec esi
cmp esi, 0xffff
jae 0x100763a4
lea eax, [esi + 1]
push eax
push 1
call dword [0x10133010]
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x1007635a
push esi
push dword [edi]
push eax
call fcn.100832f0
mov eax, dword [edi + 8]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x100763a4
Function at 0x1007fde0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x1007fdfa
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x101046d8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x101046e8
push esi
call fcn.100d871e
add esp, 8
test eax, eax
je 0x1007fe42
test ebp, ebp
je 0x1007fe33
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x1007fe68
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007fe68
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1007ff42
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007fe85
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1007ff38
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1007ff38
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007fec6
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007fee1
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x1007ff00
test ebp, ebp
je 0x1007ff2f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x10133004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x10133004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret