joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c0d
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x404c60
push esi
push dword [ebp + 8]
call fcn.00404dfc
mov edi, eax
test edi, edi
je 0x404c5b
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x404c5b
mov eax, dword [ebp - 8]
jmp 0x404c72
mov eax, dword [ebp + 0x10]
jmp 0x404c72
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x404c78
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c210
mov eax, dword fs:[0]
push eax
mov eax, 0x2018
call fcn.00417390
mov eax, dword [0x43c514]
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
cmp dword [ecx + 0x58], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
je 0x404daf
push 0
push edx
call fcn.00404dfc
mov ebx, eax
test ebx, ebx
jne 0x404ce0
push esi
jmp 0x404dd7
call fcn.0040c620
push eax
lea ecx, [ebp - 0x2014]
call fcn.00401ddf
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x404d6e
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.00402f77
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.00404f38
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x404d9c
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.004026b7
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.004018c6
jmp 0x404dde
push esi
mov ecx, edi
call fcn.00401e88
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x404d95
test esi, esi
jne 0x404db8
mov esi, 0x43661c
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.00401e88
mov eax, edi
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.00416b50
leave
ret 0x10
Function at 0x40cd8d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x42c658
call fcn.0041725b
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x40ce97
cmp ebx, dword [esi + 0xc]
jge 0x40ce97
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x40cde4
cmp ebx, dword [edi + 8]
jl 0x40ce85
cmp dword [ebp + 0xc], 0
je 0x40ce85
xor ebx, ebx
jmp 0x40ce1e
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.0040c84c
mov edi, eax
test edi, edi
je 0x40cdfe
mov dword [edi], vtable.CThreadData.0
jmp 0x40ce00
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.0040ccb9
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x40ce39
push 4
push dword [esi + 0xc]
call fcn.0040c4c3
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x40ce51
push 2
push 4
push dword [esi + 0xc]
call fcn.0040c4c3
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x40cebe
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.00418de0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x40ce97
cmp ebx, dword [edi + 8]
jge 0x40ce97
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004171b9
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00405cce
int3
Function at 0x4af1e0
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 0x4af211
call fcn.0047eb2f
mov dword [eax], esi
call fcn.0047eb1c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00476701
add esp, 0x14
push 0x16
pop eax
jmp 0x4af266
test dword [ebp + 0xc], 0xfffffff9
jne 0x4af1ed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4af23e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047eb42
pop ecx
call fcn.0047eb1c
mov eax, dword [eax]
jmp 0x4af266
test al, 0x10
jne 0x4af264
test al, 1
je 0x4af264
test byte [ebp + 0xc], 2
je 0x4af264
call fcn.0047eb2f
mov dword [eax], 5
call fcn.0047eb1c
mov dword [eax], 0xd
jmp 0x4af235
xor eax, eax
pop esi
pop ebp
ret

Function at 0x42bf10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x23000]
push edi
or ebp, 0xffffffff
jmp 0x42bf32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42bf39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42bf28
mov eax, 1
add ebx, ebx
jne 0x42bf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42bf40
jne 0x42bf5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42bf40
xor ecx, ecx
sub eax, 3
jb 0x42bf70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42bfe2
mov ebp, eax
add ebx, ebx
jne 0x42bf7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42bf88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42bfac
inc ecx
add ebx, ebx
jne 0x42bf98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42bf8d
jne 0x42bfa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42bf8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42bfcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42bfbd
jmp 0x42bf2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42bfcc
add edi, ecx
jmp 0x42bf2e
pop esi
mov edi, esi
mov ecx, 0x1e3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42bfea
cmp byte [edi], 5
jne 0x42bfea
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 eax, ebx
loop 0x42bfef
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42c067
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31ca4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31ce0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42c01c
mov ecx, edi
jns 0x42c04b
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 + 0x31ce4]
or eax, eax
je 0x42c061
mov dword [ebx], eax
add ebx, 4
jmp 0x42c039
call dword [esi + 0x31ce8]
popal
jmp 0x401ff4
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x15a274d2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x71ca4a08
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219

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
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, 0x1a2c
mov edi, eax
mov dword [ebp - 8], esi
mov eax, 0x4c5b
test ecx, ecx
jle 0x4017a1
sub edx, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
push ebx
mov edx, esi
shr edx, 8
mov dword [ebp - 4], edx
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and dl, bl
mov ebx, esi
mov ecx, eax
shr ecx, 8
and dl, cl
mov dword [ebp - 0x14], ecx
mov ecx, esi
shr ecx, 0x18
shr ebx, 0x10
and cl, bl
mov bl, byte [ebp - 4]
xor dl, cl
mov ecx, dword [ebp - 0x10]
xor dl, byte [ecx + edi]
mov ecx, dword [ebp - 8]
lea esi, [eax*4]
xor esi, eax
add esi, esi
and bl, cl
xor esi, eax
xor dl, bl
xor dl, al
and esi, 0xfffffff0
shl eax, 4
xor esi, eax
shl ecx, 0x18
or ecx, dword [ebp - 0x14]
shl esi, 0x14
or esi, dword [ebp - 4]
mov byte [edi], dl
inc edi
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov eax, ecx
jne 0x401734
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4017b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [eax], 0
mov edx, eax
je 0x4017cb
mov ecx, eax
lea esp, [esp]
xor byte [edx], 0xf
inc ecx
cmp byte [ecx], 0
mov edx, ecx
jne 0x4017c0
ret

Function at 0x4017d0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push str._ixnjSBfl__iSXfak_xSLzjaYjf_aS_za
lea eax, [ebp - 0x68]
push eax
xor edi, edi
call esi
cmp byte [ebp - 0x68], 0
lea eax, [ebp - 0x68]
je 0x401801
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x4017f6
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x68]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp dword [ebp - 4], edi
je 0x401867
push 0x4042b4
lea eax, [ebp - 0x68]
push eax
call esi
cmp byte [ebp - 0x68], 0
lea eax, [ebp - 0x68]
je 0x40183b
mov ecx, eax
nop
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x401830
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 4]
push eax
push ebx
push 1
push 0
lea ecx, [ebp - 0x68]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40185d
lea edi, [eax + 1]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 1
cmp dword [ebp + 8], esi
jle 0x4018da
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + esi*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x401894
cmp cl, 0x2f
jne 0x4018d3
mov cl, byte [eax + 1]
cmp cl, 0x69
je 0x4018b2
cmp cl, 0x70
jne 0x4018d3
add eax, 3
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [0x405024], eax
jmp 0x4018d3
cmp byte [eax + 3], 0
lea edx, [eax + 3]
mov eax, edx
je 0x4018cb
mov ecx, edx
nop
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x4018c0
push edx
push str._9:__6_____98
call ebx
inc esi
cmp esi, dword [ebp + 8]
jl 0x401885
pop ebx
pop esi
pop ebp
ret
Function at 0x4043e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b5a7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x40448d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404480
jmp 0x4044db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4044ee
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4044ee
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4044d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404580
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
Function at 0x40cbc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c020
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4ce4bc]
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, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
push 0x20a
push 0
mov dword [ebp - 0x224], esi
push eax
mov dword [ebp - 0x224], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x40cc20
mov eax, dword [ebx]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov dword [ebp - 0x240], ecx
test ecx, ecx
je 0x40cdce
cmp ecx, 0x104
ja 0x40cc8c
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x21c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cc70
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x40cded
lea eax, [ecx + 1]
mov dword [ebp - 0x234], 0
xor edi, edi
mov dword [ebp - 0x220], eax
xor ebx, ebx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], ebx
test eax, eax
je 0x40cd45
cmp eax, 0x7fffffff
ja 0x40ce12
push eax
lea ecx, [ebp - 0x230]
call fcn.00401c70
mov ecx, dword [ebp - 0x220]
mov edi, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x230], edi
lea edx, [ecx + ecx]
lea ecx, [ebp - 0x234]
mov ax, word [ecx]
lea ebx, [edx + edi]
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], ebx
cmp ax, word [ecx]
mov ecx, dword [ebp - 0x220]
jne 0x40cd26
push edx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x40cd37
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
mov eax, ebx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40cd5a
mov eax, dword [eax]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cd81
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00404580
test edi, edi
je 0x40cdf4
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffe
cmp ebx, 0x1000
jb 0x40cdc2
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40cdc2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push edi
call fcn.0049900e
add esp, 8
jmp 0x40cdf4
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x4a9810
mov ecx, esi
call fcn.00404580
mov eax, esi
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.0049901c
mov esp, ebp
pop ebp
ret
call fcn.00401c60
int3
Function at 0x4102f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c650
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ce4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
mov dword [ebp - 4], 0
and ecx, 0xfffffffc
xor al, al
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
mov edx, dword [esi + 0x24]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 1
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 8
test ecx, ecx
je 0x41036c
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x41037d
push 0x40
push esi
call fcn.0049900e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4137c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41387c
cmp byte [esi + 0x3d], 0
je 0x41387c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41386a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x413831
sub eax, 1
je 0x413835
sub eax, 2
jne 0x41386a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x413853
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x41386a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0049901c
mov esp, ebp
pop ebp
ret

Function at 0x413bd0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cd1d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov edi, dword [ebp + 8]
push esi
push eax
call fcn.00411eb0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00413ca0
add esp, 0xc
test eax, eax
jne 0x413c25
xor esi, esi
jmp 0x413c42
cmp dword [esi + 0x14], 8
jb 0x413c2d
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x413c35
mov edi, dword [edi]
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x413c7e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413c74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x413c74
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
Function at 0x413ca0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cd5d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x413cd6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413d98
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x413cf0
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x413d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413d98
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00411eb0
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x413db7
lea eax, [ebp - 0x28]
push eax
call fcn.00413ca0
add esp, 4
test eax, eax
je 0x413db7
cmp dword [esi + 0x14], 8
jb 0x413d48
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x413d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x413db7
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x413d98
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413d8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413de3
push edx
push ecx
call fcn.0049900e
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x413df3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413de9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x413de9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
xor eax, eax
jmp 0x413d9d