joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b580
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [ebp + 8]
mov ecx, 4
movups xmm3, xmmword [0x44d3e0]
movups xmm4, xmmword [0x44d3f0]
movups xmm2, xmmword [eax]
movups xmm5, xmmword [eax + 0x10]
mov eax, dword [ebp + 0xc]
movaps xmmword [esp + 0x20], xmm2
movaps xmm7, xmm5
movaps xmmword [esp + 0x30], xmm5
xorps xmm7, xmm4
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm2
xorps xmm2, xmm3
xorps xmm1, xmm5
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm1
movaps xmm6, xmm0
movaps xmmword [esp], xmm1
nop dword [eax]
movaps xmm0, xmm3
movaps xmm5, xmm2
movaps xmm1, xmm4
aesenc xmm0, xmm2
movaps xmm2, xmmword [esp]
aesenc xmm1, xmm3
movaps xmm3, xmm6
aesenc xmm3, xmmword [esp]
aesenc xmm2, xmm4
movaps xmm4, xmm1
aesenc xmm5, xmm7
aesenc xmm4, xmm0
aesenc xmm7, xmm6
xorps xmm7, xmmword [esp + 0x20]
movaps xmm6, xmm0
movaps xmm0, xmm2
aesenc xmm0, xmm1
movaps xmm1, xmm3
aesenc xmm1, xmm2
movaps xmm2, xmm7
aesenc xmm2, xmm3
movaps xmm3, xmm4
aesenc xmm6, xmm5
aesenc xmm3, xmm6
movaps xmmword [esp + 0x10], xmm3
movaps xmm3, xmm0
aesenc xmm3, xmm4
movaps xmm4, xmm1
aesenc xmm4, xmm0
movaps xmm0, xmm2
aesenc xmm5, xmm7
xorps xmm5, xmmword [esp + 0x30]
movaps xmm7, xmm3
aesenc xmm0, xmm1
movaps xmm1, xmm5
aesenc xmm1, xmm2
movaps xmm2, xmm4
aesenc xmm6, xmm5
movaps xmm5, xmmword [esp + 0x10]
xorps xmm6, xmmword [esp + 0x40]
aesenc xmm2, xmm3
movaps xmm3, xmm0
aesenc xmm3, xmm4
movaps xmm4, xmm1
aesenc xmm7, xmm5
aesenc xmm5, xmm6
xorps xmm5, xmmword [esp + 0x50]
movaps xmmword [esp + 0x10], xmm5
movups xmmword [eax], xmm5
aesenc xmm4, xmm0
movaps xmm0, xmm6
movaps xmm6, xmmword [esp + 0x10]
aesenc xmm0, xmm1
movaps xmmword [esp], xmm0
sub ecx, 1
jne 0x42b5e0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax + 0x20], xmm4
movups xmmword [eax + 0x30], xmm3
movups xmmword [eax + 0x40], xmm2
movups xmmword [eax + 0x50], xmm7
mov esp, ebp
pop ebp
ret
Function at 0x4312d0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], 0
push esi
nop dword [eax + eax]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + eax]
mov ecx, dword [esp + 4]
movzx esi, byte [ecx + eax]
inc eax
movzx ecx, dl
xor esi, ecx
mov ecx, dword [esp + 0xc]
or ecx, esi
mov dword [esp + 0xc], ecx
cmp eax, 0x10
jl 0x4312f0
mov eax, dword [esp + 0xc]
dec eax
shr eax, 8
and eax, 1
pop esi
dec eax
pop ecx
ret

Function at 0x431330
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], 0
push esi
nop dword [eax + eax]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + eax]
mov ecx, dword [esp + 4]
movzx esi, byte [ecx + eax]
inc eax
movzx ecx, dl
xor esi, ecx
mov ecx, dword [esp + 0xc]
or ecx, esi
mov dword [esp + 0xc], ecx
cmp eax, 0x20
jl 0x431350
mov eax, dword [esp + 0xc]
dec eax
shr eax, 8
and eax, 1
pop esi
dec eax
pop ecx
ret
Function at 0x435403
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x435442
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x435442
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x435442
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x435442
cmp dword [ecx + 0x74], 0xe
jbe 0x435442
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43e19b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x475530
push 0x475528
push str.FlsAlloc
push 0x1f
call fcn.0043e082
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43e1cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d140]
call esi
jmp 0x43e1d5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43e219
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x475540
push 0x475538
push str.FlsGetValue
push 0x21
call fcn.0043e082
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43e250
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43e258
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x475548
push 0x475540
push str.FlsSetValue
push 0x22
call fcn.0043e082
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43e292
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44d140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44074b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x665500]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x440796
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004408e6
test al, al
jne 0x440790
sub edx, 2
cmp edx, edi
jne 0x440776
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4407b8
lea eax, [edi + 2]
cmp edx, eax
je 0x4407b8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00440697
add esp, 0x10
jmp 0x4408b2
push esi
lea ecx, [ebp - 0x255]
call fcn.004408e6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4407fb
push dword [ebp - 0x25c]
jmp 0x4407a8
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x440838
cmp word [ebp - 0x226], 0
je 0x440859
cmp word [ebp - 0x226], ax
jne 0x440838
cmp word [ebp - 0x224], 0
je 0x440859
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00440697
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4408a5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x440812
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44088d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4408b2
push 0x4404c7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00444a60
add esp, 0x10
jmp 0x440882
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434679
leave
ret

Function at 0x443a04
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043d58b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x443a73
cmp esi, dword [ebp - 4]
je 0x443a6e
cmp dword [ebp + 0xc], 0
je 0x443a6e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x443a4b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00443556
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x443a75
xor eax, eax
inc eax
jmp 0x443a75
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x443ada
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x665500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0043d58b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0043d58b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x443b51
cmp word [ecx], dx
je 0x443b51
mov eax, dword [0x475b8c]
push edi
dec eax
push eax
push 0x475a78
call fcn.00443a79
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x443bc4
cmp word [eax], dx
je 0x443bc4
mov eax, dword [edi]
test eax, eax
je 0x443b75
cmp word [eax], dx
je 0x443b75
lea eax, [ebp - 0x10]
push eax
call fcn.0044345c
jmp 0x443b7e
lea eax, [ebp - 0x10]
push eax
call fcn.004434f7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x443bee
mov eax, dword [0x475a74]
push dword [ebp - 0x14]
dec eax
push eax
push 0x475768
call fcn.00443a79
add esp, 0xc
test al, al
je 0x443bee
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x443bb9
cmp word [eax], di
je 0x443bb9
lea eax, [ebp - 0x10]
push eax
call fcn.0044345c
pop ecx
jmp 0x443bf0
lea eax, [ebp - 0x10]
push eax
call fcn.004434f7
jmp 0x443bb6
mov eax, dword [edi]
test eax, eax
je 0x443bdb
cmp word [eax], dx
je 0x443bdb
lea eax, [ebp - 0x10]
push eax
call fcn.00443411
pop ecx
jmp 0x443bee
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x443cb9
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004438fe
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x443cb9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x443cb9
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x443cb9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x443c46
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043e398
test ebx, ebx
je 0x443cb4
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043e398
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x443cb9
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x443cb9
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00445cee
add esp, 0x10
xor eax, eax
inc eax
jmp 0x443cbb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434679
leave
ret
Function at 0x447900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44792d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44792d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x4027e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40401d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402828
xor eax, eax
jmp 0x402843
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40525f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
mov ebx, ecx
call dword [sym.imp.ntdll.dll_RtlGetDeviceFamilyInfoEnum]
cmp dword [ebp - 4], 3
je 0x405290
cmp dword [ebp - 4], 9
je 0x405290
cmp dword [ebp - 4], 0xd
je 0x405290
xor ebx, ebx
inc ebx
jmp 0x4052e8
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push 0x4018f0
push 0x80000002
call sub.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW
test eax, eax
jne 0x4052e8
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x401948
push dword [ebp - 8]
call sub.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW
test eax, eax
jne 0x4052e0
cmp dword [ebp - 0x10], 4
jne 0x4052e0
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
setne bl
push dword [ebp - 8]
call sub.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40891b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
mov ebx, dword [esp]
add esp, 4
inc esi
call fcn.0040894c
sub esi, 0x5c3b8d60
xor dword [eax], ebx
or ecx, esi
add eax, 1
push 0x98fda018
pop ecx
cmp eax, edi
jne fcn.0040891b
ret
Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404d32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004054e0
pop ecx
mov esi, eax
test esi, esi
jne 0x404d65
push 1
call fcn.00404530
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404dbb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404dde
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404dc6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404dd9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404dc1
lea eax, [ecx + 1]
push eax
call fcn.004054e0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404e05
push 1
call fcn.00404530
pop ecx
mov esi, ebx
jmp 0x404e3a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e0e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e35
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404e25
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e09
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404e51
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x914578
Capabilities:
Encode data using xor

Disassembly:
jmp 0x914582
pushal
call 0x914588
pop ebp
sub ebp, 0x10
sub ebp, 0x514578
jmp 0x91459e
mov eax, 0x514578
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f5
mov edx, 0xf6bf260a
xor byte [eax], dl
inc eax
dec ecx
jne 0x9145b5
jmp 0x9145c8
add edi, 0xa368381
or cl, byte [edx]
mov ecx, ebx
or cl, byte [edx]
or cl, byte [ecx]
invalid
Function at 0x4062e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b508
cmp edx, dword [eax]
je 0x406307
add eax, 8
inc ecx
cmp eax, 0x40b598
jl 0x4062f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b508]
jne 0x406435
mov eax, dword [0x40ba54]
cmp eax, 1
je 0x40640f
test eax, eax
jne 0x406338
cmp dword [0x40b1b4], 1
je 0x40640f
cmp edx, 0xfc
je 0x406435
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40636f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40957c
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037c0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004037c0
push dword [esi + 0x40b50c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407726
add esp, 0x2c
pop edi
jmp 0x406435
lea eax, [ebp + 8]
lea esi, [esi + 0x40b50c]
push 0
push eax
push dword [esi]
call fcn.004038a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40206c
Capabilities:
Allocate or change rwx memory

Disassembly:
sub ebp, 0x82
mov esi, eax
mov edx, dword [0x404080]
or dl, 1
imul edx, eax
mov eax, dword [0x404080]
sub eax, edx
mov ebx, esi
mov edx, eax
mov eax, 0x404084
call fcn.00401fe6
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
jmp 0x4020ea
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
jmp 0x402010
or al, 0x40
mov edi, 0x40389b
push eax
sub edi, fcn.00403045
push edi
push fcn.00403045
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x402129
mov eax, fcn.00403045
mov ebx, esi
mov edx, edi
call fcn.00401fe6
mov edx, 0x1c000
mov eax, 0x404084
mov ebx, esi
call fcn.00402630
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 1
call fcn.00402bb7
lea edx, [esi + 0x1c000]
add edx, esi
lea eax, [esi - 1]
lea ebx, [ebp - 2]
and eax, 0x404084
call fcn.00403045
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret