joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018a77
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.10018b20
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10018abf
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10007c75
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.100055cd
jmp 0x10018aca
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10008e05
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10019152
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebx + 0x78], edi
test edi, 0xffff0000
jne 0x10019174
cmp dword [ebx + 0x74], 0
jne 0x10019174
movzx eax, di
mov dword [ebx + 0x74], eax
call fcn.10006bf2
mov esi, dword [eax + 0xc]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100193df
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100191ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.10006bf2
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100191e5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.10019204
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x10033f5d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x10033f75
call fcn.10006bf2
mov esi, dword [eax + 0xc]
push 0x10147630
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10033fcb
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10033fca
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x10033fab
xor esi, esi
jmp 0x10033fc1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.10033fd1
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10081569
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.100810ce
lodsb al, byte [esi]
inc esi
shr dword [ebx], 0x8d
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x100fad1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x100fad36
mov edi, dword [esi + 0xc]
jmp 0x100fad76
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100fad4f
call fcn.1000c10a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100fad64
call fcn.1000c10a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100fad76
call fcn.1000c10a
call fcn.10006bf2
cmp dword [eax + 0x3c], 0
je 0x100fad8b
push edi
mov ecx, ebx
call fcn.100fa5b8
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100faf4e
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x100fadae
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x100fadb7
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1012aa3a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10190960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1011ff64
mov dword [ebp - 0x14], eax
cmp dword [0x10198194], edi
jne 0x1012ab2b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1012aab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1012ac0b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1012ac0b
push 0x1016ec78
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1012ac0b
push eax
call ebx
push 0x1016ec84
push esi
mov dword [0x10198194], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1016ec94
push esi
mov dword [0x10198198], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1019819c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x101981a4], eax
test eax, eax
je 0x1012ab28
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x101981a0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1012ab50
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1012ab43
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1012ab65
push 4
pop eax
jmp 0x1012ac0d
cmp dword [ebp - 0x14], edi
je 0x1012ab65
push dword [0x10198194]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1012ab4a
mov eax, dword [0x101981a0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1012abc3
cmp dword [0x101981a4], esi
je 0x1012abc3
push eax
call ebx
push dword [0x101981a4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1012abc3
test eax, eax
je 0x1012abc3
call ecx
test eax, eax
je 0x1012abb8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1012abb8
test byte [ebp - 8], 1
jne 0x1012abc3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1012abf3
mov eax, dword [0x10198198]
cmp eax, esi
je 0x1012abf0
push eax
call ebx
test eax, eax
je 0x1012abf0
call eax
mov edi, eax
test edi, edi
je 0x1012abf0
mov eax, dword [0x1019819c]
cmp eax, esi
je 0x1012abf0
push eax
call ebx
test eax, eax
je 0x1012abf0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10198194]
call ebx
test eax, eax
je 0x1012ac0b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1012ac0d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011763e
leave
ret
Function at 0x404600
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470659
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00404940
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], 1
jb 0x404653
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x4046c1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00448b23
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x14], 8
jb 0x404688
mov esi, dword [esi]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
inc eax
cmp eax, ebx
jne 0x4046c1
mov esi, dword [ebp - 0x14]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4046a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00404a00
push esi
call fcn.00448ae0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x407300
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4708ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00434380
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x40738b
push eax
push esi
call fcn.004347e7
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.004341a4
int3
Function at 0x4118a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4714fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov ebx, eax
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [edx]
test edx, edx
je 0x4118e4
push edx
call esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4118f0
push eax
call esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4118fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x10], 0
je 0x411916
cmp dword [eax + 0x14], 8
jb 0x41190f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push 3
lea ecx, [ebp - 0xd4]
call fcn.00418380
mov byte [ebp - 4], 1
lea eax, [ebp + 0x18]
cmp dword [ebp + 0x2c], 8
push dword [ebp + 0x28]
cmovae eax, dword [ebp + 0x18]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0041ec30
add esp, 0xc
mov edx, 0x4880ec
mov ecx, eax
push ebx
call fcn.0041cde0
mov ecx, eax
call fcn.00418950
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xd4]
call fcn.004182d0
push 1
push 0x3b0
push eax
push 0xffffffffffffffff
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040b710
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x4119b5
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4119ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a26
push edx
push ecx
call fcn.00448b15
add esp, 8
mov eax, dword [edi + 0x3b4]
mov ecx, 2
cmp eax, ecx
cmovl eax, ecx
lea ecx, [ebp - 0xd4]
mov dword [edi + 0x3b4], eax
mov eax, dword [ebp + 0x30]
mov esi, dword [eax]
call fcn.00409ee0
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x411a11
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411a07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a2b
push edx
push ecx
call fcn.00448b15
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x2c
call fcn.0044e13a
call fcn.0044e13a
int3
Function at 0x417820
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471b3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call fcn.0042eac0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x417988
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
cmp edx, 8
push esi
mov esi, dword [ebp - 0x24]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x417893
dec ecx
lea eax, [ebp - 0x24]
cmp edx, 8
mov dword [ebp - 0x14], ecx
cmovae eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x24]
cmp edx, 8
lea eax, [ebp - 0x24]
push 0
cmovae eax, esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x417987
cmp esi, 0xb7
je 0x417987
push 1
push 3
lea ecx, [ebp - 0xec]
call fcn.00418380
mov edx, str.Error_2050___Unable_to_create_directory_path_
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.0041cde0
cmp dword [ebp - 0x10], 8
lea ecx, [ebp - 0x24]
push dword [ebp - 0x14]
cmovae ecx, dword [ebp - 0x24]
push ecx
push eax
call fcn.0041ec30
add esp, 0xc
mov edx, str._error_code_
mov ecx, eax
push esi
call fcn.0041cde0
mov ecx, eax
call fcn.00418af0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xec]
call fcn.004182d0
push 1
push 0x3af
push eax
push 0xffffffffffffffff
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040b710
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x417966
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41795c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4179cf
push edx
push ecx
call fcn.00448b15
add esp, 8
mov eax, dword [edi + 0x3b4]
mov ecx, 3
cmp eax, ecx
cmovl eax, ecx
lea ecx, [ebp - 0xec]
mov dword [edi + 0x3b4], eax
call fcn.00409ee0
pop esi
mov edx, dword [ebp - 0x10]
pop edi
cmp edx, 8
jb 0x4179bf
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4179b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4179d4
push edx
push ecx
call fcn.00448b15
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.0044e13a
call fcn.0044e13a
int3
Function at 0x422e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x422f46
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x422f35
jg 0x422ea0
test edx, edx
je 0x422f35
nop dword [eax]
call fcn.0041a940
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x422ef4
jg 0x422eb7
test esi, esi
je 0x422ef4
cmp ebx, eax
jg 0x422ec7
jl 0x422ec1
cmp edi, esi
jae 0x422ec7
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0044aa10
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x422f19
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x422f2f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x422ea0
jl 0x422f2f
test edi, edi
jne 0x422ea0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x422f68
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x422f6a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x422fe8
jg 0x422f7d
test esi, esi
je 0x422fe8
test eax, eax
jl 0x422fc2
jg 0x422f87
test ebx, ebx
je 0x422fc2
cmp edi, eax
jg 0x422f97
jl 0x422f91
cmp esi, ebx
jae 0x422f97
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0044aa10
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x422fc5
mov edx, dword [ebp + 8]
test edi, edi
jl 0x422fe8
jg 0x422fcf
test esi, esi
je 0x422fe8
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x422fe8
push eax
push esi
push 1
push edx
call fcn.004565f6
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x42354c
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42357e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42357e
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x423651
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4235a6
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4235cf
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00452618
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x423651
cmp eax, 1
jle 0x423624
cmp eax, 3
jne 0x423651
push dword [esi + 0x4c]
movsx eax, byte [ebp - 1]
push eax
call fcn.00452618
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x423641
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004565f6
add esp, 0x10
cmp edi, eax
jne 0x423651
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 8], eax
jne 0x423573
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x424d20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push 8
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00448ae5
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004346e7
mov dword [esi + 4], eax
lea ebx, [edi + 4]
mov eax, dword [ebp - 0x10]
lea edx, [edi + 8]
mov dword [ebp - 0x14], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 8
mov dword [edi + 0x34], esi
add edi, 0x14
mov dword [ebp - 0x18], edx
lea esi, [eax + 0x24]
mov edx, dword [ebp - 0x10]
add eax, 0x28
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [edx + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x10], edx
mov ebx, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [0x497c44]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx + 0x40], eax
mov eax, dword [0x497c48]
mov dword [ecx + 0x44], eax
mov eax, ecx
pop edi
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x38], 0
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x42b620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], edx
push esi
mov esi, ecx
test eax, eax
jne 0x42b646
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi], 1
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0042b5b0
test eax, eax
je 0x42b672
mov dword [esi], eax
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp - 4]
lea eax, [edi + 2]
push eax
call fcn.00457f24
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x42b69e
pop edi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
pop ebx
mov dword [esi], 3
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push edi
push 1
push ebx
call fcn.00456c78
add esp, 0x10
cmp eax, edi
je 0x42b6d7
push ebx
call fcn.004524da
add esp, 4
mov dword [esi + 8], 0
mov dword [esi], 2
mov eax, esi
mov dword [esi + 4], 0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, ebx
call fcn.00429d30
mov ecx, eax
cmp ecx, 2
je 0x42b6ec
cmp ecx, 3
jne 0x42b6fa
shr edi, 1
xor edx, edx
lea eax, [edi + edi]
mov word [eax + ebx], dx
lea edi, [eax + 2]
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov edx, eax
sub esp, 8
push ecx
push ecx
push edi
push ebx
push eax
mov ecx, esi
call fcn.0042b4b0
add esp, 0x20
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42de80
Capabilities:
Acquire debug privileges
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x494048]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x28]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x30]
push eax
push str.SeShutdownPrivilege
push 0x4854f0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 1
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea eax, [ebp - 0x30]
push eax
push str.SeDebugPrivilege
push 0x4854f0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 1
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 1
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test eax, eax
je 0x42df5d
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044937d
mov esp, ebp
pop ebp
ret
push 1
push 0x16
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
cmp eax, 1
sete al
xor ecx, ebp
call fcn.0044937d
mov esp, ebp
pop ebp
ret