joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b9a7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5472f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov esi, ecx
push 0x34
call fcn.00424b2d
mov ebx, eax
add esp, 4
lea edi, [ebx + 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0x10], esi
mov esi, ecx
mov dword [ebx + 8], 0
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4f6200
sub esi, edx
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x1c], edx
cmp esi, edx
ja 0x4f623c
mov dword [ebp - 0x14], edi
mov eax, edi
cmp edx, 0x10
jb 0x4f6222
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
push esi
push ecx
push eax
mov dword [edi + 0x10], esi
call fcn.004306c0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4f631f
cmp esi, 0x7fffffff
ja 0x4f637d
mov ecx, esi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x4f625c
mov ecx, 0x7fffffff
jmp 0x4f6280
mov eax, edx
shr eax, 1
mov dword [ebp - 0x14], eax
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x14]
cmp edx, eax
jbe 0x4f6276
mov ecx, 0x7fffffff
jmp 0x4f6280
mov eax, dword [ebp - 0x14]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x10], ecx
cmp edx, 0x1000
jb 0x4f62ba
lea eax, [edx + 0x23]
or ecx, 0xffffffff
cmp eax, edx
cmovbe eax, ecx
push eax
call fcn.00424b2d
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4f6382
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x10]
jmp 0x4f62ce
test edx, edx
je 0x4f62cc
push edx
call fcn.00424b2d
mov ecx, dword [ebp - 0x10]
add esp, 4
jmp 0x4f62ce
xor eax, eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push eax
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], ecx
call fcn.0042fea0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov byte [eax + esi], 0
cmp ecx, 0x10
jb 0x4f631d
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x4f6310
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f6382
mov eax, edx
push ecx
push eax
call fcn.00424b5d
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [edi], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0xc]
push 0
push 0x4f5810
mov dword [ebx + 0x30], eax
call fcn.00435f2f
add esp, 0xc
cmp eax, 0xffffffff
je 0x4f635f
push 0
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, ebx
call fcn.00404ac0
xor ebx, ebx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404370
call fcn.00436cd9
int3
Function at 0x4f6490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x18
mov edi, edx
mov esi, ecx
call fcn.00424b2d
mov ebx, eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x4f58b0
mov dword [ebx + 4], 0
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], eax
call fcn.00435f2f
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f64e4
push 2
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push 0x18
push ebx
call fcn.00424b5d
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4f65a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x18
mov edi, edx
mov esi, ecx
call fcn.00424b2d
mov ebx, eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x4f5980
mov dword [ebx + 4], 0
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], eax
call fcn.00435f2f
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f65f4
push 2
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push 0x18
push ebx
call fcn.00424b5d
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4f6d10
Capabilities:
Change the wallpaper
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x5472f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x620]
mov esi, edx
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.control_paneldesktop
push 0x80000001
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 4
test esi, esi
mov ecx, 0x532904
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, 0x532908
cmove eax, ecx
push eax
push 1
push 0
push 0x532910
push dword [ebp - 0x620]
call esi
push 4
test edi, edi
mov ecx, 0x532904
mov eax, 0x53290c
cmove eax, ecx
push eax
push 1
push 0
push str.TileWallpaper
push dword [ebp - 0x620]
call esi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004f1eb0
add esp, 8
lea eax, [ebp - 0x61c]
push 3
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424b17
mov esp, ebp
pop ebp
ret
Function at 0x4f75d0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x55fdc4]
push esi
mov esi, ecx
test eax, eax
je 0x4f7673
test esi, esi
je 0x4f7643
call fcn.004b6710
test eax, eax
jne 0x4f7637
cmp dword [0x5aa314], eax
je 0x4f761d
push 0x25
push eax
push eax
push dword [0x5aa2f0]
push dword [0x5aa2ec]
push eax
push dword [0x55faa0]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x5aa2f0]
call fcn.004ba9f0
push 1
push dword [0x55faa0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x55faa0]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [0x5aa314], 0
jmp 0x4f7651
push 0
push dword [0x55faa0]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x5aa2e4], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
cmp eax, dword [0x55faa0]
mov eax, dword [0x55fdc4]
sete cl
mov dword [0x55f938], ecx
pop esi
ret

Function at 0x4f8cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x34], 0xffffffff
jne 0x4f8ce7
mov eax, 0x80070006
pop esi
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ecx, dword [esi + 0x44]
push ebx
mov ebx, edx
add ebx, dword [esi + 0x38]
mov dword [ebp + 8], ebx
adc eax, dword [esi + 0x3c]
mov ebx, dword [esi + 0x40]
add ebx, dword [esi + 0x48]
adc ecx, dword [esi + 0x4c]
cmp eax, ecx
jb 0x4f8d18
ja 0x4f8d0f
cmp dword [ebp + 8], ebx
jbe 0x4f8d18
mov edx, dword [esi + 0x40]
sub edx, dword [esi + 0x38]
add edx, dword [esi + 0x48]
mov ebx, dword [ebp + 0x14]
push 0
push ebx
push edx
push dword [ebp + 0xc]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4f8d47
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4f8d52
movzx eax, ax
pop ebx
or eax, 0x80070000
pop esi
pop ebp
ret 0x10
mov eax, dword [ebx]
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], 0
xor eax, eax
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4ff100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor cl, cl
mov dword [ebp - 0x10], esi
xor bl, bl
mov dword [ebp - 0xc], edi
xor eax, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x4ff1d9
cmp esi, 0x20
jb 0x4ff1d9
mov ecx, esi
xorps xmm2, xmm2
and ecx, 0xffffffe0
xorps xmm4, xmm4
xorps xmm3, xmm3
xorps xmm5, xmm5
nop
movups xmm1, xmmword [edi + eax]
movaps xmm0, xmm1
pxor xmm5, xmm1
movups xmm1, xmmword [edi + eax + 0x10]
add eax, 0x20
paddb xmm2, xmm0
movaps xmm0, xmm1
pxor xmm3, xmm1
paddb xmm4, xmm0
cmp eax, ecx
jb 0x4ff140
pxor xmm3, xmm5
paddb xmm4, xmm2
movaps xmm0, xmm3
psrldq xmm0, 8
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 2
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 1
pxor xmm3, xmm0
movaps xmm0, xmm4
psrldq xmm0, 8
paddb xmm4, xmm0
movd ebx, xmm3
movups xmm0, xmm4
psrldq xmm0, 4
paddb xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 2
paddb xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 1
paddb xmm4, xmm0
movd ecx, xmm4
mov dword [ebp - 8], ecx
xor dh, dh
mov byte [ebp - 1], 0
cmp eax, esi
jae 0x4ff224
mov ecx, esi
sub ecx, eax
cmp ecx, 2
mov ch, byte [ebp - 1]
jb 0x4ff211
lea edi, [esi - 1]
mov esi, dword [ebp - 0xc]
mov dl, byte [esi + eax]
mov cl, byte [esi + eax + 1]
add ch, dl
xor dl, cl
add eax, 2
add dh, cl
xor bl, dl
cmp eax, edi
jb 0x4ff1f5
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
cmp eax, esi
jae 0x4ff21d
mov al, byte [eax + edi]
add byte [ebp - 8], al
xor bl, al
add dh, ch
mov ecx, dword [ebp - 8]
add cl, dh
cmp byte [ebp + 8], cl
jne 0x4ff23a
cmp byte [ebp + 0xc], bl
jne 0x4ff23a
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ff250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push edi
mov dword [ebp - 0xc], ecx
mov edi, edx
xor cl, cl
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x4ff32b
cmp esi, 0x20
jb 0x4ff32b
mov edx, dword [ebp + 8]
mov ecx, esi
and ecx, 0xffffffe0
xorps xmm2, xmm2
xorps xmm4, xmm4
xorps xmm3, xmm3
xorps xmm5, xmm5
movups xmm1, xmmword [edx + eax]
movaps xmm0, xmm1
pxor xmm5, xmm1
movups xmm1, xmmword [edx + eax + 0x10]
add eax, 0x20
paddb xmm2, xmm0
movaps xmm0, xmm1
pxor xmm3, xmm1
paddb xmm4, xmm0
cmp eax, ecx
jb 0x4ff292
pxor xmm3, xmm5
paddb xmm4, xmm2
movaps xmm0, xmm3
psrldq xmm0, 8
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 2
pxor xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 1
pxor xmm3, xmm0
movaps xmm0, xmm4
psrldq xmm0, 8
paddb xmm4, xmm0
movd ebx, xmm3
movups xmm0, xmm4
psrldq xmm0, 4
paddb xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 2
paddb xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 1
paddb xmm4, xmm0
movd ecx, xmm4
mov dword [ebp - 8], ecx
xor dh, dh
mov byte [ebp - 1], 0
cmp eax, esi
jae 0x4ff387
mov ecx, esi
sub ecx, eax
cmp ecx, 2
mov ch, byte [ebp - 1]
jb 0x4ff363
lea edi, [esi - 1]
mov esi, dword [ebp + 8]
mov dl, byte [esi + eax]
mov cl, byte [esi + eax + 1]
add ch, dl
xor dl, cl
add eax, 2
add dh, cl
xor bl, dl
cmp eax, edi
jb 0x4ff347
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
cmp eax, esi
jae 0x4ff372
mov esi, dword [ebp + 8]
mov al, byte [eax + esi]
add byte [ebp - 8], al
xor bl, al
mov eax, dword [ebp - 8]
add dh, ch
add al, dh
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov byte [edi], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
mov byte [edi], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x501750
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bcf5
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5472f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00501f00
mov dword [ebp - 4], 0
lea ecx, [esi + 0x98]
mov dword [esi], vtable.YCMFPlayer.1.0
mov dword [esi + 8], vtable.YCMFPlayer.0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0x3f800000
mov dword [esi + 0x70], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0x3f800000
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
call fcn.0049f0b0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
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
mov byte [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov word [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [esi + 0x54], 0
mov dword [esi + 0x58], 0x80
mov byte [esi + 0x5c], 0
mov dword [esi + 0x60], 0x3f800000
mov dword [esi + 0x64], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x401dda
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x401de9
pop dword [ebp - 0x20]
mov eax, 0x401de9
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xa24dcdc5
sub dword [ebp - 0x30], 0x53fb887a
mov dword [ebp - 0x2c], 0xf24442bf
add dword [ebp - 0x2c], 0x3fef0986
mov dword [ebp - 0x28], 0x89c667a8
sub dword [ebp - 0x28], 0x3d7a237a
mov dword [ebp - 0x24], 0xcf06215c
sub dword [ebp - 0x24], 0xcf06215c
lea eax, [ebp - 0x30]
push eax
mov eax, 0x9fd799a2
sub eax, 0x9f97898a
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x1205b7b6
sub dword [ebp - 0x30], 0x9d934e60
mov dword [ebp - 0x2c], 0x78467484
add dword [ebp - 0x2c], 0xc925ecf1
mov dword [ebp - 0x28], 0x4f16aea2
sub dword [ebp - 0x28], 0xeba74236
mov dword [ebp - 0x24], 0xe68bf5cb
sub dword [ebp - 0x24], 0xe68bf5cb
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x2f93c
push 0
call eax
mov ecx, 0x65a678fb
sub ecx, 0x65a64c9a
xor ebx, ebx
add ebx, eax
mov esi, 0x404200
add esi, dword [ebp - 0x20]
mov edx, 0x49a030c1
sub edx, 0x30ddb876
sub dword [ebp - 0x1c], 0x9096f518
mov edi, dword [esi]
mov dword [ebp - 0x18], 0x5588ab02
xor edi, edx
add dword [ebp - 0x14], 0x9384a6ab
mov dword [ebx], edi
xor dword [ebp - 0x14], 0xf81170c2
add ebx, 0xf3994637
add ebx, 0xc66b9cd
add esi, 0xcfb619f2
add esi, 0x3049e612
loop 0x401efd
add eax, 0x2e843225
sub eax, 0x2e838dce
mov ebx, eax
add eax, 0x17e6f84b
add eax, 0xe81907ba
mov ecx, 0xe8a5d93c
add ecx, 0x179a26c4
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401276
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
push dword [ebp + 8]
mov dword [ebp - 0x14], 0x100
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x4013ce
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 4], edi
jbe 0x4013b9
push str.SOFTWARENikon
push dword [ebp + 0xc]
call fcn.00404480
test eax, eax
pop ecx
pop ecx
je 0x4013d3
push str.SoftwareNikon
push dword [ebp + 0xc]
call fcn.00404480
test eax, eax
pop ecx
pop ecx
je 0x4013d3
mov dword [ebp - 4], edi
push ebx
cmp dword [ebp - 4], 0x32
jae 0x4013b8
push 0x104
lea eax, [ebp - 0x12c]
push edi
push eax
call fcn.00404420
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x104
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
cmp ebx, edi
je 0x401368
cmp ebx, 0xea
je 0x401368
inc dword [ebp - 0xc]
jmp 0x4013ac
lea eax, [ebp - 0x12c]
push eax
call fcn.00404390
test eax, eax
pop ecx
jbe 0x4013ac
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
push str._s_s
push eax
call fcn.00404331
mov ecx, dword [ebp - 0x18]
add esp, 0x10
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 8]
call fcn.00401276
inc dword [ebp - 4]
cmp ebx, 0x103
jne 0x401314
pop ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
leave
ret 8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 5
pop eax
jmp 0x4013ce

Function at 0x4013fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40140f
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401421
xor eax, eax
jmp 0x401453
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401445
cmp esi, eax
jae 0x40141d
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401437
cmp esi, eax
jae 0x40141d
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x4051ed
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405430
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405288
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42585c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405288
cmp eax, 1
je 0x4052a9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405288
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405255
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405284
xor eax, eax
inc eax
jmp 0x4052c8
cmp edi, eax
jae 0x40528c
xor eax, eax
jmp 0x4052c8
cmp eax, esi
jae 0x405293
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42585c]
jmp 0x4052ac
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4054b6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41d3f0
call fcn.004052d0
mov edi, 0x94
mov eax, edi
call fcn.00405430
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42585c], ecx
mov eax, dword [esi + 4]
mov dword [0x425868], eax
mov edx, dword [esi + 8]
mov dword [0x42586c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x425860], esi
cmp ecx, 2
je 0x405516
or esi, 0x8000
mov dword [0x425860], esi
shl eax, 8
add eax, edx
mov dword [0x425864], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405551
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405551
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405569
cmp eax, 0x20b
je 0x405556
mov dword [ebp - 0x1c], esi
jmp 0x40557d
cmp dword [ecx + 0x84], 0xe
jbe 0x405551
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405577
cmp dword [ecx + 0x74], 0xe
jbe 0x405551
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004085df
pop ecx
test eax, eax
jne 0x405591
push 0x1c
call fcn.00405492
pop ecx
call fcn.00407558
test eax, eax
jne 0x4055a2
push 0x10
call fcn.00405492
pop ecx
call fcn.00409cfd
mov dword [ebp - 4], esi
call fcn.00409aff
test eax, eax
jge 0x4055bb
push 0x1b
call fcn.0040546d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x427110], eax
call fcn.004099dd
mov dword [0x425848], eax
call fcn.0040993b
test eax, eax
jge 0x4055e1
push 8
call fcn.0040546d
pop ecx
call fcn.00409708
test eax, eax
jge 0x4055f2
push 9
call fcn.0040546d
pop ecx
push 1
call fcn.0040590d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405608
push eax
call fcn.0040546d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004096ab
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405629
movzx eax, word [ebp - 0x40]
jmp 0x40562c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040fdea
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40564a
push edi
call fcn.00405a3a
call fcn.00405a5c
jmp 0x40567c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040530b
ret
Function at 0x405977
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41d460
call fcn.004052d0
push 8
call fcn.00408594
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42589c], esi
jne 0x4059ab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x425898], esi
mov al, byte [ebp + 0x10]
mov byte [0x425894], al
cmp dword [ebp + 0xc], edi
jne 0x4059f5
cmp dword [0x427108], edi
je 0x4059e5
mov eax, dword [0x427104]
sub eax, 4
mov dword [0x427104], eax
cmp eax, dword [0x427108]
jb 0x4059e5
mov eax, dword [eax]
cmp eax, edi
je 0x4059c6
call eax
jmp 0x4059c6
push 0x422084
mov eax, 0x42207c
call fcn.004058f5
pop ecx
push 0x422090
mov eax, 0x422088
call fcn.004058f5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x405a26
cmp dword [ebp + 0x10], edi
jne 0x405a34
mov dword [0x42589c], esi
push dword [ebp + 8]
call fcn.004058b3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x405a33
push 8
call fcn.004084df
pop ecx
ret
call fcn.0040530b
ret