joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5dd810
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x923760
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x923680]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x5dd88b
push 0x4c
push 1
call fcn.005efab5
mov esi, eax
add esp, 8
test esi, esi
jne 0x5dd853
push 0x923760
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x923680]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x914c04]
inc eax
lea edx, [esi + 0xc]
mov dword [0x914c04], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.005e1340
add esp, 8
mov byte [esi + 0x3c], 1
push 0x923760
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x5ddd10
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.005ef68d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.005f2afc
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x5dde0a
call fcn.005ef68d
cmp dword [eax], 0
je 0x5ddd57
call fcn.005ef68d
mov ebp, dword [eax]
jmp 0x5ddd5a
or ebp, 0xffffffff
call fcn.005dd8a0
test esi, esi
mov dword [eax], ebp
jne 0x5ddd6f
call fcn.005ef68d
cmp dword [eax], 4
je 0x5dddbf
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x5ddda2
cmp esi, 0xffffffff
je 0x5ddde4
test al, 6
je 0x5ddda2
call fcn.005dd8a0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.005e1370
add esp, 4
push eax
push 0x24
push 9
call fcn.005de0f0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x5dde02
test al, 6
je 0x5dddb0
test ah, 2
je 0x5dde02
test esi, esi
jbe 0x5dde0e
test ah, 2
je 0x5dde0e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.005ef68d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.005f2afc
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x5dde0a
jmp 0x5ddd44
call fcn.005dd8a0
mov eax, dword [eax]
push eax
push ebx
call fcn.005e1370
add esp, 4
push eax
push 0x24
push 2
call fcn.005de0f0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x5dde1b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x5dde24
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x5f1084
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5f10a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005ef61a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5f10c7
test byte [esp + 8], 2
je 0x5f10c7
call fcn.005ef68d
mov dword [eax], 0xd
call fcn.005ef696
mov dword [eax], 5
jmp 0x5f10a0
xor eax, eax
ret
Function at 0x608670
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6086a8
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.006066eb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006066c3
jmp 0x6086b4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x609e6f
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 0x609eb1
call fcn.006100a5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x609eb1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x609ea8
xor eax, eax
jmp 0x609eb9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00609ebf
pop edi
pop esi
pop ebx
ret 4

Function at 0x6105d5
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 0x610603
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x610621
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0061053b
jmp 0x610621
mov eax, dword [esi + 0x14]
test eax, eax
je 0x610621
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0061053b
test edi, edi
mov eax, edi
jne 0x61060b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001a19
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
add edx, 0xffffc1e2
push ebp
push esi
push edi
mov edi, ebx
mov dword [esp + 0x18], edx
xor edi, 0x79f7
lea ecx, [ebx - 0x3b82]
mov ebp, ebx
mov dword [esp + 0x10], edi
xor ebx, 0x7a9
xor ebp, 0x79bf
lea eax, [edi - 0x594]
cmp ebx, eax
je 0x10001b21
mov esi, dword [esp + 0x30]
add edx, 0x45b9
mov eax, dword [esi + 0x70]
add eax, 0x570
mov dword [esi + 0x118], eax
mov ecx, dword [0x1017a534]
mov eax, dword [ecx + 0xbc]
cmp eax, dword [ecx + 0x4c]
jbe 0x10001a9d
mov eax, dword [esi + 0x108]
add eax, dword [esi + 0xa0]
or dword [ecx + 0xc8], eax
jmp 0x10001ab1
mov eax, dword [esi + 0xdc]
sub eax, dword [ecx + 0xe4]
sub eax, 0xf02e2fb
mov dword [esi + 0x44], eax
mov ecx, dword [0x1017a534]
mov eax, 0xffffeee9
sub eax, dword [esi + 0x70]
xor edx, 0x1fa
add dword [ecx + 0x44], eax
lea eax, [ebp - 0x41f]
push eax
lea eax, [edi - 0x56a]
push eax
push 0x101a42f0
push edx
lea eax, [ebp - 0x5d4]
push eax
call fcn.1000483c
mov eax, dword [esi + 0xdc]
add esp, 0x14
cmp eax, dword [esi + 0x84]
jb 0x10001b12
mov ecx, dword [esi + 0x110]
mov eax, dword [0x1017a534]
xor ecx, 0x98b0ed85
mov dword [eax + 0x44], ecx
jmp 0x10001c0b
mov dword [esi + 0x108], 0x27a18
jmp 0x10001c0b
mov eax, dword [0x101a4378]
mov esi, dword [0x101a4414]
sub eax, ebp
mov dword [esp + 0x20], esi
cmp esi, eax
jbe 0x10001c0b
xor ecx, 0x3c69
mov eax, edi
or eax, 0x3d77
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x30]
mov eax, dword [0x1017a534]
mov esi, dword [esi + 0x88]
mov edi, dword [eax + 4]
xor esi, 0x45d5
and esi, dword [eax + 0xac]
mov eax, dword [esp + 0x30]
imul edi, edx
mov edx, dword [eax + 0x30]
mov ecx, dword [eax + 0xfc]
or edx, ebx
mov eax, dword [eax + 0xdc]
sub ecx, ebp
sub ecx, dword [esp + 0x10]
or eax, ebp
mov ebp, dword [esp + 0x30]
or edx, 0x3e1e
push eax
push ecx
push ebp
push edx
push esi
push dword [esp + 0x38]
push edi
call fcn.10004511
mov edx, dword [ebp + 0xc8]
mov esi, eax
mov eax, dword [0x1017a534]
xor edx, 0xc1
mov ecx, dword [ebp + 0x24]
and edx, 0x41c5
add ecx, dword [esp + 0x30]
push ebp
sub esi, dword [eax + 0xd8]
mov eax, dword [0x101a43fc]
xor esi, dword [ebp + 0xac]
and eax, ebx
xor eax, dword [0x101a4328]
push eax
push ecx
push edx
push esi
call sym.dzchajz597hz44.dll_CDm45L
mov ecx, dword [0x101a4378]
mov ebp, eax
mov eax, dword [esp + 0x50]
add esp, 0x30
mov edx, dword [esp + 0x18]
inc eax
sub ecx, ebp
mov dword [esp + 0x20], eax
cmp eax, ecx
ja 0x10001b4f
pop edi
pop esi
pop ebp
lea eax, [ebx + 0xb6]
pop ebx
add esp, 0xc
ret
Function at 0x10002675
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
xor eax, 0x6dc
push ebx
mov ebx, dword [ebp + 0x14]
add eax, 0x5b1
push esi
mov esi, dword [ebp + 0x18]
add ebx, 0xf0
mov ecx, esi
xor edx, 0x73
xor ecx, 0x141
push edi
cmp esi, eax
je 0x1000270d
lea eax, [esi + 0x5c4]
cmp ecx, eax
jge 0x100026e4
mov edx, dword [0x1017a534]
mov ecx, dword [ebp + 8]
mov edi, dword [edx + 0x88]
mov eax, dword [ecx + 0xb0]
cmp dword [ecx + 0x84], edi
ja 0x100026d7
sub eax, 0x1035a4
mov dword [ecx + 0x44], eax
jmp 0x100026e4
add eax, 0x2f349
add eax, edi
mov dword [edx + 0x88], eax
mov ecx, dword [0x1017a534]
mov eax, dword [0x101a4328]
add eax, 0x1fa9b
add dword [ecx + 0x44], eax
mov ecx, dword [0x1017a534]
mov eax, dword [ecx + 0x84]
add eax, 0xccb6f
xor dword [ecx + 0x44], eax
jmp 0x10002751
mov edi, dword [ebp + 8]
imul eax, dword [edi + 0x58], 0x40fa
or eax, 0x3e1e
cmp ebx, eax
jne 0x10002751
sub edx, dword [0x101a4390]
imul eax, ecx, 0x3d77
sub edx, 0x45b9
mov ecx, 0x3c1f
push edx
sub ecx, eax
add dword [0x101a43b4], ecx
mov eax, dword [edi + 0x38]
sub eax, 0x3d77
and eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop edi
lea eax, [esi - 0x9d]
pop esi
pop ebx
pop ebp
ret

Function at 0x10002ef5
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov edx, dword [esp + 4]
xor dword [esp + 0x10], 0x7e54
xor edx, 0x7f4a
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ebp
xor esi, 0x763
lea eax, [ebp - 0xc2]
push edi
lea edi, [ebp + 0x2a]
cmp edx, eax
jle 0x10003035
push ebx
mov ebx, dword [esp + 0x24]
lea eax, [ebx + 0x398]
cmp edx, eax
mov eax, dword [0x1017a534]
jge 0x10002fc0
cmp dword [eax + 0xec], 0x8b13
mov ecx, dword [esp + 0x18]
ja 0x10002f5a
add dword [ecx], 0x36e6671f
mov eax, dword [0x1017a534]
mov eax, dword [eax + 0x110]
xor ebx, 0x3f8
add eax, 0x31a616
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0x110]
add eax, 0xc8e7
mov dword [0x101a432c], eax
mov eax, dword [ecx + 0x80]
add eax, 0x41864196
mov dword [ecx + 0x40], eax
mov eax, ebx
xor eax, 0x13f
push eax
lea eax, [esi + 0x733]
push eax
lea eax, [ebx - 0x4e4]
push eax
mov eax, esi
xor esi, 0x79f7
xor eax, 0x7fc1
push eax
push esi
push ecx
lea eax, [edx - 0x5a]
push eax
call fcn.100049e4
add esp, 0x1c
jmp 0x10003034
mov ecx, ebx
sub ecx, dword [eax + 0x8c]
imul eax, ecx, 0x44c6
cmp esi, eax
ja 0x10003034
mov eax, esi
or eax, ebp
mov ebp, eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x64]
xor eax, 0x41e3
sub eax, edi
push eax
mov eax, dword [ecx + 0x80]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x18]
mov eax, dword [0x101a43a8]
sub eax, dword [ecx + 0xec]
mov ecx, dword [esp + 0x20]
xor ecx, eax
mov eax, ebp
imul eax, ecx
mov dword [esp + 0x20], ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
mov ecx, dword [0x1017a534]
mov edx, ebx
inc esi
sub edx, dword [ecx + 0x8c]
imul ecx, edx, 0x44c6
cmp esi, ecx
jbe 0x10002fd8
pop ebx
xor edi, 0x689
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x1000476c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
lea edi, [eax - 0x6a8]
add eax, 0x10f
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0x41e3]
lea ebp, [eax - 0x5c4]
mov dword [esp + 0x20], ecx
lea ebx, [eax + 0xd2]
lea eax, [ecx + 0x3b82]
cmp ebp, eax
jl 0x100047d7
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x4c]
xor eax, 0x40
push eax
xor ecx, 0x344f1
push ecx
push dword [esi + 0x34]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 0x20]
add eax, 0x5000
mov dword [esi + 0xa4], eax
mov eax, ebx
xor eax, 0x356
cmp dword [esp + 0x10], eax
je 0x1000480c
mov eax, dword [0x101a43a0]
cmp eax, dword [esi + 0x64]
je 0x100047fe
mov eax, dword [esi + 0xfc]
sub eax, 0x131290
mov dword [esi + 0x48], eax
jmp 0x10004830
mov eax, dword [esi + 0xdc]
xor dword [0x101a430c], eax
jmp 0x10004830
sub edi, ebp
xor edi, dword [esp + 0x2c]
xor edi, 0x3c69
cmp dword [esi + 0x7c], edi
je 0x10004830
mov eax, dword [0x1017a534]
xor ebx, 0x423d
sub ebx, ecx
add dword [eax + 0xf0], ebx
pop edi
pop esi
lea eax, [ebp + 0x987]
pop ebp
pop ebx
pop ecx
ret
Function at 0x1000483c
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edx, 0xffffff40
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, ecx
mov eax, edx
xor esi, 0x78b2
xor eax, 0x7da4
add edi, 0xfffffe32
add ecx, 0xffffc2f5
cmp esi, eax
jl 0x1000497b
mov eax, dword [esp + 0x14]
xor edx, 0x78f8
add eax, 0x1b5
cmp eax, edx
je 0x100049d7
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov dword [esi + 0x90], 0x10006048
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x70]
sub ecx, dword [esi + 0x88]
mov edx, dword [eax + ebp]
add ebp, 4
mov eax, dword [0x101a431c]
add eax, 0xd5bd5
add eax, ecx
mov dword [0x101a431c], eax
mov eax, dword [esi + 0xfc]
sub eax, dword [esi + 0xf4]
sub eax, 0x131267
add dword [esi + 0xec], eax
mov eax, dword [0x1017a534]
mov eax, dword [eax + 0xf4]
xor eax, dword [esi + 0xec]
sub eax, 0x28
xor dword [esi + 0x98], eax
mov eax, dword [esi + 0xc8]
imul eax, dword [esi + 0x84]
mov dword [esi + 0xc8], eax
mov eax, dword [0x101a4370]
sub eax, dword [esi + 0x84]
sub eax, 0x1362d2
add dword [esi + 0x98], eax
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x9c]
imul ebx, edx
mov edx, ebx
shr edx, 0x10
mov byte [ecx + eax], dl
mov edx, ebx
inc dword [esi + 0x48]
mov eax, dword [0x1017a534]
shr edx, 8
mov ecx, dword [eax + 0x48]
mov eax, dword [0x101a438c]
mov byte [eax + ecx], dl
mov eax, dword [0x1017a534]
inc dword [eax + 0x48]
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x9c]
mov byte [ecx + eax], bl
inc dword [esi + 0x48]
mov eax, dword [0x101a439c]
or dword [0x101a4414], eax
cmp ebp, 0x65a80
jl 0x1000489c
jmp 0x100049d7
mov eax, dword [0x1017a534]
mov ebx, dword [eax + 0x128]
lea eax, [edi + 0x4443]
xor eax, ecx
cmp ebx, eax
jg 0x100049d7
mov ebp, dword [esp + 0x1c]
or esi, 0x42b5
mov eax, dword [ebp + 4]
add ebx, 3
mov ecx, dword [ebp + 0xa0]
or eax, edi
mov edx, dword [ebp + 0x30]
add eax, 0x44c6
push ebp
push eax
xor ecx, 0x41e3
sub edx, 0x3c1f
push ecx
push esi
push edx
call fcn.10002bfe
lea ecx, [edi + 0x4443]
add esp, 0x14
xor eax, ecx
cmp ebx, eax
jle 0x1000499c
xor edi, 0x7cc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x10013126
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1002ba70
call fcn.1002a480
lea edi, [ecx + 0x164]
xor ebx, ebx
push 0x100064ac
mov ecx, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
call fcn.10025be0
test eax, eax
je 0x1001326c
push 0x100064c0
lea ecx, [ebp - 0x10]
call fcn.10025be0
push 0x10006530
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10025be0
push 0x100062f4
lea ecx, [ebp - 0x10]
call fcn.10025be0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10025be0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x10]
call fcn.10020bd7
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x1001325e
cmp dword [ebp - 0x14], ebx
je 0x1001325e
push 0x100062d0
mov ecx, edi
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x1c], ebx
call fcn.10025be0
test eax, eax
jne 0x10013216
mov eax, 0x100054b6
mov esi, ebx
mov dword [ebp - 0x18], eax
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x10013202
mov eax, dword [ebp - 0x18]
add eax, 0x3fc
inc esi
mov dword [ebp - 0x18], eax
cmp eax, 0x100064a6
jl 0x100131dd
jmp 0x10013216
imul esi, esi, 0x3fc
add esi, 0x100052b8
push esi
mov ecx, edi
call fcn.10025be0
mov ecx, edi
call fcn.10020bd7
mov ecx, edi
test eax, eax
je 0x1001324b
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
call fcn.10020bd7
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10013255
cmp dword [ebp - 0x1c], eax
setne al
mov dword [ebp - 0x20], eax
jmp 0x10013255
push 0x100064ac
call fcn.10025be0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1002161e
mov ebx, dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebx
call fcn.1002a558
ret 8
Function at 0x10013779
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x58
mov eax, 0x1002bb11
call fcn.1002a4e9
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
or dword [edi + 4], 0xffffffff
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [edi], 0x1000641c
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetVersion]
cmp eax, 0x80000000
sbb esi, esi
mov ecx, ebx
neg esi
call fcn.10020bd7
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.mfc100.dll_Ordinal_306]
push 0
push 0x80
neg esi
push 3
sbb esi, esi
push 0
and esi, 4
or esi, 1
push esi
push SysReAllocString
push dword [eax]
call dword [sym.imp.kernel32.dll_CreateFileA]
lea ecx, [ebp - 0x64]
mov dword [edi + 4], eax
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [edi + 4], 0xffffffff
jne 0x100138e4
and dword [ebp - 0x58], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
mov esi, eax
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.10025be0
movzx eax, ax
push eax
push esi
push 0
push 0x1300
call dword [sym.imp.kernel32.dll_FormatMessageA]
push 1
mov esi, 0x1802
push esi
lea ecx, [ebp - 0x5c]
call fcn.10025be0
and dword [ebp - 4], 0
call fcn.10025be0
movzx eax, ax
push eax
push dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
push esi
call fcn.10025be0
push 0x40
lea ecx, [ebp - 0x5c]
call fcn.10020bd7
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10025be0
add esp, 0xc
mov ecx, ebx
call fcn.10020bd7
push eax
lea ecx, [ebp - 0x54]
call dword [sym.imp.mfc100.dll_Ordinal_306]
push 0x10006430
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100.dll_Ordinal_1483]
push dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
call dword [sym.imp.mfc100.dll_Ordinal_1483]
mov esi, dword [ebp - 0x54]
call fcn.10025be0
movzx eax, ax
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxExA]
push dword [ebp - 0x58]
call dword [sym.imp.kernel32.dll_LocalFree]
and dword [ebp - 0x58], 0
mov ecx, edi
call fcn.100139d5
lea ecx, [ebp - 0x54]
call dword [sym.imp.mfc100.dll_Ordinal_901]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.1002161e
jmp 0x10013930
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [edi + 8], eax
test eax, eax
je 0x10013929
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [edi + 0xc], eax
test eax, eax
je 0x10013929
push ebx
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetFileSize]
push eax
push dword [edi + 0xc]
call fcn.10025be0
mov dword [edi + 0x10], eax
test eax, eax
jne 0x10013930
mov ecx, edi
call fcn.100139d5
mov eax, edi
call fcn.1002a56c
ret 8
Function at 0x10018e95
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x1002bda3
call fcn.1002a51f
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x10019069
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.10025be0
add esp, 0xc
test eax, eax
js 0x10019063
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x10018f31
push esi
call fcn.100158b3
pop ecx
test al, al
je 0x10018f31
mov eax, esi
call fcn.1002a74c
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10018f3d
push esi
lea ecx, [ebp - 0x428]
call fcn.10025be0
push 3
push esi
push edi
push eax
call fcn.10025be0
test eax, eax
je 0x10019063
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x10018f71
call fcn.10015ac7
mov esi, eax
jmp 0x10019048
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10018f94
call fcn.10015ac7
jmp 0x1001903f
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x10018f8a
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x420], esi
cmp eax, esi
jae 0x10018fc4
mov esi, 0x8007000e
jmp 0x10019041
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10025be0
mov dword [ebp - 4], 1
jmp 0x10019003
cmp dword [ebp - 0x418], 0
je 0x10018fbd
push esi
push dword [ebp - 0x424]
push esi
push dword [ebp - 0x418]
call fcn.10025be0
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.10025be0
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10019083
lea ecx, [ebp - 0x418]
call fcn.1001914a
jmp 0x10019083
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1001907e
lea ecx, [ebp - 0x418]
call fcn.1001914a
mov esi, 0x8007000e
lea ecx, [ebp - 0x428]
call fcn.1000cc87
mov eax, esi
lea esp, [ebp - 0x444]
call fcn.1002a578
ret 0x10