joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4669a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e41d6
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x59da54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
call fcn.004679c0
mov ecx, dword [ebp + 0xc]
mov ebx, eax
lea esi, [ebx + 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov word [ebx + 0xc], 0
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov ecx, esi
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004679a0
mov dword [esi], eax
lea eax, [esi + 8]
mov byte [ebp - 4], 1
mov ecx, eax
mov dword [ebp + 0xc], eax
call fcn.004654d0
mov dword [esi + 0x30], 3
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0046c880
push 0
push 0xff
push 0xff
push 0xff
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00468d40
push eax
push 0x80
push 0x80
lea ecx, [ebp - 0x48]
call fcn.0046c910
xor edi, edi
cmp edi, 2
jge 0x466ab2
xor esi, esi
nop dword [eax]
cmp esi, 2
jge 0x466aaf
push 0xff
push 0xff
push 0xff
push 0xff
lea ecx, [ebp - 0x24]
call fcn.00468d40
push eax
push esi
push edi
lea ecx, [ebp - 0x48]
call fcn.0046cba0
inc esi
jmp 0x466a80
inc edi
jmp 0x466a76
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push eax
mov ecx, esi
movups xmmword [ebp - 0x34], xmm0
call fcn.004660e0
push 1
mov ecx, esi
call fcn.00466390
lea ecx, [ebp - 0x48]
call fcn.0046c8b0
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 0xc
Function at 0x484250
Capabilities:
Log keystrokes
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
add eax, 0xfffffff8
cmp eax, 0xd6
ja case.0x484269.10
movzx eax, byte [eax + 0x4846e0]
jmp dword [eax*4 + 0x484554]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5a2170]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5a1c5c]
cmp eax, dword [ecx + 4]
jg 0x484516
mov eax, dword [esp + 8]
sar eax, 0x10
movzx ecx, al
xor eax, eax
cmp ecx, dword [0x5a1c58]
setne al
lea eax, [eax*4 + 0x26]
ret
mov eax, dword [esp + 8]
shr eax, 0x10
and eax, 0x100
neg eax
sbb eax, eax
and eax, 4
add eax, 0x27
ret
mov eax, dword [esp + 8]
shr eax, 0x10
and eax, 0x100
neg eax
sbb eax, eax
and eax, 4
add eax, 0x25
ret
mov eax, 0x28
ret
mov eax, 0x2c
ret
mov eax, 0x2d
ret
mov eax, 0x30
ret
mov eax, 0x34
ret
mov eax, 0x37
ret
mov eax, 0x38
ret
mov eax, 0x2e
ret
mov eax, 0x2f
ret
mov eax, 0x31
ret
mov eax, 0x32
ret
mov eax, 0x33
ret
mov eax, 0x35
ret
mov eax, 0x36
ret
mov eax, 0x24
ret
mov eax, 0x39
ret
mov eax, 0x3a
ret
mov eax, 0x3b
ret
mov eax, 0x3c
ret
mov eax, 0x3d
ret
mov eax, 0x3e
ret
mov eax, 0x3f
ret
mov eax, 0x40
ret
mov eax, 0x41
ret
mov eax, 0x42
ret
mov eax, 0x43
ret
mov eax, 0x44
ret
mov eax, 0x45
ret
mov eax, 0x46
ret
mov eax, 0x64
ret
mov eax, 0x55
ret
mov eax, 0x56
ret
mov eax, 0x57
ret
mov eax, 0x58
ret
mov eax, 0x59
ret
mov eax, 0x5a
ret
mov eax, 0x5b
ret
mov eax, 0x5c
ret
mov eax, 0x5d
ret
mov eax, 0x5e
ret
mov eax, 0x5f
ret
mov eax, 0x60
ret
mov eax, 0x61
ret
mov eax, 0x62
ret
mov eax, 0x63
ret
mov eax, 0x47
ret
mov eax, 0x48
ret
mov eax, 0x49
ret
mov eax, 0x4a
ret
mov eax, 0x4b
ret
mov eax, 0x4c
ret
mov eax, 0x4d
ret
mov eax, 0x4e
ret
mov eax, 0x4f
ret
mov eax, 0x50
ret
mov eax, 0x51
ret
mov eax, 0x52
ret
mov eax, 0x53
ret
mov eax, 0x54
ret
xor eax, eax
ret
mov eax, 0x19
ret
mov eax, 4
ret
mov eax, 0x11
ret
mov eax, 0x13
ret
mov eax, 0x18
ret
mov eax, 0x14
ret
mov eax, 8
ret
mov eax, 0xe
ret
mov eax, 0xf
ret
mov eax, 0x10
ret
mov eax, 0x12
ret
mov eax, 3
ret
mov eax, 5
ret
mov eax, 6
ret
mov eax, 7
ret
mov eax, 9
ret
mov eax, 0xa
ret
mov eax, 0xb
ret
mov eax, 0xc
ret
mov eax, 0x16
ret
mov eax, 0x17
ret
mov eax, 2
ret
mov eax, 0x15
ret
mov eax, 1
ret
mov eax, 0xd
ret
mov eax, 0x1a
ret
mov eax, 0x1b
ret
mov eax, 0x1c
ret
mov eax, 0x1d
ret
mov eax, 0x1e
ret
mov eax, 0x1f
ret
mov eax, 0x20
ret
mov eax, 0x21
ret
mov eax, 0x22
ret
mov eax, 0x23
ret
or eax, 0xffffffff
ret
push 0x5a1c5c
call fcn.00493874
add esp, 4
cmp dword [0x5a1c5c], 0xffffffff
jne 0x484290
push 0
push 0xa0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0x5a1c5c
mov dword [0x5a1c58], eax
call fcn.0049382a
add esp, 4
jmp 0x484290
Function at 0x487df0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov dword [esi], vtable.DefaultErrStreamBuf.0
mov edi, dword [eax]
mov eax, dword [esi + 0x20]
mov ebx, dword [eax]
cmp edi, ebx
je 0x487e3e
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
sub ebx, edi
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [esi + 0x30]
add esp, 0x14
mov ecx, dword [esi + 0x20]
mov edx, dword [eax]
mov eax, dword [esi + 0x10]
add edx, dword [ecx]
mov eax, dword [eax]
sub edx, eax
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
mov dword [eax], edx
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
push edi
call fcn.0049343b
add esp, 4
mov ecx, esi
pop edi
pop esi
pop ebx
jmp dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]

Function at 0x488010
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
mov eax, dword [esi + 0x20]
mov edi, dword [eax]
cmp ebx, edi
je 0x488053
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
sub edi, ebx
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [esi + 0x30]
add esp, 0x14
mov ecx, dword [esi + 0x20]
mov edx, dword [eax]
mov eax, dword [esi + 0x10]
add edx, dword [ecx]
mov eax, dword [eax]
sub edx, eax
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
mov dword [eax], edx
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x488150
Capabilities:
Check for time delay via queryperformancecounter
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e51fc
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x59da54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5a2170]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x5a20e0]
cmp eax, dword [esi + 4]
jg 0x488220
cmp byte [0x5a20e4], 0
je 0x4881d1
mov eax, dword [0x5a20ec]
cmp eax, dword [esi + 4]
jg 0x488275
push 0x5a20e8
lea ecx, [ebp - 0x10]
call fcn.00487d90
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x10]
call fcn.00487db0
jmp 0x4881db
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0xf4240
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00493ae0
push dword [0x5a20dc]
push dword [0x5a20d8]
push edx
push eax
call fcn.00493950
mov esi, dword [ebp + 8]
push edx
push eax
push esi
call fcn.00487be0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x5a20e0
call fcn.00493874
add esp, 4
cmp dword [0x5a20e0], 0xffffffff
jne 0x488196
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [ebp - 0x14]
mov dword [0x5a20d8], eax
mov eax, dword [ebp - 0x10]
mov dword [0x5a20dc], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
push 0x5a20e0
setb byte [0x5a20e4]
call fcn.0049382a
add esp, 4
jmp 0x488196
push 0x5a20ec
call fcn.00493874
add esp, 4
cmp dword [0x5a20ec], 0xffffffff
jne 0x4881b0
mov ecx, 0x5a20e8
mov dword [ebp - 4], 0
call fcn.00487cd0
push 0x4e6690
call fcn.0049372c
push 0x5a20ec
mov dword [ebp - 4], 0xffffffff
call fcn.0049382a
add esp, 8
jmp 0x4881b0

Function at 0x492cf0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x59da54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push edi
mov edi, dword [ebp + 0x10]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push esi
push eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0x67452301
mov dword [ebp - 0x50], 0xefcdab89
mov dword [ebp - 0x4c], 0x98badcfe
mov dword [ebp - 0x48], 0x10325476
call fcn.00492d90
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x492d64
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00492bc0
add esp, 8
mov edx, eax
pop edi
mov eax, 0x58
lea ecx, [ebp - 0x5c]
pop esi
nop
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x492d70
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
Function at 0x4c6d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
movzx edx, word [eax]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
cmp ebx, eax
jb 0x4c6d63
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
sub eax, ebx
cmp esi, eax
push edi
cmova esi, eax
xor edi, edi
mov dword [ebp + 0x14], esi
test esi, esi
je 0x4c6db1
mov edi, dword [ebp + 0x10]
sub ebx, edi
lea ecx, [ecx]
movzx eax, byte [ebx + edi]
lea edi, [edi + 1]
mov ecx, edx
shr ecx, 8
xor ecx, eax
add eax, edx
imul eax, eax, 0x3193
mov edx, 0x58bf
mov byte [edi - 1], cl
sub edx, eax
and edx, 0xffff
dec esi
jne 0x4c6d80
mov esi, dword [ebp + 0x14]
mov edi, esi
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 8]
lea ecx, [ebx + esi]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov word [eax], dx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401379
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov esi, dword [esp + 0x8c]
and esi, 0xffff0000
mov eax, esi
cmp word [eax], 0x5a4d
jne 0x401398
add eax, dword [eax + 0x3c]
sub esi, 0x10000
cmp word [eax], 0x4550
jne 0x40138c
add esi, 0x10000
push esi
mov eax, 0x403011
pop dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004012e1
mov dword [0x4030f7], eax
push 0x40300c
push 0x3e8
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4013dc
leave
ret 8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
or eax, eax
jne 0x4013ed
leave
ret 8
mov dword [ebp - 8], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x401401
leave
ret 8
push eax
call sub.kernel32.dll_LockResource
or eax, eax
jne 0x40140f
leave
ret 8
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push dword [ebp - 8]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
jne 0x40142b
leave
ret 8
push eax
mov esi, dword [ebp - 0xc]
mov edi, eax
mov ecx, dword [ebp - 8]
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [esp + 0xc]
call fcn.0040119f
mov ebx, dword [esp]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
pop eax
push ebx
push 0x8000
push 0
push eax
call sub.kernel32.dll_VirtualFree
mov ebx, dword [ebp + 0xc]
add ebx, dword [ebx + 0x3c]
lea eax, [ebx + 0x18]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 4], ebx
mov ebx, dword [esp]
add ebx, dword [ebp + 0xc]
and ebx, 0xffff0000
add ebx, 0x10000
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x40147e
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push eax
sub eax, dword [ebp + 0xc]
add dword [ebp + 8], eax
mov ebx, 0x4014f4
add ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov ebx, 0x401b90
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x14]
push ebx
push 0x4012ac
push dword [ebp + 0xc]
call fcn.0040116d
pop eax
pop ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov eax, 0x40175f
add eax, dword [ebp + 8]
call eax
leave
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40804c], 1
mov dword [0x408050], 1
mov dword [0x408054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40140b
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40142e
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401450
cmp eax, 0x20b
je 0x401475
jmp 0x4014a0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401462
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x40148d
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, 0
leave
ret

Function at 0x4017cb
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp], 0xfffffff5
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call eax
sub esp, 4
lea edx, [ebp - 0x1e]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
call eax
sub esp, 8
mov eax, dword [ebp - 0x1a]
mov dword [ebp - 0x22], eax
movzx eax, word [ebp - 0x22]
mov edx, eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov eax, edx
sub eax, ecx
mov word [ebp - 0x22], ax
movzx eax, word [ebp - 0x20]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov eax, edx
sub eax, ecx
mov word [ebp - 0x20], ax
mov dword [esp], 0xfffffff5
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call eax
sub esp, 4
mov edx, dword [ebp - 0x22]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call eax
sub esp, 8
nop
leave
ret
Function at 0x4023e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], 0x405a20
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x402fb4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402fd3
mov eax, 0
jmp 0x403017
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402ff6
mov eax, 0
jmp 0x403017
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x403012
mov eax, 0
jmp 0x403017
mov eax, 1
leave
ret

Function at 0x403019
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x403078
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x403070
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x403070
mov eax, dword [ebp - 4]
jmp 0x40308c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40304d
mov eax, 0
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x408b41
Capabilities:
Encode data using xor

Disassembly:
cld
nop
call 0x408b41
sub dh, 0
mov esi, esi
nop
nop
nop
pop ebp
jmp 0x408b45
push eax
pushfd
pop eax
test ah, 1
jne 0x408b4b
pop eax
sub ebp, 0x401005
mov ecx, ecx
push ecx
pushfd
pop ecx
test ch, 1
jne 0x408b5c
pop ecx
cld
or edx, 0
xor ax, 0
or cx, 0
xor di, 0
or dx, 0
xchg ebp, ebp
cld
cld
nop
cld
nop
lea edi, [ebp + 0x401132]
xchg ebx, ebx
push ecx
pushfd
pop ecx
test ch, 1
jne 0x408b88
pop ecx
nop
mov bp, bp
mov esi, esi
add di, 0
push ebx
pushfd
pop ebx
test bh, 1
jne 0x408b9b
pop ebx
or si, 0
nop
cld
nop
cld
mov edx, 0x27c
sub dx, 0
jmp 0x408bb2
cld
add bp, 0
xchg bp, bp
xchg ecx, ecx
add dx, 0
nop
mov al, al
jmp 0x408bc6
nop
cld
mov cl, byte [edi]
mov ebx, ebx
cld
cld
xchg edi, edi
sub cx, 0
push eax
pushfd
pop eax
test ah, 1
jne 0x408bda
pop eax
cld
cld
nop
nop
rol cl, 0xd8
push ebx
pushfd
pop ebx
test bh, 1
jne 0x408bea
pop ebx
push ecx
pushfd
pop ecx
test ch, 1
jne 0x408bf3
pop ecx
xchg cl, cl
nop
cld
nop
mov byte [edi], cl
jmp 0x408c00
jmp 0x408c03
xchg bl, bl
add di, 0
add bp, 0
jmp 0x408c10
xor cl, 0
cld
cld
cld
dec edx
mov cl, cl
sub ah, 0
xchg eax, eax
jmp 0x408c21
sub edi, 0
nop
nop
xor edi, 0
sub ch, 0
mov ebx, ebx
push eax
pushfd
pop eax
test ah, 1
jne 0x408c34
pop eax
nop
cld
inc edi
add bx, 0
mov sp, sp
cld
xor si, 0
mov bl, bl
add edx, 0
or esi, 0
push ebx
pushfd
pop ebx
test bh, 1
jne 0x408c54
pop ebx
sub sp, 0
nop
cld
nop
test edx, edx
jne 0x408bc8
pushal
mov esi, entry0
mov eax, 0x4c78453e
mov dword [esi], eax
mov eax, 0x303ca143
mov dword [esi + 4], eax
mov eax, 0xc73e814e
mov dword [esi + 8], eax
mov eax, 0xc84c850f
mov dword [esi + 0xc], eax
mov eax, 0xcf1cc184
mov dword [esi + 0x10], eax
mov eax, 0xd71cd184
mov dword [esi + 0x14], eax
mov eax, 0xc4808786
mov dword [esi + 0x18], eax
popal
jmp 0x408ca8
pushal
pushfd
mov esi, entry0
mov edi, esi
mov ecx, 0xcba
mov ebx, 0xc738850f
lodsd eax, dword [esi]
xor eax, ebx
stosd dword es:[edi], eax
loop 0x408cbb
popfd
popal
jmp 0x408cc7
pushal
pushfd
mov esi, section..data
mov edi, esi
mov ecx, 0x6e8
mov ebx, 0xc738850f
lodsd eax, dword [esi]
xor eax, ebx
stosd dword es:[edi], eax
loop 0x408cda
popfd
popal
mov esi, 0x4011cb
jmp esi
Function at 0x402000
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 0x402015
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402054
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402050
lea ebx, [ebx]
cmp esi, edx
jae 0x402054
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402040
cmp esi, edx
jb 0x402059
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4046c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412b18
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x41a3b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00404960
mov dword [edi], eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.JSON
mov esi, eax
push 0x66
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp byte [edx], 0
jne 0x40474b
xor ecx, ecx
jmp 0x404759
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404750
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004026d0
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00408d4d
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00408721
mov esi, eax
cmp edi, esi
je 0x4047ba
mov ecx, dword [edi]
push dword [ecx + 4]
mov ecx, edi
call fcn.00402f30
mov ecx, dword [edi]
mov byte [ebp - 0x10], 0
push dword [ebp - 0x10]
mov dword [ecx + 4], ecx
mov ecx, edi
mov eax, dword [edi]
push esi
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov dword [edi + 4], 0
call fcn.00403e80
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00402e00
cmp dword [ebp - 0x18], 0x10
jb 0x4047d7
push dword [ebp - 0x2c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4052a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412c08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x41a3b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
xor esi, esi
mov word [ebp - 0x28], ax
push 0x41a054
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
call fcn.004027d0
push 0xb
push str.WebResource
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.004031b0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push 1
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405340
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
mov ecx, 1
cmove esi, ecx
cmp dword [ebp - 0x14], 8
jb 0x405351
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411746
mov esp, ebp
pop ebp
ret