joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e810
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101366ec
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x101b2070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
test byte [0x101b8204], 1
mov dword [edi], vtable.CTcpAgent.0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0x2710
jne 0x1000e89d
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
or dword [0x101b8204], 1
lea eax, [ebp - 0x30]
push eax
call esi
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1f4
jae 0x1000e893
lea eax, [ebp - 0x54]
push eax
call esi
mov ecx, dword [ebp - 0x40]
lea edx, [ecx + ecx + 2]
mov dword [0x101b8200], edx
jmp 0x1000e89d
mov dword [0x101b8200], 0x1f4
mov eax, dword [0x101b8200]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x1000
mov dword [edi + 0x2c], 0xea60
mov dword [edi + 0x34], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], 3
mov dword [edi + 0x54], ebx
mov eax, 0x400
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], eax
mov ecx, 0x258
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x24], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x44], ecx
mov edx, 0x4e20
mov dword [edi + 0x18], edx
mov dword [edi + 0x30], edx
mov eax, 1
mov dword [edi + 0x38], eax
mov dword [edi + 0x48], eax
xor eax, eax
xor edx, edx
mov word [edi + 0x58], dx
mov dword [edi + 0x5a], eax
mov dword [edi + 0x5e], eax
mov dword [edi + 0x62], eax
mov dword [edi + 0x66], eax
mov dword [edi + 0x6a], eax
mov dword [edi + 0x6e], eax
mov word [edi + 0x72], ax
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
push ebx
mov byte [ebp - 4], 1
push ebx
push 4
mov dword [edi + 0x88], 4
mov dword [edi + 0x8c], ebx
mov dword [edi + 0x90], ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [edi + 0x84], eax
cmp ecx, ebx
jne 0x1000e961
push 0x80004005
call fcn.10002670
lea esi, [edi + 0x94]
mov byte [ebp - 4], 2
call fcn.10014490
lea edx, [edi + 0x178]
mov byte [ebp - 4], 3
mov dword [edi + 0x174], ebx
push edx
call fcn.100146f0
mov dword [edi + 0x2c4], ebx
mov eax, dword [edi + 0x2c4]
mov dword [edi + 0x2c0], ebx
mov dword [edi + 0x304], ebx
mov dword [edi + 0x344], ebx
cmp eax, ebx
je 0x1000e9c9
push eax
call fcn.1011bc28
mov dword [edi + 0x2c4], ebx
mov dword [edi + 0x2c0], ebx
mov dword [edi + 0x304], ebx
add esp, 4
mov dword [edi + 0x344], ebx
mov byte [ebp - 4], 5
mov dword [edi + 0x384], ebx
mov dword [edi + 0x388], ebx
push 8
mov dword [edi + 0x394], ebx
call fcn.1011bb14
add esp, 4
cmp eax, ebx
je 0x1000e9f4
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x1000e9f6
xor eax, eax
mov dword [edi + 0x390], eax
mov dword [edi + 0x38c], eax
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 8
Function at 0x1000f400
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10137180
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101b2070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [edi + 4], ecx
mov dword [edi], vtable.CUdpClient.0
mov dword [edi + 8], 1
mov dword [edi + 0xc], 5
mov dword [edi + 0x10], eax
mov ecx, 0x3c
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x14], 0xffffffff
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], 0x598
mov dword [edi + 0x30], 0xea60
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov ecx, 3
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
lea esi, [edi + 0x50]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], eax
push eax
xor ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.100191e0
mov byte [ebp - 4], 1
mov edx, dword [0x101b1c00]
mov eax, dword [edx + 0xc]
mov ecx, 0x101b1c00
call eax
add eax, 0x10
mov dword [edi + 0x5c], eax
xor ecx, ecx
mov byte [ebp - 4], 2
lea esi, [edi + 0x64]
mov word [edi + 0x60], cx
call fcn.100141f0
lea eax, [edi + 0x148]
push ebx
mov byte [ebp - 4], 3
push eax
mov dword [edi + 0x144], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
neg eax
sbb eax, eax
neg eax
jne 0x1000f4f4
push 0x80004005
call fcn.10002670
mov dword [edi + 0x164], ebx
mov dword [edi + 0x168], ebx
mov dword [edi + 0x160], ebx
mov dword [edi + 0x16c], esi
push ebx
push ebx
push ebx
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
call esi
xor edx, edx
cmp eax, ebx
setne dl
mov dword [edi + 0x170], eax
cmp edx, ebx
jne 0x1000f537
push 0x80004005
call fcn.10002670
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 6
call esi
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [edi + 0x174], eax
cmp ecx, ebx
jne 0x1000f55c
push 0x80004005
call fcn.10002670
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 7
call esi
mov dword [edi + 0x178], eax
cmp eax, ebx
jne 0x1000f57a
push 0x80004005
call fcn.10002670
mov dword [edi + 0x17c], ebx
mov dword [edi + 0x180], ebx
mov dword [edi + 0x184], ebx
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 4
Function at 0x1000f980
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101370f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101b2070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [edi + 4], ecx
mov dword [edi], vtable.CUdpCast.0
mov dword [edi + 0xc], 5
mov dword [edi + 0x10], eax
mov edx, 1
mov dword [edi + 8], edx
mov dword [edi + 0x30], edx
mov dword [edi + 0x14], 0xffffffff
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0x598
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov ecx, 0x3c
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 3
xor edx, edx
mov word [edi + 0x58], dx
mov dword [edi + 0x5a], eax
mov dword [edi + 0x5e], eax
mov dword [edi + 0x62], eax
mov dword [edi + 0x66], eax
mov dword [edi + 0x6a], eax
mov dword [edi + 0x6e], eax
mov dword [edi + 0x72], eax
mov dword [edi + 0x76], eax
mov dword [edi + 0x7a], eax
mov dword [edi + 0x7e], eax
mov dword [edi + 0x82], eax
mov dword [edi + 0x86], eax
mov dword [edi + 0x8a], eax
lea esi, [edi + 0x90]
mov word [edi + 0x8e], ax
push eax
xor ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.100191e0
mov byte [ebp - 4], 1
mov edx, dword [0x101b1c00]
mov eax, dword [edx + 0xc]
mov ecx, 0x101b1c00
call eax
add eax, 0x10
mov dword [edi + 0x9c], eax
xor ecx, ecx
mov byte [ebp - 4], 2
lea esi, [edi + 0xa4]
mov word [edi + 0xa0], cx
call fcn.100141f0
lea eax, [edi + 0x188]
push ebx
mov byte [ebp - 4], 3
push eax
mov dword [edi + 0x184], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
neg eax
sbb eax, eax
neg eax
jne 0x1000fabf
push 0x80004005
call fcn.10002670
mov dword [edi + 0x1a4], ebx
mov dword [edi + 0x1a8], ebx
mov dword [edi + 0x1a0], ebx
mov dword [edi + 0x1ac], esi
push ebx
push ebx
push ebx
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
call esi
xor edx, edx
cmp eax, ebx
setne dl
mov dword [edi + 0x1b0], eax
cmp edx, ebx
jne 0x1000fb02
push 0x80004005
call fcn.10002670
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 6
call esi
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [edi + 0x1b4], eax
cmp ecx, ebx
jne 0x1000fb27
push 0x80004005
call fcn.10002670
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 7
call esi
mov dword [edi + 0x1b8], eax
cmp eax, ebx
jne 0x1000fb45
push 0x80004005
call fcn.10002670
mov dword [edi + 0x1bc], ebx
mov dword [edi + 0x1c0], ebx
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 4
Function at 0x10011ef0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x20]
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [ebp - 4], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10011f21
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push ecx
push edx
lea ecx, [ebp + 8]
lea eax, [ebp - 0x20]
call fcn.100343d0
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10018560
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp dword [edi + 0x40], 0
push ebx
push esi
mov esi, eax
je 0x100185fa
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jne 0x10018588
mov esi, dword [edi + 0x30]
push esi
xor eax, eax
mov ecx, edi
call fcn.10018620
mov esi, dword [edi + 0xc]
dec esi
js 0x100185d0
test esi, esi
js 0x10018600
cmp esi, dword [edi + 0xc]
jge 0x10018600
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea ecx, [esp + 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x100185c6
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec esi
jns 0x10018598
mov edx, dword [edi + 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
lea esi, [edi + 0x14]
push esi
mov dword [edi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [edi + 0x3c]
push eax
call ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x1001b420
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 8]
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001b430
sub eax, edi
add eax, ecx
mov edx, 0x811c9dc5
cmp ecx, eax
je 0x1001b454
movsx edi, byte [ecx]
imul edx, edx, 0x1000193
inc ecx
xor edx, edi
cmp ecx, eax
jne 0x1001b444
mov ecx, dword [esi + 0x20]
mov eax, ecx
and eax, edx
cmp dword [esi + 0x24], eax
ja 0x1001b469
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
add eax, edx
mov ecx, dword [esi + 0x10]
cmp dword [ecx + eax*8 + 4], ebx
lea ecx, [ecx + eax*8]
jne 0x1001b492
cmp dword [ecx], ebx
jne 0x1001b48a
mov edx, dword [esi + 4]
mov dword [ecx], edx
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 4]
mov dword [ecx + eax*8 + 4], edx
jmp 0x1001b49a
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
jmp 0x1001b49a
cmp dword [ecx], ebx
jne 0x1001b49d
mov edx, dword [ebx]
mov dword [ecx], edx
mov ebx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
lea edi, [esi + 4]
call fcn.1001b4c0
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x1001b540
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [eax]
mov al, byte [ecx]
mov esi, 0x811c9dc5
test al, al
je 0x1001b57c
lea esp, [esp]
lea edx, [eax - 0x41]
inc ecx
cmp dl, 0x19
ja 0x1001b56b
add al, 0x20
imul esi, esi, 0x1000193
movsx eax, al
xor esi, eax
mov al, byte [ecx]
test al, al
jne 0x1001b560
mov eax, dword [edi + 0x20]
mov ebx, eax
and ebx, esi
cmp dword [edi + 0x24], ebx
ja 0x1001b591
shr eax, 1
or ecx, 0xffffffff
sub ecx, eax
add ebx, ecx
mov edx, dword [edi + 0x10]
mov ecx, dword [edx + ebx*8]
mov esi, dword [edi + 4]
lea eax, [edx + ebx*8]
cmp esi, ecx
je 0x1001b5dd
mov eax, dword [eax + 4]
mov esi, dword [eax]
cmp esi, ecx
je 0x1001b5dd
mov esi, dword [esi + 4]
mov eax, dword [esi + 8]
test eax, eax
je 0x1001b5d1
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
push eax
push ecx
call fcn.1011dd71
add esp, 8
test eax, eax
je 0x1001b5db
mov edx, dword [edi + 0x10]
cmp esi, dword [edx + ebx*8]
jne 0x1001b5aa
jmp 0x1001b5dd
push 0x80004005
call fcn.10002670
mov esi, dword [esi]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
cmp esi, ecx
je 0x1001b5f6
push ecx
push eax
lea ecx, [edi + 4]
push esi
mov edx, ecx
call fcn.10041d20
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + ebx*8]
lea eax, [eax + ebx*8]
cmp ecx, dword [edi + 4]
jne 0x1001b61a
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0xc]
mov dword [edx + ebx*8 + 4], eax
jmp 0x1001b643
cmp ecx, esi
jne 0x1001b625
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x1001b643
mov edx, dword [eax + 4]
mov ecx, dword [edx]
mov dword [eax + 4], ecx
cmp ecx, dword [esp + 0xc]
je 0x1001b643
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + ebx*8 + 4]
mov edx, dword [ecx + 4]
lea eax, [eax + ebx*8 + 4]
mov dword [eax], edx
call fcn.1001b7d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001b660
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [eax]
mov eax, ecx
mov dword [esp + 0x10], edi
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001b680
sub eax, esi
add eax, ecx
mov edx, 0x811c9dc5
cmp ecx, eax
je 0x1001b6a4
movsx esi, byte [ecx]
imul edx, edx, 0x1000193
inc ecx
xor edx, esi
cmp ecx, eax
jne 0x1001b694
mov eax, dword [edi + 0x20]
mov ebx, eax
and ebx, edx
cmp dword [edi + 0x24], ebx
ja 0x1001b6b9
shr eax, 1
or ecx, 0xffffffff
sub ecx, eax
add ebx, ecx
mov edx, dword [edi + 0x10]
mov ecx, dword [edx + ebx*8]
mov esi, dword [edi + 4]
add edi, 4
lea eax, [edx + ebx*8]
cmp esi, ecx
je 0x1001b6fe
mov eax, dword [eax + 4]
mov esi, dword [eax]
cmp esi, ecx
je 0x1001b6fe
mov esi, dword [esi + 4]
mov eax, dword [esi + 8]
test eax, eax
je 0x1001b746
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
push eax
push ecx
call fcn.1011db46
add esp, 8
test eax, eax
je 0x1001b73d
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
cmp esi, dword [eax + ebx*8]
jne 0x1001b6d5
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp esi, eax
je 0x1001b716
push eax
push ecx
push esi
mov ecx, edi
mov edx, edi
call fcn.10041d20
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
lea eax, [edx + ebx*8]
mov edx, dword [eax]
mov dword [esp + 0x14], ecx
cmp edx, dword [edi]
jne 0x1001b784
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov dword [ecx + ebx*8 + 4], edx
jmp 0x1001b7ae
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x1001b750
push 0x80004005
call fcn.10002670
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.1011db46
add esp, 8
test eax, eax
je 0x1001b765
mov esi, dword [esi]
jmp 0x1001b6fe
mov edx, dword [ebp + 0x10]
push edx
lea ebx, [esp + 0x18]
call fcn.1001b4c0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edx, esi
jne 0x1001b78c
mov dword [eax], ecx
jmp 0x1001b7ae
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
cmp ecx, dword [esp + 0x14]
je 0x1001b7ae
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + ebx*8 + 4]
mov edx, dword [ecx + 4]
lea ebx, [eax + ebx*8 + 4]
mov dword [ebx], edx
mov edi, dword [esp + 0x10]
call fcn.1001b8a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001be20
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 0x1001be38
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1001be6a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x1001be66
cmp esi, eax
jae 0x1001be6a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1001be58
cmp esi, eax
jb 0x1001be70
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 0x1002a8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10138300
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x101b2070]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov esi, ecx
call fcn.10013d10
xor edi, edi
mov dword [esp + 0x48], edi
mov edx, dword [0x101b1c00]
mov eax, dword [edx + 0xc]
mov ecx, 0x101b1c00
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea esi, [esp + 0x18]
call fcn.10013dd0
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x4c], 2
call fcn.10013d10
mov esi, dword [ebp + 0xc]
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x4c], 3
call fcn.10013d10
mov byte [esp + 0x48], 4
or eax, 0xffffffff
lea ebx, [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.1002bcc0
mov edi, eax
call fcn.1002bbe0
xor edx, edx
lea ecx, [esp + 0x20]
call fcn.10029440
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 5
call fcn.1002a990
lea esi, [esp + 0x14]
mov edi, eax
call fcn.1001b330
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
mov eax, ecx
push edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002c340
sub eax, esi
add eax, ecx
mov edx, 0x811c9dc5
cmp ecx, eax
je 0x1002c364
movsx esi, byte [ecx]
imul edx, edx, 0x1000193
inc ecx
xor edx, esi
cmp ecx, eax
jne 0x1002c354
mov eax, dword [ebx + 0x20]
mov esi, eax
and esi, edx
cmp dword [ebx + 0x24], esi
ja 0x1002c379
shr eax, 1
or ecx, 0xffffffff
sub ecx, eax
add esi, ecx
mov edx, dword [ebx + 0x10]
mov edi, dword [edx + esi*8]
mov dword [ebp - 4], edi
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 4]
cmp dword [ecx + esi*8], eax
lea ecx, [ecx + esi*8]
je 0x1002c395
mov edx, dword [ecx + 4]
mov eax, dword [edx]
cmp edi, eax
je 0x1002c415
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x1002c3b7
mov ecx, dword [edi + 8]
push eax
push ecx
call fcn.1011db46
add esp, 8
test eax, eax
je 0x1002c3c4
mov edi, dword [edi]
jmp 0x1002c382
push 0x80004005
mov dword [ebp - 4], edi
call fcn.10002670
mov eax, dword [edi + 8]
mov dword [ebp - 4], edi
test eax, eax
jne 0x1002c3d8
push 0x80004005
call fcn.10002670
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
push eax
push ecx
call fcn.1011db46
add esp, 8
test eax, eax
je 0x1002c403
mov edx, dword [ebx + 4]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], edx
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 4]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
pop edi
mov dword [eax], edx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1002c430
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
mov eax, ecx
push edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002c440
sub eax, esi
add eax, ecx
mov edx, 0x811c9dc5
cmp ecx, eax
je 0x1002c464
movsx esi, byte [ecx]
imul edx, edx, 0x1000193
inc ecx
xor edx, esi
cmp ecx, eax
jne 0x1002c454
mov eax, dword [ebx + 0x20]
mov edi, eax
and edi, edx
cmp dword [ebx + 0x24], edi
ja 0x1002c479
shr eax, 1
or ecx, 0xffffffff
sub ecx, eax
add edi, ecx
mov edx, dword [ebx + 0x10]
mov esi, dword [edx + edi*8]
nop
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 4]
cmp dword [ecx + edi*8], eax
lea ecx, [ecx + edi*8]
je 0x1002c493
mov edx, dword [ecx + 4]
mov eax, dword [edx]
cmp esi, eax
je 0x1002c50e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x1002c4b5
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.1011db46
add esp, 8
test eax, eax
je 0x1002c4bf
mov esi, dword [esi]
jmp 0x1002c480
push 0x80004005
call fcn.10002670
mov dword [ebp - 4], esi
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 4]
cmp dword [ecx + edi*8], eax
lea ecx, [ecx + edi*8]
je 0x1002c4d5
mov edx, dword [ecx + 4]
mov eax, dword [edx]
cmp esi, eax
je 0x1002c4f7
mov eax, dword [esi + 8]
test eax, eax
je 0x1002c4b5
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
push eax
push ecx
call fcn.1011db46
add esp, 8
test eax, eax
jne 0x1002c4f7
mov esi, dword [esi]
jmp 0x1002c4c2
mov ecx, dword [ebp - 4]
cmp ecx, esi
je 0x1002c50e
mov eax, dword [ebp + 8]
pop edi
mov dword [eax + 4], esi
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1002c620
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
mov eax, ecx
push edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002c630
sub eax, esi
add eax, ecx
mov edx, 0x811c9dc5
cmp ecx, eax
je 0x1002c654
movsx esi, byte [ecx]
imul edx, edx, 0x1000193
inc ecx
xor edx, esi
cmp ecx, eax
jne 0x1002c644
mov eax, dword [ebx + 0x20]
mov esi, eax
and esi, edx
cmp dword [ebx + 0x24], esi
ja 0x1002c669
shr eax, 1
or ecx, 0xffffffff
sub ecx, eax
add esi, ecx
mov edx, dword [ebx + 0x10]
mov edi, dword [edx + esi*8]
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 4]
cmp dword [eax + esi*8], ecx
lea eax, [eax + esi*8]
je 0x1002c685
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
cmp edi, ecx
je 0x1002c705
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
test eax, eax
je 0x1002c6a7
mov ecx, dword [edi + 8]
push eax
push ecx
call fcn.1011db46
add esp, 8
test eax, eax
je 0x1002c6b4
mov edi, dword [edi]
jmp 0x1002c672
push 0x80004005
mov dword [ebp - 4], edi
call fcn.10002670
mov eax, dword [edi + 8]
mov dword [ebp - 4], edi
test eax, eax
jne 0x1002c6c8
push 0x80004005
call fcn.10002670
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
push eax
push ecx
call fcn.1011db46
add esp, 8
test eax, eax
je 0x1002c6f3
mov edx, dword [ebx + 4]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], edx
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 4]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
pop edi
mov dword [eax], edx
pop esi
mov esp, ebp
pop ebp
ret 8