joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e8f4
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1010
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1010]
push 0x4016a0
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 1
push 0
mov edi, 0x40166c
push edi
mov esi, connect
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e946
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ea04
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
push edi
push esi
mov byte [0x41703c], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40e97a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ea3a
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x810]
push 0x40165c
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x810]
push eax
xor esi, esi
inc esi
push esi
push 0
push 0x401648
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e9d5
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
jmp 0x40ea3a
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x401640
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
jne 0x40e9cc
call esi
push dword [ebp - 8]
call esi
call fcn.004115bb
push 0x4015b8
mov esi, 0x417034
push esi
call dword [eax + 0xc]
call fcn.004115bb
push esi
call dword [eax + 0x14]
test eax, eax
je 0x40ea3e
call fcn.004115bb
push esi
call dword [eax + 0x18]
call fcn.004115bb
push esi
call dword [eax + 0x14]
test eax, eax
je 0x40ea3e
xor eax, eax
jmp 0x40ea41
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ea46
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004115bb
push 0x417034
call dword [eax + 0x18]
cmp byte [0x41703c], 0
je 0x40ea96
lea eax, [ebp - 4]
push eax
push 0x10009
push 0
push 0x4016e0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ea96
push 0x4016d0
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
leave
ret
Function at 0x411548
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push 0x40e1c0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4115b6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40e1a4
push ebx
call edi
push 0x40e194
push ebx
mov dword [esi], eax
call edi
push 0x40e184
push ebx
mov dword [esi + 4], eax
call edi
push 0x40e16c
push ebx
mov dword [esi + 8], eax
call edi
push 0x40e158
push ebx
mov dword [esi + 0xc], eax
call edi
push 0x40e148
push ebx
mov dword [esi + 0x10], eax
call edi
push 0x40e138
push ebx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
xor eax, eax
inc eax
pop edi
jmp 0x4115b8
xor eax, eax
pop esi
pop ebx
ret

Function at 0x411804
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push connect
push 0x419e68
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41188c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push ebx
lea ecx, [ebp - 8]
push ecx
push 0x2c
lea ecx, [ebp - 0x38]
push ecx
push eax
call esi
xor edi, edi
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call esi
movzx eax, word [ebp - 0xc]
push eax
push edi
push 0x101e
push dword [0x41ae78]
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
cmp edi, 5
jl 0x411847
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41188f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push 0x2c
pop esi
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x41191f
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push 0x419e68
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41191e
push ebx
push edi
lea ecx, [ebp - 8]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x38]
push ecx
push eax
call esi
xor ebx, ebx
push edi
push ebx
push 0x101d
push dword [0x41ae78]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call esi
inc ebx
cmp ebx, 5
jl 0x4118e8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
pop esi
leave
ret
Function at 0x411bd8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
dec ebx
test ebx, ebx
jle 0x411c2d
push esi
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp + 0xc]
push eax
push 2
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0xc], 2
jb 0x411c1e
mov ax, word [esi]
test ax, ax
je 0x411c1e
cmp ax, 0xa
je 0x411c1e
cmp ax, 0xd
je 0x411c1a
inc edi
inc esi
inc esi
cmp edi, ebx
jl 0x411beb
test edi, edi
pop esi
jle 0x411c2d
mov eax, dword [ebp + 8]
and word [eax + edi*2], 0
jmp 0x411c2f
xor eax, eax
pop edi
pop ebx
pop ebp
ret

Function at 0x411d5c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 0xa
not eax
and eax, 1
ret

Function at 0x411df6
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411e19
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and dword [ebp - 0x20], 0
push edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x820]
push 0x40e218
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x820]
push eax
call fcn.00411de2
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x14], 0x40e214
mov word [ebp - 0x10], 0x450
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop edi
je 0x411e92
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x411e92
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x411e92
xor al, al
jmp 0x411e94
mov al, 1
pop esi
leave
ret

Function at 0x411f68
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1820
and dword [ebp - 0x20], 0
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push 6
pop ecx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x40e218
lea eax, [ebp - 0x820]
push edi
push eax
call esi
lea eax, [ebp - 0x820]
push eax
call fcn.00411de2
push dword [ebp + 0xc]
lea eax, [ebp - 0x1020]
push edi
push eax
call esi
lea eax, [ebp - 0x1020]
push eax
call fcn.00411de2
push dword [ebp + 0x10]
lea eax, [ebp - 0x1820]
push dword [ebp + 0xc]
push 0x40e208
push eax
call esi
lea eax, [ebp - 0x1820]
push eax
call fcn.00411de2
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x14], eax
add esp, 0x34
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], 0x450
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop edi
pop esi
je 0x41202a
lea eax, [ebp - 0x1820]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x41202a
xor al, al
leave
ret
mov al, 1
leave
ret
Function at 0x4121bf
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1824
and dword [ebp - 0x24], 0
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push 6
pop ecx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x40e218
lea eax, [ebp - 0x824]
push edi
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x1024]
push edi
push eax
call esi
lea eax, [ebp - 0x824]
push eax
call fcn.00411de2
lea eax, [ebp - 0x1024]
push eax
call fcn.00411de2
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea eax, [ebp - 0x824]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
add esp, 0x20
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x20], 4
mov word [ebp - 0x14], 0x450
mov byte [ebp - 1], 1
call edi
test eax, eax
je 0x412320
push dword [ebp + 8]
lea eax, [ebp - 0x824]
push 0x40e1f8
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x1024]
push 0x40e220
push eax
call esi
lea eax, [ebp - 0x824]
push eax
call fcn.00411de2
lea eax, [ebp - 0x1024]
push eax
call fcn.00411de2
add esp, 0x20
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
je 0x412320
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x1824]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0x400
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x1824]
push eax
call ebx
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1824]
push eax
call esi
push 0x400
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1824]
push eax
call ebx
and byte [ebp - 0x13], 0xfb
lea eax, [ebp - 0x824]
push eax
call fcn.00411de2
lea eax, [ebp - 0x1024]
push eax
call fcn.00411de2
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
pop ebx
je 0x412320
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret
Function at 0x4129c7
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa58
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, 0x800
push ebx
push 0x40
call edi
push dword [ebp + 8]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.004126f0
and dword [ebp + 0xc], 0
cmp dword [esi + 0xc], 0
jbe 0x412ae1
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
push dword [eax + ecx*4]
lea eax, [ebp - 0xa58]
push 0x40e250
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
push dword [eax + ecx*4]
call fcn.00411d5c
add esp, 0x10
test al, al
je 0x412ad2
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0xa58]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x412ad2
push 0x40e24c
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x412ab5
push 0x40e244
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x412ab5
push ebx
push 0x40
call edi
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [esi + 4]
push dword [ecx + edx*4]
mov dword [ebp - 8], eax
push 0x40e208
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [ebp - 8]
mov ecx, esi
call fcn.004126f0
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412a58
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0xc]
jb 0x412a08
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412b44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp dword [ebp + 8], 0
je 0x412c50
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push dword [0x41c70c]
lea eax, [ebp - 0x404]
push 0x40e2b0
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x404]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp + 0xc]
add eax, 0x80a
push eax
lea eax, [ebp - 0x404]
push 0x40e29c
push eax
call esi
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x404]
push eax
call edi
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 4]
push ecx
movzx ecx, word [eax + 0x808]
push ecx
push dword [eax + 0x804]
lea eax, [ebp - 0x404]
push 0x40e270
push eax
call esi
add esp, 0x14
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x404]
push eax
call edi
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp + 0xc]
add eax, 0x100a
push eax
lea eax, [ebp - 0x404]
push 0x40e25c
push eax
call esi
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x404]
push eax
call edi
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4132f6
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push 0x40e370
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp - 4], eax
je 0x4134d5
push dword [ebp + 0xc]
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp - 8], eax
je 0x4134d5
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push edi
push 0x40
mov eax, 0x4124b7
mov edi, 0x4123e5
sub eax, edi
mov ebx, 0x1000
push ebx
push eax
push 0
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call esi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4134c9
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
push dword [ebp - 8]
call edi
push 0x40
push ebx
mov ebx, 0x830
push ebx
push 0
push dword [ebp - 8]
call esi
test eax, eax
mov dword [ebp - 0xc], eax
je 0x4134b6
push dword [ebp + 8]
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40e364
push dword [ebp - 4]
mov dword [ebp - 0x818], eax
call esi
push 0x40e354
push dword [ebp - 4]
mov dword [ebp - 0x844], eax
call esi
push 0x40e348
push dword [ebp - 4]
mov dword [ebp - 0x840], eax
call esi
push 0x40e33c
push dword [ebp - 4]
mov dword [ebp - 0x83c], eax
call esi
push 0x40e330
push dword [ebp - 4]
mov dword [ebp - 0x838], eax
call esi
push 0x40e324
push dword [ebp - 4]
mov dword [ebp - 0x834], eax
call esi
push 0x40e318
push dword [ebp - 4]
mov dword [ebp - 0x830], eax
call esi
push 0x40e30c
push dword [ebp - 4]
mov dword [ebp - 0x82c], eax
call esi
push 0x40e304
push dword [ebp - 4]
mov dword [ebp - 0x828], eax
call esi
push 0x40e2f0
push dword [ebp - 4]
mov dword [ebp - 0x824], eax
call esi
push 0x40e2e0
push dword [ebp - 4]
mov dword [ebp - 0x820], eax
call esi
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call edi
xor esi, esi
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
cmp edi, esi
je 0x41349d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415453
Capabilities:
Create process on windows
Terminate process

Disassembly:
push esi
call fcn.00411d12
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00414c53
mov esi, eax
call fcn.00411d24
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x415c50
Capabilities:
Create thread

Disassembly:
push dword [esp + 4]
push 0x41c728
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
push eax
push eax
push eax
push 0x415a78
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41c828], eax
ret
Function at 0x401045
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x108]
mov dword [ebp - 4], esi
push eax
call fcn.00403920
lea eax, [ebp + esi - 0x109]
pop ecx
xor ebx, ebx
pop ecx
cmp byte [eax], 0x5c
jne 0x401082
dec dword [ebp - 4]
mov byte [eax], bl
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40109b
mov al, 1
jmp 0x40116e
cmp byte [ebp - 0x108], 0x5c
jne 0x4010c6
cmp byte [ebp - 0x107], 0x5c
jne 0x4010c6
lea eax, [ebp - 0x106]
push 0x5c
push eax
call fcn.00403860
pop ecx
cmp eax, ebx
pop ecx
je 0x4010da
push 0x5c
inc eax
jmp 0x4010ce
push 0x5c
lea eax, [ebp - 0x108]
push eax
call fcn.00403860
pop ecx
cmp eax, ebx
pop ecx
jne 0x4010e1
xor al, al
jmp 0x40116e
lea ecx, [ebp - 0x108]
push edi
sub eax, ecx
mov byte [ebp + 0xb], bl
inc eax
mov edi, eax
lea eax, [ebp + edi - 0x108]
push 0x5c
push eax
call fcn.00403860
pop ecx
cmp eax, ebx
pop ecx
jne 0x40111c
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403920
pop ecx
pop ecx
jmp 0x40114c
mov esi, eax
lea eax, [ebp - 0x108]
sub esi, eax
lea eax, [ebp - 0x108]
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403750
lea edi, [esi + 1]
add esp, 0xc
cmp edi, dword [ebp - 4]
mov byte [ebp + esi - 0x20c], bl
jl 0x401150
mov byte [ebp + 0xb], 1
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [ebp + 0xb], bl
je 0x4010f0
xor ecx, ecx
cmp eax, 1
sete cl
mov al, cl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019e5
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push 4
push dword [ebp + 8]
push 0x401a81
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x410158], eax
je 0x401a3e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x401a27
push dword [0x410158]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x401a42
mov eax, dword [0x410158]
test eax, eax
je 0x401a3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x410158], 0
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x402f80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
jmp 0x402fa3
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jbe 0x402fd7
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 0x10]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
mov edx, dword [eax*4 + 0x40d1e4]
xor edx, ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
jmp 0x402f9a
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407dfe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f780
cmp edx, dword [eax]
je 0x407e20
add eax, 8
inc ecx
cmp eax, 0x40f810
jl 0x407e11
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f780]
jne 0x407f4e
mov eax, dword [0x4101d8]
cmp eax, 1
je 0x407f28
test eax, eax
jne 0x407e51
cmp dword [0x40d6a4], 1
je 0x407f28
cmp edx, 0xfc
je 0x407f4e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407e88
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403920
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403a10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407ecb
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403a10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b664
push edi
call fcn.00403750
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403920
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403930
lea eax, [ebp - 0xa0]
push 0x40b644
push eax
call fcn.00403930
push dword [esi + 0x40f784]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403930
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004090d1
add esp, 0x2c
pop edi
jmp 0x407f4e
lea eax, [ebp + 8]
lea esi, [esi + 0x40f784]
push 0
push eax
push dword [esi]
call fcn.00403a10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
mov ebx, dword [esi]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 8]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x404ec8
push 0
lea edx, [ebp - 4]
push edx
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404e75
push str.WriteFile__
push 0x111
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 8
je 0x404e9f
push 0x4ad924
push 0x113
push str.QHImageHlp.c
mov edx, 1
call fcn.00409d60
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 4]
push ecx
lea edi, [ebp - 8]
call fcn.00405e10
add esp, 4
pop edi
test eax, eax
je 0x404efc
mov esi, dword [esi + 4]
xor eax, eax
push eax
push eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x404ee9
push str.SetFilePointerEx__
push 0x10e
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 4
lea ecx, [ebp - 8]
mov edx, ebx
call fcn.00403790
test eax, eax
jne 0x404f04
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret