joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100152d0
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea ecx, [eax + 0x18c0]
push esi
push edi
mov edi, eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
ja 0x100153ad
mov ebx, dword [ebp - 0x10]
nop
cmp edi, 0x1507
ja 0x100153d2
je 0x1001539a
cmp edi, 0xf50
ja 0x1001536a
je 0x1001535b
mov eax, edi
sub eax, 0x722
je 0x10015338
sub eax, 0x42
je 0x100153ad
sub eax, 0x7aa
jne 0x100154dc
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x4c], 0x10041e88
jmp 0x100154dc
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x20
push esi
lea edx, [ecx + 0x830]
lea eax, [ecx + 0x18]
push ecx
call fcn.10025f10
add esp, 0xc
mov byte [ebp - 4], al
jmp 0x100154dc
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x54], 9
jmp 0x100154dc
mov eax, edi
sub eax, 0xf92
je 0x1001538b
sub eax, 0x42
jne 0x100154dc
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x58], 5
jmp 0x100154dc
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x50], 0x10042688
jmp 0x100154dc
mov esi, 0x493
mov eax, esi
sub eax, 0x493
je 0x100153b7
sub eax, 0x3c
jne 0x100153c2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
call fcn.10020eb0
mov dword [ebp - 4], eax
add esi, 0x3c
cmp esi, 0x4cf
jbe 0x1001539f
jmp 0x100154dc
cmp edi, 0x7ece
ja 0x1001547f
je 0x10015404
mov eax, edi
sub eax, 0x7e08
je 0x100153f7
sub eax, 0x42
je 0x100154a0
jmp 0x100154dc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
xor ebx, ebx
jmp 0x100154dc
mov edx, dword [ebp - 8]
cmp byte [edx], 0
je 0x10015478
lea esp, [esp]
mov ecx, 0x7f71
cmp ecx, 0x8037
ja 0x1001544a
je 0x10015442
mov eax, ecx
sub eax, 0x7f71
je 0x10015436
sub eax, 0x63
jne 0x10015468
movzx eax, byte [edx]
lea ebx, [ebx + eax + 0xc]
jmp 0x10015468
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp eax, dword [esi]
je 0x10015478
jmp 0x10015468
test bl, 1
je 0x10015468
inc ebx
jmp 0x10015468
mov eax, ecx
sub eax, 0x809a
je 0x1001545d
sub eax, 0x63
jne 0x10015468
inc dword [ebp - 0xc]
jmp 0x10015468
mov edx, dword [ebp + 0xc]
lea eax, [ebx + edx]
mov dword [ebp - 8], eax
mov edx, eax
add ecx, 0x63
cmp ecx, 0x80fd
jbe 0x10015415
cmp byte [edx], 0
jne 0x10015410
mov edi, 0x7ece
jmp 0x100154dc
mov eax, edi
sub eax, 0x7f10
je 0x100154a9
sub eax, 0x42
jne 0x100154dc
mov eax, 0x28e5
cmp eax, eax
je 0x100154f2
add eax, 0x2f
cmp eax, 0x28e5
jbe 0x10015494
mov dword [ebp - 0xc], 0
jmp 0x100154dc
mov ecx, dword [ebp - 8]
cmp byte [ecx], 0
jne 0x100154dc
mov ecx, 0x56c0
mov eax, ecx
sub eax, 0x56c0
je 0x100154ca
sub eax, 0x5b
je 0x100153ad
jmp 0x100154d1
mov dword [ebp - 4], 0
add ecx, 0x5b
cmp ecx, 0x571b
jbe 0x100154b6
add edi, 0x42
cmp edi, dword [ebp - 0x10]
jbe 0x100152f0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001ddd0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea ecx, [eax + 0x9c3]
mov esi, eax
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], ecx
cmp eax, ecx
ja case.0x1001deec.75
mov edi, dword [ebp - 0x14]
lea ecx, [ecx]
cmp esi, 0x3726
ja 0x1001df27
je 0x1001df93
lea eax, [esi - 0x3627]
cmp eax, 0xcc
ja case.0x1001de1a.13864
movzx eax, byte [eax + 0x1001e000]
jmp dword [eax*4 + 0x1001dfe8]
cmp dword [edi + 4], ebx
jne 0x1001de68
mov esi, 0x587d
mov eax, esi
sub eax, 0x587d
je 0x1001de54
sub eax, 0x4a
je 0x1001de47
sub eax, 0x4a
jne 0x1001de5a
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.1002b00c
add esp, 4
dec dword [edi]
jmp 0x1001de5a
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
add esi, 0x4a
cmp esi, 0x5911
jbe 0x1001de2b
mov esi, dword [ebp - 8]
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
test eax, eax
je case.0x1001de1a.13864
lea esp, [esp]
cmp eax, ebx
je case.0x1001de1a.14067
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x1001de80
jmp case.0x1001de1a.13864
mov dword [ebp - 8], 0x36f3
mov esi, dword [ebp - 8]
jmp case.0x1001de1a.13864
mov edi, dword [ebx]
jmp case.0x1001de1a.13864
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je case.0x1001de1a.13864
push ebx
call fcn.10021750
add esp, 4
push eax
call fcn.1002b00c
jmp 0x1001dfae
mov eax, edi
call fcn.10009680
cmp eax, 1
jne case.0x1001de1a.13864
mov esi, 0xffffffe7
mov edi, edi
cmp esi, 0x4b
ja case.0x1001deec.1
movzx eax, byte [esi + 0x1001e0e4]
jmp dword [eax*4 + 0x1001e0d0]
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
jmp case.0x1001deec.1
mov dword [edi], 0
jmp case.0x1001deec.1
push ebx
call fcn.1002b00c
add esp, 4
add esi, 0x19
lea ecx, [esi + 0x5ffe]
cmp ecx, 0x6049
jbe 0x1001dee0
mov esi, dword [ebp - 8]
jmp case.0x1001de1a.13864
cmp esi, 0x4049
ja 0x1001df70
je 0x1001df54
mov eax, esi
sub eax, 0x3759
je 0x1001df49
sub eax, 0x33
jne case.0x1001de1a.13864
dec dword [edi]
push ebx
call fcn.1002b00c
jmp 0x1001dfae
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
jmp case.0x1001de1a.13864
mov dword [ebp - 0x10], 0
test ebx, ebx
je case.0x1001de1a.13864
xor ecx, ecx
cmp dword [ebx + 0x20], ecx
setle cl
dec ecx
and ecx, 0xffffffc4
mov dword [ebp - 0x10], ecx
jmp case.0x1001de1a.13864
cmp esi, 0x407c
je 0x1001dfa0
cmp esi, 0x6c34
jne case.0x1001de1a.13864
mov eax, 0x2606
cmp eax, eax
je 0x1001dfc9
add eax, 0x41
cmp eax, 0x2606
jbe 0x1001df87
cmp dword [edi + 8], ebx
jne case.0x1001de1a.13864
mov edx, dword [ebp - 0xc]
mov dword [edi + 8], edx
jmp case.0x1001de1a.13864
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.10013cc0
add esp, 4
add esi, 0x33
mov dword [ebp - 8], esi
cmp esi, dword [ebp - 0x14]
jbe 0x1001ddf0
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0x20
push ecx
lea edx, [ebx + 0x850]
lea eax, [ebx + 0x38]
push ebx
call fcn.10025f10
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002f29b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10045580]
jne 0x1002f2a5
repz ret
jmp fcn.10035571

Function at 0x10035731
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10045580]
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.1002fa82
and dword [ebp - 0x14], 0
cmp dword [0x100473fc], 0
mov dword [ebp - 0x18], eax
jne 0x100357e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1003588c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1003588c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100473fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10047400], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10047404], eax
call edi
push eax
call esi
mov dword [0x1004740c], eax
test eax, eax
je 0x100357e4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10047408], eax
mov eax, dword [0x10047408]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1003583d
cmp dword [0x1004740c], ecx
je 0x1003583d
push eax
call esi
push dword [0x1004740c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1003583d
test ebx, ebx
je 0x1003583d
call edi
test eax, eax
je 0x10035834
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10035834
test byte [ebp - 8], 1
jne 0x1003583d
or dword [ebp + 0x10], 0x200000
jmp 0x10035870
mov eax, dword [0x10047400]
cmp eax, dword [ebp - 0x18]
je 0x10035870
push eax
call esi
test eax, eax
je 0x10035870
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10035870
mov eax, dword [0x10047404]
cmp eax, dword [ebp - 0x18]
je 0x10035870
push eax
call esi
test eax, eax
je 0x10035870
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100473fc]
call esi
test eax, eax
je 0x1003588c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1003588e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f29b
leave
ret
Function at 0x401760
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x401788
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x401796
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x4017af
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x4017bd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x4017d6
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x4017e4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x4017fd
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40180b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call fcn.00401852

Function at 0x401ae0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x401b3b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401b00
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x401b1c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401c00
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x401b5d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401bcf
mov esi, dword [ebx]
cmp esi, ebx
je 0x401bcf
test esi, esi
je 0x401bcf
cmp word [esi + 0x24], 2
jbe 0x401bc9
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401bc9
cmp dword [esi + 0x18], 0
je 0x401bc9
test ebp, ebp
je 0x401b85
cmp ebp, eax
jne 0x401bc9
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401c00
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x401baa
cmp edx, dword [esi + 0x18]
jne 0x401bc9
cmp dword [esp + 0x14], eax
je 0x401bdc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401f60
add esp, 8
test eax, eax
je 0x401bdc
mov esi, dword [esi]
cmp esi, ebx
jne 0x401b63
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x401c60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x401cab
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x401c9b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x401c81
jmp 0x401ca0
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x401cfb
mov edi, edx
lea ecx, [edi + 2]
jmp 0x401cc0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401cc0
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x401cdc
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401c00
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x401d1d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401d90
mov esi, dword [ebx]
cmp esi, ebx
je 0x401d90
test esi, esi
je 0x401d90
cmp word [esi + 0x24], 2
jbe 0x401d8a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401d8a
cmp dword [esi + 0x18], 0
je 0x401d8a
test ebp, ebp
je 0x401d45
cmp ebp, eax
jne 0x401d8a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401c00
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401d6a
cmp eax, dword [esi + 0x18]
jne 0x401d8a
cmp dword [esp + 0x10], 0
je 0x401d9d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401f60
add esp, 8
test eax, eax
je 0x401d9d
mov esi, dword [esi]
cmp esi, ebx
jne 0x401d23
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x403300
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x808d3c]
sub esp, 0x11c
test eax, eax
jne 0x4033fe
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00402830
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x403350
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41c100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x403360
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41c104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x403395
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00401ae0
pop edi
pop esi
pop ebx
test eax, eax
je 0x4033f9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4033f9
mov dword [0x808d3c], eax
add esp, 0x11c
ret
mov eax, dword [0x808d3c]
add esp, 0x11c
ret
Function at 0x403cf0
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x807f48
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x403e19
cmp dword fs:[0xc0], eax
je 0x403d1b
mov dword [0x807f44], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x807e2c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x807e30], eax
movzx edx, word [esi + 0xac]
mov dword [0x807e34], edx
mov eax, dword [esi + 0xb0]
mov dword [0x807e38], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x403d7b
push 0x7f
push eax
push 0x807e3c
call fcn.00401c00
mov edx, dword [0x807e34]
add esp, 0xc
jmp 0x403d83
xor eax, eax
mov word [0x807e3c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x807f3c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x807f3e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x807f40], ax
mov ecx, eax
mov byte [0x807f42], 0
cmp byte [0x7ffe0268], 0
je 0x403dca
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x807f42], bl
cmp ebx, 1
pop ebx
jne 0x403de4
and ecx, 0xffef
mov word [0x807f40], cx
test edx, edx
jne 0x403e19
call fcn.00403cf0
cmp dword [0x807e2c], 6
ja 0x403e19
jb 0x403e01
cmp dword [0x807e30], 4
jae 0x403e19
call fcn.00403cf0
cmp dword [0x807e2c], 0xa
jae 0x403e19
mov dword [0x807e34], 1
ret
Function at 0x404270
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x807e08]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40441d
cmp dword [0x807e0c], 0
jne 0x404409
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00402830
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x4042c0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41c0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x4042d0
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41c0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x404305
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00402830
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404364
sub edx, esi
sar edx, 1
je 0x40441d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x404380
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40441d
xor eax, eax
push ebx
test edx, edx
je 0x4043b8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x4043b8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x4043a1
xor eax, eax
test edx, edx
je 0x4043d2
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x4043d2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4043c0
xor eax, eax
test edx, edx
je 0x4043ef
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x4043ef
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4043e0
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x807e08]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret

Function at 0x41bef2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x427b50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x420015
lea edi, [esi - 0x1f015]
push edi
or ebp, 0xffffffff
jmp 0x427b72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427b79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427b68
mov eax, 1
add ebx, ebx
jne 0x427b8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427b80
jne 0x427b9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427b80
xor ecx, ecx
sub eax, 3
jb 0x427bb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x427c22
mov ebp, eax
add ebx, ebx
jne 0x427bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427bc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x427bec
inc ecx
add ebx, ebx
jne 0x427bd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x427bcd
jne 0x427be9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427bcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x427c0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x427bfd
jmp 0x427b6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x427c0c
add edi, ecx
jmp 0x427b6e
pop esi
mov edi, esi
mov ecx, 0x95e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x427c2a
cmp byte [edi], 2
jne 0x427c2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x427c2f
lea edi, [esi + 0x25000]
mov eax, dword [edi]
or eax, eax
je 0x427c9e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x27a40]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x27ae0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x427c5c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x27ae4]
or eax, eax
je 0x427c98
mov dword [ebx], eax
add ebx, 4
jmp 0x427c79
call dword [esi + 0x27ae8]
popal
jmp 0x4011cb
Function at 0x10009276
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94c
mov eax, dword [0x10046040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.100119dd
test eax, eax
js 0x10009504
push 0x104
lea eax, [ebp - 0x13c]
push eax
push dword [0x1004603c]
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov edi, 0x100012dc
push edi
lea eax, [ebp - 0x34]
push 0x2d
push eax
call fcn.1003d908
add esp, 0xc
xor ebx, ebx
push ebx
lea eax, [ebp - 0x13c]
push eax
push ebx
push 0x10001354
push 2
push 0x10003584
mov byte [ebp - 0x2f], 0x5c
call fcn.1003d908
test eax, eax
je 0x100092f3
mov eax, 0x80040201
jmp 0x10009504
push ebx
lea eax, [ebp - 0x13c]
push eax
push ebx
push 0x1000136c
push 3
push 0x10003234
call fcn.1003d908
test eax, eax
jne 0x100092e9
push 1
lea eax, [ebp - 0x13c]
push eax
push ebx
push 0x10001388
push 4
mov esi, 0x10003304
push esi
call fcn.1003d908
test eax, eax
jne 0x100092e9
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push 0x800
lea eax, [ebp - 0x93c]
push eax
push 5
push dword [0x1004603c]
call ebx
test eax, eax
jne 0x10009357
mov byte [ebp - 0x93c], al
lea eax, [ebp - 0x93c]
push eax
push 0
push 0
push 0x100013a4
call fcn.1003d908
test eax, eax
jne 0x100092e9
lea eax, [ebp - 0x2e]
push eax
push esi
call fcn.1003d908
lea eax, [ebp - 0x2e]
push eax
push edi
push 0
push 0x100013a4
call fcn.1003d908
test eax, eax
jne 0x100092e9
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x100013c0
push 6
push 0x10003434
call fcn.1003d908
test eax, eax
jne 0x100092e9
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x100013dc
push 7
push 0x10003444
call fcn.1003d908
test eax, eax
jne 0x100092e9
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x100013fc
push 9
push 0x10003454
call fcn.1003d908
test eax, eax
jne 0x100092e9
push 0x10001424
mov dword [ebp - 0x940], eax
mov dword [ebp - 0x944], eax
mov dword [ebp - 0x94c], eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 0x940]
push eax
push 1
push 0
push 0x10001434
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10009502
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x944]
push eax
push 0
lea eax, [ebp - 0x948]
push eax
push 0
push 0x100012a8
push dword [ebp - 0x940]
call edi
test eax, eax
jne 0x10009502
mov eax, dword [ebp - 0x944]
inc eax
add eax, esi
mov dword [ebp - 0x944], eax
call fcn.10009f0e
mov esi, esp
test esi, esi
je 0x10009502
lea eax, [ebp - 0x94c]
push eax
push esi
lea eax, [ebp - 0x948]
push eax
push 0
push 0x100012a8
push dword [ebp - 0x940]
call edi
test eax, eax
jne 0x10009502
push dword [ebp - 0x940]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10001424
push dword [ebp - 0x944]
push esi
call fcn.1003d908
push 0x10001450
lea eax, [ebp - 0x13c]
push 0x106
push eax
call fcn.1003d908
add esp, 0xc
push 0x800
lea eax, [ebp - 0x93c]
push eax
push 1
push dword [0x1004603c]
call ebx
test eax, eax
jne 0x10009502
mov eax, 0xc7ce0017
jmp 0x10009504
xor eax, eax
lea esp, [ebp - 0x958]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009f00
leave
ret