joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bb60
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x413054]
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.00405f0a
and dword [ebp - 0x14], 0
cmp dword [0x414e04], 0
mov dword [ebp - 0x18], eax
jne 0x40bc13
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40bcbb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40bcbb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x414e04], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x414e08], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x414e0c], eax
call edi
push eax
call esi
mov dword [0x414e14], eax
test eax, eax
je 0x40bc13
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x414e10], eax
mov eax, dword [0x414e10]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40bc6c
cmp dword [0x414e14], ecx
je 0x40bc6c
push eax
call esi
push dword [0x414e14]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40bc6c
test ebx, ebx
je 0x40bc6c
call edi
test eax, eax
je 0x40bc63
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40bc63
test byte [ebp - 8], 1
jne 0x40bc6c
or dword [ebp + 0x10], 0x200000
jmp 0x40bc9f
mov eax, dword [0x414e08]
cmp eax, dword [ebp - 0x18]
je 0x40bc9f
push eax
call esi
test eax, eax
je 0x40bc9f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40bc9f
mov eax, dword [0x414e0c]
cmp eax, dword [ebp - 0x18]
je 0x40bc9f
push eax
call esi
test eax, eax
je 0x40bc9f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x414e04]
call esi
test eax, eax
je 0x40bcbb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40bcbd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d80
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x426362d4
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x31fc0f0d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x416ec0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d85
mov dword [ebp - 0x14], eax
cmp dword [0x45b240], esi
jne 0x416fb3
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417093
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x417093
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417093
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45b240], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45b244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45b248], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45b250], eax
test eax, eax
je 0x416fb0
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45b24c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416fd8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416fcb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416fed
push 4
pop eax
jmp 0x417095
cmp dword [ebp - 0x14], esi
je 0x416fed
push dword [0x45b240]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416fd2
mov eax, dword [0x45b24c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41704b
cmp dword [0x45b250], edi
je 0x41704b
push eax
call ebx
push dword [0x45b250]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41704b
test eax, eax
je 0x41704b
call ecx
test eax, eax
je 0x417040
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x417040
test byte [ebp - 8], 1
jne 0x41704b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41707b
mov eax, dword [0x45b244]
cmp eax, edi
je 0x417078
push eax
call ebx
test eax, eax
je 0x417078
call eax
mov esi, eax
test esi, esi
je 0x417078
mov eax, dword [0x45b248]
cmp eax, edi
je 0x417078
push eax
call ebx
test eax, eax
je 0x417078
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45b240]
call ebx
test eax, eax
je 0x417093
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417095
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406fb0
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x402c00
pop dword [ebp - 0xc]
mov eax, 0x77a777c8
sub eax, 0x77674bc8
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x14ea621d
add dword [ebp - 0x1c], 0x3967e32e
mov dword [ebp - 0x18], 0x2e1797d1
sub dword [ebp - 0x18], 0xfbe44b8c
mov dword [ebp - 0x14], 0x7c4904bd
sub dword [ebp - 0x14], 0x2ffcc08f
mov dword [ebp - 0x10], 0xb7a992b
sub dword [ebp - 0x10], 0xb7a992b
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xf5c7b83a
add dword [ebp - 0x1c], 0x7eaab11c
mov dword [ebp - 0x18], 0xbe188262
add dword [ebp - 0x18], 0x8353df13
mov dword [ebp - 0x14], 0x3d6461ef
sub dword [ebp - 0x14], 0xd9f4f583
mov dword [ebp - 0x10], 0xd96b42a1
add dword [ebp - 0x10], 0x2694bd5f
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x358de
push 0
call eax
mov ecx, 0x3f328098
sub ecx, 0x3f323d22
mov esi, eax
mov edi, 0xa781cead
add edi, 0x58bf4153
add edi, dword [ebp - 0xc]
mov ebx, 0x3bb996c2
sub ebx, 0x5022c178
mov edx, dword [edi]
xor dword [ebp - 8], ecx
xor edx, ebx
sub dword [ebp - 8], ecx
mov dword [esi], edx
add dword [ebp - 4], 0xe843f01d
add esi, 0x831ca092
sub esi, 0x831ca08e
add edi, 4
loop 0x402d18
add eax, 0x2bd4f0e3
add eax, 0xd42c0fc8
mov ebx, eax
add eax, 0x94bd094a
add eax, 0x6b42f6bb
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40148e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x472eb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401523
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e0
cmp dword [ebp + 0x10], ebx
jne 0x401517
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040148e
test eax, eax
jne 0x4014f2
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040645a
cmp eax, ebx
je 0x40152a
push ebx
push dword [0x472eb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401523
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x472eb0], ebx
jne 0x401520
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401520
jmp 0x401523

Function at 0x4033f9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42f1e4]
sub esi, dword [0x4331f0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x472e20], eax
jle 0x403557
push dword [0x4331ec]
call fcn.004033e2
push ebx
push ebx
push dword [0x4331f0]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42f1e0], esi
mov dword [0x41f154], ebx
mov ebp, 0x4271e0
mov eax, dword [0x4331e8]
sub eax, dword [0x4331ec]
mov edi, 0x4000
cmp eax, edi
jg 0x40346e
mov edi, eax
push edi
mov esi, 0x42f1e8
push esi
call fcn.004033b0
test eax, eax
je 0x403569
add dword [0x4331ec], edi
mov dword [0x427170], esi
mov dword [0x427174], edi
cmp dword [0x472ddc], ebx
je 0x4034c5
cmp dword [0x472ea0], ebx
jne 0x4034c5
mov eax, dword [0x42f1e0]
sub eax, dword [0x42f1e4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4331f0]
mov dword [0x41f154], eax
call fcn.0040330e
pop ecx
mov ecx, 0x427158
mov dword [0x427178], ebp
mov dword [0x42717c], 0x8000
call fcn.004073a4
test eax, eax
jl 0x40356e
mov esi, dword [0x427178]
sub esi, ebp
je 0x403523
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403573
cmp esi, dword [esp + 0x10]
jne 0x403573
add dword [0x4331f0], esi
cmp dword [0x427174], ebx
jne 0x403494
jmp 0x40352f
cmp dword [0x427174], ebx
jne 0x40356e
cmp edi, ebx
je 0x40356e
mov eax, dword [0x42f1e4]
mov ecx, eax
sub ecx, dword [0x4331f0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403458
push ebx
push ebx
push eax
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.0040330e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403561
push 0xfffffffffffffffd
pop eax
jmp 0x403561
push 0xfffffffffffffffe
jmp 0x403570
Function at 0x4050df
Capabilities:
Inspect section memory permissions

Disassembly:
mov esi, dword [ebp - 0x88]
mov ax, word [ebp - 8]
cmp ax, word [esi + 6]
jne 0x405050
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov esi, 0x60000000
jmp 0x405078
call fcn.0040496d
xchg esi, eax
pop ss
xchg ebx, eax
int1
movzx eax, word [ebp - 8]
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*8 + 0x104]
mov edx, dword [esi + eax*8 + 0x108]
lea eax, [esi + eax*8 + 0xf8]
mov esi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp + 8], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp + 8]
ja 0x4050ce
mov edx, esi
mov edi, esi
and edx, 0x20000000
and edi, 0x40000000
and esi, 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4050b7
or byte [eax + ecx], 1
cmp edi, ebx
je 0x4050bf
or byte [eax + ecx], 2
cmp esi, ebx
je 0x4050c8
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp + 8]
jbe 0x4050ac
inc dword [ebp - 8]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp - 8]
cmp cx, word [eax + 6]
jbe 0x405031
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40511b
dec eax
je 0x405112
sub eax, 3
je 0x405109
mov dword [ebp - 4], 0x40
jmp 0x40511e
mov dword [ebp - 4], 4
jmp 0x40511e
mov dword [ebp - 4], 0x20
jmp 0x40511e
mov dword [ebp - 4], ecx
call fcn.0040496d
rol dword cs:[ebp - 0x3827c6f], 0x40
je 0x405145
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push esi
call dword [ebp - 0xc4]
test eax, eax
je 0x405178
add esi, dword [ebp - 0xac]
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4050ea
mov eax, dword [ebp - 0x88]
mov esi, dword [eax + 0x28]
add esi, dword [ebp + 0xc]
call fcn.0040496d
invalid
push 0x8000
push ebx
push dword [ebp + 0xc]
call dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407316
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407351
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40732a
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x407325
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40737e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40735f
not eax
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
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
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x47554d07
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x794d7294
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4017e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp word [edx + eax*2], 0
jne 0x4017f4
mov dword [ebp - 0x254], eax
mov ecx, eax
lea ecx, [ebx + ecx*2]
mov edx, 0x4114ee
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x40180f
pop eax
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x254]
mov word [ebx + eax*2], 0
cmp esi, 0xffffffff
je 0x40192c
xor edi, edi
push 0x4114ea
lea eax, [ebp - 0x224]
push eax
call fcn.0040a230
add esp, 8
test eax, eax
je 0x4018d9
push 0x4114e4
lea eax, [ebp - 0x224]
push eax
call fcn.0040a230
add esp, 8
test eax, eax
je 0x4018d9
mov ecx, dword [ebp - 0x254]
lea ecx, [ebx + ecx*2]
lea edx, [ebp - 0x224]
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x401888
pop eax
test byte [ebp - 0x250], 0x10
je 0x4018b9
push 0x4115e6
push ebx
call fcn.0040b9e0
add esp, 8
push ebx
call fcn.004017e0
mov edi, eax
jmp 0x4018d5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4018d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4018fe
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401846
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x4018fe
xor edi, edi
mov eax, dword [ebp - 0x254]
mov word [ebx + eax*2], 0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jne 0x401928
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x401928
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
jmp 0x401932
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402370
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040a6e0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov dword [ebx], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push 0x417730
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4023c4
xor eax, eax
jmp 0x40250f
push 0
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4024fb
cmp word [ebp - 0x1010], 0x5a4d
jne 0x402506
cmp dword [ebp - 0xfd4], 0xf08
jae 0x402506
mov eax, dword [ebp - 0xfd4]
lea eax, [ebp + eax - 0x1010]
mov dword [ebp - 0x1014], eax
cmp dword [eax], 0x4550
jne 0x402506
mov eax, dword [ebp - 0x1014]
add eax, 0xf8
lea edx, [ebp - 0x10]
cmp eax, edx
jae 0x402506
xor edx, edx
xor ecx, ecx
jmp 0x402453
cmp dword [eax + 0x14], edx
jbe 0x40244f
mov edx, dword [eax + 0x14]
mov edi, dword [eax + 0x14]
add edi, dword [eax + 0x10]
mov dword [ebx], edi
add eax, 0x28
inc ecx
mov edi, dword [ebp - 0x1014]
movzx edi, word [edi + 6]
cmp ecx, edi
jl 0x40243f
push 0
push 0
mov ebx, dword [ebx]
add ebx, 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x402506
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4024fb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ebx
cmp dword [ebp - 4], 8
jb 0x4024fb
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4024fb
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ebx
cmp dword [ebp - 4], 8
jb 0x4024fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40250f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40250f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402db0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
xor eax, eax
mov edx, eax
mov ecx, 8
mov ebx, edx
shr ebx, 1
mov esi, edx
and esi, 1
dec esi
not esi
and esi, 0xedb88320
mov edx, ebx
xor edx, esi
dec ecx
jne 0x402dbb
mov dword [eax*4 + 0x4189bc], edx
inc eax
cmp eax, 0x100
jb 0x402db4
cmp eax, 0x800
jae 0x402e14
mov edx, dword [eax*4 + 0x4185bc]
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4189bc]
shr edx, 8
xor ecx, edx
mov dword [eax*4 + 0x4189bc], ecx
inc eax
cmp eax, 0x800
jb 0x402dea
mov dword [0x4174cc], fcn.00405e90
call fcn.00406070
test eax, eax
jne 0x402e31
mov dword [0x4174cc], 0x405f40
pop esi
pop ebx
ret

Function at 0x402fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [esi]
test edi, edi
je 0x40301f
mov dword [esi], 0
mov eax, edi
mov edx, 0x400000
cmp eax, 0x400000
jbe 0x402feb
mov eax, edx
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
add dword [esi], edx
test eax, eax
je 0x403023
cmp dword [ebp - 4], 0
je 0x40301f
test edi, edi
jne 0x402fdb
xor eax, eax
jmp 0x403029
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [esi]
test edi, edi
je 0x40309f
mov dword [esi], 0
mov eax, edi
mov edx, 0x400000
cmp eax, 0x400000
jbe 0x40306b
mov eax, edx
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
add dword [esi], edx
test eax, eax
je 0x4030a3
cmp dword [ebp - 4], 0
je 0x40309f
test edi, edi
jne 0x40305b
xor eax, eax
jmp 0x4030a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403160
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40318d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4031a3
mov eax, dword [ebp - 4]
xor edx, edx
mov edx, eax
xor eax, eax
xor edi, edi
add eax, esi
adc edx, edi
mov dword [ebx], eax
mov dword [ebx + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8