joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f4b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov eax, dword [0x450014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
xor eax, eax
dec eax
mov dword [ecx - 4], eax
mov dword [ecx - 8], eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
push dword [edi + 0x28]
call dword [eax + 0x10]
mov ebx, eax
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0041c249
add esp, 0x10
cmp eax, esi
jne 0x42f533
cmp ebx, 1
je 0x42f4d5
cmp ebx, 2
mov esi, 0xffffffff
je 0x42f536
mov eax, dword [ebp - 0x20]
push dword [eax + 0x20]
call fcn.0041bee6
add esp, 4
neg eax
sbb esi, esi
jmp 0x42f536
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c228
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42f550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x42f579
push dword [ecx + 0x20]
push esi
push 1
push eax
call fcn.0041c249
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8
test esi, esi
jle 0x42f5a1
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, eax
movzx eax, byte [eax + edi]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp eax, 0xffffffff
je 0x42f5a3
inc edi
cmp esi, edi
mov eax, ebx
jne 0x42f582
mov edi, esi
jmp 0x42f5a3
xor edi, edi
mov eax, edi
add esp, 4
jmp 0x42f572
Function at 0x42f5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [0x450014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
cmp ebx, eax
je 0x42f5fd
mov edi, ecx
mov byte [ebp - 0x19], bl
cmp byte [ecx + 0x2c], 0
je 0x42f617
xor esi, esi
inc esi
lea eax, [ebp - 0x19]
push dword [edi + 0x20]
push esi
push esi
push eax
call fcn.0041c249
add esp, 0x10
cmp eax, esi
mov esi, 0xffffffff
je 0x42f5ff
jmp 0x42f601
xor ebx, ebx
mov esi, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c228
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
lea esi, [ebp - 0x19]
mov dword [ebp - 0x24], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push esi
push dword [edi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], esi
je 0x42f69a
mov ebx, eax
cmp eax, 3
je 0x42f685
cmp ebx, 1
ja 0x42f69a
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0041c249
add esp, 0x10
cmp eax, esi
jne 0x42f69a
mov esi, dword [ebp - 0x24]
cmp ebx, 1
je 0x42f622
mov ebx, dword [ebp + 8]
jmp 0x42f5ff
xor ebx, ebx
inc ebx
push dword [edi + 0x20]
push ebx
push ebx
push esi
call fcn.0041c249
add esp, 0x10
cmp eax, ebx
je 0x42f67d
xor esi, esi
dec esi
jmp 0x42f601

Function at 0x42f6e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x42f709
push dword [ecx + 0x20]
push esi
push 2
push eax
call fcn.0041c249
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8
test esi, esi
jle 0x42f732
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, eax
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp ax, 0xffff
je 0x42f734
inc edi
cmp esi, edi
mov eax, ebx
jne 0x42f712
mov edi, esi
jmp 0x42f734
xor edi, edi
mov eax, edi
add esp, 4
jmp 0x42f702
Function at 0x42f740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
movzx esi, word [ebp + 8]
mov eax, dword [0x450014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
cmp si, 0xffff
je 0x42f78f
mov edi, ecx
mov word [ebp - 0x1a], si
cmp byte [ecx + 0x2c], 0
je 0x42f7a7
lea eax, [ebp - 0x1a]
push dword [edi + 0x20]
push 1
push 2
push eax
call fcn.0041c249
add esp, 0x10
cmp eax, 1
je 0x42f791
xor esi, esi
dec esi
jmp 0x42f791
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c228
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
lea esi, [ebp - 0x1a]
mov dword [ebp - 0x24], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push esi
push dword [edi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], esi
je 0x42f78a
mov ebx, eax
cmp eax, 3
je 0x42f816
cmp ebx, 1
ja 0x42f78a
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0041c249
add esp, 0x10
cmp eax, esi
jne 0x42f78a
mov esi, dword [ebp - 0x24]
cmp ebx, 1
je 0x42f7b2
movzx esi, word [ebp + 8]
jmp 0x42f791
xor ebx, ebx
inc ebx
push dword [edi + 0x20]
push ebx
push ebx
push esi
call fcn.0041c249
add esp, 0x10
cmp eax, ebx
jne 0x42f78a
jmp 0x42f80d
Function at 0x4344a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x18]
mov dword [edx - 4], esp
mov dword [edx + 8], 0xffffffff
mov dword [edx + 4], 0x409540
mov eax, dword fs:[0]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword fs:[0], edx
test byte [eax + 4], 1
jne 0x4344ff
movzx edx, word [ebp + 0x14]
movzx esi, byte [ebp + 0x18]
mov edi, dword [ecx]
movzx edx, dx
push esi
push edx
push eax
push dword [ebp + 0xc]
push ebx
call dword [edi + 0x18]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
jmp 0x434639
lea esi, [ebp - 0x2c]
mov ecx, eax
push esi
call fcn.0040a250
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x452de0
call fcn.0040ab00
mov esi, eax
mov ecx, dword [ebp - 0x2c]
xor edi, edi
dec edi
mov eax, edi
lock xadd dword [ecx + 4], eax
test eax, eax
mov bl, byte [ebp + 0x18]
jne 0x434538
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov eax, dword [esi]
xor bl, 1
movzx ecx, bl
mov eax, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], edi
mov ecx, esi
lea ebx, [ebp - 0x2c]
push ebx
call eax
movzx edx, byte [ebp - 0x21]
test dl, dl
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov esi, edx
cmovs esi, eax
test esi, esi
je 0x434643
mov esi, ebx
mov ebx, eax
mov dword [ebp - 0x34], edx
test dl, dl
mov dword [ebp - 0x20], edi
cmovns edi, esi
mov ecx, dword [ebp + 0xc]
mov eax, esi
test ecx, ecx
je 0x4345de
movzx eax, word [edi]
mov esi, dword [ecx + 0x18]
cmp esi, dword [ecx + 0x1c]
je 0x4345f1
lea edx, [esi + 2]
mov dword [ecx + 0x18], edx
mov word [esi], ax
xor esi, esi
cmp ax, 0xffff
je 0x4345a7
mov esi, ecx
mov bl, byte [ebp - 0x21]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], esi
lea esi, [ebp - 0x2c]
add edi, 2
test bl, bl
mov eax, esi
mov dword [ebp - 0x20], edx
cmovs esi, edx
mov edx, edi
mov dword [ebp - 0x34], ebx
movzx edi, bl
mov ebx, ecx
cmovs edi, ecx
lea esi, [esi + edi*2]
mov edi, edx
cmp edx, esi
mov ecx, dword [ebp - 0x30]
jne 0x434585
jmp 0x434611
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x20]
mov ecx, ebx
mov ebx, dword [ebp - 0x34]
mov esi, eax
jmp 0x4345b6
mov dword [ebp - 0x20], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
mov dword [ebp - 0x10], 1
movzx eax, ax
mov dword [ebp - 0x30], ecx
push eax
call edx
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x20]
jmp 0x43459d
mov edx, dword [ebp - 0x34]
shr dl, 7
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test dl, dl
je 0x43462f
push edi
call fcn.0040bd22
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
shr dl, 7
mov ecx, dword [ebp + 0xc]
jmp 0x43461a
Function at 0x438bc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x90]
mov dword [eax - 4], esp
xor edx, edx
dec edx
mov dword [eax + 8], edx
mov dword [eax + 4], 0x409650
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea ecx, [esi + 0x20]
mov dword [ecx + 0x60], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx + 0x50], xmm0
movdqa xmmword [ecx + 0x40], xmm0
movdqa xmmword [ecx + 0x30], xmm0
movdqa xmmword [ecx + 0x20], xmm0
movdqa xmmword [ecx + 0x10], xmm0
movdqa xmmword [ecx], xmm0
mov dword [esi + 8], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0xc], fcn.0042eda0
mov dword [esi + 0x14], edx
mov dword [eax + 8], 1
lea eax, [esi + 4]
mov dword [eax], edx
push eax
call fcn.0040a250
mov dword [esi + 0x98], 2
lea ecx, [esi + 4]
push 0x452db0
call fcn.0040ab00
mov dword [esi + 0x10], eax
mov al, byte [ebp + 0x14]
lea ecx, [esi + 0x84]
lea edx, [esi + 3]
mov byte [edx], 0
lea edi, [esi + 0x14]
lea ebx, [esi + 8]
movzx eax, al
push ecx
push edi
push ebx
push dword [esi + 0x10]
push edx
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push dword [ecx + 4]
lea ecx, [esi + 4]
push ecx
push eax
push dword [esi + 0x1c]
lea eax, [ebp + 0xc]
push eax
call fcn.004380b0
add esp, 0x2c
test al, al
je 0x438d16
mov ecx, dword [ebp + 0x20]
cmp byte [ecx + 0xb], 0
js 0x438d82
xor eax, eax
mov byte [ecx], al
mov byte [ecx + 0xb], al
cmp byte [esi + 3], 0
je 0x438cd8
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push 0x2d
call dword [eax + 0x1c]
movsx eax, al
mov ecx, dword [ebp + 0x20]
push eax
call fcn.0040b000
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push 0x30
call dword [eax + 0x1c]
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x14]
lea ecx, [edi - 1]
cmp edx, ecx
jae 0x438d02
mov ecx, edx
not ecx
add ecx, edi
lea ebx, [edx + ecx]
cmp byte [edx], al
jne 0x438d02
inc edx
dec ecx
jne 0x438cf8
mov edx, ebx
mov dword [esi + 0x98], 2
mov ecx, dword [ebp + 0x20]
push edi
push edx
call fcn.00406250
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0xc]
push eax
call fcn.0040a1c0
mov edi, dword [ebp + 8]
test al, al
je 0x438d2f
mov eax, dword [ebp + 0x1c]
or byte [eax], 2
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov ecx, dword [esi + 4]
xor eax, eax
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x438d48
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x438d6a
mov dword [esi + 0x98], 0
push eax
call dword [esi + 0xc]
mov edi, dword [ebp + 8]
add esp, 4
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
mov eax, dword [ecx]
mov byte [eax], 0
mov dword [ecx + 4], 0
jmp 0x438cbc
Function at 0x348cd8b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x348cd8c0
pop dword [ebp - 0x38]
mov eax, 0xb2aa56c3
sub eax, 0x7e1d7e03
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xfb65bfae
add dword [ebp - 0x48], 0x52ec859d
mov dword [ebp - 0x44], 0x84617af1
add dword [ebp - 0x44], 0xadd1d154
mov dword [ebp - 0x40], 0x30e6ffe
sub dword [ebp - 0x40], 0xb6c22bd0
mov dword [ebp - 0x3c], 0xf80f6f07
sub dword [ebp - 0x3c], 0xf80f6f07
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x82729a16
sub dword [ebp - 0x48], 0xe0030c0
mov dword [ebp - 0x44], 0xea1d85b3
add dword [ebp - 0x44], 0x574edbc2
mov dword [ebp - 0x40], 0xd74d903d
add dword [ebp - 0x40], 0x8c21dc2f
mov dword [ebp - 0x3c], 0x9697d658
sub dword [ebp - 0x3c], 0x9697d658
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xa1bd2a36
add eax, 0x92cbe7f6
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x60fd5
push 0
call eax
mov ecx, 0x7bfc2f66
sub ecx, 0x7bfbdaf8
xor edi, edi
add edi, eax
mov ebx, 0x7285a71d
add ebx, 0xc20d28e3
add ebx, dword [ebp - 0x38]
mov esi, 0x435dd27
add esi, 0x22c4852b
xor dword [ebp - 0x1c], 0x96e843f1
mov edx, dword [ebx]
add edx, esi
xor dword [ebp - 0xc], 0xa35db86c
mov dword [edi], edx
xor dword [ebp - 0x1c], 0x1c393ac9
add edi, 0x9f15063f
add edi, 0x60eaf9c5
add ebx, 4
loop 0x348cd9df
add eax, 0x3dee1950
sub eax, 0x3decd4c5
mov ebx, eax
add eax, 0xc6fb6fbd
sub eax, 0xc6fb6fb8
mov ecx, 0x3df1fa83
add ecx, 0xf697057d
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x3490c660
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x34899a58]
jne 0x3490d352
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3491f998], eax
mov dword [0x3491f994], ecx
mov dword [0x3491f990], edx
mov dword [0x3491f98c], ebx
mov dword [0x3491f988], esi
mov dword [0x3491f984], edi
mov word [0x3491f9b0], ss
mov word [0x3491f9a4], cs
mov word [0x3491f980], ds
mov word [0x3491f97c], es
mov word [0x3491f978], fs
mov word [0x3491f974], gs
pushfd
pop dword [0x3491f9a8]
mov eax, dword [ebp]
mov dword [0x3491f99c], eax
mov eax, dword [ebp + 4]
mov dword [0x3491f9a0], eax
lea eax, [ebp + 8]
mov dword [0x3491f9ac], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3491f8e8], 0x10001
mov eax, dword [0x3491f9a0]
mov dword [0x3491f89c], eax
mov dword [0x3491f890], 0xc0000409
mov dword [0x3491f894], 1
mov eax, dword [0x34899a58]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3491b924]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x3491f8e0], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x34899dd4
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x3491f8e0], 0
jne 0x3490d442
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x10001973
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10005004]
jne 0x1000197d
repz ret
jmp fcn.10001d3c
Function at 0x10052b6
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1009980
call fcn.010054b4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100b6e0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10050cb
cmp eax, esi
jne 0x10050be
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10050ce
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10050a5
xor esi, esi
inc esi
mov eax, dword [0x100b6dc]
cmp eax, esi
jne 0x10050e1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100511c
mov eax, dword [0x100b6dc]
test eax, eax
jne 0x1005116
mov dword [0x100b6dc], esi
push 0x10011a8
push 0x100119c
call fcn.01005022
pop ecx
pop ecx
test eax, eax
je 0x100511c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10051e6
mov dword [0x100b0bc], esi
mov eax, dword [0x100b6dc]
cmp eax, esi
jne 0x1005140
push 0x1001198
push 0x1001190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100b6dc], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100514d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100b6e4], ebx
je 0x100516e
push 0x100b6e4
call fcn.01005429
pop ecx
test eax, eax
je 0x100516e
push ebx
push 2
push ebx
call dword [0x100b6e4]
push dword [0x100b0a4]
push dword [0x100b0a8]
push dword [0x100b0a0]
call fcn.01004cb4
add esp, 0xc
mov dword [0x100b0b8], eax
cmp dword [0x100b0ac], ebx
jne 0x10051cc
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100b0bc], ebx
jne 0x10051da
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100b0b8]
call fcn.010054f9
ret
call fcn.01005601
jmp 0x1005083
Function at 0x100775e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [ebp - 0x108], eax
mov eax, edi
shr eax, 4
inc eax
movzx eax, ax
push eax
push 6
push esi
mov ebx, 0x80004005
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x100783e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100783e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100783e
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x102]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
and edi, 0xf
jbe 0x10077f2
dec edi
movzx eax, word [esi]
lea esi, [esi + eax*2 + 2]
jne 0x10077e8
movzx edi, word [esi]
mov eax, 0x80
cmp edi, eax
jae 0x100783e
add esi, 2
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0100597a
mov ebx, eax
test ebx, ebx
jge 0x100781d
cmp ebx, 0x8007007a
jne 0x100783e
xor eax, eax
mov word [ebp + edi*2 - 0x104], ax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x108]
call fcn.0100597a
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.010052d1
leave
ret 0x14

Function at 0x1007856
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
mov dword [ebp - 0x48], 0x80004005
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push edi
push esi
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
pop edi
pop esi
test eax, eax
jne 0x10078d7
mov eax, dword [ebp + 0x18]
cmp eax, 0x20
jb 0x10078be
push 0x20
pop eax
xor ecx, ecx
mov word [ebp + eax*2 - 0x46], cx
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x50]
call fcn.0100597a
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
call fcn.010052d1
leave
ret 0x14
Function at 0x1007981
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x334], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x348], eax
xor eax, eax
xor edi, edi
push 0xfe
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x126]
push edi
push eax
mov esi, 0x80004005
mov dword [ebp - 0x338], edi
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x344], 0x100
mov word [ebx], ax
cmp dword [0x100b6c4], edi
jne 0x1007b14
push 0x104
lea eax, [ebp - 0x330]
push eax
mov dword [0x100b6c4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1007b04
push 0x10014ec
push 0x104
lea eax, [ebp - 0x330]
push eax
call fcn.010059b4
test eax, eax
jl 0x1007b04
push dword [ebp + 0xc]
lea eax, [ebp - 0x330]
push 8
push eax
call fcn.01008db4
mov dword [ebp - 0x340], eax
cmp eax, edi
je 0x1007b04
and dword [0x100b6c4], 0
push 8
pop ecx
xor eax, eax
mov word [ebp - 0x28], ax
lea edi, [ebp - 0x26]
rep stosd dword es:[edi], eax
push 0x12
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x334]
mov dword [ebp - 0x338], 1
push dword [ebp - 0x33c]
call fcn.010078ed
mov esi, eax
test esi, esi
jl 0x1007af7
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.010076bd
mov esi, eax
test esi, esi
jl 0x1007af7
push 0x80
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x334]
push dword [ebp + 0xc]
push dword [ebp - 0x340]
call fcn.0100775e
mov esi, eax
test esi, esi
jl 0x1007af7
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0x1c]
push ebx
call fcn.0100597a
mov esi, eax
xor eax, eax
test esi, esi
setl al
mov dword [ebp - 0x338], eax
push dword [ebp - 0x340]
call fcn.01008c9f
xor edi, edi
cmp dword [0x100b6c4], edi
jne 0x1007b14
cmp dword [ebp - 0x338], edi
je 0x1007b5a
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x128]
push eax
push edi
push edi
push dword [ebp - 0x348]
mov esi, 0x80004005
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007b5a
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0x1c]
push ebx
call fcn.0100597a
mov esi, eax
cmp esi, edi
jl 0x1007b5a
mov esi, 0x40203
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010052d1
leave
ret 0x18