joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ab5f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0x18]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ecx], eax
test edi, edi
je 0x100ab740
push ebx
mov ebx, dword [ebp + 0x14]
lea edx, [eax + 0xd]
push esi
lea esi, [ebx - 1]
test esi, esi
js 0x100ab637
mov ebx, dword [ebp + 0x10]
nop
movsx ecx, byte [esi + ebx]
lea eax, [edx*8]
xor ecx, eax
xor edx, ecx
sub esi, 1
jns 0x100ab620
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
lea eax, [edx*8]
xor eax, edx
xor eax, ecx
and eax, 0x1ff
lea eax, [edi + eax*4]
mov edi, dword [eax]
mov dword [ebp - 8], eax
test edi, edi
je 0x100ab6bd
cmp dword [edi + 8], ecx
jne 0x100ab6b6
cmp dword [edi + 4], ebx
jne 0x100ab6b6
mov edx, dword [edi]
mov ecx, ebx
mov esi, dword [ebp + 0x10]
sub ecx, 4
jb 0x100ab681
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x100ab686
add edx, 4
add esi, 4
sub ecx, 4
jae 0x100ab670
cmp ecx, 0xfffffffc
je 0x100ab6cd
mov al, byte [edx]
cmp al, byte [esi]
jne 0x100ab6b3
cmp ecx, 0xfffffffd
je 0x100ab6cd
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x100ab6b3
cmp ecx, 0xfffffffe
je 0x100ab6cd
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x100ab6b3
cmp ecx, 0xffffffff
je 0x100ab6cd
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x100ab6cd
mov ecx, dword [ebp + 0xc]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x100ab656
lea edi, [ebx + 0x10]
xor esi, esi
call sym.e_sqlite3.dll_sqlite3_initialize
test eax, eax
je 0x100ab6df
jmp 0x100ab6ef
mov eax, dword [ebp + 0x18]
pop esi
pop ebx
pop edi
mov dword [eax], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.100b3720
mov esi, eax
add esp, 8
test esi, esi
jne 0x100ab70a
test edi, edi
je 0x100ab6fd
mov eax, 7
mov dword [ebp - 4], eax
jmp 0x100ab6ff
xor eax, eax
test esi, esi
jne 0x100ab716
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call fcn.100fc010
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x10]
push ebx
push dword [ebp + 0x10]
mov dword [esi], eax
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
call fcn.100fba90
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ecx], esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100abd20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0x80
jge 0x100abd41
lea eax, [ecx - 0x41]
cmp eax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
cmp ecx, 0x10000
jge 0x100abdee
push ebx
push edi
xor eax, eax
mov edi, 0xa2
mov dword [ebp - 4], eax
or ebx, 0xffffffff
push esi
nop dword [eax]
add eax, edi
cdq
sub eax, edx
mov edx, ecx
mov esi, eax
sar esi, 1
movzx eax, word [esi*4 + 0x1010e050]
sub edx, eax
mov eax, esi
cmovs eax, ebx
test edx, edx
mov ebx, eax
lea eax, [esi + 1]
cmovs eax, dword [ebp - 4]
mov dword [ebp - 4], eax
lea eax, [esi - 1]
cmovs edi, eax
mov eax, dword [ebp - 4]
cmp edi, eax
jge 0x100abd60
movzx edx, word [ebx*4 + 0x1010e050]
movzx eax, byte [ebx*4 + 0x1010e053]
add eax, edx
pop esi
cmp ecx, eax
jge 0x100abdcf
movzx eax, byte [ebx*4 + 0x1010e052]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x100abdcf
shr eax, 1
movzx eax, word [eax*2 + 0x10112490]
add eax, ecx
movzx ecx, ax
mov edx, dword [ebp + 0xc]
pop edi
pop ebx
test edx, edx
je 0x100abdfc
xor eax, eax
cmp edx, 2
sete al
push eax
push ecx
call fcn.10067090
add esp, 8
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x100abdfe
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x100c8990
Capabilities:
Contain obfuscated stackstrings

Disassembly:
movsb byte es:[edi], byte [esi]
add byte [eax], al
add byte [eax - 0x78b5b], al
je 0x100c898a
invalid
inc dword [eax]
je 0x100c898a
invalid
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.100c6e16
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.100c6d77
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x100c8d7e
Function at 0x100e8ad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0
push 0x14
mov dword [ebx], 0
call fcn.100b3720
mov esi, eax
add esp, 8
test esi, esi
jne 0x100e8af7
lea eax, [esi + 7]
pop esi
pop ebx
pop ebp
ret
cmp byte [0x101250fc], 0
push edi
je 0x100e8b4d
mov edi, dword [0x101251f8]
test edi, edi
je 0x100e8b21
push 0xc8
mov ecx, edi
call dword [0x1010a1d8]
call edi
add esp, 4
test eax, eax
jne 0x100e8b4d
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x100c41c0
push 0
push 0
mov dword [esi + 8], edi
call fcn.100fe86c
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x100e8b5d
jmp 0x100e8b50
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x100e8b7f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp + 0x10]
mov ecx, edi
mov dword [esi + 4], eax
call dword [0x1010a1d8]
call edi
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x100ff6ce
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100ff70d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100ff70d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100ff70d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100ff70d
cmp dword [ecx + 0x74], 0xe
jbe 0x100ff70d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1010272e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011d004
push 0x1011cffc
push str.FlsAlloc
push 0x1f
call fcn.101025ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10102762
push dword [ebp + 8]
mov ecx, esi
call dword [0x1010a1d8]
call esi
jmp 0x10102768
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101027ac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011d014
push 0x1011d00c
push str.FlsGetValue
push 0x21
call fcn.101025ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101027e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x1010a1d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101027eb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011d01c
push 0x1011d014
push str.FlsSetValue
push 0x22
call fcn.101025ad
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10102825
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1010a1d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10104552
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x101045ef
push ebx
push esi
call fcn.1010451b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101044af
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1010459c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101045ee
push edi
push eax
call fcn.10100c13
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101045bc
call fcn.10100bd9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101045ed
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101044af
add esp, 0x20
test eax, eax
jne 0x101045db
push edi
call fcn.10100bd9
jmp 0x101045e3
push ebx
call fcn.10100bd9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x101045f2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10104603
pop esi
ret
push ebx
push edi
push esi
call fcn.1010451b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10100c13
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1010462b
push ebx
push esi
push edi
call fcn.100fba90
add esp, 0xc
push 0
call fcn.10100bd9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101049fb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10104640
Function at 0x129a2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push ebx
mov ebx, 0xa
pop ebx
call fcn.00012a5a
jmp 0x129c1
push edi
push esi
push ecx
push edx
push eax
push ebx
mov eax, 4
mov ebx, 6
mov ecx, 8
dec eax
inc ebx
dec ecx
pop ebx
pop eax
pop edx
pop ecx
pop esi
pop edi
mov edx, dword [ebp + 8]
cmp word [edx], 0x5a4d
jne 0x12a51
mov eax, dword [edx + 0x3c]
mov esi, 0x4550
cmp dword [eax + edx], esi
jne 0x12a51
push eax
push ebx
push ecx
mov eax, 1
mov ebx, 2
inc eax
dec eax
inc ebx
dec ebx
pop ecx
pop ebx
pop eax
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp + 0xc]
add eax, edx
mov dword [ecx], eax
cmp dword [eax], esi
jne 0x12a51
add eax, 4
mov dword [ecx], eax
push eax
push ebx
push edx
mov edx, 4
inc edx
dec edx
pop edx
pop ebx
pop eax
mov ecx, dword [ecx]
mov esi, dword [ebp + 0x10]
lea eax, [ecx + 0x14]
mov dword [esi], eax
cmp word [eax], 0x10b
jne 0x12a51
call fcn.00012a6f
mov eax, dword [esi]
mov ecx, dword [ebp + 0x14]
add eax, 0xe0
push 1
mov dword [ecx], eax
pop eax
jmp 0x12a53
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x136bc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push esi
push edi
lea eax, [ebp - 4]
push 0x40
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push 4
push eax
push 0xb
call esi
cmp eax, 0xc0000004
jne 0x1372f
push 0x206b6444
push dword [ebp - 8]
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push 0
mov dword [ebp - 4], eax
push dword [ebp - 8]
push eax
push 0xb
call esi
test eax, eax
jge 0x13737
cmp dword [ebp - 4], 0
je 0x1372f
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
xor eax, eax
pop edi
pop esi
leave
ret 8
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x1e]
mov esi, dword [eax + 0xc]
lea eax, [ecx + eax + 0x20]
push eax
push 0x14c1c
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.ntoskrnl.exe__snprintf]
add esp, 0x10
lea eax, [ebp - 0x10c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.00013230
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, esi
jmp 0x13731
Function at 0x1377f
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, 0x1500c
push 0x208
push edi
call fcn.000136bc
xor esi, esi
mov dword [0x15008], eax
cmp eax, esi
je 0x13872
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x18
lea eax, [ebp - 0xc]
pop ebx
mov dword [ebp - 0x24], eax
push 0x40
lea eax, [ebp - 0x14]
pop edi
mov dword [ebp - 0x2c], ebx
push esi
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x21
push 0x15214
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jl 0x13872
push dword [0x15214]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
push 0x1000000
push 0x10
push esi
push eax
push 0xf001f
push 0x15218
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
test eax, eax
jl 0x1386a
push 4
push 0x100000
lea eax, [ebp - 4]
push 1
push eax
push esi
push 0x1000
push esi
push 0x15004
push 0xffffffffffffffff
push dword [0x15218]
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x1385c
mov al, 1
jmp 0x13874
push dword [0x15218]
mov dword [0x15004], esi
call edi
push dword [0x15214]
call edi
xor al, al
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x13931
cmp dword [ebp + 0xc], 0
je 0x13931
mov eax, dword [esi + 0x3c]
and dword [ebp + 8], 0
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov ecx, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
add ecx, esi
add edi, esi
add ebx, esi
mov dword [ebp - 8], edx
test edx, edx
jbe 0x13931
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, esi
push eax
call fcn.0001388c
cmp eax, 1
je 0x1393a
inc dword [ebp + 8]
add dword [ebp - 4], 4
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jb 0x1390d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
movzx eax, word [edi + eax*2]
mov eax, dword [ebx + eax*4]
jmp 0x13933
Function at 0x13f99
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x15230
call dword [sym.imp.ntoskrnl.exe_KeInitializeTimer]
push 0x206b6444
xor ebx, ebx
push 0x20
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edx, eax
cmp edx, ebx
jne 0x13fc3
xor al, al
jmp 0x14004
push esi
push edi
push 8
xor eax, eax
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
push 8
mov esi, 0x13f89
pop ecx
mov edi, edx
push 0x13ade
push edx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14000
pop edi
mov al, 1
pop esi
pop ebx
leave
ret
Function at 0x41d560
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x408
mov eax, dword [0x422004]
xor eax, esp
mov dword [esp + 0x404], eax
cmp dword [0x22c7fb4], 0xfc7
jne 0x41d58f
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4253cc]
imul eax, eax, 0x343fd
cmp dword [0x22c7fb4], 0x139e
mov dword [0x4253cc], eax
jne 0x41d5be
mov ecx, dword [esp]
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [0x4253cc]
add eax, 0x269ec3
push esi
mov dword [0x4253cc], eax
movzx esi, word [0x4253ce]
and esi, 0x7fff
cmp dword [0x22c7fb4], 0x8e7
jne 0x41d5f3
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x408
ret

Function at 0x41d6c0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x422004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x423300]
push ebx
mov ebx, dword [0x22c7958]
push edi
mov edi, dword [0x22c7fb4]
call fcn.0041d610
cmp dword [0x22c7fb4], 0x2f
jne 0x41d725
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.0041d640
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.00401000
add esp, 0x24
ret
Function at 0x41d9f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.0040ba10
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x41da19
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe2aa2
jge 0x41dabf
cmp dword [0x22c7fb4], 0xa5f
jne 0x41da63
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x1018]
push edx
push 0x420c34
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [ebp - 4], 0x84526b
jne 0x41da88
mov eax, dword [0x424120]
mov dword [0x22c7fb4], eax
mov ecx, dword [0x22c7fb4]
add ecx, 0xa231
mov dword [0x22c7fb4], ecx
cmp dword [0x22c7fb4], 0x141
jne 0x41daba
push str.jisaxivemuvanacucoxoxobo_necogoduhutevepipojomaji_kadesezimini_joretevigusopibiyigibiga_wemakihumovuyo
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x4253d0], 0xec58acac
mov dword [0x4253d4], 0xffffffff
jmp 0x41da10
call fcn.0041d740
jmp dword [0x22c7958]
Function at 0x10004130
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, eax
test esi, esi
je 0x1000414d
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll__stat]
add esp, 8
test eax, eax
jge 0x10004154
xor eax, eax
pop esi
add esp, 0x24
ret
push ebx
push 0
push esi
call dword [sym.imp.msvcrt.dll__open]
mov ebx, eax
add esp, 8
test ebx, ebx
jge 0x1000416f
pop ebx
xor eax, eax
pop esi
add esp, 0x24
ret
push edi
mov edi, dword [esp + 0x20]
lea ecx, [edi + 0xa]
push ecx
call dword [sym.libxml2.dll_xmlMallocAtomic]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000419a
mov eax, str.allocating_catalog_data
call fcn.100035b0
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x24
ret
push edi
push esi
push ebx
call dword [sym.imp.msvcrt.dll__read]
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x100041bf
push esi
call dword [sym.libxml2.dll_xmlFree]
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x24
ret
push ebx
call dword [sym.imp.msvcrt.dll__close]
add esp, 4
mov byte [edi + esi], 0
pop edi
pop ebx
mov eax, esi
pop esi
add esp, 0x24
ret
Function at 0x10006e50
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x100ea808]
test eax, eax
push ebx
push esi
mov ebx, 1
jne 0x10006e88
push str.XML_DEBUG_CATALOG
call dword [sym.imp.msvcrt.dll_getenv]
add esp, 4
test eax, eax
je 0x10006e78
mov dword [0x100ea7f8], ebx
call sym.libxml2.dll_xmlNewRMutex
mov dword [0x100ea804], eax
mov dword [0x100ea808], ebx
mov eax, dword [0x100ea804]
push eax
call sym.libxml2.dll_xmlRMutexLock
mov eax, dword [0x100ea800]
mov esi, dword [esp + 0x10]
add esp, 4
test eax, eax
jne 0x10006efb
push str.catalog
push esi
call sym.libxml2.dll_xmlStrEqual
add esp, 8
test eax, eax
je 0x10006efb
mov ecx, dword [0x100e9104]
push ecx
call fcn.10003730
mov edx, dword [0x100e9104]
push 0
push edx
mov dword [0x100ea800], eax
mov eax, dword [esp + 0x1c]
push 0
push eax
push ebx
xor eax, eax
call fcn.10004c10
mov edx, dword [0x100ea804]
mov ecx, dword [0x100ea800]
push edx
mov dword [ecx + 0x3c], eax
call sym.libxml2.dll_xmlRMutexUnlock
add esp, 0x1c
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x100ea800]
push eax
push ecx
push esi
push edx
call sym.libxml2.dll_xmlACatalogAdd
mov esi, eax
mov eax, dword [0x100ea804]
push eax
call sym.libxml2.dll_xmlRMutexUnlock
add esp, 0x14
mov eax, esi
pop esi
pop ebx
ret

Function at 0x10007b60
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x100ea808]
test eax, eax
push esi
jne 0x10007b97
push str.XML_DEBUG_CATALOG
call dword [sym.imp.msvcrt.dll_getenv]
add esp, 4
test eax, eax
mov esi, 1
je 0x10007b87
mov dword [0x100ea7f8], esi
call sym.libxml2.dll_xmlNewRMutex
mov dword [0x100ea804], eax
mov dword [0x100ea808], esi
mov eax, dword [0x100ea804]
push eax
call sym.libxml2.dll_xmlRMutexLock
mov eax, dword [0x100ea800]
add esp, 4
test eax, eax
jne 0x10007bea
mov ecx, dword [esp + 8]
push ecx
call sym.libxml2.dll_xmlLoadACatalog
add esp, 4
test eax, eax
jne 0x10007bd3
mov edx, dword [0x100ea804]
push edx
call sym.libxml2.dll_xmlRMutexUnlock
add esp, 4
or eax, 0xffffffff
pop esi
ret
mov dword [0x100ea800], eax
mov eax, dword [0x100ea804]
push eax
call sym.libxml2.dll_xmlRMutexUnlock
add esp, 4
xor eax, eax
pop esi
ret
push ebx
mov ebx, dword [esp + 0xc]
push eax
call fcn.10006520
mov ecx, dword [0x100ea804]
push ecx
mov esi, eax
call sym.libxml2.dll_xmlRMutexUnlock
add esp, 8
pop ebx
mov eax, esi
pop esi
ret

Function at 0x1000c170
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x1000c1ab
test esi, esi
je 0x1000c1ab
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x1000c19a
push edi
movzx edi, byte [ecx + esi]
add edi, eax
imul edi, edi, 0x401
mov eax, edi
shr edi, 6
xor eax, edi
inc ecx
cmp ecx, edx
jl 0x1000c181
pop edi
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
xor eax, eax
ret
Function at 0x1000c1b0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x1000c1d9
push ebp
lea esp, [esp]
movzx ebp, byte [ecx + edi]
add ebp, eax
imul ebp, ebp, 0x401
mov eax, ebp
shr ebp, 6
xor eax, ebp
inc ecx
cmp ecx, edx
jl 0x1000c1c0
pop ebp
add eax, 0x3a
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
xor ecx, ecx
test esi, esi
jle 0x1000c208
nop
movzx edx, byte [ecx + ebx]
add edx, eax
imul edx, edx, 0x401
mov eax, edx
shr edx, 6
xor eax, edx
inc ecx
cmp ecx, esi
jl 0x1000c1f0
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
Function at 0x10012360
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
call sym.libxml2.dll_xmlIsMainThread
test eax, eax
je 0x1001236f
mov eax, 0x100e92b4
ret
jmp sym.libxml2.dll_xmlGetGlobalState

Function at 0x100124f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
test edx, edx
mov esi, ecx
je 0x1001252b
mov cl, byte [edx]
movzx eax, cl
imul eax, eax, 0x1e
test cl, cl
je 0x1001252b
push ebp
lea ebx, [ebx]
mov ebx, eax
mov ebp, eax
shl ebx, 5
shr ebp, 3
movsx ecx, cl
add ebx, ebp
inc edx
add ebx, ecx
mov cl, byte [edx]
xor eax, ebx
test cl, cl
jne 0x10012510
pop ebp
test esi, esi
je 0x1001254f
mov cl, byte [esi]
test cl, cl
je 0x1001254f
mov edx, eax
mov ebx, eax
shl edx, 5
shr ebx, 3
movsx ecx, cl
add edx, ebx
inc esi
add edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x10012535
test edi, edi
je 0x1001257a
mov cl, byte [edi]
test cl, cl
je 0x1001257a
lea esp, [esp]
mov edx, eax
mov esi, eax
shl edx, 5
shr esi, 3
movsx ecx, cl
add edx, esi
inc edi
add edx, ecx
mov cl, byte [edi]
xor eax, edx
test cl, cl
jne 0x10012560
mov ecx, dword [esp + 0x10]
xor edx, edx
div dword [ecx + 4]
pop edi
pop esi
pop ebx
mov eax, edx
ret