joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b96b
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff7a4
mov ebx, eax
mov eax, ebx
call fcn.0041d660
push 0x104
lea edx, [esp + 4]
push edx
push 0x67
push dword [ebx + 4]
call sub.USER32.dll_GetDlgItemTextA
push 0x69
push dword [ebx + 4]
call sub.USER32.dll_GetDlgItem
mov esi, eax
push 0
push 0
push 0x1004
push esi
call sub.USER32.dll_SendMessageA
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jle 0x41ba88
push 2
mov ebp, ebx
push ebp
push 0x102c
push esi
call sub.USER32.dll_SendMessageA
test al, 2
je 0x41ba7f
xor eax, eax
lea edx, [esp + 0x104]
mov dword [esp + 0x210], eax
lea ecx, [esp + 0x208]
mov dword [esp + 0x220], 0x104
mov dword [esp + 0x21c], edx
push ecx
push ebp
push 0x102d
push esi
call sub.USER32.dll_SendMessageA
lea eax, [esp + 0x104]
push eax
lea edx, [esp + 4]
push edx
push 0x45dbc4
push 0x453e32
lea ecx, [esp + 0x23c]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0x14
lea eax, [esp + 0x22c]
push eax
call sub.KERNEL32.dll_DeleteFileA
lea edx, [esp + 0x104]
push edx
lea ecx, [esp + 4]
push ecx
push 0x45dbc4
push 0x453f0b
lea eax, [esp + 0x554]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x14
lea edx, [esp + 0x544]
push edx
call sub.KERNEL32.dll_DeleteFileA
push 0
push ebp
push 0x1008
push esi
call sub.USER32.dll_SendMessageA
dec ebx
dec edi
inc ebx
cmp edi, ebx
jg 0x41b9b9
add esp, 0x85c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41bbeb
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push 0x45d9bc
lea eax, [esp + 0xc]
push eax
call fcn.00446208
add esp, 8
push 0x453c5b
lea edx, [esp + 0xc]
push edx
call fcn.00446178
add esp, 8
lea eax, [esp + 8]
call fcn.00445470
test al, al
jne 0x41bc73
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x20]
push edx
call sub.KERNEL32.dll_CreateFileA
mov dword [esp], eax
push 0x453fb8
call fcn.00446238
pop ecx
push 0
lea ecx, [esp + 8]
push ecx
push eax
push 0x453fb8
push dword [esp + 0x10]
call sub.KERNEL32.dll_WriteFile
mov eax, dword [esp]
cmp eax, 0xffffffff
je 0x41bc73
push eax
call sub.KERNEL32.dll_CloseHandle
push 1
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0x453fca
push dword [ebx + 4]
call sub.SHELL32.DLL_ShellExecuteA
add esp, 0x10c
pop ebx
ret
Function at 0x41f72a
Capabilities:
Enumerate files on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa4c
push ebx
push esi
push edi
mov edi, ecx
mov word [ebp - 2], 0
mov esi, edx
mov ebx, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x164]
push edx
push ebx
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00446208
add esp, 8
lea eax, [ebp - 0x26c]
mov edx, dword [ebp - 8]
call fcn.00445579
lea ecx, [ebp - 0x26c]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x168], eax
jmp 0x41f7be
cmp word [ebp - 2], 0xffff
jae 0x41f78d
inc word [ebp - 2]
cmp ebx, 0xffffffff
je 0x41f7be
lea eax, [ebp - 0x164]
push eax
push ebx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x41f7bc
push dword [ebp - 0x168]
call sub.KERNEL32.dll_FindClose
mov dword [ebp - 0x168], 0xffffffff
xor edx, edx
jmp 0x41f7be
mov dl, 1
mov ebx, dword [ebp - 0x168]
cmp ebx, 0xffffffff
setne al
and eax, 1
test al, al
jne 0x41f781
mov eax, dword [ebp - 0x168]
cmp eax, 0xffffffff
je 0x41f7e2
push eax
call sub.KERNEL32.dll_FindClose
lea edx, [ebp - 0xc]
push 0
push edx
lea ecx, [ebp - 2]
push 2
push ecx
push dword [esi]
call sub.KERNEL32.dll_WriteFile
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x3ac]
push edx
push edi
lea ecx, [ebp - 0x4b4]
push ecx
call fcn.00446208
add esp, 8
lea eax, [ebp - 0x4b4]
mov edx, dword [ebp - 0x10]
call fcn.00445579
lea ecx, [ebp - 0x4b4]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x3b0], eax
jmp 0x41f8e3
cmp bx, word [ebp - 2]
jae 0x41f8ac
push 0
lea edx, [ebp - 0x5b4]
push edx
push 0
push 0
cmp eax, 0xffffffff
je 0x41f859
lea eax, [ebp - 0x380]
jmp 0x41f85e
mov eax, 0x4533b5
push eax
call fcn.00448bb4
add esp, 0x14
lea edx, [ebp - 0x5b4]
push edx
call fcn.00446238
pop ecx
cmp eax, 0xff
jg 0x41f8ac
inc ebx
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0x18]
push 0
push ecx
lea eax, [ebp - 0x11]
push 1
push eax
push dword [esi]
call sub.KERNEL32.dll_WriteFile
xor eax, eax
lea edx, [ebp - 0x1c]
mov al, byte [ebp - 0x11]
push 0
push edx
push eax
lea ecx, [ebp - 0x5b4]
push ecx
push dword [esi]
call sub.KERNEL32.dll_WriteFile
mov edi, dword [ebp - 0x3b0]
cmp edi, 0xffffffff
je 0x41f8e3
lea eax, [ebp - 0x3ac]
push eax
push edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x41f8e1
push dword [ebp - 0x3b0]
call sub.KERNEL32.dll_FindClose
mov dword [ebp - 0x3b0], 0xffffffff
xor edx, edx
jmp 0x41f8e3
mov dl, 1
mov eax, dword [ebp - 0x3b0]
cmp eax, 0xffffffff
setne cl
and ecx, 1
test cl, cl
jne 0x41f839
cmp bx, word [ebp - 2]
jae 0x41f91e
mov byte [ebp - 0x1d], 0
lea eax, [ebp - 0x24]
push 0
push eax
lea edx, [ebp - 0x1d]
push 1
push edx
push dword [esi]
call sub.KERNEL32.dll_WriteFile
inc ebx
cmp bx, word [ebp - 2]
jb 0x41f900
mov al, 1
push eax
mov edx, dword [ebp - 0x3b0]
cmp edx, 0xffffffff
je 0x41f937
push dword [ebp - 0x3b0]
call sub.KERNEL32.dll_FindClose
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4207c5
Capabilities:
Delete file
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb8c
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
lea edx, [ebp - 0xa]
mov word [ebp - 0xa], 0
push 0
push eax
push 2
push edx
mov ecx, dword [ebp - 4]
push dword [ecx]
call sub.KERNEL32.dll_ReadFile
cmp word [ebp - 0xa], 0
jne 0x420801
mov al, 1
jmp 0x4209f3
movzx edi, word [ebp - 0xa]
mov eax, edi
shl eax, 8
push eax
call fcn.0044cdb4
pop ecx
mov esi, eax
xor ebx, ebx
mov eax, esi
mov dword [ebp - 0x28], eax
cmp edi, ebx
jle 0x42086e
mov byte [ebp - 0x11], 0
lea edx, [ebp - 0x18]
push 0
push edx
lea ecx, [ebp - 0x11]
push 1
push ecx
mov eax, dword [ebp - 4]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
mov eax, ebx
lea ecx, [ebp - 0x1c]
shl eax, 8
add eax, esi
xor edx, edx
mov dl, byte [ebp - 0x11]
push 0
push ecx
push edx
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
xor edx, edx
mov dl, byte [ebp - 0x11]
mov ecx, dword [ebp - 0x28]
mov byte [ecx + edx], 0
inc ebx
add dword [ebp - 0x28], 0x100
cmp edi, ebx
jg 0x42081e
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x168]
push edx
push ebx
lea ecx, [ebp - 0x270]
push ecx
call fcn.00446208
add esp, 8
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 0x20]
call fcn.00445579
lea ecx, [ebp - 0x270]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x16c], eax
jmp 0x4209bb
cmp eax, 0xffffffff
je 0x4208c0
lea eax, [ebp - 0x13c]
jmp 0x4208c5
mov eax, 0x4533b5
movsx edx, byte [eax]
cmp edx, 0x2e
je 0x420984
push 0
lea ecx, [ebp - 0x370]
push ecx
push 0
push 0
mov eax, dword [ebp - 0x16c]
cmp eax, 0xffffffff
je 0x4208f1
lea edx, [ebp - 0x13c]
jmp 0x4208f6
mov edx, 0x4533b5
push edx
call fcn.00448bb4
add esp, 0x14
mov byte [ebp - 0x21], 0
xor ebx, ebx
cmp edi, ebx
jle 0x42092f
mov eax, ebx
shl eax, 8
add eax, esi
push eax
lea edx, [ebp - 0x370]
push edx
call fcn.004462cc
add esp, 8
test eax, eax
jne 0x42092a
mov byte [ebp - 0x21], 1
jmp 0x42092f
inc ebx
cmp edi, ebx
jg 0x420909
mov cl, byte [ebp - 0x21]
test cl, cl
jne 0x420984
push dword [ebp - 8]
lea eax, [ebp - 0x474]
push eax
call fcn.00446208
add esp, 8
mov edx, dword [ebp - 0x16c]
cmp edx, 0xffffffff
je 0x42095b
lea ecx, [ebp - 0x13c]
jmp 0x420960
mov ecx, 0x4533b5
push ecx
lea eax, [ebp - 0x474]
push eax
call fcn.00446178
add esp, 8
lea edx, [ebp - 0x474]
push edx
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
setne al
and eax, 1
mov ebx, dword [ebp - 0x16c]
cmp ebx, 0xffffffff
je 0x4209bb
lea eax, [ebp - 0x168]
push eax
push ebx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4209b9
push dword [ebp - 0x16c]
call sub.KERNEL32.dll_FindClose
mov dword [ebp - 0x16c], 0xffffffff
xor edx, edx
jmp 0x4209bb
mov dl, 1
mov eax, dword [ebp - 0x16c]
cmp eax, 0xffffffff
setne cl
and ecx, 1
test cl, cl
jne 0x4208b3
push esi
call fcn.0044cd5c
pop ecx
mov al, 1
push eax
mov edx, dword [ebp - 0x16c]
cmp edx, 0xffffffff
je 0x4209f2
push dword [ebp - 0x16c]
call sub.KERNEL32.dll_FindClose
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x420d41
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], 0x50
jmp 0x420def
push 0
mov edi, ebx
push edi
push esi
push dword [ebp - 8]
call sub.WSOCK32.dll_send
cmp edi, eax
jle 0x420dff
test eax, eax
jg 0x420d9b
test eax, eax
jge 0x420d8e
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x420dff
mov eax, dword [ebp - 0xc]
add dword [ebp - 0xc], 0xffffffff
test eax, eax
je 0x420dff
jmp 0x420da6
mov dword [ebp - 0xc], 0x50
add esi, eax
sub ebx, eax
xor eax, eax
mov dword [ebp - 0x118], eax
cmp eax, 0x40
jae 0x420dc9
mov edx, dword [ebp - 0x118]
inc dword [ebp - 0x118]
mov ecx, dword [ebp - 8]
mov dword [ebp + edx*4 - 0x114], ecx
xor eax, eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x10], 0x3d090
push edx
push 0
push ecx
push 0
push 1
call sub.WSOCK32.dll_select
test eax, eax
jl 0x420dff
mov eax, dword [ebp - 4]
call fcn.004413b8
test al, al
je 0x420d64
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x421678
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor ebx, ebx
mov eax, ecx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
mov dword [ebp - 0xc], edi
push 0
push edi
call sub.KERNEL32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x4216be
xor eax, eax
jmp 0x4216c0
mov eax, esi
test eax, eax
jne 0x4216dd
mov edx, dword [ebp - 0xc]
cmp edx, 0xffffffff
je 0x421895
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
jmp 0x421895
push 0
push dword [ebp - 0xc]
call sub.KERNEL32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x4216f2
xor ecx, ecx
jmp 0x4216f4
mov ecx, esi
mov dword [ebp - 0x9c], ecx
xor eax, eax
mov dword [ebp - 0x98], eax
fild qword [ebp - 0x9c]
fdivr qword [ebp + 8]
fstp qword [ebp - 0x14]
lea edx, [ebp - 0x44]
push 0
push edx
lea eax, [ebp - 0x40]
push 3
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x421846
mov dl, byte [ebp - 0x40]
xor ecx, ecx
mov cl, dl
and dl, 3
sar ecx, 2
and edx, 0xff
shl edx, 4
mov cl, byte [ecx + 0x45ab4c]
mov byte [ebp + ebx - 0x94], cl
xor ecx, ecx
mov cl, byte [ebp - 0x3f]
inc ebx
sar ecx, 4
or edx, ecx
mov dl, byte [edx + 0x45ab4c]
mov byte [ebp + ebx - 0x94], dl
inc ebx
cmp eax, 1
jbe 0x42178d
mov dl, byte [ebp - 0x3f]
and dl, 0xf
xor ecx, ecx
mov cl, dl
shl ecx, 2
xor edx, edx
mov dl, byte [ebp - 0x3e]
sar edx, 6
or ecx, edx
mov cl, byte [ecx + 0x45ab4c]
jmp 0x42178f
mov cl, 0x3d
mov byte [ebp + ebx - 0x94], cl
inc ebx
cmp eax, 2
jbe 0x4217ad
mov al, byte [ebp - 0x3e]
and al, 0x3f
xor edx, edx
mov dl, al
mov al, byte [edx + 0x45ab4c]
jmp 0x4217af
mov al, 0x3d
mov byte [ebp + ebx - 0x94], al
inc ebx
cmp ebx, 0x49
jbe 0x42170e
mov byte [ebp + ebx - 0x94], 0xd
inc ebx
lea eax, [ebp - 0x94]
mov byte [ebp + ebx - 0x94], 0xa
inc ebx
mov byte [ebp + ebx - 0x94], 0
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
push eax
call fcn.00446238
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov edx, esi
mov eax, ebx
call fcn.00420d41
xor ebx, ebx
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x421817
push 1
push 0
push 0
push dword [ebp - 0xc]
call sub.KERNEL32.dll_SetFilePointer
jmp 0x421819
xor eax, eax
mov dword [ebp - 0x9c], eax
xor edx, edx
mov dword [ebp - 0x98], edx
fild qword [ebp - 0x9c]
fmul qword [ebp - 0x14]
fadd qword [ebp + 0x10]
add esp, 0xfffffff8
fstp qword [esp]
mov eax, dword [ebp - 4]
call fcn.00441453
jmp 0x42170e
test ebx, ebx
jbe 0x421887
mov byte [ebp + ebx - 0x94], 0xd
inc ebx
lea eax, [ebp - 0x94]
mov byte [ebp + ebx - 0x94], 0xa
inc ebx
mov byte [ebp + ebx - 0x94], 0
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
push eax
call fcn.00446238
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov edx, esi
mov eax, ebx
call fcn.00420d41
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x421895
push eax
call sub.KERNEL32.dll_CloseHandle
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x424bdf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
add esp, 0xfffffff8
test byte [ebx + 0xd], 1
setne al
and eax, 1
test al, al
jne 0x424c7e
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x424c7e
push 1
push 0
push 0
push dword [ebx + 0x10]
call sub.KERNEL32.dll_SetFilePointer
push 0
push 0
push dword [ebx + 0x18]
push dword [ebx + 0x10]
mov esi, eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea eax, [esp + 8]
push eax
push 4
lea edx, [esp + 0xc]
push edx
push dword [ebx + 0x10]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x424c71
mov ecx, dword [esp + 4]
cmp ecx, 4
jne 0x424c71
push 0
push dword [ebx + 0x10]
call sub.KERNEL32.dll_GetFileSize
mov edx, dword [ebx + 0x14]
sub eax, edx
mov ecx, dword [esp]
cmp eax, ecx
jae 0x424c5a
mov dword [esp], eax
xor eax, eax
mov al, byte [ebx + 0xc]
imul dword [ebx + 0x24]
push eax
mov eax, dword [esp + 4]
pop edx
mov ecx, edx
xor edx, edx
div ecx
mov dword [ebx + 0x20], eax
push 0
push 0
push esi
push dword [ebx + 0x10]
call sub.KERNEL32.dll_SetFilePointer
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4259c4
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc8
mov byte [esp], dl
mov ebx, eax
mov esi, 0x455b3c
lea edi, [esp + 8]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dl, byte [ebx + 0x10]
xor eax, eax
mov al, dl
mov word [esp + 0x1e], ax
xor eax, eax
mov al, dl
mov edx, eax
mov ecx, dword [ebx + 0x14]
imul edx, ecx
mov word [esp + 0x28], dx
mov esi, dword [ebx + 8]
mov edx, esi
mov dword [esp + 0x20], edx
movzx edi, word [esp + 0x28]
imul edi, edx
mov dword [esp + 0x24], edi
mov dx, word [ebx + 0x14]
shl edx, 3
mov word [esp + 0x2a], dx
mov dl, byte [esp]
test dl, dl
je 0x425a31
imul dword [ebx + 4]
imul ecx
mov dword [esp + 0x32], eax
jmp 0x425a43
shl esi, 5
mov edx, dword [ebx + 4]
add esi, edx
imul esi, eax
imul esi, ecx
mov dword [esp + 0x32], esi
mov eax, dword [esp + 0x32]
add eax, 0x26
mov dword [esp + 0xc], eax
push 0
lea ecx, [esp + 8]
push ecx
push 0x2e
lea eax, [esp + 0x14]
push eax
push dword [ebx + 0x18]
call sub.KERNEL32.dll_WriteFile
push dword [ebx + 0x18]
call sub.KERNEL32.dll_FlushFileBuffers
mov edx, dword [ebx + 8]
shl edx, 4
mov dword [ebx + 0x1c], edx
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x425ace
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov esi, ecx
mov ebp, edx
mov ebx, eax
mov eax, dword [esi + 4]
mov dl, byte [esi + 2]
mov dword [ebx], 0x4502a4
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0x7fff0
mov byte [ebx + 0x10], dl
mov byte [ebx + 0x11], 2
mov al, byte [ebx + 0x10]
test al, al
jne 0x425b0c
or byte [ebx + 0x11], 1
mov byte [ebx + 0x10], 1
mov word [ebx + 0x12], 0
mov dword [ebx], 0x455c24
lea edi, [ebx + 0x14]
mov eax, ebp
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [edi], eax
xor edx, edx
mov dword [ebx + 0x18], edx
xor ecx, ecx
mov dword [ebx + 0x1c], ecx
xor eax, eax
mov dword [ebx + 0x20], 0x54
mov dword [ebx + 0x24], eax
xor edx, edx
mov dword [ebx + 0x2c], edx
xor ecx, ecx
mov dword [ebx + 0x3c], ecx
mov eax, dword [ebx + 0x14]
cmp eax, 0xffffffff
sete dl
and edx, 1
test dl, dl
je 0x425b70
or byte [ebx + 0x11], 1
jmp 0x425cac
movzx ecx, word [esi + 0x10]
add ecx, 0x12
push ecx
call fcn.0044cdb4
pop ecx
mov edi, eax
mov dword [ebx + 0x18], edi
movzx eax, word [esi + 0x10]
add eax, 0x12
push eax
push esi
push edi
call fcn.004460d8
add esp, 0xc
mov word [esp], 1
mov eax, dword [ebx + 0x18]
mov dx, word [eax + 2]
mov word [esp + 2], dx
test dx, dx
jne 0x425bb3
mov word [esp + 2], 1
mov edx, dword [eax + 4]
lea esi, [ebx + 0x1c]
mov dword [esp + 4], edx
movzx ecx, word [esp + 2]
imul ecx, edx
add ecx, ecx
mov dword [esp + 8], ecx
mov dx, word [esp + 2]
add edx, edx
mov word [esp + 0xc], dx
mov word [esp + 0xe], 0x10
mov word [esp + 0x10], 0
push 0
push 0
push 0
push 0
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
call sub.MSACM32.dll_acmStreamOpen
test eax, eax
je 0x425c24
push 4
push 0
push 0
push 0
push dword [ebx + 0x18]
lea eax, [esp + 0x14]
push eax
push 0
push esi
call sub.MSACM32.dll_acmStreamOpen
test eax, eax
je 0x425c24
or byte [ebx + 0x11], 1
jmp 0x425cac
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x425c31
or byte [ebx + 0x11], 1
jmp 0x425cac
movzx ecx, word [esp + 0xc]
shl ecx, 0xd
xor eax, eax
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x78], eax
lea edx, [ebx + 0x78]
push 0
push edx
push dword [ebx + 0x74]
push dword [ebx + 0x1c]
call sub.MSACM32.dll_acmStreamSize
mov ecx, dword [ebx + 0x78]
test ecx, ecx
ja 0x425c5f
or byte [ebx + 0x11], 1
jmp 0x425cac
push dword [ebx + 0x74]
call fcn.0044cdb4
pop ecx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x74]
xor edx, edx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
push dword [ebx + 0x78]
call fcn.0044cdb4
pop ecx
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebx + 0x78]
xor eax, eax
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x44], eax
lea edx, [ebx + 0x20]
push 0
push edx
push dword [ebx + 0x1c]
call sub.MSACM32.dll_acmStreamPrepareHeader
xor ecx, ecx
xor eax, eax
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x7c], eax
mov eax, ebx
call fcn.00425d9a
mov eax, ebx
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x425d9a
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffd8
mov ebx, eax
mov esi, 0x455b6a
lea edi, [esp + 0x14]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x455b7e]
mov dword [esp], eax
mov eax, dword [0x455b82]
mov dword [esp + 4], eax
mov ecx, dword [ebx + 0x18]
movzx eax, word [ecx + 0x10]
mov ecx, eax
mov edx, dword [ebx + 0x7c]
add ecx, edx
add ecx, 0x26
mov dword [esp + 0x18], ecx
add eax, 0x12
mov dword [esp + 0x24], eax
mov dword [esp + 4], edx
push 0
lea eax, [esp + 0xc]
push eax
push 0x14
lea edx, [esp + 0x20]
push edx
push dword [ebx + 0x14]
call sub.KERNEL32.dll_WriteFile
mov edx, dword [ebx + 0x18]
mov eax, edx
movzx ecx, word [edx + 0x10]
add ecx, 0x12
push 0
mov edx, ecx
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push dword [ebx + 0x14]
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 0x14]
push eax
push 8
lea edx, [esp + 0xc]
push edx
push dword [ebx + 0x14]
call sub.KERNEL32.dll_WriteFile
add esp, 0x28
pop edi
pop esi
pop ebx
ret

Function at 0x42e22b
Capabilities:
Read .ini file

Disassembly:
add esp, 0xffffffec
add eax, 0x2c
push eax
push 0x13
lea edx, [esp + 8]
push edx
push 0x4574db
push 0x4574d5
push 0x4574b6
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov byte [esp + 0x13], 0
push esp
call fcn.0044af44
pop ecx
test eax, eax
jge 0x42e25f
xor eax, eax
add esp, 0x14
ret
Function at 0x434d6f
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
test byte [ebx + 0xd], 1
setne al
and eax, 1
test al, al
jne 0x434da4
mov dl, byte [ebx + 0xc]
test dl, dl
jbe 0x434d9f
push 0
push dword [ebx + 0x10]
call sub.KERNEL32.dll_GetFileSize
xor ecx, ecx
mov cl, byte [ebx + 0xc]
xor edx, edx
div ecx
mov dword [ebx + 0x1c], eax
pop ebx
ret
xor eax, eax
mov dword [ebx + 0x1c], eax
pop ebx
ret

Function at 0x435002
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
test byte [ebx + 0xd], 1
setne al
and eax, 1
test al, al
jne 0x435039
mov dl, byte [ebx + 0xc]
test dl, dl
jbe 0x435034
push 0
push dword [ebx + 0x10]
call sub.KERNEL32.dll_GetFileSize
xor ecx, ecx
mov cl, byte [ebx + 0xc]
add ecx, ecx
xor edx, edx
div ecx
mov dword [ebx + 0x1c], eax
pop ebx
ret
xor eax, eax
mov dword [ebx + 0x1c], eax
pop ebx
ret

Function at 0x4352a6
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
test byte [ebx + 0xd], 1
setne al
and eax, 1
test al, al
jne 0x4352de
mov dl, byte [ebx + 0xc]
test dl, dl
jbe 0x4352d9
push 0
push dword [ebx + 0x10]
call sub.KERNEL32.dll_GetFileSize
xor ecx, ecx
mov cl, byte [ebx + 0xc]
shl ecx, 2
xor edx, edx
div ecx
mov dword [ebx + 0x1c], eax
pop ebx
ret
xor eax, eax
mov dword [ebx + 0x1c], eax
pop ebx
ret
Function at 0x435f7a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edx, dword [ebp + 8]
mov edi, esi
mov eax, edx
mov dword [ebx], 0x4502a4
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], 0x100000
mov byte [ebx + 0x10], al
mov byte [ebx + 0x11], 2
mov al, byte [ebx + 0x10]
test al, al
jne 0x435fbc
or byte [ebx + 0x11], 1
mov byte [ebx + 0x10], 1
mov word [ebx + 0x12], 0
lea eax, [ebx + 0x18]
mov dword [ebx], 0x457894
and edx, 0xff
mov ecx, esi
mov word [eax], 0xaaaa
mov word [eax + 2], 0
shl edx, 0x18
or edx, ecx
xor ecx, ecx
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], 0xffffffff
xor eax, eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x2c], ecx
xor eax, eax
mov dword [ebx + 0x34], eax
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 4]
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
mov dword [ebx + 0x14], esi
cmp esi, 0xffffffff
jne 0x43602b
or byte [ebx + 0x11], 1
jmp 0x4360aa
lea eax, [ebp - 8]
push 0
push eax
lea edx, [ebx + 0x18]
push 0xc
push edx
push dword [ebx + 0x14]
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x43604b
mov ecx, dword [ebp - 8]
cmp ecx, 0xc
je 0x436051
or byte [ebx + 0x11], 1
jmp 0x4360aa
xor eax, eax
mov al, byte [ebx + 0x10]
imul edx, eax, 0x2200
push edx
call fcn.0044cdb4
pop ecx
mov dword [ebx + 0x28], eax
xor ecx, ecx
mov cl, byte [ebx + 0x10]
shl ecx, 4
shl ecx, 2
push ecx
call fcn.0044cdb4
pop ecx
mov dword [ebx + 0x2c], eax
xor eax, eax
mov al, byte [ebx + 0x10]
shl eax, 2
push eax
call fcn.0044cdb4
pop ecx
mov dword [ebx + 0x34], eax
xor eax, eax
jmp 0x43609e
xor edx, edx
mov dl, al
mov ecx, dword [ebx + 0x34]
xor esi, esi
mov dword [ecx + edx*4], esi
inc eax
mov dl, byte [ebx + 0x10]
cmp al, dl
jb 0x436091
xor eax, eax
mov dword [ebx + 0x30], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4