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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408ebc
test al, al
jne 0x408f29
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408f75
xor eax, eax
push ebp
push 0x408f65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033cc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f6c
lea eax, [ebp - 0xc]
call fcn.00408ef8
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40927c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x40936b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406c90
mov edx, dword [ebp - 8]
mov ecx, 0x409384
xor eax, eax
call fcn.00409170
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x409339
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x40929c
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.00408d44
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c30
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407220
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x68
call fcn.00408d14
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x4045fc
call fcn.0040582c
call fcn.00402e88
jmp 0x40929c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409372
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403170
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403170
ret

Function at 0x409438
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409492
inc esi
xor edi, edi
cmp edi, 1
jne 0x40945e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40946c
cmp edi, 1
jle 0x40946c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408f08
test eax, eax
jne 0x409492
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409492
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409492
inc edi
dec esi
jne 0x40944e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x40949c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test edi, edi
je 0x4094e9
xor ebx, ebx
jmp 0x4094de
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, edi
call fcn.00404bdc
test eax, eax
jne 0x4094dd
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x409599
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x4094bf
mov al, byte [ebp - 1]
sub al, 1
jb 0x4094f4
je 0x4094fd
jmp 0x409506
call fcn.00406fc0
mov edi, eax
jmp 0x409508
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, eax
jmp 0x409508
xor edi, edi
test di, di
je 0x409599
xor ebx, ebx
jmp 0x409544
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, di
cmp eax, edx
jne 0x409543
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x409538
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x409543
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409599
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x409515
xor ebx, ebx
jmp 0x40958e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, edi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40958d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x409582
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x40958d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x409599
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x409553
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x40994c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a1f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a38
push ebx
push 0x409a44
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040336c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099cc
mov al, 0x6a
call fcn.004095a8
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409920
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x4099d5
call fcn.00409920
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a26
lea eax, [ebp - 4]
call fcn.00403150
ret
Function at 0x409ab8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409b6c
jmp 0x409b61
cmp dword [esi + 0x10], 0x1000
jne 0x409b4d
test byte [esi + 0x15], 1
jne 0x409b4d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b0c
cmp eax, 2
je 0x409b0c
cmp eax, 0x10
je 0x409b0c
cmp eax, 0x20
jne 0x409b21
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b21
mov bl, 1
xor ebp, ebp
jmp 0x409b32
mov eax, dword [esi]
add eax, ebp
call fcn.00409ab0
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b25
test bl, bl
je 0x409b4d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409b6c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ae4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406f66
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor cl, cl
mov bl, 1
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x407106
mov edx, 0x10000000
cmp eax, 0x7c
je 0x407106
cmp eax, 0x29
jne 0x406fa1
cmp dword [esi + 0x10], 0
jne 0x407106
test dword [esi + 0x50], edx
je 0x40710c
cmp eax, 0x2e
jne 0x406fbc
push 5
lea ecx, [esi + 0x24]
call fcn.004071f1
mov ecx, esi
call fcn.00406f3b
jmp 0x4070ee
cmp eax, 0x5c
jne 0x407019
mov ecx, esi
call fcn.00406f3b
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x406fef
cmp word [esi + 0x48], 0x62
jne 0x406fef
push 4
lea ecx, [esi + 0x24]
call fcn.004071f1
mov ecx, esi
call fcn.00406f3b
jmp 0x4070f5
test eax, eax
je 0x40700d
cmp word [esi + 0x48], 0x42
jne 0x40700d
push 4
lea ecx, [esi + 0x24]
call fcn.004071f1
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x406fe3
mov ecx, esi
call fcn.00407bf8
jmp 0x4070ee
cmp eax, 0x5b
jne 0x407079
mov ecx, esi
call fcn.00406f3b
lea ecx, [esi + 0x24]
call fcn.0040891e
cmp dword [esi + 0x4c], 0x5e
jne 0x407041
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00406f3b
test dword [esi + 0x50], 0x20000000
je 0x407061
cmp dword [esi + 0x4c], 0x5d
jne 0x407061
push 0x5d
lea ecx, [esi + 0x24]
call fcn.00408944
mov ecx, esi
call fcn.00406f3b
mov ecx, esi
call fcn.004086f1
cmp dword [esi + 0x4c], 0x5d
je 0x406fb0
push 4
jmp 0x40710e
cmp eax, 0x28
jne 0x407096
mov ecx, esi
call fcn.00406f3b
mov ecx, esi
call fcn.00407ce0
cmp dword [esi + 0x4c], 0x29
mov bl, al
je 0x4070e3
jmp 0x40710c
cmp eax, 0x5e
jne 0x4070a2
push 2
jmp 0x406fdb
cmp eax, 0x24
jne 0x4070ae
push 3
jmp 0x406fdb
cmp eax, 0x2a
je 0x407102
cmp eax, 0x2b
je 0x407102
cmp eax, 0x3f
je 0x407102
cmp eax, 0x7b
je 0x407102
cmp eax, 0x7d
jne 0x4070cc
test dword [esi + 0x50], edx
je 0x4070fe
cmp eax, 0x5d
jne 0x4070d6
test dword [esi + 0x50], edx
je 0x407072
movzx eax, word [esi + 0x48]
push eax
lea ecx, [esi + 0x24]
call fcn.00407e54
mov ecx, esi
call fcn.00406f3b
test bl, bl
je 0x4070f5
mov ecx, esi
call fcn.00407d90
mov cl, 1
mov bl, cl
jmp 0x406f6f
push 6
jmp 0x40710e
push 0xa
jmp 0x40710e
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.00424cca
int3
Function at 0x40d53a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x34
mov eax, 0x4553cc
call fcn.0043d514
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x40], esi
mov word [esi], cx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], ebx
jb 0x40d57a
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d644
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
jb 0x40d5a8
mov eax, dword [edi]
jmp 0x40d5aa
mov eax, edi
lea ecx, [ebp - 0x34]
push ecx
push ebx
lea ecx, [ebp - 0x38]
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [ebp - 0x30]
call ebx
test eax, eax
jne 0x40d63b
cmp dword [ebp - 0x38], 1
jne 0x40d63b
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40d63b
and dword [ebp - 0x1c], 0
xor ecx, ecx
shr eax, 1
push ecx
dec eax
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.00409c0e
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x40d609
mov edi, dword [edi]
lea ecx, [ebp - 0x34]
push ecx
push eax
push 0
push 0
push edi
push dword [ebp - 0x30]
call ebx
test eax, eax
jne 0x40d62f
lea eax, [ebp - 0x2c]
cmp esi, eax
je 0x40d62f
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0040afd5
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401385
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.0043d4c3
ret

Function at 0x40d64c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x40d65e
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 2
push ebx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d6b0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x40d683
mov ecx, dword [ecx]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 8
jb 0x40d68e
mov edx, dword [edx]
push esi
lea eax, [eax*2 + 2]
push eax
push ecx
xor esi, esi
inc esi
push esi
push ebx
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, bl
test eax, eax
cmove ebx, esi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x40d6b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [edx + 0x14], 8
mov dword [ebp + 0xc], edi
jb 0x40d6cd
mov edx, dword [edx]
lea eax, [ebp + 0xc]
push eax
push 0x20019
push edi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d721
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
jb 0x40d6fb
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
test eax, eax
cmove esi, dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40d727
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x40d739
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 2
push ebx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d779
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40d75b
mov eax, dword [eax]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
cmove ebx, edx
mov al, bl
pop ebx
leave
ret
Function at 0x40e7d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x455d23
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x46ae30]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x46ae30]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x40e827
xor eax, eax
jmp 0x40e9be
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40e853
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x40e853
dec dword [edx]
mov edx, dword [esi + 0x20]
mov ax, di
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x40e9be
cmp dword [esi + 0x50], 0
je 0x40e9bb
mov ecx, esi
call fcn.0040f265
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x40e887
push dword [esi + 0x50]
push edi
call fcn.0043b35a
pop ecx
pop ecx
cmp ax, bx
je 0x40e9bb
movzx ebx, di
jmp 0x40e9bb
movzx eax, di
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
push 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], 0xf
call fcn.0040f99d
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
cmp edi, 0x10
mov edi, dword [esi]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x22]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x3c]
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x40e9b2
cmp eax, 1
jg 0x40e98d
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x28]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
je 0x40e951
push dword [esi + 0x50]
lea eax, [esp + 0x2c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0043b956
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x40e985
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x10]
mov byte [esi + 0x46], 1
cmp dword [esp + 0x20], eax
jne 0x40e97f
test edx, edx
jne 0x40e8ba
cmp dword [esp + 0x38], 0x20
jae 0x40e988
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.00401038
jmp 0x40e8b6
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
movzx ebx, bx
jmp 0x40e9af
cmp eax, 3
jne 0x40e9b2
mov eax, dword [esp + 0x14]
push dword [eax + 0x50]
push dword [esp + 0x14]
call fcn.0043b35a
pop ecx
pop ecx
cmp ax, bx
je 0x40e9af
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
lea ecx, [esp + 0x28]
call fcn.00401446
mov ax, bx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00437d2f
mov esp, ebp
pop ebp
ret 4
Function at 0x40f0f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x455330
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x46ae30]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x46ae30]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x40f245
cmp byte [esi + 0x46], bl
je 0x40f245
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x40f15c
xor al, al
jmp 0x40f247
push ebx
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0040f99d
lea eax, [esi + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x24]
cmovae edi, edx
lea esi, [esp + 0x24]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [esp + 0x24]
call dword [edx + 0x20]
sub eax, ebx
je 0x40f1c6
dec eax
jne 0x40f22b
mov esi, dword [esp + 0x14]
jmp 0x40f1cd
mov esi, dword [esp + 0x14]
mov byte [esi + 0x46], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub edi, eax
je 0x40f20c
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0043b956
add esp, 0x10
cmp edi, eax
jne 0x40f234
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp byte [esi + 0x46], 0
je 0x40f232
test edi, edi
jne 0x40f18b
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00401038
jmp 0x40f183
dec eax
dec eax
jne 0x40f238
inc eax
jmp 0x40f236
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00401446
mov al, bl
jmp 0x40f247
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00437d2f
mov esp, ebp
pop ebp
ret
Function at 0x411d76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x455d23
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x46ae30]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x46ae30]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x411dc2
xor eax, eax
jmp 0x411f44
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x411df0
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x411df0
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x411f44
cmp dword [esi + 0x50], 0
je 0x411f42
mov ecx, esi
call fcn.0041332c
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x411e24
push dword [esi + 0x50]
movsx eax, al
push eax
call fcn.0043c668
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x411f42
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
push 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b], al
mov dword [esp + 0x44], 0xf
call fcn.0040f99d
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
cmp edi, 0x10
mov edi, dword [esi]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
push dword [esp + 0x3c]
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x411f39
cmp eax, 1
jg 0x411f1a
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x28]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
je 0x411ee7
push dword [esi + 0x50]
lea eax, [esp + 0x2c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0043b956
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x411f39
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x13]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x411f15
test edx, edx
jne 0x411e54
cmp dword [esp + 0x38], 0x20
jae 0x411f39
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.00401038
jmp 0x411e50
mov ebx, dword [ebp + 8]
jmp 0x411f39
cmp eax, 3
jne 0x411f39
mov eax, dword [esp + 0x14]
push dword [eax + 0x50]
movsx eax, byte [esp + 0x17]
push eax
call fcn.0043c668
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
lea ecx, [esp + 0x28]
call fcn.00401446
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00437d2f
mov esp, ebp
pop ebp
ret 4
Function at 0x4131bf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x455330
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x46ae30]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x46ae30]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x41330c
cmp byte [esi + 0x45], bl
je 0x41330c
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x413223
xor al, al
jmp 0x41330e
push ebx
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0040f99d
lea eax, [esi + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x24]
cmovae edi, edx
lea esi, [esp + 0x24]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [esp + 0x24]
call dword [edx + 0x20]
sub eax, ebx
je 0x41328d
dec eax
jne 0x4132f2
mov esi, dword [esp + 0x14]
jmp 0x413294
mov esi, dword [esp + 0x14]
mov byte [esi + 0x45], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub edi, eax
je 0x4132d3
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0043b956
add esp, 0x10
cmp edi, eax
jne 0x4132fb
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp byte [esi + 0x45], 0
je 0x4132f9
test edi, edi
jne 0x413252
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00401038
jmp 0x41324a
dec eax
dec eax
jne 0x4132ff
inc eax
jmp 0x4132fd
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00401446
mov al, bl
jmp 0x41330e
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00437d2f
mov esp, ebp
pop ebp
ret