joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430391
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d0b8]
jne 0x43039b
repz ret
jmp fcn.00433a5f

Function at 0x4391bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48d0b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00433107
and dword [ebp - 0x14], 0
cmp dword [0x48ee0c], 0
mov dword [ebp - 0x18], eax
jne 0x43926e
push 0x402b78
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x439316
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x402b6c
push ebx
call edi
test eax, eax
je 0x439316
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push 0x402b5c
push ebx
mov dword [0x48ee0c], eax
call edi
push eax
call esi
push 0x402b48
push ebx
mov dword [0x48ee10], eax
call edi
push eax
call esi
push 0x402b2c
push ebx
mov dword [0x48ee14], eax
call edi
push eax
call esi
mov dword [0x48ee1c], eax
test eax, eax
je 0x43926e
push 0x402b14
push ebx
call edi
push eax
call esi
mov dword [0x48ee18], eax
mov eax, dword [0x48ee18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x4392c7
cmp dword [0x48ee1c], ecx
je 0x4392c7
push eax
call esi
push dword [0x48ee1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4392c7
test ebx, ebx
je 0x4392c7
call edi
test eax, eax
je 0x4392be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4392be
test byte [ebp - 8], 1
jne 0x4392c7
or dword [ebp + 0x10], 0x200000
jmp 0x4392fa
mov eax, dword [0x48ee10]
cmp eax, dword [ebp - 0x18]
je 0x4392fa
push eax
call esi
test eax, eax
je 0x4392fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4392fa
mov eax, dword [0x48ee14]
cmp eax, dword [ebp - 0x18]
je 0x4392fa
push eax
call esi
test eax, eax
je 0x4392fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48ee0c]
call esi
test eax, eax
je 0x439316
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x439318
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430391
leave
ret
Function at 0x1001d12
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100
mov dword [ebp - 4], ecx
xor esi, esi
mov edx, edi
mov ebx, eax
mov dword [edx], ecx
inc ecx
add edx, 4
dec ebx
jne 0x1001d2e
mov ecx, edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [esi + eax]
add al, byte [ecx]
mov edx, dword [ecx]
add al, byte [ebp - 4]
and eax, 0xff
mov dword [ebp - 4], eax
movzx eax, ax
lea eax, [edi + eax*4]
mov ebx, dword [eax]
mov dword [ecx], ebx
mov dword [eax], edx
lea eax, [esi + 1]
xor edx, edx
div dword [ebp + 0x10]
add ecx, 4
dec dword [ebp + 8]
mov esi, edx
jne 0x1001d3c
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10020b0
Capabilities:
Get system information on windows

Disassembly:
push 0x20
push 0x100a1d8
call fcn.01009160
mov ebx, 0x10000
and dword [ebp - 0x24], 0
mov edi, 0xc0000004
push 0x4e746547
push ebx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x1002111
push 0
push ebx
push esi
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x28], eax
cmp eax, edi
jne 0x1002106
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor esi, esi
mov dword [ebp - 0x20], esi
add ebx, ebx
jmp 0x100210a
test eax, eax
jne 0x1002118
cmp dword [ebp - 0x28], edi
je 0x10020ca
jmp 0x1002126
xor eax, eax
jmp 0x10021aa
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor esi, esi
mov dword [ebp - 0x20], esi
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x28], eax
jne 0x100217d
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
lea ebx, [esi + 4]
mov dword [ebp - 0x30], ebx
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x1c], eax
jae 0x100217d
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x11c
lea edi, [eax + ebx]
lea ecx, [edi + 0x1c]
test ecx, ecx
je 0x1002183
push dword [ebp + 8]
movzx ecx, word [edi + 0x1a]
add ecx, eax
lea eax, [ecx + ebx + 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x1002183
mov eax, dword [edi + 8]
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
jmp 0x100219a
inc dword [ebp - 0x1c]
jmp 0x1002142
test esi, esi
je 0x10021a7
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x24]
call fcn.0100919b
ret 4
Function at 0x10021b8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0xc], ebx
je 0x1002296
push edi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1002296
mov eax, dword [edi + 0x3c]
add eax, edi
cmp word [edi], 0x5a4d
jne 0x1002296
cmp dword [eax], 0x4550
jne 0x1002296
mov esi, dword [eax + 0x78]
add esi, edi
cmp dword [eax + 0x7c], ebx
je 0x1002296
cmp dword [esi + 0x18], ebx
je 0x1002296
cmp dword [esi + 0x14], ebx
je 0x1002296
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
add eax, dword [ebp + 8]
add ebx, edi
mov edi, dword [esi + 0x20]
add edi, dword [ebp + 8]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1002296
push edi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1002296
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1002296
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jbe 0x100227f
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x1002284
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x100225b
mov eax, dword [ebp - 0xc]
jmp 0x1002298
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
jmp 0x1002298
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100374e
Capabilities:
Encode data using xor
Hash data using jshash

Disassembly:
mov edi, edi
push esi
mov esi, dword [0x100d1a8]
push edi
mov edi, 0x100d1a8
cmp esi, edi
je 0x1003795
push ebx
mov eax, 0x4e67c6a7
xor ecx, ecx
movsx edx, byte [esi + ecx - 0x24]
mov ebx, eax
shl ebx, 5
add edx, ebx
mov ebx, eax
shr ebx, 2
add edx, ebx
xor eax, edx
inc ecx
cmp ecx, 0xc
jb 0x1003769
cmp eax, dword [esi - 0x18]
je 0x100378e
call fcn.0100163c
mov esi, dword [esi]
cmp esi, edi
jne 0x1003762
pop ebx
pop edi
pop esi
ret
Function at 0x100379e
Capabilities:
Encode data using xor
Hash data using jshash

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
cmp al, 2
mov edi, 0x100d1b8
mov ecx, edi
jb 0x10037c6
call dword [sym.imp.ntoskrnl.exe_KefAcquireSpinLockAtDpcLevel]
mov byte [ebp - 1], 1
jmp 0x10037cf
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp - 2], al
push esi
mov esi, dword [0x100d1b0]
cmp esi, 0x100d1b0
je 0x1003816
push ebx
mov eax, 0x4e67c6a7
xor ecx, ecx
movsx edx, byte [esi + ecx - 0x24]
mov ebx, eax
shl ebx, 5
add edx, ebx
mov ebx, eax
shr ebx, 2
add edx, ebx
xor eax, edx
inc ecx
cmp ecx, 0xc
jb 0x10037e6
cmp eax, dword [esi - 0x18]
je 0x100380b
call fcn.0100163c
mov esi, dword [esi]
cmp esi, 0x100d1b0
jne 0x10037df
pop ebx
cmp byte [ebp - 1], 0
pop esi
mov ecx, edi
je 0x1003827
call dword [sym.imp.ntoskrnl.exe_KefReleaseSpinLockFromDpcLevel]
jmp 0x1003830
mov dl, byte [ebp - 2]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
pop edi
leave
ret

Function at 0x1003b98
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100cda4]
xor edx, edx
cmp dword [0x100d1e0], edx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x1003c4f
push ebx
push edi
push 0x16
mov ecx, 0x100d1e4
pop eax
mov edi, ecx
lock xadd dword [edi], eax
mov dword [ebp - 0x30], eax
add eax, 0x16
cmp eax, dword [0x100d1e8]
jbe 0x1003be0
push 0x16
pop eax
xchg dword [ecx], eax
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], 0x3031
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
pop ecx
cmp byte [eax], dl
jne 0x1003c00
mov byte [eax], 0x30
inc eax
dec ecx
jne 0x1003bf9
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x16]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x16
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c]
pop ecx
mov dl, byte [0x100d1ec]
xor byte [eax], dl
inc eax
dec ecx
jne 0x1003c14
mov ebx, 0x100d1f0
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, dword [0x100d1d0]
mov edx, dword [ebp - 0x30]
lea edi, [ecx + edx]
push 5
pop ecx
lea esi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov dl, al
mov ecx, ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100911e
leave
ret 8
Function at 0x1003c62
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x100d1e0], 0
mov eax, dword [0x100cda4]
mov dword [ebp - 4], eax
je 0x1003ce3
push ebx
push esi
push edi
push 6
pop ecx
mov eax, 0x100d1e4
mov esi, ecx
mov edx, eax
lock xadd dword [edx], esi
lea edx, [esi + 6]
cmp edx, dword [0x100d1e8]
jbe 0x1003c9f
mov edx, ecx
xchg dword [eax], edx
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov word [ebp - 8], 0x3030
lea eax, [ebp - 0xc]
mov dl, byte [0x100d1ec]
xor byte [eax], dl
inc eax
dec ecx
jne 0x1003cae
mov ebx, 0x100d1f0
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, dword [0x100d1d0]
lea edi, [ecx + esi]
lea esi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
mov dl, al
mov ecx, ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0100911e
leave
ret 4

Function at 0x10041e0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100ca6c]
push ebx
push esi
push edi
mov edi, 0x100ca68
sub edi, 0xca68
lea ecx, [eax + eax*2]
shl ecx, 2
push 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ecx
pop edx
je 0x100422b
movzx esi, byte [edx + 0x100b268]
mov ebx, dword [ebp - 4]
shr ebx, 0x1b
xor esi, ebx
mov ebx, dword [ebp - 4]
shl ebx, 5
xor esi, ebx
inc edx
cmp edx, ecx
mov dword [ebp - 4], esi
jb 0x100420c
cmp dword [ebp - 4], 0x17606a55
je 0x100423e
call fcn.0100163c
mov eax, dword [0x100ca6c]
and dword [ebp - 0xc], 0
test eax, eax
jbe 0x100429f
mov esi, 0x100b26c
mov ecx, dword [esi - 4]
mov edx, dword [esi]
and dword [ebp - 8], 0
add ecx, edi
test edx, edx
mov dword [ebp - 4], edx
jbe 0x1004282
mov edi, dword [ebp - 8]
movzx edi, byte [ecx + edi]
mov ebx, dword [ebp - 4]
shr ebx, 0x1b
xor edi, ebx
mov ebx, dword [ebp - 4]
shl ebx, 5
xor edi, ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], edx
mov dword [ebp - 4], edi
jb 0x100425d
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 4]
je 0x1004294
call fcn.0100163c
mov eax, dword [0x100ca6c]
inc dword [ebp - 0xc]
add esi, 0xc
cmp dword [ebp - 0xc], eax
jb 0x100424b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004594
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
mov eax, dword [ebp + 8]
je 0x10045ae
mov cl, byte [ebp + 0x10]
xor byte [eax], cl
inc eax
inc cl
dec edx
jne 0x10045a6
mov eax, dword [ebp + 8]
pop ebp
ret 0xc
Function at 0x10046ec
Capabilities:
Attach user process memory

Disassembly:
push 0x50
push 0x100a1f8
call fcn.01009160
mov dword [ebp - 0x20], 0xc0000001
xor ebx, ebx
mov dword [ebp - 0x48], ebx
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x19], bl
mov esi, dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
call esi
cmp dword [ebp + 0xc], eax
je 0x1004732
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [ebp - 0x19], 1
call esi
cmp dword [ebp + 0xc], eax
jne 0x100479d
lea eax, [ebp - 0x24]
push eax
push 0x18
lea eax, [ebp - 0x48]
push eax
push ebx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
cmp eax, ebx
je 0x100479d
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
add eax, 0x38
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x100477a
cmp word [eax], bx
jbe 0x100477a
push eax
push dword [ebp + 8]
call fcn.010015e2
mov dword [ebp - 0x20], ebx
or dword [ebp - 4], 0xffffffff
jmp 0x100479d
cmp byte [ebp - 0x19], bl
je 0x10047ac
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [ebp - 0x20]
call fcn.0100919b
ret 8
Function at 0x401290
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
call fcn.004017f0
call sym.___main
mov dword [esp], str.Input_20_numbers:_n
call sym._printf
mov dword [ebp - 0x6c], 1
cmp dword [ebp - 0x6c], 0x14
jg 0x4012f9
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
shl eax, 2
lea eax, [edx + eax]
mov dword [esp + 4], eax
mov dword [esp], 0x403013
call sym._scanf
lea eax, [ebp - 0x6c]
inc dword [eax]
jmp 0x4012d0
mov dword [esp], 0x403016
call sym._printf
mov dword [ebp - 0x70], 1
cmp dword [ebp - 0x70], 0x13
jg 0x401366
mov dword [ebp - 0x6c], 1
mov eax, 0x14
sub eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jl 0x40135f
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp + eax*4 - 0x68]
cmp eax, dword [ebp + edx*4 - 0x64]
jle 0x401358
mov eax, dword [ebp - 0x6c]
mov eax, dword [ebp + eax*4 - 0x68]
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
mov eax, dword [ebp + eax*4 - 0x64]
mov dword [ebp + edx*4 - 0x68], eax
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
mov dword [ebp + edx*4 - 0x64], eax
lea eax, [ebp - 0x6c]
inc dword [eax]
jmp 0x401319
lea eax, [ebp - 0x70]
inc dword [eax]
jmp 0x40130c
mov dword [esp], str.The_sorted_numbers:_n
call sym._printf
mov dword [ebp - 0x6c], 1
cmp dword [ebp - 0x6c], 0x14
jg 0x40139d
mov eax, dword [ebp - 0x6c]
mov eax, dword [ebp + eax*4 - 0x68]
mov dword [esp + 4], eax
mov dword [esp], 0x40302d
call sym._printf
lea eax, [ebp - 0x6c]
inc dword [eax]
jmp 0x401379
mov dword [esp], str.pause
call sub.msvcrt.dll_system
mov eax, 0
leave
ret

Function at 0x4019b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x401ff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027d0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40218f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402830
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402154
cmp dword [ebp + 0xc], 3
jbe 0x402154
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e60
mov dword [ebp - 0x74], eax
jmp 0x4020f3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40214f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40214a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402164
jmp 0x40214f
jmp 0x402154
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028f0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402181
jmp 0x40217c
jmp 0x40218f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402088
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x49f400], eax
pop esi
pop edi
pop ebp
ret
Function at 0x410b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410bad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410bad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x10040fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x10013b0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004153
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10013ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004146
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1004155
xor eax, eax
pop esi
leave
ret 4

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret