joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b87
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403b8d
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x403bb4
mov eax, 1
jmp 0x403bb6
xor eax, eax
add esp, 0x24
pop ebp
ret

Function at 0x403bbb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403bc1
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00405060
push 0x21
call fcn.0040c5e0
mov dword [esp + 4], eax
push 0x21
push dword [esp + 8]
call fcn.0040c700
push 0x20
push dword [esp + 8]
mov eax, dword [0x4134cc]
push eax
call fcn.0040c720
push 1
push dword [esp + 4]
mov ebx, dword [esp + 0xc]
add ebx, 0x20
push ebx
call fcn.0040c750
push dword [0x4139d0]
push dword [0x4139d0]
push dword [0x4139d0]
push dword [0x4139d0]
push 0x21
push dword [esp + 0x18]
call fcn.0040db10
mov edx, dword [0x412250]
add dword [esp], edx
call fcn.00405a70
lea eax, [esp + 0xc]
push eax
call fcn.0040f2c0
push dword [esp + 4]
call fcn.0040c6e0
push 0xa
push dword [esp + 0xc]
push dword [esp + 0x34]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x403d96
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.dll_LoadResource
mov dword [0x4133d0], eax
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x4133e4], eax
push dword [esp]
mov edx, 0x41202c
pop ecx
call fcn.0040f340
jne 0x403cde
push dword [esp]
mov edx, 0x412030
pop ecx
call fcn.0040f340
jne 0x403cde
push dword [esp]
mov edx, 0x412032
pop ecx
call fcn.0040f340
jne 0x403cde
jmp 0x403ce5
mov eax, 1
jmp 0x403ce7
xor eax, eax
and eax, eax
je 0x403d96
push dword [0x4133e4]
call fcn.0040c5e0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov ebx, dword [0x4133e4]
dec ebx
cmp ebx, dword [esp + 0x14]
jl 0x403d4c
mov ebx, dword [0x4133d0]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040c600
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x1c], ebx
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
push ebx
pop eax
call fcn.0040c610
inc dword [esp + 0x14]
jno 0x403d06
push dword [0x4134cc]
push dword [0x4133e4]
push dword [esp + 0x18]
call fcn.00403000
push dword [esp + 0x10]
pop eax
mov dword [0x4133d0], eax
push dword [0x4133e4]
push dword [esp + 0x14]
call fcn.0040412f
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
pop eax
mov dword [0x4133d0], eax
push dword [esp + 0x20]
call fcn.0040c790
mov dword [0x4133e4], eax
mov eax, dword [esp + 0xc]
jmp 0x403d9e
push dword [esp + 8]
call fcn.0040f3d0
push dword [esp]
call fcn.0040f3d0
add esp, 0x24
pop ebx
ret 8
Function at 0x404063
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x413490]
cmp ebx, 1
jne 0x404120
push dword [0x4134e4]
call fcn.00409c7b
mov ebx, eax
and ebx, ebx
jle 0x4040c7
push dword [0x4134e4]
call fcn.00409c85
push dword [0x4134e4]
call fcn.00409c9a
or eax, eax
je 0x4040c7
mov ebp, dword [0x4134e8]
push dword [ebp + 8]
call fcn.0040de30
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4040c5
mov ebp, dword [0x4134e8]
push dword [ebp + 8]
call fcn.0040c8fb
jmp 0x404093
push dword [0x4134ec]
call fcn.00409c7b
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x404120
push 5
push 0
push 1
push dword [0x4134ec]
call fcn.00407940
push dword [0x4134ec]
call fcn.00409c85
push dword [0x4134ec]
call fcn.00409c9a
or eax, eax
je 0x404120
mov ebp, dword [0x4134f0]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x404101
mov eax, 1
jmp 0x404129
add esp, 4
pop ebx
pop ebp
ret

Function at 0x40825d
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x4082ac
push dword [esp + 0x10]
push 0x4081db
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4134fc]
cmp esi, ebx
je 0x408300
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4082a4
cmp byte [esi + 0x10], bl
je 0x4082a4
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x408281
jmp 0x408300
mov esi, dword [0x4134fc]
cmp esi, ebx
je 0x408300
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4082f9
cmp byte [esi + 0x11], bl
je 0x4082d6
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x4082ec
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x4134fc
call fcn.0040eeed
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x4082b7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x408b24
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 4], 0xffffffff
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x408b55
cmp byte [eax], 0
je 0x408b55
push eax
call fcn.0040fe20
push eax
push edi
mov dword [ebp + 0x10], eax
call fcn.0040910c
pop ecx
pop ecx
mov esi, eax
jmp 0x408b67
cmp dword [edi + 8], esi
je 0x408c57
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 4]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x408c57
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
je 0x408b90
push dword [esi]
push 0
push dword [0x4133c4]
call ebx
mov dword [ebp + 8], eax
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x408c56
mov eax, dword [ebp + 0xc]
cdq
cmp edx, dword [esi + 4]
jl 0x408c56
jg 0x408bb1
cmp eax, dword [esi]
jb 0x408c56
push 0
push 0
push dword [esi + 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jne 0x408bf6
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x408bf6
push 0
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
mov eax, ecx
cdq
cmp dword [esi], eax
jne 0x408c56
cmp dword [esi + 4], edx
jne 0x408c56
mov dword [ebp - 4], ecx
jmp 0x408c56
push dword [esi + 8]
push 0
push dword [0x4133c4]
call ebx
mov ebx, eax
test ebx, ebx
je 0x408c56
push 0
lea eax, [ebp - 8]
push eax
push dword [esi + 8]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
cdq
cmp dword [esi + 8], eax
jne 0x408c47
cmp dword [esi + 0xc], edx
jne 0x408c47
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.00409270
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x408c47
cmp edx, dword [esi + 4]
jne 0x408c47
mov eax, dword [esi]
mov dword [ebp - 4], eax
push ebx
push 0
push dword [0x4133c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
je 0x408c8a
cmp dword [ebp - 4], 0xffffffff
jne 0x408c80
cmp dword [ebp + 8], edi
je 0x408c7b
push dword [ebp + 8]
push edi
push dword [0x4133c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], edi
jmp 0x408c8a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, edi
pop edi
pop esi
je 0x408c9e
cmp byte [eax], 0
je 0x408c9e
push eax
call fcn.0040fed0
mov eax, dword [ebp - 4]
leave
ret
Function at 0x408d54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
call fcn.0040fe20
mov esi, dword [ebp + 0x10]
lea ebx, [esi + 0x18]
push ebx
push 0
push dword [0x4133c4]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp + 0x10], edi
test edi, edi
je 0x408e42
push 0
push 5
push ebx
push edi
push esi
push dword [ebp + 0xc]
call fcn.004092d8
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x408daf
cmp ebx, esi
jge 0x408daf
mov dword [ebp + 0xc], edi
jmp 0x408db7
mov eax, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
mov edi, dword [ebp + 8]
mov word [ebp - 0xc], ax
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
cdq
mov dword [ebp - 0x1c], eax
pop ecx
mov dword [ebp - 0x18], edx
mov eax, ebx
cdq
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [edi]
mov dword [ebp - 0x10], edx
call esi
cmp dword [ebp - 4], 0x12
jne 0x408e2a
push 0
lea eax, [ebp - 4]
push eax
movsx eax, word [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [edi]
call esi
movsx eax, word [ebp - 0xc]
cmp eax, dword [ebp - 4]
jne 0x408e2a
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi]
call esi
cmp ebx, dword [ebp - 4]
jne 0x408e2a
mov dword [ebp - 8], 1
push edi
call fcn.00408f64
pop ecx
push dword [ebp + 0x10]
push 0
push dword [0x4133c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 0x14]
call fcn.0040fed0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x408fa9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], 0x40
cmp dword [esi + 4], ebx
jne 0x409108
push edi
push 0x100
push ebx
push dword [0x4133c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push ebx
push 4
pop edi
push edi
push dword [esi]
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp + 8], edi
cmp dword [esi + 0x14], 0x706c7a31
push ebx
lea eax, [ebp - 4]
push eax
jne 0x409038
push 0x18
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0x18
jne 0x409107
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0x24]
mov word [ebp - 0xc], ax
jmp 0x409050
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0x12
jne 0x409107
mov eax, dword [ebp - 8]
cmp dword [esi + 0xc], eax
jl 0x409076
add eax, 0x40
mov dword [ebp - 8], eax
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x4133c4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi + 4], eax
movsx eax, word [ebp - 0xc]
add eax, 0x19
push eax
push ebx
push dword [0x4133c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], eax
push ebx
lea eax, [ebp - 4]
push eax
movsx eax, word [ebp - 0xc]
push eax
lea eax, [edi + 0x14]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov byte [eax + edi + 0x14], bl
cmp dword [esi + 0x14], 0x706c7a31
movsx eax, word [ebp - 0xc]
jne 0x4090d8
lea eax, [ecx + eax + 0x18]
jmp 0x4090df
lea eax, [ecx + eax + 0x12]
mov dword [ebp + 8], eax
mov dword [edi + 0x10], eax
add eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
push 1
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + eax*4], edi
inc dword [esi + 0xc]
push ebx
push dword [ebp - 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x408ff0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a6b4
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x413a80]
call fcn.0040e81a
mov edi, eax
test edi, edi
je 0x40a716
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40a6dd
push dword [esp + 0xc]
push edi
call eax
jmp 0x40a716
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040f540
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040f660
pop esi
pop ebx
pop edi
ret 8

Function at 0x40aa3f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x40ab28
mov eax, dword [ebp - 0xc]
dec eax
je 0x40ab0b
dec eax
jne 0x40ab28
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40aa9e
cmp byte [ebp - 0x1e], 1
jne 0x40aa9e
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x40ab07
dec eax
je 0x40ab03
dec eax
je 0x40aae1
dec eax
jne 0x40ab28
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40aad5
dec eax
je 0x40aac9
dec eax
jne 0x40ab28
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x40ab28
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x40ab28
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x40ab28
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40aaff
dec eax
je 0x40aafb
dec eax
jne 0x40ab28
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x40ab28
push 0x3c
jmp 0x40ab27
push 0x32
jmp 0x40ab27
push 0x14
jmp 0x40ab27
push 5
jmp 0x40ab27
cmp dword [ebp - 0x14], 0
je 0x40ab25
cmp dword [ebp - 0x14], 0xa
je 0x40ab21
cmp dword [ebp - 0x14], 0x5a
jne 0x40ab28
push 0x28
jmp 0x40ab27
push 0x1e
jmp 0x40ab27
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x40ba70
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40baec
push 9
call esi
test bl, al
je 0x40baec
push 0x11
call esi
test bl, al
jne 0x40baec
push 0x10
call esi
test bl, al
jne 0x40baec
push 0x12
call esi
test bl, al
jne 0x40baec
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40baec
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40baec
xor eax, eax
jmp 0x40bb6e
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40bb15
push 0x11
call esi
test bl, al
jne 0x40bb0d
push 0x10
call esi
test bl, al
jne 0x40bb0d
push 0x12
call esi
test bl, al
je 0x40bb15
push 1
push ebp
call fcn.0040ba29
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40bb2b
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40bb6b
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40bb6b
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40bb6b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40bb6b
dec esi
push esi
push dword [0x413a88]
call fcn.0040e81a
test eax, eax
je 0x40bb6b
mov eax, dword [eax + 8]
jmp 0x40bb6d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40bc30
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x41395c], eax
cmp eax, edi
je 0x40bc63
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x413960], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x413958], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40bca1
cmp dword [ebp - 0xc], 1
je 0x40bcb2
cmp dword [ebp - 0xc], 2
jne 0x40bca1
cmp dword [ebp - 0x18], 5
jb 0x40bcb2
jne 0x40bca1
cmp dword [ebp - 0x14], edi
jne 0x40bca1
mov dword [0x413958], edi
cmp dword [0x413958], edi
je 0x40bcb8
call fcn.0040bb77
test eax, eax
jne 0x40bcb8
mov dword [0x413958], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40c8cd
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40c8f6
test byte [esp + 8], 2
je 0x40c8ea
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40c8f8
xor eax, eax
ret 8
Function at 0x40ca34
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40caa4
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40ca86
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40ca85
cmp dl, 0x5c
je 0x40ca85
cmp dl, 0x2f
jne 0x40ca90
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40ca73
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40caa6
xor eax, eax
leave
ret 4

Function at 0x40cab0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40cae5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40ce90
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x40cee9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40cee8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x413b28]
push eax
push ecx
call fcn.0040e81a
test eax, eax
je 0x40cee4
cmp dword [eax + 4], 0
je 0x40ced2
push esi
push edi
push eax
call fcn.0040cef0
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x40cef0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x40cf25
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40cf9a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x40cf87
dec ecx
je 0x40cf72
sub ecx, 2
je 0x40cf5f
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0040cab0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40cfc7
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x40dc10
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
mov dword [esp + 8], 0x80000
test eax, eax
je 0x40de1e
push edi
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x40de1d
mov eax, dword [0x4133c4]
push ebp
push 0x80000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40de15
cmp dword [esp + 0x30], ebx
jl 0x40dc91
mov eax, dword [esp + 0x2c]
jg 0x40dc82
test eax, eax
je 0x40dc91
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x34]
add edx, 0x80000
mov dword [esp + 0x28], edx
jmp 0x40dca5
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x28], 0x80000
add ebx, 0x80000
and eax, ecx
mov dword [esp + 0x14], ebx
cmp eax, 0xffffffff
je 0x40dcdd
mov eax, ebx
cdq
cmp edx, ecx
jl 0x40dcdd
jg 0x40dcd5
cmp eax, dword [esp + 0x34]
jbe 0x40dcdd
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x18]
mov eax, ebp
mov edx, ebx
cmp ebx, 8
jb 0x40dddc
mov edi, ebx
shr edi, 3
jmp 0x40dd10
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov esi, dword [esp + 0x1c]
shr ecx, 8
xor ecx, dword [esi*4 + 0x411550]
movzx esi, byte [eax + 1]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411550]
movzx esi, byte [eax + 2]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411550]
movzx esi, byte [eax + 3]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411550]
movzx esi, byte [eax + 4]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411550]
movzx esi, byte [eax + 5]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411550]
movzx esi, byte [eax + 6]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411550]
movzx esi, byte [eax + 7]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411550]
add eax, 8
sub edx, 8
dec edi
mov esi, ecx
jne 0x40dd10
mov edi, dword [esp + 0x20]
test edx, edx
je 0x40ddf9
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x411550]
inc eax
dec edx
jne 0x40dde0
cmp ebx, 0x80000
je 0x40dca1
mov edx, dword [0x4133c4]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, esi
pop esi
not eax
pop ebx
add esp, 0x14
ret 0x14

Function at 0x40de50
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret