joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43c290
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.00434360
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x434520
cmp byte [ebp - 0x30], 3
jne 0x434549
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edi
mov eax, dword [ecx]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 0
push eax
call dword [ecx]
add esp, 4
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x43450f
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x434500
mov eax, dword [eax - 4]
push eax
push 0
push dword [0xa679c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
push dword [0xa679c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x434549
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x434549
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x434561
mov eax, dword [ebp - 0x20]
mov dword [edi], ebx
mov dword [edi + 4], esi
mov dword [edi + 8], eax
jmp 0x434550
mov dword [edi + 4], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [edi + 4], 0
je 0x434550
push esi
push 0
push dword [0xa679c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x434550
Function at 0x435f80
Capabilities:
Create thread

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], 0x43c2c0
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov esi, edx
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
mov eax, dword [0xa679c8]
test eax, eax
jne 0x435fd9
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x436085
mov dword [0xa679c8], eax
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x436085
mov dword [eax], ebx
mov dword [eax + 4], edi
push 0
push 0x10000
push eax
push 0x436420
push esi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x436018
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov byte [ecx], 4
jmp 0x436074
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 1
push eax
call dword [ecx]
add esp, 4
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x436053
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x436044
mov eax, dword [eax - 4]
push eax
push 0
push dword [0xa679c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
push dword [0xa679c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov dword [ecx], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 8
mov edx, 4
mov dword [ebp - 0x10], 0
call fcn.0044a3d0
ud2
Function at 0x4368b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1048
call fcn.0043c6c0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43c310
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], edx
lea esi, [ebp - 0x1054]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edx
push 0x1000
push 0
push esi
call fcn.0043d600
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x42ddf0
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x436a14
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x2c], 0
je 0x436940
cmp dword [ebp - 0x28], 0
jne 0x436a25
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x54], 4
test ebx, ebx
mov dword [ebp - 0x50], ebx
je 0x436a25
cmp ebx, 0x1000
ja 0x436a61
xor edi, edi
nop dword [eax]
mov eax, ebx
sub eax, edi
jb 0x436a47
xorps xmm0, xmm0
lea edx, [ebp - 0x2c]
lea ecx, [ebp + edi - 0x1054]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x42ddf0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x436a1c
nop dword [eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x2c], 0
je 0x4369c0
cmp dword [ebp - 0x28], 0
jne 0x436a22
add edi, dword [ebp - 0x24]
cmp edi, ebx
jne 0x436980
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x42ddf0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x436940
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x436a25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x30]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1048
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, ebx
push 0xa5e35c
call fcn.0044a6e0
add esp, 4
jmp 0x436a7c
mov dword [ebp - 0x10], 0
mov ecx, ebx
mov edx, 0x1000
push 0xa5e35c
call fcn.0044a530
add esp, 4
ud2
Function at 0x436ac0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], esp
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x44], 0x43c320
lea eax, [esi + 0x40]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x40], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x436b24
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
lea ecx, [esi + 8]
mov dword [esi + 0x28], 0xa5e484
mov dword [esi + 0x2c], 1
mov dword [esi + 0x20], 0
mov dword [esi + 4], eax
mov dword [esi], 0
mov dword [esi + 0x48], 0
mov dword [esi + 8], edx
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x20]
mov edx, 0xa5e4b0
mov dword [esi + 0xc], 0x426f80
mov dword [esi + 0x34], 1
call fcn.0044a480
ud2

Function at 0x4382f0
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x4383bf
mov ebx, dword [edi + 0x14]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x438319
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x43838e
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x4383a9
mov ecx, dword [edi + 0x10]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [esp], 0
mov ebx, esp
push ecx
push ebx
push edx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x438354
mov eax, dword [esp]
mov ecx, 2
test eax, eax
jne 0x438372
jmp 0x438366
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x43836d
cmp eax, 0x6d
jne 0x438383
mov word [esi], 4
jmp 0x43837c
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x43837c
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.0044a330
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x438324
mov ecx, ebx
push 1
call fcn.0044a330
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x438324
mov edx, esp
mov ecx, edi
mov dword [esp + 8], 0
call fcn.0044b490
ud2

Function at 0x440cbf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x440cfe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x440cfe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x440cfe
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x440cfe
cmp dword [ecx + 0x74], 0xe
jbe 0x440cfe
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4436f3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x443790
push ebx
push esi
call fcn.004436bc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00443650
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44373d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44378f
push edi
push eax
call fcn.00444310
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44375d
call fcn.004421b1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44378e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00443650
add esp, 0x20
test eax, eax
jne 0x44377c
push edi
call fcn.004421b1
jmp 0x443784
push ebx
call fcn.004421b1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x444a8d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xa60d60
push 0xa60d58
push str.FlsAlloc
push 0x1f
call fcn.0044494c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444ac1
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c1f4]
call esi
jmp 0x444ac7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x444b0b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xa60d70
push 0xa60d68
push str.FlsGetValue
push 0x21
call fcn.0044494c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444b42
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c1f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x444b4a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xa60d78
push 0xa60d70
push str.FlsSetValue
push 0x22
call fcn.0044494c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x444b84
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44c1f4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44b000
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x44b06a
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x44b0a5
cmp dword [esp + 4], 0
je 0x44b08c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x44b0ba
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0xa679d8]
nop dword [eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0xa679d8], esi
jne 0x44b050
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x44b09c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x44b0fd
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x44b090
mov edi, dword [esp]
jmp 0x44b09c
mov edi, dword [esi]
jmp 0x44b09b
mov edi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 0x10], 0
call fcn.0044b140
ud2
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0xa5e7b4
mov dword [esp + 0x10], 0xa5e7ac
mov dword [esp + 0x14], 1
mov dword [esp + 8], 0
mov dword [esp + 0x18], str._rustc_9df3a39fb30575d808e70800f9fad5362aac57a2librarycore_src_strpattern.rs
mov dword [esp + 0x1c], 0
call fcn.0044a480
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0xa5e7ac
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], str._rustc_9df3a39fb30575d808e70800f9fad5362aac57a2librarycore_src_strpattern.rs
mov dword [esp + 0x1c], 0
call fcn.0044b1a0
ud2
Function at 0x401987
Capabilities:
Clear file content
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x58ced85
jg 0x4019ad
inc edi
cmp edi, 0x1f6502b1
jl 0x401993
cmp dword [0x285bac4], 0x400
jne 0x4019ee
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push esi
push esi
call fcn.00401de1
push esi
call fcn.00401f57
push esi
call fcn.00401f66
add esp, 0x10
xor edi, edi
cmp edi, 0xd036
jge 0x4019ff
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp edi, 0xd2ced2
jg 0x401a27
inc edi
cmp edi, 0x263ff
jl 0x4019f0
mov eax, dword [0x46dc14]
mov dword [0x285bac4], eax
call fcn.004016e4
mov edi, 0x3078f
cmp dword [0x285bac4], 0x51f
jne 0x401a53
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x401a3b
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10
Function at 0x404f9b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46da80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403353
and dword [ebp - 0x14], 0
cmp dword [0x478784], 0
mov dword [ebp - 0x18], eax
jne 0x40504e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4050f6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4050f6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x478784], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x478788], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47878c], eax
call edi
push eax
call esi
mov dword [0x478794], eax
test eax, eax
je 0x40504e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x478790], eax
mov eax, dword [0x478790]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4050a7
cmp dword [0x478794], ecx
je 0x4050a7
push eax
call esi
push dword [0x478794]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4050a7
test ebx, ebx
je 0x4050a7
call edi
test eax, eax
je 0x40509e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40509e
test byte [ebp - 8], 1
jne 0x4050a7
or dword [ebp + 0x10], 0x200000
jmp 0x4050da
mov eax, dword [0x478788]
cmp eax, dword [ebp - 0x18]
je 0x4050da
push eax
call esi
test eax, eax
je 0x4050da
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4050da
mov eax, dword [0x47878c]
cmp eax, dword [ebp - 0x18]
je 0x4050da
push eax
call esi
test eax, eax
je 0x4050da
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x478784]
call esi
test eax, eax
je 0x4050f6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4050f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405306
leave
ret

Function at 0x405306
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46da80]
jne 0x405310
repz ret
jmp fcn.004060bf
Function at 0x4015b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4015e4
test dl, 7
je 0x4015e4
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42da20]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x4015c4
cmp esi, 8
jb 0x401674
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x42da20]
xor ecx, dword [eax*4 + 0x42de20]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42e220]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x42ea20]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x42ee20]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f220]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x42e620]
movzx eax, bl
xor ecx, dword [eax*4 + 0x42f620]
mov ebx, ecx
sub edi, 1
jne 0x4015f3
pop edi
test esi, esi
je 0x401690
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42da20]
inc edx
sub esi, 1
jne 0x401678
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401c12
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x401c2b
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401c9e
mov ecx, esi
call fcn.00401cff
test al, al
je 0x401c66
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401c66
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401c12
jmp 0x401ca1
cmp dword [esi + 0xc], 1
jne 0x401c7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401c7b
xor eax, eax
jmp 0x401ca1
cmp dword [esi + 0xc], 0
jne 0x401c99
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x401c99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401c99
push ebx
jmp 0x401c5a
or eax, 0xffffffff
jmp 0x401ca1
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401d22
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.004112b0
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x401d4c
mov cl, dl
test bl, 4
je 0x401d4e
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401d73
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401d82
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.00403247
test al, al
je 0x401e00
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401dfb
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401e11
cmp dword [esp + 0x10], 2
jne 0x401e11
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
cmp ebp, 0xffffffff
je 0x401e40
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.00405a3a
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004112b0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4023ea
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00403247
test al, al
je 0x4023ea
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402427
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004112b0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004034e5
movzx eax, word [eax]
cmp eax, 0x2e
je 0x402458
cmp eax, 0x20
je 0x402458
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40248b
push esi
call fcn.00402391
test al, al
jne 0x40249e
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.00403247
test al, al
je 0x40249e
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40249e
cmp byte [ebp + 0xc], 0
je 0x40249a
push dword [ebp + 0x10]
push esi
call fcn.00402664
xor eax, eax
jmp 0x4024b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4024b3
cmp eax, 3
je 0x4024b3
xor eax, eax
inc eax
jmp 0x4024b6
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc