joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420110
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004269a0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004269a0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x420170
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xd0507c]
test esi, esi
jle 0x420290
mov eax, dword [0xd05080]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4201a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x420227
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x420190
mov dword [esp], ebx
call fcn.00420af0
mov edi, eax
test eax, eax
je 0x4202b7
mov eax, dword [0xd05080]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00420c30
mov edx, dword [0xd05080]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x420297
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x420220
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x420230
add dword [0xd0507c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xd05080]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x420220
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00420110
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4201ae
mov eax, dword [0xd05080]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00420110
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00420110
lea esi, [esi]
nop
Function at 0x420770
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xd05098
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xd05090]
sub esp, 4
test ebx, ebx
je 0x4207c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4207be
test esi, esi
je 0x4207be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4207a0
mov dword [esp], 0xd05098
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x420af0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x420b15
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x420b20
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x420b15
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x420b68
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x420b5e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x420b6a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x420b50
xor eax, eax
pop ebx
pop esi
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x28287d82
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..pdata
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x475c5270
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x44d940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3d000]
push edi
jmp 0x44d95a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44d961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44d950
mov eax, 1
add ebx, ebx
jne 0x44d973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44d984
jne 0x44d9a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44d9a3
dec eax
add ebx, ebx
jne 0x44d990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44d968
add ebx, ebx
jne 0x44d99f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44d9f5
xor ecx, ecx
sub eax, 3
jb 0x44d9bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44da2a
sar eax, 1
mov ebp, eax
jmp 0x44d9c6
add ebx, ebx
jne 0x44d9c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44d994
inc ecx
add ebx, ebx
jne 0x44d9d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44d994
add ebx, ebx
jne 0x44d9e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44d9d6
jne 0x44d9f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44d9d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44da14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44da06
jmp 0x44d956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44da14
add edi, ecx
jmp 0x44d956
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44da32
cmp byte [edi], 0x12
jne 0x44da32
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 al, bl
loop 0x44da37
lea edi, [esi + 0x4b000]
mov eax, dword [edi]
or eax, eax
je 0x44daaf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x75d70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x75e50]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44da64
mov ecx, edi
jns 0x44da93
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x75e58]
or eax, eax
je 0x44daa9
mov dword [ebx], eax
add ebx, 4
jmp 0x44da81
call dword [esi + 0x75e54]
mov ebp, dword [esi + 0x75e5c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44dae3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x403e50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x43f474]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 1
jne 0x403e90
mov eax, 1
jmp 0x403ee1
cmp dword [ebp - 0x90], 2
jne 0x403edf
cmp dword [ebp - 0x9c], 5
jne 0x403eb4
cmp dword [ebp - 0x98], 0
jne 0x403eb4
mov eax, 2
jmp 0x403ee1
cmp dword [ebp - 0x9c], 5
jne 0x403ecf
cmp dword [ebp - 0x98], 1
jne 0x403ecf
mov eax, 3
jmp 0x403ee1
cmp dword [ebp - 0x9c], 5
jbe 0x403edf
mov eax, 4
jmp 0x403ee1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419e3a
mov esp, ebp
pop ebp
ret
Function at 0x409580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4335f8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x43f474]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x4095c0
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x4095cc
mov al, 1
jmp 0x40976f
mov dword [ebp - 0x10], 8
call fcn.00403ff0
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00403ff0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00403fa0
add esp, 8
movzx eax, al
test eax, eax
je 0x40960f
xor al, al
jmp 0x40976f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00408340
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.004085b0
mov ecx, eax
call fcn.00409890
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.004100a0
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.004085b0
mov ecx, eax
call fcn.00409890
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call fcn.0040ac00
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40968a
cmp dword [ebp - 0x5c], 1
je 0x409691
cmp dword [ebp - 0x5c], 3
je 0x40972b
jmp 0x409743
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004085b0
mov ecx, eax
call fcn.00409890
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x4096f4
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.004085b0
mov ecx, eax
call fcn.00409890
push eax
call fcn.0041b03f
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x4096f4
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004018d0
mov al, byte [ebp - 0x51]
jmp 0x40976f
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x409717
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004018d0
mov al, byte [ebp - 0x52]
jmp 0x40976f
cmp dword [ebp - 0x38], 0
jne 0x409729
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004083c0
jmp 0x40975b
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004018d0
mov al, byte [ebp - 0x53]
jmp 0x40976f
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004018d0
mov al, byte [ebp - 0x54]
jmp 0x40976f
jmp 0x409622
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00419e3a
mov esp, ebp
pop ebp
ret
Function at 0x40ff90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x43f474]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x13d], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0xffffffff
jne 0x40ffca
xor al, al
jmp 0x410052
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x40fffd
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x410052
mov dword [ebp - 0x138], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0040fe90
add esp, 8
test eax, eax
je 0x410027
mov byte [ebp - 0x13d], 1
jmp 0x41003f
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40fffd
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x13d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419e3a
mov esp, ebp
pop ebp
ret
Function at 0x4102a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x43f474]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x31], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
mov dword [ebp - 0x2c], 0x34
push 0
mov ecx, dword [ebp + 8]
call fcn.004018f0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
ja 0x410313
xor al, al
jmp 0x41041d
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0041b2c7
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
jne 0x410335
xor al, al
jmp 0x41041d
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
call fcn.004018f0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x410402
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
push ecx
push 0x438278
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x410402
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x438294
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x410402
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push 0x438298
push 0x20
lea eax, [ebp - 0x28]
push eax
call fcn.0041b2a9
add esp, 0x1c
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00415f60
mov byte [ebp - 0x31], 1
cmp dword [ebp - 0x3c], 0
je 0x41041a
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0041ae68
add esp, 4
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00419e3a
mov esp, ebp
pop ebp
ret
Function at 0x410740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433470
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x43f474]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.004105f0
add esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x410799
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004018d0
jmp 0x410841
mov byte [ebp - 0x31], 1
mov byte [ebp - 0xd], 1
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x410832
push 0x4382d0
lea ecx, [ebp - 0x30]
call fcn.004018f0
push eax
call fcn.0041c10a
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4107dd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004018d0
jmp 0x410841
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401790
mov byte [ebp - 4], 1
push 0x4382d4
lea ecx, [ebp - 0x54]
call fcn.00415fc0
mov ecx, dword [ebp - 0x38]
push ecx
push 1
lea ecx, [ebp - 0x54]
call fcn.004100a0
push eax
lea ecx, [ebp - 0x54]
call fcn.004018f0
push eax
call fcn.0041b03f
add esp, 0x10
mov edx, dword [ebp - 0x38]
push edx
call fcn.0041b126
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.004018d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004018d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419e3a
mov esp, ebp
pop ebp
ret
Function at 0x411af0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.004018f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
or eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004018f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x415590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0041f760
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esp, ebp
pop ebp
ret

Function at 0x415620
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x43f474]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x400
call fcn.0041b2c7
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 5
lea ecx, [ebp - 0xc]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41568e
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041a321
add esp, 4
xor eax, eax
jmp 0x415777
lea ecx, [ebp - 0x20]
push ecx
push 0x400
mov edx, dword [ebp - 4]
push edx
push 2
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4156ce
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0041a321
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x415777
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x415715
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0041a321
add esp, 4
xor eax, eax
jmp 0x415777
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
jmp 0x41572d
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx]
jae 0x415775
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*8 + 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x415773
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0041a321
add esp, 4
mov eax, 1
jmp 0x415777
jmp 0x415724
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419e3a
mov esp, ebp
pop ebp
ret
Function at 0x419e3a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f474]
jne 0x419e44
repz ret
jmp fcn.0041d3c4

Function at 0x41bc49
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41bc70
call fcn.0041b1ef
mov dword [eax], esi
call fcn.0041b1dc
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041df6e
mov eax, esi
jmp 0x41bcc5
test dword [ebp + 0xc], 0xfffffff9
jne 0x41bc56
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41bc9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b202
pop ecx
call fcn.0041b1dc
mov eax, dword [eax]
jmp 0x41bcc5
test al, 0x10
jne 0x41bcc3
test al, 1
je 0x41bcc3
test byte [ebp + 0xc], 2
je 0x41bcc3
call fcn.0041b1ef
mov dword [eax], 5
call fcn.0041b1dc
mov dword [eax], 0xd
jmp 0x41bc94
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42ab2f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43f474]
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.0041fca1
and dword [ebp - 0x14], 0
cmp dword [0x4417d8], 0
mov dword [ebp - 0x18], eax
jne 0x42abe2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42ac8a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42ac8a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4417d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4417dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4417e0], eax
call edi
push eax
call esi
mov dword [0x4417e8], eax
test eax, eax
je 0x42abe2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4417e4], eax
mov eax, dword [0x4417e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42ac3b
cmp dword [0x4417e8], ecx
je 0x42ac3b
push eax
call esi
push dword [0x4417e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42ac3b
test ebx, ebx
je 0x42ac3b
call edi
test eax, eax
je 0x42ac32
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42ac32
test byte [ebp - 8], 1
jne 0x42ac3b
or dword [ebp + 0x10], 0x200000
jmp 0x42ac6e
mov eax, dword [0x4417dc]
cmp eax, dword [ebp - 0x18]
je 0x42ac6e
push eax
call esi
test eax, eax
je 0x42ac6e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42ac6e
mov eax, dword [0x4417e0]
cmp eax, dword [ebp - 0x18]
je 0x42ac6e
push eax
call esi
test eax, eax
je 0x42ac6e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4417d8]
call esi
test eax, eax
je 0x42ac8a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42ac8c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419e3a
leave
ret