joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4178e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push eax
push ecx
push ebp
call fcn.004173c0
lea esi, [eax*4]
add esp, 0xc
xor edi, edi
mov dword [esp + 0x10], eax
test esi, esi
jle 0x417954
lea edx, [ebp + esi*4 + 8]
lea ecx, [ebp + 8]
mov eax, dword [edx - 8]
mov ebx, dword [ecx - 8]
mov dword [ecx - 8], eax
mov eax, dword [edx - 4]
mov dword [edx - 8], ebx
mov ebx, dword [ecx - 4]
mov dword [ecx - 4], eax
mov eax, dword [edx]
mov dword [edx - 4], ebx
mov ebx, dword [ecx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [ecx + 4], eax
mov dword [edx + 4], ebx
add edi, 4
sub esi, 4
add ecx, 0x10
sub edx, 0x10
cmp edi, esi
jl 0x417914
mov eax, dword [esp + 0x10]
cmp eax, 1
jle 0x417b1d
lea ecx, [ebp + 2]
lea esi, [eax - 1]
jmp 0x417970
mov edx, dword [ecx + 0xe]
movzx ebx, byte [ecx + 0xf]
mov ebx, dword [ebx*4 + str.ccccwwww]
add ecx, 0x10
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x41e950]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41f150]
movzx ebx, byte [ecx]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41ed50]
movzx ebx, byte [ecx + 3]
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
and edx, 0xff
xor edi, dword [edx*4 + 0x41f550]
mov edx, dword [ecx + 2]
mov dword [ecx - 2], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x41e950]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41f150]
movzx ebx, byte [ecx + 4]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41ed50]
movzx ebx, byte [ecx + 7]
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
and edx, 0xff
xor edi, dword [edx*4 + 0x41f550]
mov edx, dword [ecx + 6]
mov dword [ecx + 2], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x41e950]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41f150]
movzx ebx, byte [ecx + 8]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41ed50]
movzx ebx, byte [ecx + 0xb]
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
and edx, 0xff
xor edi, dword [edx*4 + 0x41f550]
mov edx, dword [ecx + 0xa]
mov dword [ecx + 6], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x41e950]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41f150]
movzx ebx, byte [ecx + 0xc]
mov ebx, dword [ebx*4 + str.ccccwwww]
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x41ed50]
and edx, 0xff
xor edi, dword [edx*4 + 0x41f550]
dec esi
mov dword [ecx + 0xa], edi
jne 0x417970
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x418a20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x34]
mov eax, ebp
cdq
and edx, 0xf
add eax, edx
push esi
mov esi, dword [esp + 0x30]
sar eax, 4
and ebp, 0x8000000f
push edi
mov edi, dword [esp + 0x38]
jns 0x418a4a
dec ebp
or ebp, 0xfffffff0
inc ebp
mov dword [esp + 0x34], ebp
je 0x418a5c
test eax, eax
jne 0x418a5b
pop edi
pop esi
pop ebp
add esp, 0x20
ret
dec eax
mov edx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x34]
mov ecx, edx
test eax, eax
je 0x418abf
mov ebp, eax
lea ecx, [ecx]
mov eax, dword [esi]
xor eax, dword [ecx]
mov edx, dword [ecx + 4]
xor edx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 8]
xor eax, dword [esi + 8]
mov ecx, dword [ecx + 0xc]
xor ecx, dword [esi + 0xc]
mov dword [esp + 0x14], edx
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [ebx + 8]
push eax
mov dword [esp + 0x2c], ecx
call fcn.00417b30
mov ecx, edi
add esp, 0x10
add esi, 0x10
add edi, 0x10
dec ebp
jne 0x418a70
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
test ebp, ebp
je 0x418b74
mov eax, dword [esi]
xor eax, dword [ecx]
mov edx, dword [esi + 4]
xor edx, dword [ecx + 4]
mov ebp, dword [esi + 8]
mov dword [esp + 0x18], ebp
mov ebp, dword [esi + 0xc]
xor ebp, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 8]
xor dword [esp + 0x18], edx
mov edx, dword [ebx + 4]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x24], ebp
lea ebp, [ebx + 8]
push edx
push ebp
mov dword [esp + 0x4c], ebp
call fcn.00417b30
xor eax, eax
add esp, 0x10
cmp dword [esp + 0x38], eax
jbe 0x418b3c
lea ebp, [edi + 0x10]
sub esi, edi
lea esp, [esp]
mov cl, byte [esp + eax + 0x20]
mov dl, byte [esi + ebp]
xor dl, cl
mov byte [esp + eax + 0x20], dl
mov byte [ebp], cl
inc eax
inc ebp
cmp eax, dword [esp + 0x38]
jb 0x418b20
mov ebp, dword [esp + 0x3c]
mov edx, dword [ebx + 4]
lea eax, [esp + 0x20]
push eax
mov ecx, eax
push ecx
push edx
push ebp
call fcn.00417b30
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [edi], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov edx, dword [esp + 0x54]
add esp, 0x10
mov dword [edi + 0xc], eax
lea ecx, [esp + 0x20]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
pop ebx
pop edi
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov eax, dword [esp + 0x38]
pop esi
mov dword [edx + 0xc], ecx
pop ebp
add esp, 0x20
ret
Function at 0x418ba0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, ecx
cdq
sub esp, 0x34
and edx, 0xf
add eax, edx
push esi
mov esi, dword [esp + 0x44]
sar eax, 4
and ecx, 0x8000000f
push edi
mov edi, dword [esp + 0x44]
jns 0x418bc9
dec ecx
or ecx, 0xfffffff0
inc ecx
mov dword [esp + 0x44], ecx
je 0x418bda
test eax, eax
jne 0x418bd9
pop edi
pop esi
add esp, 0x34
ret
dec eax
push ebx
mov ebx, dword [esp + 0x54]
mov edx, dword [ebx]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0xc]
push ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x20], edx
test eax, eax
je 0x418c70
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x50], eax
nop
mov eax, dword [ebp + 4]
push esi
push eax
mov ecx, edi
lea eax, [ebp + 0xf8]
call fcn.00418130
mov ecx, dword [esp + 0x1c]
xor dword [esi], ecx
mov edx, dword [esp + 0x20]
xor dword [esi + 4], edx
mov eax, dword [esp + 0x24]
xor dword [esi + 8], eax
mov ecx, dword [esp + 0x28]
xor dword [esi + 0xc], ecx
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + esi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
add esp, 8
add edi, 0x10
add esi, 0x10
dec dword [esp + 0x50]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jne 0x418c10
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x418d34
mov edx, dword [edi + 8]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 4]
push ecx
lea ebx, [ebp + 0xf8]
push edx
lea ecx, [esp + 0x2c]
mov eax, ebx
mov dword [esp + 0x58], ebx
call fcn.00418130
add esp, 8
cmp dword [esp + 0x4c], 0
jbe 0x418cfa
mov ebx, esi
lea ecx, [edi + 0x10]
sub ebx, edi
mov edi, dword [esp + 0x4c]
lea ebp, [esp + 0x34]
lea esp, [esp]
mov dl, byte [ecx]
mov al, byte [ebp]
xor al, dl
mov byte [ebp], dl
mov byte [ebx + ecx], al
inc ecx
inc ebp
dec edi
jne 0x418ce0
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
mov eax, dword [ebp + 4]
push esi
push eax
lea ecx, [esp + 0x3c]
mov eax, ebx
call fcn.00418130
mov ecx, dword [esp + 0x1c]
xor dword [esi], ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
xor dword [esi + 8], eax
xor dword [esi + 4], edx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
add esp, 8
xor dword [esi + 0xc], ecx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x34
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ebx], edx
mov edx, dword [esp + 0x20]
pop ebp
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x50]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
pop ebx
pop edi
pop esi
add esp, 0x34
ret
Function at 0x418f29
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
mov dword [0x11df724], eax
cmp eax, edi
je 0x418f5a
push 0x41fd78
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x11df728], eax
lea eax, [ebp - 0x114]
push eax
mov dword [0x11df720], 1
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x418faa
cmp dword [ebp - 0x104], 1
je 0x418fbb
cmp dword [ebp - 0x104], 2
jne 0x418faa
cmp dword [ebp - 0x110], 5
jb 0x418fbb
jne 0x418faa
cmp dword [ebp - 0x10c], edi
jne 0x418faa
mov dword [0x11df720], edi
cmp dword [0x11df720], edi
je 0x418fc1
call fcn.00418e70
test eax, eax
jne 0x418fc1
mov dword [0x11df720], edi
pop edi
leave
ret

Function at 0x41a288
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x11df74c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x41a2e9
push esi
push dword [0x11df754]
push 8
push dword [0x11de664]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x11df74c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x11df750]
jmp 0x41a2d9
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41a2d7
mov ecx, dword [esi + 8]
add ecx, edi
push ecx
call eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x41a2c7
push edi
push 0x41a24d
call fcn.0041b846
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x41a2f3
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
and eax, 3
push esi
push edi
je 0x41a308
push 4
pop ecx
sub ecx, eax
add ebx, ecx
cmp dword [0x11df754], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
jne 0x41a33a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push ebx
push 8
push dword [0x11de664]
mov dword [0x11df74c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x11df74c]
call esi
mov edi, dword [0x11df754]
add dword [0x11df754], ebx
push dword [0x11df754]
push dword [0x11df74c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x11de664]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
push ebx
push dword [0x11df74c]
call esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x41a380
cmp dword [esp + 0x18], esi
je 0x41a3a4
push 0x14
push 0x11df750
call fcn.0041a6e8
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
test esi, esi
je 0x41a3a4
add ebx, edi
push ebx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x41a7b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x11dc458]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x41a7f6
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x11df958]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x41a817
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x11df958]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0041adb0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x41a920
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x11dc458]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x41a9f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x11dc458]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x41aa50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edx
mov eax, dword [0x11dc458]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
mov dword [ebp - 4], ecx
pop edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x41ac60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x11dc458]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x41ac9e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x41ac9e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x41aca0
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41acb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x11dc458]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41acd4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x41ad22
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x11df958]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x41ad80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x11dc458]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x41ae30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x11dc458]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x41b846
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp dword [0x11df7b8], ebx
jne 0x41b87c
push 0x11df79c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x11df7b8], 1
push 0x11df79c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x11df7b4]
mov edi, eax
cmp eax, ebx
je 0x41b8e0
cmp dword [ebp - 4], ebx
jne 0x41ba20
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x41b8b3
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x41b8a4
jmp 0x41b8d1
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.0041b69b
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x41b892
cmp dword [ebp - 4], ebx
jne 0x41ba20
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41ba20
mov edi, dword [0x11df7b4]
jmp 0x41b920
cmp dword [edi + 0xc], 0x3f
jl 0x41b9ba
mov edi, dword [edi]
cmp edi, ebx
jne 0x41b914
push 0x310
push 8
push dword [0x11de664]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x41ba17
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
cmp eax, ebx
je 0x41ba09
push ebx
push ebx
push edi
push 0x41b6ec
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x41ba00
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b69b
mov eax, dword [0x11df7b4]
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
cmp eax, ebx
je 0x41b9b2
mov dword [eax + 4], edi
mov dword [0x11df7b4], edi
jmp 0x41ba20
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.0041b69b
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x41ba20
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x11de664]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x11df79c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x407420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407479
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407479
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40746a
cmp esi, edx
jae 0x407479
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x407458
cmp esi, edx
jae 0x407479
cmp word [esi], 0
je 0x407479
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x407c00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f5cb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4c312c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x5c]
mov dword [edi], 0xb18c5a78
mov dword [edi + 4], 0x34f1cc93
mov dword [edi + 8], 0x26a862d
mov dword [edi + 0xc], 0xb47b5e45
mov dword [edi + 0x10], 0x8a1fb40b
mov dword [edi + 0x14], 0x96d88b7f
mov dword [edi + 0x18], 0x4f9fa12d
mov dword [edi + 0x1c], 0x89f60427
mov dword [edi + 0x20], 0x88328cf0
mov dword [edi + 0x24], 0xc8445ffd
mov dword [edi + 0x28], 0x43e99d4c
mov dword [edi + 0x2c], 0x7777fbd8
mov dword [edi + 0x30], 0xace3eeae
mov dword [edi + 0x34], 0xfbb86346
mov dword [edi + 0x38], 0x2eecb99
mov dword [edi + 0x3c], 0x4632ce24
mov dword [edi + 0x40], 0xd675abc6
mov dword [edi + 0x44], 0x5993d793
mov dword [edi + 0x48], 0xefae7b7d
mov dword [edi + 0x4c], 0x53821f02
mov dword [edi + 0x50], 0x13d3578e
mov word [edi + 0x54], 0x5633
mov byte [edi + 0x56], 0x35
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [edi + 0x58], 0
mov ecx, esi
mov eax, dword [esi]
push esi
push 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x736d6864
mov dword [ebp - 0x18], 0xc
mov dword [esi + 4], eax
call fcn.004079f0
mov eax, dword [esi]
movq xmm0, qword [ebp - 0x1c]
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f7b6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4c312c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x409e1c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x409e1c
call fcn.00408740
mov edi, eax
jmp 0x409f3b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x409e3f
call fcn.00408740
jmp 0x409f2e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x409e5d
call fcn.00408740
jmp 0x409f2e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x409e7e
mov edi, 0x8007000e
jmp 0x409f30
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x409f74
jb 0x409e9c
cmp eax, 0xffffffff
ja 0x409f74
cmp eax, 0x400
jbe 0x409eb1
push eax
lea ecx, [ebp - 0x418]
call fcn.00408660
jmp 0x409ed7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x409ed7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x409eee
mov edi, 0x8007000e
jmp 0x409f30
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x409f0e
call fcn.00408740
jmp 0x409f2e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00409bd0
mov edi, eax
test esi, esi
je 0x409f3b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x409f54
lea ecx, [ebp - 0x418]
call fcn.00408a40
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 - 0x14]
xor ecx, ebp
call fcn.00446cf9
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00405d30
int3