joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e71c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x47e797
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
inc eax
call fcn.004030a0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + ebx]
mov byte [edx + eax - 1], cl
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x47e73b
mov eax, dword [esi]
mov byte [eax + 4], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47e7a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
add ebx, 0xfffffffc
xor esi, esi
cmp esi, dword [ebp - 0xc]
jge 0x47e820
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
mov eax, dword [ebx]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
inc eax
call fcn.004030a0
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x1c]
movzx ecx, byte [ecx]
mov byte [edx + eax - 1], cl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + esi], al
inc esi
cmp esi, dword [ebp - 0xc]
jl 0x47e7c3
mov eax, dword [ebx]
mov byte [eax + 4], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47e830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x47e8ab
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
inc eax
call fcn.004030a0
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx + ebx]
xor byte [edx + eax - 1], cl
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x47e84f
mov eax, dword [esi]
mov byte [eax + 4], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47f01c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x47f097
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
inc eax
call fcn.004030a0
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx]
mov byte [edx + eax - 1], cl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x47f03b
mov eax, dword [esi]
mov byte [eax + 4], 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f0a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
add ebx, 0xfffffffc
xor esi, esi
cmp esi, dword [ebp - 0xc]
jge 0x47f120
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
mov eax, dword [ebx]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
inc eax
call fcn.004030a0
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x1c]
movzx ecx, byte [ecx]
mov byte [edx + eax - 1], cl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + esi], al
inc esi
cmp esi, dword [ebp - 0xc]
jl 0x47f0c3
mov eax, dword [ebx]
mov byte [eax + 4], 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47f130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor ebx, ebx
cmp ebx, dword [ebp - 0xc]
jge 0x47f1ab
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
dec ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
inc eax
call fcn.004030a0
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + ebx]
xor byte [edx + eax - 1], cl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
xor al, byte [edx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x47f14f
mov eax, dword [esi]
mov byte [eax + 4], 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47fca4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x28]
mov ebx, eax
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x18]
shr edx, 1
add ebx, edx
mov ecx, dword [ebp + 8]
mov ecx, edx
mov edx, dword [ebp + 8]
mov edx, ebx
call fcn.004030a0
add ebx, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x30]
add edx, edx
add edx, edx
sub edx, 5
test edx, edx
jl 0x47fd78
inc edx
mov eax, dword [ebx]
mov ecx, eax
and ecx, 0xff
mov esi, dword [str.cw]
movzx ecx, byte [esi + ecx]
mov esi, dword [0x48d43c]
mov ecx, dword [esi + ecx*4 + 0x1000]
mov esi, eax
shr esi, 8
and esi, 0xff
mov edi, dword [str.cw]
movzx esi, byte [edi + esi]
mov edi, dword [0x48d43c]
xor ecx, dword [edi + esi*4 + 0x1400]
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov edi, dword [str.cw]
movzx esi, byte [edi + esi]
mov edi, dword [0x48d43c]
xor ecx, dword [edi + esi*4 + 0x1800]
shr eax, 0x18
mov esi, dword [str.cw]
movzx eax, byte [esi + eax]
mov esi, dword [0x48d43c]
xor ecx, dword [esi + eax*4 + 0x1c00]
mov dword [ebx], ecx
add ebx, 4
dec edx
jne 0x47fced
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x480c14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x480c77
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x109]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 4]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00405314
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040e2fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480c7e
lea eax, [ebp - 4]
call fcn.004050a4
ret
Function at 0x4032d0
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
call sub.kernel32.dll_GetCurrentProcess
mov esi, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
push 0x441a4c
call sub.kernel32.dll_GetModuleHandleA
lea ecx, [esp + 0x20]
push 0xc
push ecx
mov dword [esp + 0x24], eax
push eax
mov dword [esp + 0x24], esi
push esi
call sub.psapi.dll_GetModuleInformation
mov esi, dword [esp + 0x20]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str.c:windows_system32_ntdll.dllsrcunhook.rss
call sub.kernel32.dll_CreateFileA
push 0
push 0
push 0
push 0x1000002
push 0
mov dword [esp + 0x28], eax
push eax
call sub.kernel32.dll_CreateFileMappingA
push 0
push 0
push 0
push 4
mov dword [esp + 0x20], eax
push eax
call sub.kernel32.dll_MapViewOfFile
mov eax, dword [esi + 0x3c]
mov dword [esp], esi
movzx edi, word [eax + esi + 6]
test edi, edi
je 0x4033fb
mov edx, dword [esp]
lea ebp, [esp + 4]
mov esi, 0x7865742e
movzx ecx, word [eax + edx + 0x14]
add eax, edx
lea ebx, [ecx + eax + 0x14]
jmp 0x403396
add ebx, 0x28
dec edi
je 0x4033fb
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
push eax
push ebx
push ebp
call fcn.00428c30
add esp, 0xc
cmp dword [esp + 4], 0
jne 0x403427
cmp dword [esp + 0xc], 5
jne 0x403390
mov eax, dword [esp + 8]
mov ecx, dword [eax]
movzx eax, byte [eax + 4]
xor ecx, esi
xor eax, 0x74
or eax, ecx
jne 0x403390
mov dword [esp + 4], 0
mov esi, dword [ebx + 0xc]
add esi, dword [esp]
push ebp
push 0x40
push dword [ebx + 8]
push esi
call sub.kernel32.dll_VirtualProtect
push ebp
push dword [esp + 8]
push dword [ebx + 8]
push esi
mov esi, 0x7865742e
call sub.kernel32.dll_VirtualProtect
jmp 0x403390
push dword [esp + 0x18]
call sub.kernel32.dll_CloseHandle
push dword [esp + 0x14]
call sub.kernel32.dll_CloseHandle
push dword [esp + 0x10]
call sub.kernel32.dll_CloseHandle
push dword [esp + 0x1c]
call sub.kernel32.dll_FreeLibrary
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [esp + 8]
lea eax, [esp + 0x2c]
movsd qword [esp + 0x2c], xmm0
push 0x441a80
push 0x441978
push eax
push 0x2b
push 0x44194c
call fcn.0042e440
int3
Function at 0x406710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [section..data]
test eax, eax
je 0x406732
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x40674b
cmp dword [eax + 4], 0
je 0x40674b
add eax, 4
pop esi
ret
push section..data
call fcn.0042da50
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x406727
mov eax, dword [section..data]
test eax, eax
je 0x4067af
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4067c8
mov esi, eax
test eax, eax
jne 0x40679f
movzx eax, byte [0x44b161]
push 4
push 8
call fcn.00404d10
add esp, 8
test eax, eax
je 0x4067db
mov dword [eax], section..data
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [section..data]
test eax, eax
je 0x4067cc
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
add esi, 4
push 0
push esi
call fcn.00406840
add esp, 8
pop esi
ret
push section..data
call fcn.0042da50
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x406761
xor eax, eax
pop esi
ret
push section..data
call fcn.0042da50
add esp, 4
jmp 0x406797
push 8
push 4
call fcn.0042e010
int3

Function at 0x406a40
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x406e30
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x406a84
dec eax
jmp 0x406a98
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
push ecx
call fcn.0042da50
add esp, 4
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 1
push 1
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
test eax, eax
je 0x406acf
dec dword [eax]
jne 0x406acf
dec dword [eax + 4]
jne 0x406acf
push 8
push 0x158
push eax
call fcn.00404d20
add esp, 0xc
push 4
push 8
push dword [ebp - 0x24]
call fcn.00404d20
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
test eax, eax
je 0x406aea
dec eax
jmp 0x406af7
mov byte [ebp - 0x1d], 0
push ecx
call fcn.0042da50
add esp, 4
mov byte [ebp - 0x1d], 0
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x407180
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
je 0x4071bc
mov ebp, dword [esp + 0x14]
push 2
push ebx
push ebp
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x4071bc
mov edi, eax
push ebx
push ebp
call dword [sym.imp.advapi32.dll_SystemFunction036]
add edi, 0x80000000
xor esi, esi
test al, al
cmove esi, edi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40d0c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x420cb0
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x40d150
jmp 0x40d13e
jbe 0x40d1e4
cmp esi, 0x201
jae 0x40d150
mov dword [ebp - 0x28], 0x200
lea ebx, [ebp - 0x448]
mov edi, esi
jmp 0x40d18b
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x40d17c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.0042d670
add esp, 4
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x40d1af
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x40d247
cmp esi, edi
jne 0x40d130
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40d266
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x40d13e
jmp 0x40d150
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x40d283
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.0040fcb0
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40d231
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00404d20
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40d221
jmp 0x40d231
mov dword [ebp - 0x10], 0
push 0x444cc8
push 0x28
push str.internal_error:_entered_unreachable_codeX_D
call fcn.0042e1b0
add esp, 0xc
jmp 0x40d292
push 0x444cb8
push eax
push esi
call fcn.0042e530
add esp, 0xc
ud2
Function at 0x40d2d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x420cc0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x40d31b
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov dword fs:[0], ecx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x44], 0x44468c
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x40db80
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0x44]
push 0x444694
push eax
call fcn.0042e0d0
add esp, 8
ud2
Function at 0x412ee0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.0042c930
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x420e70
mov ebx, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x418bd0
push eax
push 0x1000
push esi
push ebx
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x413034
mov esi, dword [sym.imp.kernel32.dll_SleepEx]
mov dword [ebp - 0x20], ebx
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 0
je 0x412f6a
cmp dword [ebp - 0x2c], 0
jne 0x413045
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x413045
cmp edi, 0x1000
ja 0x41307f
xor ebx, ebx
nop dword [eax]
mov eax, edi
sub eax, ebx
jb 0x413067
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + ebx - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x418bd0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x41303c
nop dword [eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 0
je 0x412fe0
cmp dword [ebp - 0x2c], 0
jne 0x413042
add ebx, dword [ebp - 0x28]
cmp ebx, edi
jne 0x412fa0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x418bd0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x412f6a
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x413045
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x4447a0
push edi
push ebx
call fcn.0042e5a0
add esp, 0xc
jmp 0x413099
mov dword [ebp - 0x10], 0
push 0x4447a0
push 0x1000
push edi
call fcn.0042e530
add esp, 0xc
ud2
Function at 0x416430
Capabilities:
Delete file

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, esp
push dword [esp + 0x30]
call fcn.0041eb80
add esp, 4
mov ecx, dword [esp]
mov edi, dword [esp + 4]
mov eax, dword [esp + 8]
cmp ecx, 0x80000000
je 0x41648e
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.00417c20
add esp, 4
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
cmp ebx, 0x80000000
jne 0x41649c
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
ret
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x4164b0
mov byte [esi], 4
test ebx, ebx
jne 0x4164c0
jmp 0x416493
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x416493
add ebx, ebx
push 2
push ebx
push edi
call fcn.00404d20
add esp, 0xc
jmp 0x416493

Function at 0x4164d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x416514
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x41651a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x416556
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x41657b
test eax, eax
js 0x416565
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x416571
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x444568
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.0040f730
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.004089c0
mov ecx, 7
int 0x29
ud2