joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423e70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x446690
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4561c4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 2
cmp dword [esp + 0x88], 0
mov esi, 8
jne 0x423eda
lea ecx, [esp + 0xc]
call fcn.00423a60
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x38], 3
call fcn.00401990
cmp dword [esp + 0x24], esi
jb 0x423eda
mov eax, dword [esp + 0x10]
push eax
call fcn.0042bc90
add esp, 4
mov edx, dword [esp + 0x78]
cmp dword [esp + 0x8c], esi
jae 0x423eeb
lea edx, [esp + 0x78]
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x6c], esi
jae 0x423ef9
lea ecx, [esp + 0x58]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], esi
jae 0x423f07
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x74]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
cmp dword [esp + 0x50], esi
jb 0x423f2a
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042bc90
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], cx
cmp dword [esp + 0x6c], esi
jb 0x423f54
mov edx, dword [esp + 0x58]
push edx
call fcn.0042bc90
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
cmp dword [esp + 0x8c], esi
jb 0x423f81
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0042bc90
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x425630
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x445e16
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4561c4]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4561c4]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
xor ebx, ebx
mov eax, 1
mov dword [esp + 0x14], ebx
test byte [0x45c650], al
jne 0x4256b0
or dword [0x45c650], eax
xor eax, eax
push 0x4479d0
mov dword [0x45c64c], 7
mov dword [0x45c648], ebx
mov word [0x45c638], ax
call fcn.0042da29
add esp, 4
cmp dword [0x45c648], ebx
je 0x4256cd
xor ecx, ecx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], cx
jmp 0x4257c6
push ebx
push 0x1a
lea edx, [esp + 0x58]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4256e3
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x54]
mov esi, 0x45c634
call fcn.00401b20
mov edi, esi
lea eax, [esp + 0x34]
call fcn.00423110
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov dword [esp + 0x26c], ebx
call fcn.00401990
mov edi, 8
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x4c], edi
jb 0x425740
mov eax, dword [esp + 0x38]
push eax
call fcn.0042bc90
add esp, 4
push 0x45c634
mov ebx, 0x44cf84
lea esi, [esp + 0x1c]
call fcn.004057f0
add esp, 4
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov ecx, 0x45c634
mov dword [esp + 0x26c], 1
call fcn.00401990
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x30], edi
jb 0x42578e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042bc90
add esp, 4
xor edx, edx
cmp dword [0x45c64c], edi
mov edi, dword [0x45c638]
mov esi, 7
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
jae 0x4257b5
mov edi, 0x45c638
call fcn.004236c0
xor eax, eax
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], ax
push 0xffffffffffffffff
push ebx
mov eax, 0x45c634
mov ecx, ebp
call fcn.00401990
mov eax, ebp
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0042bc9b
add esp, 0x254
ret
Function at 0x42a46f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x458fa4], 0
push esi
jne 0x42a3e2
call fcn.0042a308
test eax, eax
je 0x42a425
mov eax, dword [0x458fa4]
cmp eax, 1
jne 0x42a403
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42a425
pop esi
ret
push eax
call dword [0x458fac]
test eax, eax
jne 0x42a46d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42a429
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x458fa4]
call dword [0x458fac]
mov edi, eax
test edi, edi
je 0x42a44e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42a46a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x458fa4]
call dword [0x458fa8]
add edi, 0x10
cmp edi, esi
jb 0x42a456
mov eax, edi
pop edi
pop esi
ret
jmp 0x42a3cf

Function at 0x42bc9b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4561c4]
jne 0x42bca5
repz ret
jmp fcn.004320ac

Function at 0x43ecb5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043378e
and dword [ebp - 4], 0
cmp dword [0x459de0], 0
mov ebx, eax
jne 0x43ed66
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43ee17
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43ee17
push eax
call fcn.0043371c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x459de0], eax
call esi
push eax
call fcn.0043371c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x459de4], eax
call esi
push eax
call fcn.0043371c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x459de8], eax
call esi
push eax
call fcn.0043371c
pop ecx
mov dword [0x459df0], eax
test eax, eax
je 0x43ed66
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043371c
pop ecx
mov dword [0x459dec], eax
mov eax, dword [0x459dec]
cmp eax, ebx
je 0x43edbe
cmp dword [0x459df0], ebx
je 0x43edbe
push eax
call fcn.00433797
push dword [0x459df0]
mov esi, eax
call fcn.00433797
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43edbe
test edi, edi
je 0x43edbe
call esi
test eax, eax
je 0x43edb5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43edb5
test byte [ebp - 0xc], 1
jne 0x43edbe
or dword [ebp + 0x10], 0x200000
jmp 0x43edf7
mov eax, dword [0x459de4]
cmp eax, ebx
je 0x43edf7
push eax
call fcn.00433797
pop ecx
test eax, eax
je 0x43edf7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43edf7
mov eax, dword [0x459de8]
cmp eax, ebx
je 0x43edf7
push eax
call fcn.00433797
pop ecx
test eax, eax
je 0x43edf7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x459de0]
call fcn.00433797
pop ecx
test eax, eax
je 0x43ee17
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43ee19
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4e8e53
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4e8e9b
call fcn.004e7391
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4e8e9b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4e8ede
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4e8ec7
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4e8ec7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4e8edb
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4ea9bf
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 1
mov ecx, esi
test al, 1
je 0x4ea9e3
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x4ea9f1
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x4ea9dd
xor eax, eax
inc eax
pop esi
ret
Function at 0x4ebedf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.004ebb81
push eax
push esi
push dword [ebp + 8]
call fcn.004ebb36
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004ebb81
push eax
push esi
push dword [ebp + 8]
call fcn.004ebb36
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004ebb81
push eax
push esi
push dword [ebp + 8]
call fcn.004ebb36
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004ebb71
mov ecx, 0x888d1118
popfd
jl 0x4ebff6
invalid
invalid

Function at 0x4ec223
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4ec225
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4ec220
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4ec20a
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4ec212
cmp edx, ebx
jne 0x4ec360
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4ec1e1
add eax, dword [eax + 4]
jmp 0x4ec1ce
mov dword [ebp + 0xc], ebx
jmp 0x4ec230
Function at 0x4ec26a
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4ec248
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4ec266
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4ec2c4
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4ec2ab
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4ec2b4
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4ec2be
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4ec2a0
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4ec22a
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4ec311
dec eax
je 0x4ec308
sub eax, 3
je 0x4ec2ff
mov dword [ebp - 4], 0x40
jmp 0x4ec32e
mov dword [ebp - 4], 4
jmp 0x4ec314
mov dword [ebp - 4], 0x20
jmp 0x4ec314
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4ec360
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4ec2e0
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004ebb71
cmp byte [eax], cl
outsb dx, byte [esi]
or al, 0xff
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x4ec36c
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ec2b2
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4ec248
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4ec266
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4ec2c4
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4ec2ab
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4ec2b4
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4ec2be
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4ec2a0
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4ec22a
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4ec311
dec eax
je 0x4ec308
sub eax, 3
je 0x4ec2ff
mov dword [ebp - 4], 0x40
jmp 0x4ec32e
mov dword [ebp - 4], 4
jmp 0x4ec314
mov dword [ebp - 4], 0x20
jmp 0x4ec314
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4ec360
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4ec2e0
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004ebb71
cmp byte [eax], cl
outsb dx, byte [esi]
or al, 0xff
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x4ec36c
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ecfd5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
invalid
test edx, esp
clc
invalid
Function at 0x4fcff4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x55016c
call fcn.0051287b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402df0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4fd056
call fcn.004e6c6b
cmp eax, 1
jne 0x4fd056
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x560f18
push eax
call fcn.00410f80
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004018d0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004013d0
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004013d0
mov eax, esi
call fcn.00512953
ret 0x10

Function at 0x4fd07f
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x55016c
call fcn.0051287b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402df0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4fd0e1
call fcn.004e6c6b
cmp eax, 1
jne 0x4fd0e1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x560f18
push eax
call fcn.00410f80
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004018d0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004013d0
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004013d0
mov eax, esi
call fcn.00512953
ret 0x14

Function at 0x5008a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x5008ae
pop ebp
ret
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x5008bb
pop ebp
jmp fcn.004ebded
push 0
push eax
call fcn.005007f4
and eax, 0x30
pop ebp
ret
Function at 0x50615c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.004e7391
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x506189
xor eax, eax
jmp 0x50622f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x506182
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x506182
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004dcae4
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x5061e0
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x5061cf
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00505c95
push edi
mov ebx, eax
call fcn.004dcb13
pop ecx
test ebx, ebx
je 0x506222
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00505fe1
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00506095
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x50bb49
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b3940]
jne 0x50bb53
repz ret
jmp fcn.00514b93
Function at 0x40df30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40df57
mov eax, dword [eax + 0x2c8]
mov edx, dword [esp + 0x14]
and eax, edx
cmp eax, dword [esp + 0x14]
sete al
and eax, 0xff
add esp, 0xc
ret
push ecx
push 0xf47
push str.openbor.c
push 0x54c246
call sub.msvcrt.dll__assert
lea esi, [esi]

Function at 0x40df70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x40e037
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x40e061
test edi, edi
je 0x40e04c
xor ecx, ecx
xor ebp, ebp
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 0x24]
mov dl, byte [ecx + eax]
cmp dl, 0x23
jbe 0x40dfd3
test esi, esi
je 0x40dfb5
mov ebp, ecx
mov byte [ecx + edi], dl
inc ecx
xor esi, esi
cmp ecx, 0x1fe
jbe 0x40e017
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
add esp, 0xc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov al, dl
jmp dword [eax*4 + 0x54c25c]
xor edx, edx
mov byte [ecx + edi], 0
test esi, esi
jne 0x40e005
cmp ebp, ecx
je 0x40e005
mov esi, dword [esp + 0x20]
lea eax, [edi + ebp]
mov dword [esi + ebx*4 + 0x104], eax
mov eax, ecx
sub eax, ebp
mov dword [esi + ebx*4 + 4], eax
inc ebx
test edx, edx
jne 0x40dfc3
inc ecx
mov esi, 1
cmp ecx, 0x1fe
ja 0x40dfc3
cmp ebx, 0x3f
jbe 0x40dfa3
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
add esp, 0xc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
jmp 0x40dfe2
push eax
push 0xa82
push str.openbor.c
push str.list
call sub.msvcrt.dll__assert
push ebx
push 0xa84
push str.openbor.c
push str.output
call sub.msvcrt.dll__assert
push esi
push 0xa83
push str.openbor.c
push str.input
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]

Function at 0x40e080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
test edx, edx
je 0x40e0b5
mov al, byte [edx]
test al, al
je 0x40e0a5
cmp al, 0x2b
je 0x40e0b0
cmp al, 0x2d
je 0x40e0b0
sub eax, 0x30
mov edx, 1
cmp al, 9
jbe 0x40e0a7
xor edx, edx
mov eax, edx
add esp, 0xc
ret
mov al, byte [edx + 1]
jmp 0x40e099
push eax
push 0xa54
push str.openbor.c
push 0x54c2ec
call sub.msvcrt.dll__assert
lea esi, [esi]