joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ede0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x48b924]
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x48b920
mov dword [esp + 0x30], 0x48b918
lea esi, [esp + eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], 0
test eax, eax
je 0x45ee39
add eax, 4
jmp 0x45ee3b
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.0045d5b0
lea ecx, [esp + 0x24]
call fcn.0045cda0
push 0
lea ecx, [esp + 0x34]
call fcn.0045cde0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x40], 1
test ebx, ebx
je 0x45ee6e
lea ecx, [ebx - 1]
jmp 0x45ee70
xor ecx, ecx
mov edx, dword [esp + 0x18]
mov eax, 0x48b6d0
test edx, edx
je 0x45ee7f
mov eax, edx
cmp word [eax + ecx*2], 0x5c
je 0x45eef1
test ebx, ebx
je 0x45ee8f
lea ecx, [ebx - 1]
jmp 0x45ee91
xor ecx, ecx
test edx, edx
mov eax, 0x48b6d0
je 0x45ee9c
mov eax, edx
cmp word [eax + ecx*2], 0x2f
je 0x45eef1
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 8]
lea edi, [esi + 4]
test eax, eax
jne 0x45eeb6
mov eax, 0x48b6d0
cmp word [eax], 0x5c
je 0x45eedf
mov eax, dword [edi + 4]
test eax, eax
jne 0x45eec8
mov eax, 0x48b6d0
cmp word [eax], 0x2f
je 0x45eedf
test ebx, ebx
je 0x45eedf
push 0x5c
push 1
lea ecx, [esp + 0x1c]
call fcn.00405ab0
mov ecx, dword [0x48b6b0]
neg esi
sbb esi, esi
push ecx
and esi, edi
push 0
push esi
jmp 0x45ef34
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
lea esi, [eax + 4]
test ecx, ecx
jne 0x45ef04
mov ecx, 0x48b6d0
cmp word [ecx], 0x5c
je 0x45ef20
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x45ef16
mov ecx, 0x48b6d0
cmp word [ecx], 0x2f
je 0x45ef20
xor edx, edx
jmp 0x45ef25
mov edx, 1
mov ecx, dword [0x48b6b0]
neg eax
sbb eax, eax
push ecx
and eax, esi
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.0040b07a
mov edi, dword [esp + 0x48]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, edi
mov dword [edi], 0x48b920
mov dword [edi + 0x20], 0x48b918
call fcn.00403d4e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
neg eax
sbb eax, eax
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea esi, [esp + 0x10]
neg esi
sbb esi, esi
lea eax, [esp + 0x24]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.00439080
mov edx, dword [esi + 8]
add esp, 4
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
neg ecx
sbb ecx, ecx
push 1
and ecx, eax
call fcn.00403edb
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x38]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x465750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 2
mov dword [esi + 0x20], eax
and eax, 0xffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov ecx, dword [ebx + 0x10]
push eax
push edi
mov dword [esi + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x465791
pop edi
pop esi
pop ebx
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4657a3
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push ebx
call fcn.004657d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x477410
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREInstallShield16.0Professional
push SysReAllocStringLen
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47749a
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.DoVerboseLogging
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47748f
mov ecx, dword [esp + 8]
push ebx
cmp ecx, 1
sete bl
test esi, esi
je 0x477487
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
add esp, 0x10
ret
test esi, esi
je 0x47749a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x10
ret
Function at 0x477890
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48a875
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [esp + 0x68]
mov dword [esp + 4], 0x48b660
test eax, eax
mov dword [esp + 0x24], 0x48b658
jne 0x4778c5
mov eax, 0x4aa140
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x78]
push 0
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004011a9
lea edx, [esp + 0x3c]
mov dword [esp + 0x70], 0
push edx
call fcn.004774e0
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, eax
mov byte [esp + 0x88], 1
call fcn.00401a14
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x78], edi
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x5c]
neg eax
sbb eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, ecx
mov byte [esp + 0x70], 5
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call ebx
lea ecx, [esp + 0x3c]
mov dword [esi], eax
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x50]
and ecx, eax
call fcn.00402e22
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x40]
neg ecx
sbb ecx, ecx
push 1
and ecx, edx
mov byte [esp + 0x74], 4
call fcn.00401245
mov byte [esp + 0x70], 3
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov edx, dword [esp + ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ebp, eax
lea esi, [eax + eax + 2]
mov eax, dword [esp + 0x2c]
cmp esi, eax
mov eax, dword [esp + 0x28]
jae 0x4779a9
test eax, eax
jne 0x4779c7
push eax
call fcn.00439080
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [esp + 0x34], esi
call fcn.004675be
add esp, 8
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x2c]
push 0
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401b10
lea edx, [esp + 0x10]
push 0
mov eax, dword [esp + 0x2c]
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x4779fc
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4779fc
push edi
call eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
neg eax
sbb eax, eax
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call ebx
mov dword [esi], eax
lea esi, [esp + 0x14]
neg esi
sbb esi, esi
lea eax, [esp + 0x28]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.00439080
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push edx
call edi
lea esi, [esp + 0x14]
lea eax, [esp + 0x18]
neg esi
sbb esi, esi
xor ebx, ebx
and esi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x477a6a
mov cl, byte [eax - 1]
test cl, cl
je 0x477a64
cmp cl, 0xff
je 0x477a64
dec cl
mov byte [eax - 1], cl
jmp 0x477a6a
add eax, 0xfffffffe
push eax
call edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x60]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x47feea
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x48aa03
call fcn.0046746c
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.0048011a
test al, 0x10
pop ecx
je 0x48006c
push 1
lea eax, [ebp + 8]
pop ebx
push 0x4a4810
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004800a1
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], bl
push ecx
mov ecx, eax
call fcn.0042faed
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00402438
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x480013
test ebx, ebx
je 0x480008
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x48cfd4
push eax
call ebx
test eax, eax
je 0x47fff3
lea eax, [ebp - 0x1bc]
push 0x4a9ff4
push eax
call ebx
test eax, eax
je 0x47fff3
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x48b920
mov dword [ebp - 0x20], 0x48b918
call fcn.00402d70
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.0045ede0
add esp, 0xc
call fcn.0047feea
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00402438
lea eax, [ebp - 0x1e8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
jmp 0x47ff6d
test esi, esi
je 0x480013
push edi
call esi
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042faed
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x480042
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.0042c1ff
lea eax, [ebp - 0x60]
push 0x4974e0
push eax
call fcn.00468cf7
cmp dword [ebp - 0x10], 0xffffffff
je 0x480051
test esi, esi
je 0x480051
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402438
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.0042faed
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x480051
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.0042c1ff
lea eax, [ebp - 0xa8]
push 0x4974e0
push eax
call fcn.00468cf7

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.0042faed
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x48014f
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
leave
ret
Function at 0x480660
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0042faed
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x480697
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
leave
ret

Function at 0x480b51
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8

Function at 0x4811a7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
lea eax, [ebp - 0x10]
push 4
push eax
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x7863513
push dword [ebp + 0xc]
call fcn.00481429
add esp, 0x10
mov dword [ebp - 4], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
je 0x481302
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.00481467
add esp, 0xc
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x4812f8
push edi
push edi
push edi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x4812ef
mov ebx, dword [ebp + 8]
xor ecx, ecx
or ebx, esi
xor esi, esi
cmp ecx, edi
mov dword [ebp - 0x1c], edi
jl 0x4812c5
jg 0x481269
cmp ebx, edi
jbe 0x4812c5
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], edi
cdq
push edx
push eax
push dword [ebp - 0x1c]
push esi
je 0x481292
call fcn.0046a6c0
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.004813ff
jmp 0x4812aa
call fcn.0046a6c0
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.00481414
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov byte [esi + ecx], al
add esi, 1
adc dword [ebp - 0x1c], edi
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
jl 0x481269
jg 0x4812c5
cmp esi, ebx
jb 0x481269
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4812e3
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4812e3
push dword [esi + 8]
push ecx
push ebx
push dword [ebp + 0xc]
call eax
add esp, 0x10
mov dword [esi + 0xc], eax
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push dword [ebp - 4]
call fcn.00439080
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x481429
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
call fcn.004675be
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
mov ebx, eax
jle 0x481461
push edi
mov edi, dword [ebp + 8]
sub edi, ebx
mov eax, esi
lea ecx, [esi + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [edi + ecx]
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
jl 0x481446
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x402f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1e6b
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x629af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x403079
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, 0x632cd8
call fcn.0042af50
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0xa4]
push eax
push str._err
lea ecx, [ebp + 8]
push ecx
push str.MyWriteFile_file
push 0x6016e0
mov ecx, dword [ebp - 0xac]
call fcn.0040eb00
mov ecx, eax
call fcn.0040eb00
mov ecx, eax
call fcn.0040ea00
mov ecx, eax
call fcn.0040eb00
mov ecx, eax
call fcn.0040f020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.0042ad30
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4030a4
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x404230
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0x10325476
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405e20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2250
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x629af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a740
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040a980
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 1
jmp 0x405e85
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x14]
jge 0x405ebd
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*4]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00409860
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a900
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.004098e0
jmp 0x405e7c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.0040a7b0
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x54]
call fcn.00405a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040a8b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x406c10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 8], eax
push 0x601cf0
mov eax, dword [ebp - 8]
push eax
call fcn.00579e00
add esp, 8
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret

Function at 0x406c40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 8], eax
push 0x601d04
mov eax, dword [ebp - 8]
push eax
call fcn.00579e00
add esp, 8
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret
Function at 0x413700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.004135c0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004136a0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x413739
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
jmp 0x4137ca
push 0x600dd4
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0057ae47
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x413766
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
jmp 0x4137ca
mov edx, dword [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
call fcn.00413650
lea ecx, [ebp - 0x10]
call fcn.00413630
movzx eax, al
test eax, eax
je 0x413794
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
jmp 0x4137ca
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.0057b163
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0057b511
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4137d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1e6b
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x629af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4138b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, 0x632cd8
call fcn.0042af50
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0xa4]
push eax
push 0x600dfc
lea ecx, [ebp + 8]
push ecx
push 0x600de8
push 0x600dd8
mov ecx, dword [ebp - 0xac]
call fcn.0040eb00
mov ecx, eax
call fcn.0040eb00
mov ecx, eax
call fcn.0040ea00
mov ecx, eax
call fcn.0040eb00
mov ecx, eax
call fcn.0040f020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.0042ad30
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4138e4
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x414790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c23ab
mov eax, dword fs:[0]
push eax
sub esp, 0xa84
mov eax, dword [0x629af0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x2f
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0057a9e0
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x9fc]
push ecx
call fcn.00414490
add esp, 0xc
mov ecx, 0xd2
mov esi, eax
lea edi, [ebp - 0x6b4]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xd2
lea esi, [ebp - 0x6b4]
lea edi, [ebp - 0x364]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x364]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x108], 0
jle 0x4148c7
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x108]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10c]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004137d0
add esp, 0xc
mov dword [ebp - 0x368], eax
lea ecx, [ebp - 0xa88]
push ecx
mov ecx, 0x632cd8
call fcn.0042af50
mov dword [ebp - 0xa8c], eax
mov edx, dword [ebp - 0xa8c]
mov dword [ebp - 0xa90], edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x368]
push eax
push 0x6010d4
lea ecx, [ebp - 0x14]
push ecx
push 0x6010bc
mov ecx, dword [ebp - 0xa90]
call fcn.0040eb00
mov ecx, eax
call fcn.0040ea00
mov ecx, eax
call fcn.0040eb00
mov ecx, eax
call fcn.0040ead0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa88]
call fcn.0042ad30
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x108]
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x108
call fcn.00402e20
mov esi, dword [ebp - 0x10]
mov ecx, 0xa
mov edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0057976c
mov esp, ebp
pop ebp
ret