joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f1d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4361b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x202
jne 0x41f3aa
mov eax, dword [ebp + 8]
push esi
cmp eax, 5
jne 0x41f25c
push 0
push 0x42b30c
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x41f21a
push 0
push 0
push 0x504
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 1
push 0x1b
call esi
push 0
push 2
push 1
push 0x1b
call esi
push 0
push 0
push 0x42c4f8
push 0x42c50c
call dword [sym.imp.crt.dll_Ordinal_38]
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042391e
mov esp, ebp
pop ebp
ret 0x10
push edi
cmp eax, 3
jne 0x41f300
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 1
push 0x1b
call esi
push 0
push 2
push 1
push 0x1b
call esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
push 0x15c
lea edx, [ebp - 0x368]
push 0
mov ecx, 0x2b
mov esi, str._TypeStormBox__OpenPage_http:__moviebox.baofeng.net_newbox1.0_user_user_index.html_
lea edi, [ebp - 0x414]
push edx
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...StormPlayer.exe
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 5
push 0
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
jmp 0x41f39e
cmp eax, 2
jne 0x41f3a8
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 1
push 0x1b
call esi
push 0
push 2
push 1
push 0x1b
call esi
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call sub.MSVCR100.dll_memset
push 0x15c
lea eax, [ebp - 0x368]
push 0
mov ecx, 0x2b
mov esi, str._TypeStormBox__OpenPage_http:__moviebox.baofeng.net_newbox1.0_user_user_index.html_
lea edi, [ebp - 0x414]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...StormPlayer.exe
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 5
push 0
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042391e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41f4b0
Capabilities:
Check if file exists
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4361b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x218], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push 0x23
lea edx, [ebp - 0x20c]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.BaofengStormPlayerProfiles_vodloadingcheck.dat
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41f536
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042391e
mov esp, ebp
pop ebp
ret
push ebx
push edi
push edi
push 3
push edi
push 1
push Ordinal_4
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f5e5
lea eax, [ebp - 0x214]
push eax
push ebx
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x214], edi
jne 0x41f5e5
cmp eax, 0x400
ja 0x41f5e5
push 0
lea ecx, [ebp - 0x210]
push ecx
push eax
add esi, 8
push esi
push ebx
mov edi, 8
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f5c3
mov eax, dword [ebp - 0x210]
cmp eax, 4
jbe 0x41f5c3
mov dword [esi + eax], 0
lea edi, [eax + 0x10]
mov dword [esi + eax + 4], 0x64
mov edx, dword [ebp - 0x218]
push ebx
mov dword [edx], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042391e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0042391e
mov esp, ebp
pop ebp
ret
Function at 0x420970
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x42097f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [section..data]
test eax, eax
je 0x42098d
call fcn.00420820
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x420a81
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x4377b0]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4377b0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4377b0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4377b0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4377b0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4377b0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4377b0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4377b0]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x4209a7
pop edi
pop ebx
test edx, edx
je 0x420aa1
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4377b0]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x420a85
not eax
pop esi
ret 0xc
Function at 0x4234aa
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x437bb0], 0
push esi
push edi
jne 0x423420
call fcn.0042338c
test eax, eax
je 0x423465
mov eax, dword [0x437bb0]
cmp eax, 1
jne 0x423441
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x423465
jmp 0x4234a7
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4234a7
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 0x423469
xor eax, eax
jmp 0x4234a7
mov eax, dword [esi]
push dword [0x437bb0]
call edi
mov edi, eax
test edi, edi
je 0x42348b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4234a7
lea edi, [esi + 0xff0]
push esi
push dword [0x437bb0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x423491
mov eax, esi
pop edi
pop esi
ret
jmp 0x42340c

Function at 0x42391e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4361b0]
jne 0x423928
repz ret
jmp fcn.00423e86
Function at 0x4aeeb2
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb02490
push eax
push dword fs:[0]
add byte [eax], al
add byte [eax], al
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x4aef32
arpl word [edx + esi], si
mov ch, dh
test ebp, edx
cmp eax, 0xaa4d9595
outsd dx, dword [esi]
sub cl, ah
invalid
aaa
test al, 0x12
test byte [edx], bh
sbb bl, dh
dec esp
leave
inc edi
sahf
mov cl, 0x1d
sbb byte [edi], 0x43
sbb ebp, edx
outsb dx, byte [esi]
ror byte [ebx - 0x3675d5a3], cl
xchg ecx, eax
mov esp, 0xd850c2d4
aad 0x82
popal
mov ebp, ebp
loop 0x4aeebb
inc ebp
xchg ebx, eax
mov byte [eax + eax*8], bh
insb byte es:[edi], dx
movsd dword es:[edi], dword [esi]
sbb al, 0x7c
or esp, edx
inc ebx
invalid
test eax, 0xd89deeea
or al, byte [edx + 0x6e19f7af]
aas
cdq
xor ebx, dword [eax]
movsd dword es:[edi], dword [esi]
mov eax, 0x99c3f0f5
jae 0x4aeef2
loope 0x4aefc3
invalid
and ebp, dword [ecx]
push ecx
movsd dword es:[edi], dword [esi]
inc ebx
cmc
sbb al, 0xc
nop
cmc
mov al, byte [0x14b3f675]
movsb byte es:[edi], byte [esi]
imul esi, dword [esi + 0x43], 0x6406ac5e
sbb ebx, ecx
into
xlatb
jl 0x4af005
movsd dword es:[edi], dword [esi]
or ebx, dword [ecx]
mov dl, 0x84
in eax, 0x71
adc byte [ecx - 0x4d], cl
out dx, al
ret
lds edx, [edi - 0x78]
das
cmp dword [ecx - 0x6c], edi
xor eax, 0xfb0a5852
and byte [ebx - 0x44], ah
nop
pushal
jns 0x4aef8c
outsd dx, dword [esi]
scasb al, byte es:[edi]
dec esi
mov ebp, dword [0x15f18417]
adc dword [esi + 0x2b0df096], ecx
adc eax, 0xff89b4bc
rcr byte [esi + 0x2d65bc22], cl
push cs
insd dword es:[edi], dx
lodsd eax, dword [esi]
clc
xchg ebx, eax
push 0xffffffffffffffe7
daa
mov dh, 0x9a
cmp cl, ch
adc dword [ebx + 0x28], edi
adc al, 0x70
fst st(5)
mov eax, 0x1e602128
sub byte [ecx], ah
pushal
push ds
inc ebx
sub byte [ecx + ebx - 0x5f], bh
xchg edx, eax
sub ebx, dword [esi - 0x70ee921]
lodsb al, byte [esi]
mov byte [0x5efde95e], al
jmp 0x6a55f573
Function at 0x4339e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push 0x464308
push eax
mov dword fs:[0], esp
mov eax, dword [edx + 0xc]
movzx eax, word [eax + 6]
mov ecx, dword [edx + 0x18]
sub eax, 2
sub esp, 0x1c
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x10]
push esi
cmp ecx, dword [eax + 8]
jne 0x433a4e
cmp ecx, 0x5000
jne 0x433a4e
mov ecx, dword [eax + 0x38]
add eax, 0x28
test ecx, ecx
jne 0x433a4e
cmp dword [eax + 8], 0x1000
jne 0x433a4e
mov ecx, dword [edx + 4]
sub eax, 0x28
mov eax, dword [eax + 0x14]
dec ecx
cmp ecx, eax
jbe 0x433a4e
mov edx, dword [edx]
cmp byte [edx + ecx], 0
jne 0x433a60
dec ecx
cmp ecx, eax
ja 0x433a43
pop esi
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
cmp byte [edx + ecx], 0xc3
jne 0x433a4e
push 0x406cd4
lea ecx, [esp + 8]
call fcn.00430dc0
mov eax, dword [esp + 0x38]
lea edx, [eax + eax*2]
mov eax, dword [edx*4 + 0x4037e0]
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0
call fcn.00431fd0
push 2
push 0x406cd0
lea ecx, [esp + 0xc]
call fcn.00431e90
mov esi, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 4]
call fcn.00430be0
lea ecx, [esp + 4]
mov byte [esi], 1
call fcn.0043c7b0
mov ecx, dword [esp + 0x20]
pop esi
mov al, 1
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x433ae0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46432b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x46c
mov eax, 0xab00
push ebx
mov edx, 0xeb
mov ecx, 1
mov word [esp + 8], ax
mov word [esp + 0x12], ax
mov word [esp + 0x14], ax
mov word [esp + 0x16], ax
mov word [esp + 0x1e], ax
mov word [esp + 0x24], ax
mov word [esp + 0x26], ax
mov word [esp + 0x28], ax
xor ebx, ebx
mov eax, 0x64
push esi
mov esi, dword [esp + 0x484]
mov word [esp + 0x32], ax
mov word [esp + 0x3e], ax
cmp dword [esi + 0x20], ebx
mov word [esp + 8], dx
mov word [esp + 0xa], cx
mov word [esp + 0x12], dx
mov word [esp + 0x14], cx
mov word [esp + 0x1e], dx
mov word [esp + 0x20], cx
mov edx, 0x68
mov ecx, 0x67
mov word [esp + 0xe], 0xe3
mov word [esp + 0x10], 5
mov word [esp + 0x1c], 0x59
mov word [esp + 0x24], 0x90
mov word [esp + 0x26], dx
mov word [esp + 0x2e], bx
mov word [esp + 0x30], cx
mov word [esp + 0x34], 0xff
mov word [esp + 0x36], 0x36
mov word [esp + 0x38], bx
mov word [esp + 0x3a], bx
mov word [esp + 0x3c], cx
mov word [esp + 0x40], 0x89
mov word [esp + 0x42], 0x26
mov word [esp + 0x44], bx
mov word [esp + 0x46], bx
mov word [esp + 0x48], dx
mov word [esp + 0x4a], 0x33
mov word [esp + 0x4c], 0xc0
mov word [esp + 0x4e], 0xf1
jne 0x433c0c
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x46c]
mov dword fs:[0], ecx
add esp, 0x478
ret
push edi
mov edi, dword [esp + 0x48c]
mov eax, dword [edi + 0xc]
movzx eax, word [eax + 6]
mov ecx, dword [edi + 0x18]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*8 - 0x18]
lea eax, [ecx + eax*8 - 0x28]
cmp edx, dword [eax + 8]
jne 0x433cfa
push 0x24
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x78]
call fcn.00431c40
cmp dword [esp + 0x74], 0x24
mov edi, dword [edi]
jg 0x433cfa
mov ecx, dword [esi + 0x20]
lea edx, [edi + ecx - 0x24]
push 0x24
push edx
lea ecx, [esp + 0x78]
call fcn.00431cc0
cmp al, bl
je 0x433cfa
push 0x406cf4
lea ecx, [esp + 0x58]
call fcn.00430dc0
mov eax, dword [esp + 0x490]
lea eax, [eax + eax*2]
mov edi, dword [eax*4 + 0x4037e0]
mov eax, edi
mov dword [esp + 0x480], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x433c95
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x5c]
call fcn.00431e90
push 2
push 0x406cd0
lea ecx, [esp + 0x5c]
call fcn.00431e90
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esi + 4]
call fcn.00430be0
cmp dword [esp + 0x6c], 0x10
mov byte [esi], 1
jb 0x433ce0
mov edx, dword [esp + 0x58]
push edx
call fcn.00459a0d
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x46c]
mov dword fs:[0], ecx
add esp, 0x478
ret
mov ecx, dword [esp + 0x478]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x478
ret
Function at 0x436020
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push 0x407238
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
jne 0x436072
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x10
push 0x407230
push 0x407210
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
pop ebx
add esp, 0x108
ret
mov eax, dword [0x4037e0]
push esi
push edi
xor edi, edi
test eax, eax
je 0x4360cd
mov esi, 0x4037e0
movzx ecx, word [esi + 8]
push ecx
push eax
push edi
lea edx, [esp + 0x20]
push 0x4071f8
push edx
call dword [sym.imp.user32.dll_wsprintfA]
lea eax, [esp + 0x28]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4360a5
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [esi + 0xc]
add esi, 0xc
inc edi
test eax, eax
jne 0x436084
mov eax, dword [0x4035e0]
xor esi, esi
test eax, eax
je 0x436131
mov ebx, 0x4035e0
push ebp
mov edi, edi
push eax
lea eax, [esi + edi]
push eax
lea ecx, [esp + 0x20]
push 0x4071e0
push ecx
call dword [sym.imp.user32.dll_wsprintfA]
lea eax, [esp + 0x28]
add esp, 0x10
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436100
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
sub eax, ebp
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [ebx + 0xc]
add ebx, 0xc
inc esi
test eax, eax
jne 0x4360e0
mov ebx, dword [esp + 0x14]
pop ebp
lea edx, [esi + edi - 1]
push edx
lea eax, [esp + 0x18]
push 0x4071a0
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x14]
pop edi
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436152
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
add esp, 0x108
ret

Function at 0x438480
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, ecx
mov cl, byte [esp + 0x10]
test cl, cl
push edi
mov eax, 0xc0000000
mov edi, 4
mov ebx, 2
mov byte [esi], cl
je 0x4384aa
mov edi, ebx
mov eax, 0x80000000
mov ebx, 4
push 0
push 0x80
push 3
push 0
push 1
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x43850d
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, dword [esi + 4]
push 0
push 0
push 0
push edi
push 0
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 8], eax
je 0x438506
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x438515
mov ecx, esi
call fcn.00438430
pop edi
pop esi
xor al, al
pop ebx
ret 8
pop edi
pop esi
mov al, 1
pop ebx
ret 8
Function at 0x439e90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x439ee9
test al, 0x10
je 0x439ee9
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439eb0
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
push edi
je 0x439ed5
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x439ec4
mov ax, word [0x4073c8]
mov word [edi], ax
dec esi
mov edi, esi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x439ed8
mov ecx, dword [0x4073c4]
mov dword [edi], ecx
pop edi
pop esi
ret

Function at 0x43a6c0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 1
mov ecx, 0x468db0
call fcn.004399e0
mov ecx, dword [esp + 4]
push ecx
push 0
push 1
call dword [sym.imp.kernel32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x43a701
push 0x40000
push 0x407598
push 0x40757c
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
pop esi
pop ecx
ret
push 0
push esi
call dword [sym.imp.kernel32.dll_TerminateProcess]
test eax, eax
jne 0x43a72e
push 0x40000
push 0x407598
push 0x40755c
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
pop ecx
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x43ae40
Capabilities:
Compare security identifiers
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
push eax
mov ax, cs
test al, 4
jne 0x43ae5d
mov dword [ebp - 8], 1
pop eax
cmp dword [ebp - 8], ebx
je 0x43af76
lea eax, [ebp - 8]
push eax
push ebx
push 8
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.advapi32.dll_OpenThreadToken]
test eax, eax
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
jne 0x43aead
call esi
cmp eax, 0x3f0
jne 0x43af64
lea ecx, [ebp - 8]
push ecx
push 8
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x43af64
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.advapi32.dll_GetTokenInformation]
lea edx, [ebp - 4]
push edx
push ebx
push ebx
push 2
push eax
call edi
test eax, eax
jne 0x43af64
call esi
cmp eax, 0x7a
jne 0x43af64
mov ecx, dword [ebp - 4]
add ecx, 3
and ecx, 0xfffffffc
push ecx
call fcn.00459574
mov ecx, dword [ebp - 8]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 4]
push edx
push eax
push esi
push 2
push ecx
call edi
test eax, eax
je 0x43af5b
lea edx, [ebp - 0xc]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 5
call dword [sym.imp.advapi32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x43af5b
mov eax, dword [esi]
xor edi, edi
cmp eax, ebx
jbe 0x43af5b
lea ebx, [esi + 4]
lea esp, [esp]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx]
push ecx
push edx
call dword [sym.imp.advapi32.dll_EqualSid]
test eax, eax
jne 0x43af6d
mov eax, dword [esi]
inc edi
add ebx, 8
cmp edi, eax
jb 0x43af40
push esi
call fcn.0045a2f6
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0045a2f6
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43af80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
mov eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
xor ebx, ebx
push 0xf003f
push ebx
push 0x40764c
push 0x80000001
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x43afc9
xor eax, eax
pop ebx
add esp, 0x10
ret
push esi
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x407640
push ecx
call esi
test eax, eax
je 0x43aff8
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov dl, byte [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
mov byte [0x4687d4], dl
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x407634
push eax
call esi
test eax, eax
jne 0x43aff0
mov cl, byte [esp + 8]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
mov byte [0x4688e4], cl
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x40762c
push edx
call esi
test eax, eax
jne 0x43aff0
mov al, byte [esp + 8]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov byte [0x468c04], al
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x40761c
push ecx
call esi
test eax, eax
jne 0x43aff0
mov dl, byte [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
mov byte [0x468a99], dl
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x40760c
push eax
call esi
test eax, eax
jne 0x43aff0
mov cl, byte [esp + 8]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
mov byte [0x468658], cl
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x407600
push edx
call esi
test eax, eax
jne 0x43aff0
mov al, byte [esp + 8]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov byte [0x4684ac], al
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x4075ec
push ecx
call esi
test eax, eax
jne 0x43aff0
mov dl, byte [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
mov byte [0x468620], dl
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x4075e4
push eax
call esi
test eax, eax
jne 0x43aff0
mov cl, byte [esp + 8]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
mov byte [0x468a98], cl
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x4075dc
push edx
call esi
test eax, eax
jne 0x43aff0
mov ecx, dword [esp + 0xc]
mov al, byte [esp + 8]
push ecx
mov byte [0x468af4], al
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret