joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a250
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0x2c]
sub esp, 0x10
mov edx, dword [eax]
mov eax, dword [0x8b065c]
push esi
push edi
mov edi, ecx
cmp eax, dword [edx + 4]
jle 0x41a29d
push 0x8b065c
call fcn.0055e7c3
add esp, 4
cmp dword [0x8b065c], 0xffffffff
jne 0x41a29d
mov eax, dword [edi + 0xc]
push 0x8b065c
mov dword [0x8b0660], eax
call fcn.0055e772
add esp, 4
mov eax, dword [0x8b0660]
push 0x8b0648
push 4
push dword [eax + 0x3c]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41a449
lea ecx, [esp + 8]
call fcn.004181f0
mov ecx, dword [eax]
push ecx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov esi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 2], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 8], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 6], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 0x16], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 0x12], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 0x14], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 0x18], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 0xc], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 0xa], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 0x24], cx
call esi
mov ecx, 0xffff
cdq
idiv ecx
movzx ecx, dx
mov eax, dword [0x8b0660]
mov word [eax + 0x26], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 0x1a], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 0x10], cx
call esi
cdq
mov ecx, 0xffff
idiv ecx
mov eax, dword [0x8b0660]
movzx ecx, dx
mov word [eax + 0xe], cx
mov eax, dword [0x8b0660]
mov eax, dword [eax + 0x3c]
sub eax, 0x40
push eax
mov eax, dword [edi + 0xc]
add eax, 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x8b0660]
add esp, 0x10
push 0x8b0648
push 2
push dword [eax + 0x3c]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a7d0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0x2c]
push esi
push edi
mov edi, ecx
mov esi, dword [eax]
mov eax, dword [0x8b0678]
cmp eax, dword [esi + 4]
jle 0x41a814
push 0x8b0678
call fcn.0055e7c3
add esp, 4
cmp dword [0x8b0678], 0xffffffff
jne 0x41a814
mov eax, dword [edi + 0xc]
push 0x8b0678
mov dword [0x8b06a0], eax
call fcn.0055e772
add esp, 4
mov eax, dword [0x8b069c]
cmp eax, dword [esi + 4]
jle 0x41a855
push 0x8b069c
call fcn.0055e7c3
add esp, 4
cmp dword [0x8b069c], 0xffffffff
jne 0x41a855
mov eax, dword [0x8b06a0]
mov ecx, dword [edi + 0xc]
push 0x8b069c
add ecx, dword [eax + 0x3c]
mov dword [0x8b0688], ecx
call fcn.0055e772
add esp, 4
mov eax, dword [0x8b0670]
cmp eax, dword [esi + 4]
jle 0x41a89d
push 0x8b0670
call fcn.0055e7c3
add esp, 4
cmp dword [0x8b0670], 0xffffffff
jne 0x41a89d
mov eax, dword [0x8b0688]
push 0x8b0670
movzx ecx, word [eax + 0x14]
mov eax, dword [0x8b0688]
add eax, 0x18
add eax, ecx
mov dword [0x8b0698], eax
call fcn.0055e772
add esp, 4
mov eax, dword [0x8b0688]
xor ecx, ecx
xor esi, esi
cmp cx, word [eax + 6]
jae 0x41a90f
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x8b0698]
push 0x8b0644
push 4
push 0x28
push eax
call edi
test eax, eax
je 0x41a93c
mov eax, dword [0x8b0698]
xorps xmm0, xmm0
push 0x8b0644
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
push dword [0x8b0644]
mov eax, dword [0x8b0698]
push 0x28
push eax
call edi
test eax, eax
je 0x41a93c
mov eax, dword [0x8b0698]
inc esi
add eax, 0x28
mov dword [0x8b0698], eax
mov eax, dword [0x8b0688]
movzx eax, word [eax + 6]
cmp esi, eax
jb 0x41a8b2
pop edi
mov dword [0x8b0644], 0
mov al, 1
mov dword [0x8b06a0], 0
mov dword [0x8b0688], 0
mov dword [0x8b0698], 0
pop esi
ret
pop edi
xor al, al
pop esi
ret
Function at 0x43d310
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x43d33c
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [0x8b0624]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x8b062c
lea eax, [edi + edi]
push eax
call fcn.004386b0
mov eax, dword [0x8b0624]
lea ebx, [edi - 1]
mov dword [0x8b0638], ebx
mov dword [0x8b063c], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x43d476
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x8b062c]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x43d3d4
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x43d441
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x43d40e
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x43d406
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x43d441
cmp ebx, edx
je 0x43d41e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x43d452
cmp ebx, edx
jne 0x43d412
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x43d476
mov ebx, dword [0x8b0638]
jmp 0x43d382
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x43d441
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43d4f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x43d54d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x43d510
mov eax, dword [esi]
jmp 0x43d62b
cmp eax, 0x4e0
jb 0x43d62b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x43d566
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x43d5b1
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x482480
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movsx eax, byte [ebp + 0xc]
and eax, 1
mov dword [ebp - 0x18], eax
movsx ecx, byte [ebp + 0x10]
push ecx
call fcn.00482060
add esp, 4
mov dword [ebp - 0x14], eax
movzx edx, byte [ebp + 0xc]
and edx, 0xf
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4824be
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 3
ja 0x482532
movsx edx, byte [ebp + 0x10]
mov ecx, dword [ebp - 8]
sar edx, cl
and edx, 1
cmp edx, dword [ebp - 0x18]
jne 0x4824de
mov dword [ebp - 0xc], 1
jmp 0x4824e5
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x4824f4
mov dword [ebp - 0x10], 0
jmp 0x4824fb
mov dword [ebp - 0x10], 1
mov al, byte [ebp - 0x10]
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
test ecx, ecx
je 0x48251c
movzx edx, byte [ebp - 1]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00482360
add esp, 8
jmp 0x482530
movzx ecx, byte [ebp - 1]
xor ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00482360
add esp, 8
jmp 0x4824b5
movzx eax, byte [ebp - 1]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00482360
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x55f547
Capabilities:
Parse pe header

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

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x620804b3
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x43e61dd9
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6a
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6a195c29
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3d09155d
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40eba6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4155c0
call fcn.00403cdc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00414224
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40ebe5
call fcn.00414224
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40ebf3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40ec01
or eax, 0xffffffff
jmp 0x40ece9
mov ecx, esi
call fcn.0040eb1c
mov dword [ebp - 0x14], eax
call fcn.0040f955
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x40ec38
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40ec38
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0040f909
push dword [ebp - 0x14]
call fcn.0040f43b
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0040e8b4
cmp eax, edi
je 0x40ecab
test byte [esi + 0x24], 0x10
je 0x40ec79
push 4
mov ecx, esi
pop ebx
call fcn.00411ae6
test ah, 1
je 0x40ec71
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00411546
cmp dword [esi + 0x1c], edi
je 0x40ecab
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00411b41
jmp 0x40ecab
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x40ecbf
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40ecd8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40ecd8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0040eb56
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40fe05
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40fe3d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004120d1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004120a9
jmp 0x40fe49
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4113f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x411436
call fcn.00414224
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x411436
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41142d
xor eax, eax
jmp 0x41143e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00411444
pop edi
pop esi
pop ebx
ret 4

Function at 0x4149cb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4149f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414a17
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414931
jmp 0x414a17
mov eax, dword [esi + 0x14]
test eax, eax
je 0x414a17
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00414931
test edi, edi
mov eax, edi
jne 0x414a01
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10005780
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
xor ebp, ebp
push ebp
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x10005867
mov ebx, dword [esp + 0x2c]
lea edi, [ebx + 5]
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
call fcn.1004049b
add esp, 4
cmp ebx, ebp
mov esi, eax
jne 0x100057e2
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
xor eax, eax
mov dword [esi], eax
mov al, byte [esp + 0x20]
sub ecx, ebx
sub ecx, 5
mov byte [esi], al
mov dword [esi + 1], ecx
jmp 0x1000581d
push edi
push ebp
push esi
call fcn.1003f8e0
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dl, byte [esp + 0x2c]
sub eax, ebx
sub eax, 5
add esp, 0xc
cmp edi, 5
mov byte [esi], dl
mov dword [esi + 1], eax
jle 0x1000581d
lea ecx, [edi - 5]
push ecx
lea eax, [esi + 5]
push 0x90
push eax
call fcn.1003f8e0
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 0x10]
push edx
push 0x40
push edi
push ebx
call ebp
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push edi
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1000584c
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push edi
push ebx
call ebp
push esi
call fcn.10040496
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10005db0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 2
call esi
or eax, 2
push eax
call esi
push str.GlobalCacheD
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x1007fcd8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10005e01
push 0
push str.Interlude_Extension
push str.CacheD_is_already_running_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1007fcc0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 4
lea eax, [esp + 0xc]
push eax
push 0x513fb8
mov dword [esp + 0x14], 0x10005f70
call fcn.10005ab0
push 1
push 0x10006000
push 0x44121c
push 0xe8
call fcn.10005780
push 4
lea ecx, [esp + 0x28]
push ecx
mov esi, 0x13880
push 0x441229
mov dword [esp + 0x30], esi
call fcn.10005ab0
push 4
lea edx, [esp + 0x34]
push edx
push 0x43d780
mov dword [esp + 0x3c], esi
call fcn.10005ab0
push 4
lea eax, [esp + 0x40]
push eax
push 0x43d8b1
mov dword [esp + 0x48], esi
call fcn.10005ab0
add esp, 0x40
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x423171
mov dword [esp + 0x14], 0x100058c0
call fcn.10005ab0
push 1
lea edx, [esp + 0x14]
push edx
push 0x44fe60
mov byte [esp + 0x1c], 0xeb
call fcn.10005ab0
push 1
lea eax, [esp + 0x20]
push eax
push 0x44fefd
mov byte [esp + 0x28], 0xeb
call fcn.10005ab0
push 0
push 0x10005960
push 0x4416a1
push 0xe8
call fcn.10005780
push 0
push 0x10005960
push 0x441705
push 0xe8
call fcn.10005780
add esp, 0x44
push 0
push 0x100059f0
push 0x424e48
push 0xe8
call fcn.10005780
push str.LinErrBak
call fcn.1003e720
call fcn.1003bfb0
call fcn.10003fd0
call fcn.10006b90
call fcn.1000f600
call fcn.1003ba80
call fcn.1003d080
push 0xffffffffffffffe8
push 0
push 0x10005a80
push 0x4475f6
call fcn.1003e3d0
push 1
push 0x10005880
push 0x422c67
push 0xe8
call fcn.10005780
add esp, 0x34
pop esi
add esp, 8
ret

Function at 0x10006050
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1007e930]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.l2cache.ini
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 4]
push edx
push 0
push str.PrivateStoreInDB
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x20c]
mov dword [esi], eax
pop esi
xor ecx, esp
call fcn.1003f522
add esp, 0x20c
ret