joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e890
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eb86a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6780cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3034
call fcn.00459629
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x44e9ad
mov ecx, esi
call fcn.004501f0
push 0x44e280
push 0x44e1e0
push 0x3fd
push 0xc
lea eax, [esi + 0x38]
mov byte [ebp - 4], 1
push eax
mov dword [esi], vtable.devtech_private::FastArray.0
mov byte [esi + 8], 1
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.005a6286
mov dword [esi + 0x3014], 0
mov eax, esi
mov dword [esi + 0x3018], 0
mov dword [esi + 0x301c], 0
mov dword [esi + 0x3020], 0
mov dword [esi + 0x3024], 0
mov byte [esi + 0x3028], 1
mov dword [esi + 0x302c], 0
mov byte [esi + 0x3030], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44edd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push dword [ebp + 0x14]
mov esi, ecx
call fcn.004523c0
add esp, 4
test al, al
mov eax, dword [ebp + 0xc]
je 0x44ee48
test al, al
je 0x44ee48
push edi
lea ecx, [esi + 0x14]
call fcn.0044fa60
lea ecx, [esi + 0x14]
mov edi, eax
call fcn.0044fa50
xor esi, esi
mov dword [ebp - 8], eax
test edi, edi
jle 0x44ee3d
push ebx
mov ebx, dword [ebp + 8]
nop
movzx ecx, word [eax + esi*2]
mov ax, cx
shl ecx, 8
shr ax, 8
xor ax, cx
mov ecx, ebx
push 0
mov word [ebp - 4], ax
lea eax, [ebp - 4]
push 2
push eax
call fcn.004459c0
mov eax, dword [ebp - 8]
inc esi
cmp esi, edi
jl 0x44ee10
pop ebx
lea eax, [edi + edi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x10]
lea ecx, [esi + 0x14]
push eax
push dword [ebp + 8]
call fcn.0044fa80
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x454d20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov eax, dword [edx]
mov dword [ebp - 0x14], ecx
cmp eax, dword [ebp + 0x10]
je 0x454eb5
mov dword [ebp - 0x10], 1
mov ecx, dword [esi]
mov edi, 0x3ff
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp + 0x1c]
je 0x454eb2
mov edx, dword [ebp + 8]
xor bl, bl
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], bl
movzx edx, word [edx]
cmp word [ebp - 0x10], dx
jae 0x454d95
lea eax, [ecx + 0x2400]
cmp ax, di
ja 0x454ec8
lea eax, [ecx - 0xdc00]
mov ecx, edx
shl ecx, 0xa
or eax, ecx
jmp 0x454dad
add ecx, 0x2800
cmp cx, di
ja 0x454dad
add eax, 0xffff2840
mov bl, 1
shl eax, 0xa
mov byte [ebp - 1], bl
cmp eax, 0x80
jae 0x454dbf
xor edi, edi
mov dl, al
mov ecx, edi
mov dword [ebp - 0xc], edi
jmp 0x454e09
mov edx, eax
cmp eax, 0x800
jae 0x454dda
mov edi, 1
shr edx, 6
or dl, 0xc0
mov dword [ebp - 0xc], edi
mov ecx, edi
jmp 0x454e09
cmp eax, 0x10000
jae 0x454df3
mov edi, 2
shr edx, 0xc
or dl, 0xe0
mov dword [ebp - 0xc], edi
mov ecx, edi
jmp 0x454e09
shr edx, 0x12
mov edi, 3
movzx ecx, bl
or dl, 0xf0
xor ecx, 1
add ecx, ecx
mov dword [ebp - 0xc], ecx
lea ebx, [ecx + 1]
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
cmp ecx, ebx
jl 0x454eb2
mov esi, dword [ebp + 8]
movzx ecx, word [esi]
mov esi, dword [ebp + 0x20]
test cx, cx
jne 0x454e52
mov ecx, dword [ebp - 0x14]
test byte [ecx + 0xc], 2
je 0x454e52
lea ecx, [ebx + 3]
cmp dword [ebp - 0x18], ecx
jl 0x454eb2
mov ecx, dword [ebp - 8]
mov byte [ecx], 0xef
inc dword [esi]
mov ecx, dword [esi]
mov byte [ecx], 0xbb
inc dword [esi]
mov ecx, dword [esi]
mov byte [ecx], 0xbf
inc dword [esi]
mov ecx, dword [ebp + 0x14]
add dword [ecx], 2
cmp byte [ebp - 1], 0
jne 0x454e63
cmp edi, 3
jae 0x454e6c
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov byte [ecx], dl
inc dword [esi]
test ebx, ebx
je 0x454e8f
lea edi, [edi + edi*2]
add edi, edi
sub edi, 6
mov edx, eax
mov ecx, edi
dec ebx
shr edx, cl
mov ecx, dword [esi]
and dl, 0x3f
or dl, 0x80
mov byte [ecx], dl
inc dword [esi]
test ebx, ebx
jg 0x454e75
shr eax, 0xa
mov ecx, 1
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x10]
jne 0x454d4e
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [edx]
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4584a0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4584f3
push esi
push dword [ebp + 8]
call fcn.0045868e
mov edi, eax
test edi, edi
je 0x4584ee
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4584ee
mov eax, dword [ebp - 8]
jmp 0x458505
mov eax, dword [ebp + 0x10]
jmp 0x458505
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x458510
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec210
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.005a6630
mov eax, dword [0x6780cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x458641
push ebx
push edx
call fcn.0045868e
mov ebx, eax
test ebx, ebx
jne 0x458578
push esi
jmp 0x458669
lea ecx, [ebp - 0x2014]
call fcn.00404600
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x458600
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.00404840
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.004587d8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x45862e
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.00455f55
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00403850
jmp 0x458670
push esi
mov ecx, edi
call fcn.004555f0
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x458627
test esi, esi
jne 0x45864a
mov esi, 0x6424a4
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.004555f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a5aba
leave
ret 0x10
Function at 0x45b88f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x45b8ce
call fcn.004683c3
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45b8ce
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45b8d6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0046fa23
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x45c3bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x45c44b
cmp dword [esi + 0x20], 0
je 0x45c44b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45c44b
cmp dword [ebp + 8], 0
je 0x45c44b
xor edi, edi
mov ebx, edi
call fcn.004683c3
push 0x609ac8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x45c42f
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45c44b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0047056d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45c447
mov ecx, esi
call fcn.0045c141
mov eax, edi
jmp 0x45c44d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x461460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x4614a5
call fcn.004683c3
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4614a2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4614ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x4614c8
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5feab8]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x4614e9
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x5feab8]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x463c94
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5ec07d
call fcn.005a64b3
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x463cba
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x463d14
lea ecx, [ebp - 0x10]
call fcn.00404600
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5feab8]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005cec7e
push eax
call fcn.00403730
add esp, 0x14
test esi, esi
je 0x463d07
push esi
call fcn.005cffdd
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00403850
mov eax, ebx
call fcn.005a6481
ret 8

Function at 0x4644f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x464538
call fcn.004683c3
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x464538
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x464545
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x464581
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x464564
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x46456d
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x46457f
test di, di
jne 0x46457f
test dx, dx
je 0x464581
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4645f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.004683c3
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x464634
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x464634
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00464640
jmp 0x464636
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x464950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x5ec902
call fcn.005a651c
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.004683c3
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x4649af
call fcn.004683c3
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4649c3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x4649bf
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x4649cb
or eax, 0xffffffff
jmp 0x464b1d
mov ecx, edi
call fcn.00464fc4
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0045a4b1
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x464a57
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x464a57
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x464a57
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.00455d04
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x464a54
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x5feab8]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x464a54
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00463dd4
test eax, eax
je 0x464a54
push 0
mov ecx, esi
call fcn.004636ee
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.0045a12a
push ebx
call fcn.0045b8fc
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.004648ed
test eax, eax
jne 0x464aa0
cmp dword [edi + 0x9c], eax
jne 0x464aa0
call fcn.004683c3
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.0045b8fc
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.004648ed
and dword [edi + 0x9c], 0
jmp 0x464acb
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x464adf
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.004636ee
test esi, esi
je 0x464aec
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x464b02
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x464b02
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x5feab8]
mov ecx, edi
call esi
mov ecx, edi
call fcn.00464f7b
mov eax, dword [edi + 0x68]
call fcn.005a6481
ret
Function at 0x467b71
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x467be8
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x467bae
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x467bae
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x467bdb
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x467bde
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x467bd4
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x5feab8]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x467b91
test eax, eax
je 0x467c2f
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.00467e65
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x5feab8]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x467ec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x5ecb32
call fcn.005a651c
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x467fb7
cmp edi, dword [ebx + 0xc]
jge 0x467fb7
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x467f17
cmp edi, dword [esi + 8]
jl 0x467fa5
cmp dword [ebp + 0xc], 0
je 0x467fa5
xor edi, edi
jmp 0x467f49
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.0046796a
mov esi, eax
test esi, esi
je 0x467f31
mov dword [esi], vtable.CThreadData.0
jmp 0x467f33
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.00465311
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x467f65
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x467f71
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x467fde
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.005b9e00
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x467fb7
cmp edi, dword [esi + 8]
jge 0x467fb7
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.005a6481
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0046257e
int3
Function at 0x46e1d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x46e1fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46e200
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00404640
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00498572
int3

Function at 0x46e510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x46e521
xor eax, eax
jmp 0x46e53d
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e542
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00404640
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00498572
int3

Function at 0x46e5f0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x5feab8]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x46e623
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00404640
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00498572
int3

Function at 0x46e700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x46e72b
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46e731
cmp dword [ebp - 4], esi
jne 0x46e748
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00404640
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00498572
lea ecx, [edi + 0xc]
call fcn.00404640
push eax
push 0xffffffffffffffff
push 0xd
call fcn.004981ad
int3
Function at 0x472130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x472186
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x47215f
call fcn.0046681a
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x472174
call fcn.0046681a
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x472186
call fcn.0046681a
call fcn.004683c3
cmp dword [eax + 0x3c], 0
je 0x47219b
push esi
mov ecx, ebx
call fcn.004717e1
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.00472392
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4721c4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4721d0
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8