joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4151e1
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x41c108
call fcn.0041599a
push 1
call fcn.00415264
pop ecx
test al, al
jne 0x415098
push 7
call fcn.00415762
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041522f
mov byte [ebp - 0x24], al
mov eax, dword [0x41fc3c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x415091
test eax, eax
jne 0x415102
mov dword [0x41fc3c], ecx
push 0x418358
push 0x418344
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4150e5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4151db
push 0x418340
push 0x418318
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x41fc3c], 2
jmp 0x415107
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004153d1
pop ecx
call fcn.00415756
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x415137
push esi
call fcn.00415347
pop ecx
test al, al
je 0x415137
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004156eb
call esi
call fcn.0041575c
mov esi, eax
cmp dword [esi], edi
je 0x415155
push esi
call fcn.00415347
pop ecx
test al, al
je 0x415155
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00415878
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004158ab
test al, al
jne 0x415180
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x415189
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004153ee
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4151db
call fcn.004159df
ret
call fcn.00414f1f
jmp 0x415079

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x757f4bff
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5fbe58b0
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4015c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov esi, 0x441a
mov word [esp + 0x2a], 0x5941
mov dword [esp + 0x24], 0x441a
mov di, word [esp + 0x2a]
add di, 0xdca1
mov word [esp + 0x16], di
mov ebx, dword [esp + 0x24]
sub esi, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], ebx
jmp 0x401632
add esp, 0x34
pop esi
pop edi
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jb 0x40166a
jmp 0x4016bf
mov ax, 0x6afb
mov ecx, dword [esp + 0x10]
sub ax, word [esp + 0x2a]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx*4 + 0x4050d0]
mov dword [esp + 0x18], ecx
mov dx, word [esp + 0x16]
mov bl, byte [esp + 0x33]
add bl, byte [esp + 0x33]
mov byte [esp + 0x33], bl
cmp dx, ax
jae 0x401619
jmp 0x4016bf
mov eax, dword [esp + 0x24]
xor eax, 0x4405
mov ecx, dword [esp + 0x20]
mov edx, ecx
and edx, eax
mov eax, dword [esp + 0x24]
xor eax, 0x443a
mov esi, dword [esp + 8]
mov bl, byte [esi + ecx]
sub bl, byte [edx + 0x4050ac]
mov bh, byte [esp + 0x33]
add bh, 0x64
mov byte [esp + 0x33], bh
mov edx, dword [esp + 4]
mov byte [edx + ecx], bl
mov edi, dword [esp]
and edi, 0x6b25
add ecx, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0xc]
cmp ecx, eax
jb 0x40166a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x24]
xor edx, 0x441b
add eax, edx
add ecx, 0xffffbc06
mov dword [esp + 0x10], eax
cmp eax, ecx
je 0x401610
jmp 0x401632
Function at 0x403c80
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4df210]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.0042bcd0
mov esi, eax
add esp, 4
cmp esi, section..data
je 0x403cf4
mov ecx, section..data
call fcn.00403a80
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [section..data], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x4df010], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x230]
cmp edx, 8
jb 0x403d34
mov ecx, dword [ebp - 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403d2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f03
push edx
push ecx
call fcn.004360bd
add esp, 8
cmp dword [0x4df0bc], 0
je 0x403e1c
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push 0x4b261c
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403e12
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x250]
movaps xmmword [ebp - 0x250], xmm0
push ecx
movaps xmmword [ebp - 0x240], xmm0
call eax
mov ax, word [ebp - 0x250]
cmp ax, 9
je 0x403e08
cmp ax, 6
je 0x403e08
cmp ax, 0xc
je 0x403e08
push str.IsWow64Process2
push 0x4b2648
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x403dff
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x403dff
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x214], cx
sete al
mov dword [0x4e4b88], eax
jmp 0x403e12
xor eax, eax
mov dword [0x4e4b88], eax
jmp 0x403e12
mov dword [0x4e4b88], 1
mov dword [0x4df0bc], 0
cmp dword [0x4e4b88], 0
lea eax, [ebp - 0x210]
push 0x208
push 0
push eax
setne byte [0x4e4b59]
call fcn.004752d0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e60
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4df060
call fcn.00404450
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004752d0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x403ebf
push str.SysWOW64
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403ed0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4df078
call fcn.00404450
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00436365
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00478869
int3
Function at 0x403f10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4df210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403ae0
add esp, 8
lea ecx, [ebp - 0x1c]
cmp dword [0x4df014], 8
mov edx, section..data
mov eax, 0x4df030
cmovae edx, dword [section..data]
cmp dword [ebp - 8], 8
push edx
cmovae ecx, dword [ebp - 0x1c]
cmp dword [0x4df044], 8
push 1
cmovae eax, dword [0x4df030]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 8]
test eax, eax
sete bl
cmp edx, 8
jb 0x403fa8
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403f9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403fb9
push edx
push ecx
call fcn.004360bd
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00436365
mov esp, ebp
pop ebp
ret
call fcn.00478869
int3

Function at 0x4040d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4df210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00403ae0
add esp, 8
lea ecx, [ebp - 0x1c]
cmp dword [0x4df014], 8
mov edx, section..data
mov eax, 0x4df030
cmovae edx, dword [section..data]
cmp dword [ebp - 8], 8
push edx
cmovae ecx, dword [ebp - 0x1c]
cmp dword [0x4df044], 8
push 1
cmovae eax, dword [0x4df030]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 8]
test eax, eax
sete bl
cmp edx, 8
jb 0x404169
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40415f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041d1
push edx
push ecx
call fcn.004360bd
add esp, 8
test bl, bl
jne 0x4041c1
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.00403ae0
add esp, 8
lea ecx, [ebp - 0x34]
cmp dword [0x4df014], 8
mov edx, section..data
mov eax, 0x4df030
cmovae edx, dword [section..data]
cmp dword [ebp - 0x20], 8
push edx
cmovae ecx, dword [ebp - 0x34]
cmp dword [0x4df044], 8
push 0x4b2684
cmovae eax, dword [0x4df030]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x34]
call fcn.00403a80
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00436365
mov esp, ebp
pop ebp
ret
call fcn.00478869
int3
Function at 0x407e30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6f26
mov eax, dword fs:[0]
push eax
sub esp, 0x194
push ebx
push esi
push edi
mov eax, dword [0x4df210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4b2be8
push 1
mov bl, 1
push 0
mov byte [ebp - 0xd], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
jne 0x407f4e
call fcn.004384b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40801d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x54
push str.d:jenkins.jenkinsworkspacepay_groupdll_repairdll_repairdll_repair_srcmain.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], esi
mov ebx, eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00409ef0
push 3
push 0x4b2be4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00409ef0
mov byte [ebp - 4], 1
call fcn.004384b0
mov edi, eax
lea ecx, [ebp - 0x108]
push 0x14
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004054a0
mov esi, eax
push str.check_instance_fail__errno_
push esi
mov byte [ebp - 4], 2
call fcn.004063d0
add esp, 8
mov ecx, esi
push ebx
call fcn.00406230
mov edx, dword [edi]
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x108]
call fcn.00406630
lea ecx, [ebp - 0x28]
call fcn.00405e10
lea ecx, [ebp - 0x40]
call fcn.00405e10
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408031
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004384b0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40801d
push 0x54
push str.d:jenkins.jenkinsworkspacepay_groupdll_repairdll_repairdll_repair_srcmain.cc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.00409ef0
push 3
push 0x4b2be4
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 3
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00409ef0
mov byte [ebp - 4], 4
call fcn.004384b0
mov edi, eax
lea ecx, [ebp - 0x1a0]
push 0x19
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004054a0
mov esi, eax
push str.instance_exist
push esi
mov byte [ebp - 4], 5
call fcn.004063d0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x1a0]
call fcn.00406630
lea ecx, [ebp - 0x58]
call fcn.00405e10
lea ecx, [ebp - 0x70]
call fcn.00405e10
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x40803a
mov dword [eax], esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4df210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x408407
test ebx, ebx
je 0x408407
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x408407
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x408407
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x408401
push esi
push ebx
push edi
call fcn.004747d0
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x408401
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436365
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436365
mov esp, ebp
pop ebp
ret

Function at 0x408420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408479
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408479
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40846a
cmp esi, edx
jae 0x408479
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x408458
cmp esi, edx
jae 0x408479
cmp word [esi], 0
je 0x408479
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40ad90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7148
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4df210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0043608d
mov edi, eax
add esp, 4
test edi, edi
je 0x40ae33
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00431482
add esp, 4
mov dword [edi + 4], eax
jmp 0x40ae35
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00404da0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x40ae95
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40ae95
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x40aeb9
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40aedb
cmp byte [ebp + 0xc], 0
je 0x40aec8
push esi
call fcn.004319a9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x40aee7
mov esi, str.ios_base::badbit_set
jmp 0x40aef7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0040af20
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00405a40
push 0x4d24e8
lea eax, [ebp - 0x30]
push eax
call fcn.004754dd
int3
Function at 0x421340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a98e0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push edi
mov eax, dword [0x4df210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42142f
cmp byte [ecx + 0x30], 0
jne 0x42142f
cmp byte [ecx + 0x31], 0
mov edi, str.__x86_
mov edx, str.__x64_
mov eax, edi
cmove eax, edx
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.00418e80
add esp, 0xc
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push 0
push 4
push ecx
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [eax + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00403a80
mov ecx, dword [ebp + 0x10]
call fcn.00420420
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x31], 0
mov eax, str.__x64_
cmove edi, eax
lea eax, [ebp - 0x3c]
push edi
mov edi, dword [ebp + 0x10]
push edi
push eax
call fcn.00418e80
add esp, 0xc
mov edx, dword [ebx]
xor eax, eax
cmp byte [edi + 0x30], al
mov ecx, ebx
push 0
setne al
mov dword [ebp - 4], 1
add eax, 5
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [edx + 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00403a80
mov al, byte [edi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a98e0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push edi
mov eax, dword [0x4df210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x421542
cmp byte [ecx + 0x30], 0
jne 0x421542
cmp byte [ecx + 0x31], 0
mov edi, str.__x86_
mov edx, str.__x64_
mov eax, edi
cmove eax, edx
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.00418e80
add esp, 0xc
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push 0
push 4
push ecx
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [eax + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00403a80
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
call fcn.00420a70
mov eax, dword [ebp + 0x14]
cmp byte [eax + 0x31], 0
mov eax, str.__x64_
cmove edi, eax
lea eax, [ebp - 0x3c]
push edi
mov edi, dword [ebp + 0x14]
push edi
push eax
call fcn.00418e80
add esp, 0xc
mov edx, dword [ebx]
xor eax, eax
cmp byte [edi + 0x30], al
mov ecx, ebx
push 0
setne al
mov dword [ebp - 4], 1
add eax, 5
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [edx + 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00403a80
mov al, byte [edi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426d00
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa458
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4df210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x3c
call fcn.0043608d
mov ecx, dword [ebp + 8]
mov esi, eax
lea edx, [esi + 4]
mov dword [ebp - 0x14], esi
add esp, 4
mov dword [ebp - 4], 0
lea edi, [edx + 4]
mov dword [ebp - 0x18], edx
mov dword [esi], vtable.std::_Func_impl_no_alloc_class__lambda_cda2627f00237dd55970028a13a9395e___void___.0
lea ebx, [ecx + 4]
mov eax, dword [ecx]
mov ecx, edi
push ebx
mov dword [edx], eax
mov dword [ebp + 8], edi
call fcn.004052a0
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x18]
push eax
mov dword [ebp - 0x18], ecx
call fcn.004052a0
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x30], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bcd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aac80
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x4df210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], esi
call fcn.0042f860
add esp, 4
push 0xb
push str.dll_repair
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004042c0
push eax
lea ecx, [ebp - 0x24]
call fcn.0040d160
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x42bd67
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42bd5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42bdf7
push edx
push ecx
call fcn.004360bd
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x10], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push 0
push eax
push 0
mov dword [ebp - 0x2c], 7
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0xb
push str._repair.dat
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.004042c0
push eax
mov ecx, esi
call fcn.0040d160
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x42bde5
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42bddb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42bdfc
push edx
push ecx
call fcn.004360bd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00478869
call fcn.00478869
int3

Function at 0x42beb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4df210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x10], esi
call fcn.0042f860
add esp, 4
push 0xb
push str.dll_repair
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004042c0
push eax
mov ecx, esi
call fcn.0040d160
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42bf3b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42bf31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42bf62
push edx
push ecx
call fcn.004360bd
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42bf45
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00478869
int3