joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422ec1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x445c58], 0
push esi
jne 0x422e34
call fcn.00422d5a
test eax, eax
je 0x422e77
mov eax, dword [0x445c58]
cmp eax, 1
jne 0x422e55
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x422e77
pop esi
ret
push eax
call dword [0x445c60]
test eax, eax
jne 0x422ebf
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 0x422e7b
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x445c58]
call dword [0x445c60]
mov edi, eax
test edi, edi
je 0x422ea0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x422ebc
mov edi, esi
add esi, 0xff0
push edi
push dword [0x445c58]
call dword [0x445c5c]
add edi, 0x10
cmp edi, esi
jb 0x422ea8
mov eax, edi
pop edi
pop esi
ret
jmp 0x422e21

Function at 0x423324
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444600]
jne 0x42332e
repz ret
jmp fcn.004287f7

Function at 0x432ab3
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.00429377
and dword [ebp - 4], 0
cmp dword [0x446854], 0
mov ebx, eax
jne 0x432b64
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x432c15
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x432c15
push eax
call fcn.00429305
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x446854], eax
call esi
push eax
call fcn.00429305
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x446858], eax
call esi
push eax
call fcn.00429305
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44685c], eax
call esi
push eax
call fcn.00429305
pop ecx
mov dword [0x446864], eax
test eax, eax
je 0x432b64
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00429305
pop ecx
mov dword [0x446860], eax
mov eax, dword [0x446860]
cmp eax, ebx
je 0x432bbc
cmp dword [0x446864], ebx
je 0x432bbc
push eax
call fcn.00429380
push dword [0x446864]
mov esi, eax
call fcn.00429380
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x432bbc
test edi, edi
je 0x432bbc
call esi
test eax, eax
je 0x432bb3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x432bb3
test byte [ebp - 0xc], 1
jne 0x432bbc
or dword [ebp + 0x10], 0x200000
jmp 0x432bf5
mov eax, dword [0x446858]
cmp eax, ebx
je 0x432bf5
push eax
call fcn.00429380
pop ecx
test eax, eax
je 0x432bf5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x432bf5
mov eax, dword [0x44685c]
cmp eax, ebx
je 0x432bf5
push eax
call fcn.00429380
pop ecx
test eax, eax
je 0x432bf5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x446854]
call fcn.00429380
pop ecx
test eax, eax
je 0x432c15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x432c17
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436d6c
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 0x436d9d
call fcn.0042666e
mov dword [eax], esi
call fcn.0042665b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00423e4c
add esp, 0x14
push 0x16
pop eax
jmp 0x436df2
test dword [ebp + 0xc], 0xfffffff9
jne 0x436d79
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x436dca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426681
pop ecx
call fcn.0042665b
mov eax, dword [eax]
jmp 0x436df2
test al, 0x10
jne 0x436df0
test al, 1
je 0x436df0
test byte [ebp + 0xc], 2
je 0x436df0
call fcn.0042666e
mov dword [eax], 5
call fcn.0042665b
mov dword [eax], 0xd
jmp 0x436dc1
xor eax, eax
pop esi
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x4d9345be
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0xf23334c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4dec20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4be015
lea edi, [esi - 0xbd015]
push edi
jmp 0x4dec3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4dec41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dec30
mov eax, 1
add ebx, ebx
jne 0x4dec53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4dec64
jne 0x4dec83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dec83
dec eax
add ebx, ebx
jne 0x4dec70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4dec48
add ebx, ebx
jne 0x4dec7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4decd5
xor ecx, ecx
sub eax, 3
jb 0x4dec9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ded0a
sar eax, 1
mov ebp, eax
jmp 0x4deca6
add ebx, ebx
jne 0x4deca6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dec74
inc ecx
add ebx, ebx
jne 0x4decb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dec74
add ebx, ebx
jne 0x4decc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4decb6
jne 0x4decd2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4decb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4decf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4dece6
jmp 0x4dec36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4decf4
add edi, ecx
jmp 0x4dec36
pop esi
mov edi, esi
mov ecx, 0x39fe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ded12
cmp byte [edi], 8
jne 0x4ded12
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 0x4ded17
lea edi, [esi + 0xdc000]
mov eax, dword [edi]
or eax, eax
je 0x4ded8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xde590]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xde5cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ded44
mov ecx, edi
jns 0x4ded73
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 + 0xde5d4]
or eax, eax
je 0x4ded89
mov dword [ebx], eax
add ebx, 4
jmp 0x4ded61
call dword [esi + 0xde5d0]
mov ebp, dword [esi + 0xde5d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4dedc3
sub esp, 0xffffff80
jmp 0x4024c0
Function at 0x4087c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4230d8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00403a10
test al, al
je 0x4087fd
xor al, al
jmp 0x408931
push esi
lea ecx, [ebp - 0x28]
call fcn.00403aa0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.00408360
lea ecx, [ebp - 0x28]
call fcn.00404450
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40891e
lea ecx, [ebp - 0x40]
call fcn.00403a80
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040b2e0
test al, al
je 0x40885e
lea ecx, [ebp - 0x40]
call fcn.00404450
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403a20
cmp esi, 0xffffffff
jne 0x40891e
lea ecx, [ebp - 0x28]
call fcn.00403b90
cmp eax, 2
jbe 0x40891a
lea ecx, [ebp - 0x28]
call fcn.00403b90
lea ecx, [ebp - 0x28]
lea ebx, [eax - 1]
call fcn.00403b80
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4088a3
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x4088c2
lea ecx, [ebp - 0x28]
call fcn.00403b90
cmp dword [esi + 0x14], 8
jb 0x4088ba
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40891a
mov edx, 0x20
lea ecx, [ebp - 0x28]
call fcn.00408360
lea ecx, [ebp - 0x28]
call fcn.00404450
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40891e
lea ecx, [ebp - 0x40]
call fcn.00403a80
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040b2e0
test al, al
je 0x408909
lea ecx, [ebp - 0x40]
call fcn.00404450
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403a20
cmp esi, 0xffffffff
jne 0x40891e
xor bl, bl
jmp 0x408920
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403a20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f979
mov esp, ebp
pop ebp
ret
Function at 0x408950
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4230d8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00403a10
test al, al
je 0x40898d
xor al, al
jmp 0x408ac7
push esi
lea ecx, [ebp - 0x28]
call fcn.00403aa0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.00408360
lea ecx, [ebp - 0x28]
call fcn.00404450
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4089fb
lea ecx, [ebp - 0x40]
call fcn.00403a80
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040b2e0
test al, al
je 0x4089ea
lea ecx, [ebp - 0x40]
call fcn.00404450
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403a20
cmp ebx, 0xffffffff
je 0x408a04
test bl, 0x10
je 0x408ab4
lea ecx, [ebp - 0x28]
call fcn.00403b90
cmp eax, 2
jbe 0x408ab0
lea ecx, [ebp - 0x28]
call fcn.00403b90
lea ecx, [ebp - 0x28]
lea ebx, [eax - 1]
call fcn.00403b80
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x408a34
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x408a53
lea ecx, [ebp - 0x28]
call fcn.00403b90
cmp dword [esi + 0x14], 8
jb 0x408a4b
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x408ab0
mov edx, 0x20
lea ecx, [ebp - 0x28]
call fcn.00408360
lea ecx, [ebp - 0x28]
call fcn.00404450
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408aab
lea ecx, [ebp - 0x40]
call fcn.00403a80
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040b2e0
test al, al
je 0x408a9a
lea ecx, [ebp - 0x40]
call fcn.00404450
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403a20
cmp ebx, 0xffffffff
je 0x408ab0
test bl, 0x10
je 0x408ab4
xor bl, bl
jmp 0x408ab6
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403a20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f979
mov esp, ebp
pop ebp
ret
Function at 0x408af0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423110
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00403a10
test al, al
je 0x408b2c
xor al, al
jmp 0x408bb6
push esi
lea ecx, [ebp - 0x28]
call fcn.00403aa0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.00408360
lea ecx, [ebp - 0x28]
call fcn.00404450
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408b9a
lea ecx, [ebp - 0x40]
call fcn.00403a80
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040b2e0
test al, al
je 0x408b89
lea ecx, [ebp - 0x40]
call fcn.00404450
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403a20
cmp ebx, 0xffffffff
je 0x408ba3
test bl, 0x10
je 0x408ba3
mov bl, 1
jmp 0x408ba5
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403a20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f979
mov esp, ebp
pop ebp
ret
Function at 0x408d40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4231b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00403a10
test al, al
je 0x408d7d
xor al, al
jmp 0x408f29
mov ecx, edi
call fcn.00408af0
test al, al
je 0x408d8f
mov al, 1
jmp 0x408f29
push 0
mov ecx, edi
call fcn.00404450
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x408dde
lea ecx, [ebp - 0x28]
call fcn.00403a80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0040b2e0
test al, al
je 0x408dcf
push 0
lea ecx, [ebp - 0x28]
call fcn.00404450
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403a20
mov ecx, edi
call fcn.00408af0
test al, al
jne 0x408d88
mov ecx, edi
call fcn.00403b90
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x408ece
mov ecx, edi
call fcn.00403b80
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x408e12
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x408e35
mov eax, ebx
cmp ecx, 8
jb 0x408e2b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x408ebe
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00404c60
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403a10
test al, al
jne 0x408eaf
lea ecx, [ebp - 0x28]
call fcn.004087c0
test al, al
jne 0x408eaf
push 0
lea ecx, [ebp - 0x28]
call fcn.00404450
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408eaf
lea ecx, [ebp - 0x40]
call fcn.00403a80
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040b2e0
test al, al
je 0x408ea3
push 0
lea ecx, [ebp - 0x40]
call fcn.00404450
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403a20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403a20
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x408e06
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.004087c0
test al, al
jne 0x408f22
push 0
mov ecx, edi
call fcn.00404450
push eax
call ebx
test eax, eax
jne 0x408f22
lea ecx, [ebp - 0x40]
call fcn.00403a80
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0040b2e0
test al, al
je 0x408f13
push 0
lea ecx, [ebp - 0x40]
call fcn.00404450
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403a20
mov ecx, edi
call fcn.00408af0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f979
mov esp, ebp
pop ebp
ret
Function at 0x40ae80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x43800c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x40af02
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x40af02
test ecx, ecx
je 0x40aefe
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x40aec0
xor eax, eax
jmp 0x40af07
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40af11
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040f979
add esp, 0xc
ret 0xc
Function at 0x40b500
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x436008
push 0x4110d0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x43800c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x40b569
xor eax, eax
jmp 0x40b6df
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b6aa
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40b6aa
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b6aa
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x40b6aa
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b6aa
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x40b6aa
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b6aa
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x40b6aa
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b6aa
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x40b6aa
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40b6aa
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40b693
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40b680
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x40b690
jmp 0x40b6aa
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040b706
test ebx, ebx
jne 0x40b6dd
test esi, esi
je 0x40b6cf
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40b6dd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040f979
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b8f0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x43800c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40b955
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b930
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40b955
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040f979
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0040f979
add esp, 8
ret 4
Function at 0x40d350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423d90
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
test esi, esi
je 0x40d4d1
cmp byte [esi + 0x54], 0
je 0x40d4d1
add esi, 0x1c
xor bl, bl
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
test esi, esi
je 0x40d3d0
mov eax, dword [esi]
test eax, eax
je 0x40d3cd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d3c4
cmp eax, 0x80
je 0x40d3c4
xor bl, bl
jmp 0x40d3ca
mov byte [esi + 4], 1
mov bl, 1
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x3c], bl
push ecx
mov edx, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00409e00
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403b80
cmp dword [ebp - 0x18], 0x10
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x40d40f
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40d45d
push 2
push 0
push 0
push edi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40d491
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d487
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4ef
push edx
push ecx
call fcn.0040f9ba
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 6
test esi, esi
je 0x40d4c3
test bl, bl
je 0x40d4c3
mov eax, dword [esi]
test eax, eax
je 0x40d4bf
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f979
mov esp, ebp
pop ebp
ret 4
call fcn.00413a89
int3