joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e5e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x43e79e
cmp byte [ebx], 0
je 0x43e760
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x43e78c
test al, 0x10
je 0x43e760
push eax
push 0x104
push ebx
lea edi, [esp + 0x24]
push edi
call sub.msvcrt.dll__fullpath
pop eax
mov ecx, edi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x43e63e
test edx, 0x8080
je 0x43e752
add dl, dl
sbb ecx, 3
sub ecx, edi
lea eax, [ecx + 0x233]
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x43e77a
lea esi, [eax + 0x22c]
mov ebp, eax
push eax
push eax
push edi
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
cmp byte [ebx + 0x22c], 0
jne 0x43e704
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0xc
mov word [eax + esi], 0x2a
lea eax, [ebx + 0x120]
mov dword [ebx + 0x224], 0xffffffff
mov dword [ebx + 0x228], 0
mov dword [ebx + 0x118], 0
mov word [ebx + 0x11c], 0
mov word [ebx + 0x11e], 0
push 0x104
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
pop edx
pop ecx
push 0x2f
lea edi, [esi + eax - 1]
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp eax, edi
je 0x43e69f
push eax
push eax
push 0x5c
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp edi, eax
je 0x43e69f
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0x10
mov word [eax + esi], 0x5c
jmp 0x43e69f
shr edx, 0x10
add ecx, 2
jmp 0x43e662
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0x14
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xc
jmp 0x43e6f7
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 2
jmp 0x43e6f7
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xe
jmp 0x43e6f7
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
lea eax, [ebp - 8]
push edi
mov esi, ecx
mov dword [ebp - 4], 0
test eax, eax
je 0x40105f
push 0x40bf18
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40105f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x40105f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40105f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40106a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40105f
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4010c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x10], 0
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0
call fcn.004033f0
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x28], 1
mov eax, 5
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x40115b
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ecx, ecx
je 0x401151
push ecx
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40115b
push eax
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4055d5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00402ee0
mov dword [ebp - 0x14], eax
cmp dword [0x40ebf0], edi
jne 0x4056c6
push 0x800
push edi
push 0x4093cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x405653
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4057a6
push 0x4093cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4057a6
push 0x4093e4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4057a6
push eax
call ebx
push 0x4093f0
push esi
mov dword [0x40ebf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x409400
push esi
mov dword [0x40ebf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x409414
push esi
mov dword [0x40ebf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40ec00], eax
test eax, eax
je 0x4056c3
push 0x409430
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40ebfc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4056eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4056de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x405700
push 4
pop eax
jmp 0x4057a8
cmp dword [ebp - 0x14], edi
je 0x405700
push dword [0x40ebf0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4056e5
mov eax, dword [0x40ebfc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40575e
cmp dword [0x40ec00], esi
je 0x40575e
push eax
call ebx
push dword [0x40ec00]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40575e
test eax, eax
je 0x40575e
call ecx
test eax, eax
je 0x405753
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x405753
test byte [ebp - 8], 1
jne 0x40575e
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40578e
mov eax, dword [0x40ebf4]
cmp eax, esi
je 0x40578b
push eax
call ebx
test eax, eax
je 0x40578b
call eax
mov edi, eax
test edi, edi
je 0x40578b
mov eax, dword [0x40ebf8]
cmp eax, esi
je 0x40578b
push eax
call ebx
test eax, eax
je 0x40578b
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x40ebf0]
call ebx
test eax, eax
je 0x4057a6
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4057a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401761
leave
ret
Function at 0x402320
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov byte [ebp - 0x25], dl
mov dl, byte [eax]
mov ecx, dword [0x4a4198]
mov edi, eax
mov al, byte [ebp - 0x25]
mov dword [ebp - 0x24], ecx
and eax, 0xff
mov ecx, dword [0x4a41d8]
mov byte [ebp - 0xe], 0
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x2c], eax
cmp dl, 0x20
sete al
cmp dl, 9
sete cl
test al, al
jne 0x4024a5
test cl, cl
jne 0x4024a5
cmp dl, 0x21
je 0x40251a
cmp dl, 0x2e
je 0x402485
cmp dl, 0x2c
je 0x402485
mov ebx, edi
nop
xor eax, eax
mov dl, byte [ebx]
mov al, dl
mov ax, word [eax + eax + 0x49f840]
test eax, 0x204
jne 0x4023c3
cmp dl, 0x2d
je 0x4023c3
cmp dl, 0x2b
je 0x4023c3
cmp dl, 0x3d
je 0x4023c3
cmp dl, 0x2c
je 0x4023c3
cmp dl, 0x2e
je 0x4023c3
cmp dl, 0x40
jne 0x4023c6
inc ebx
jmp 0x402390
mov ecx, ebx
sub ecx, edi
cmp dl, 0x2a
mov dword [ebp - 0x18], ecx
je 0x40250e
cmp dl, 0x20
je 0x402474
cmp dl, 9
je 0x402474
cmp byte [ebp - 0xe], 0
jne 0x40244b
mov esi, dword [ebp - 0x24]
test esi, esi
jle 0x40244b
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], 0
mov eax, dword [esi]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push ecx
push edx
push edi
push eax
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x402439
cmp byte [ebp - 0xd], 0
jne 0x402429
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp byte [edx + ecx], 0
jne 0x402439
cmp byte [esi + 0xc], 0
jne 0x402435
cmp byte [ebp - 0x25], 0
je 0x402439
mov byte [esi + 0xd], 1
mov eax, dword [ebp - 0x14]
add esi, 0x10
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x14], eax
jne 0x4023ff
cmp byte [ebx], 0
je 0x40246a
inc ebx
mov dl, byte [ebx]
test dl, dl
je 0x40246a
mov al, byte [ebx - 1]
cmp al, 0x7c
je 0x4024ab
cmp al, 0x26
je 0x4024ab
cmp al, 0x3a
jne 0x40246a
test dl, dl
jne 0x40248f
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x402474
cmp al, 9
jne 0x4023e8
jmp 0x402474
inc edi
mov byte [ebp - 0xe], 1
jmp 0x40238c
cmp dl, 0x3b
je 0x4024e0
cmp dl, 0x7d
je 0x4024e0
cmp dl, 0x25
je 0x4024b2
inc ebx
mov al, byte [ebx]
mov dl, al
jmp 0x402466
lea ebx, [edi + 1]
mov dl, byte [edi + 1]
mov edi, ebx
jmp 0x402355
inc ebx
mov al, byte [ebx]
cmp al, 0x7b
je 0x4024f8
cmp al, 0x3c
je 0x4024f8
cmp al, 0x57
jne 0x4024a1
cmp byte [ebx + 1], 0x7b
jne 0x4024a1
lea eax, [ebx + 2]
mov edx, dword [ebp - 0x2c]
call fcn.00402320
mov ebx, eax
mov al, byte [eax]
mov dl, al
jmp 0x402466
inc ebx
mov dl, byte [ebx]
test dl, dl
je 0x40246a
cmp byte [ebx - 1], 0x3b
jne 0x40246a
mov edi, ebx
jmp 0x402355
lea eax, [ebx + 1]
mov edx, dword [ebp - 0x2c]
call fcn.00402320
mov ebx, eax
mov al, byte [eax]
mov dl, al
jmp 0x402466
inc ebx
mov dl, byte [ebx]
mov byte [ebp - 0xd], 1
jmp 0x4023d6
inc edi
mov dl, byte [edi]
cmp dl, 0x20
sete al
cmp dl, 9
sete cl
test al, al
jne 0x402535
test cl, cl
je 0x40237a
inc edi
mov dl, byte [edi]
cmp dl, 0x20
je 0x402535
cmp dl, 9
jne 0x40237a
jmp 0x402535
Function at 0x410930
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov al, byte [eax]
mov byte [ebp - 0xd], al
cmp al, 0x40
je 0x4109d8
mov ebx, dword [ebp - 0x1c]
cmp al, 0x24
je 0x4109d8
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 1]
add eax, 0x1e
and eax, 0xfffffff0
call fcn.004521b0
mov ecx, dword [ebp - 0x18]
lea esi, [esp + 0xf]
mov edx, dword [ebp - 0x14]
and esi, 0xfffffff0
push eax
push ecx
push edx
push esi
call sub.msvcrt.dll_strncpy
mov byte [ebx + esi], 0
add esp, 0x10
cmp byte [ebp - 0xd], 0x40
je 0x410a2b
sub esp, 0xc
push esi
call sub.msvcrt.dll_getenv
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x410a6e
push eax
push 0
push edi
push ebx
call fcn.00442a10
mov ebx, eax
pop eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.msvcrt.dll_free
mov al, byte [ebx]
add esp, 0x10
mov byte [ebp - 0xd], al
cmp al, 0x40
je 0x4109d5
cmp al, 0x24
jne 0x410954
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x14], edx
mov al, byte [ecx + 1]
test al, al
je 0x410a78
cmp al, 0x2f
je 0x410a78
cmp al, 0x5c
je 0x410a78
add ecx, 2
xor edx, edx
nop
inc edx
mov edi, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov ebx, edx
mov al, byte [edx + ecx + 1]
test al, al
je 0x410960
lea ecx, [edi + 1]
cmp al, 0x2f
je 0x410960
cmp al, 0x5c
jne 0x410a00
jmp 0x410960
push eax
push 0
push str._ROOT
push esi
call fcn.00442a10
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_getenv
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x410a8e
sub esp, 0xc
push esi
call sub.msvcrt.dll_free
add esp, 0x10
test ebx, ebx
jne 0x4109ab
mov ebx, dword [str._tmp_81bb757d7a175c6c06523986e7d60b5b]
test ebx, ebx
jne 0x4109ab
mov ebx, str._tmp_81bb757d7a175c6c06523986e7d60b5b
jmp 0x4109ab
mov edi, dword [ebp - 0x14]
xor ebx, ebx
mov eax, 1
mov dword [ebp - 0x18], 0
jmp 0x410963
mov ebx, dword [str._tmp_81bb757d7a175c6c06523986e7d60b5b]
jmp 0x410a4c
Function at 0x417b60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x417b80
lea edx, [eax - 1]
test edx, edx
jle 0x417bcb
mov dword [ebx + 0x58], edx
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebx]
sub esp, 0xc
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0x10]
push eax
call sub.msvcrt.dll__isatty
add esp, 0x10
mov edx, 0x7fffffff
test eax, eax
je 0x417b78
sub esp, 0xc
push str.COLUMNS
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
je 0x417bc4
sub esp, 0xc
push eax
call fcn.00457c60
add esp, 0x10
test eax, eax
jg 0x417b71
mov edx, 0x7ffffffe
jmp 0x417b78
mov edx, 0x7fffffff
mov dword [ebx + 0x58], edx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x41b3d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x4a5c14]
push eax
call fcn.0041cd60
add esp, 0x10
xor edx, edx
test al, al
je 0x41b413
mov edx, dword [ebp - 4]
cmp edx, 1
jbe 0x41b417
lea eax, [ebp - 0x18]
push ecx
push ecx
push edx
push eax
call fcn.0041b3b0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov eax, edx
leave
ret
push eax
push str.total_lines_num
push 0xde
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._gcc_gcc_4.9_gcc_input.c
call fcn.004183c0
lea esi, [esi]

Function at 0x41b430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
mov edx, dword [eax + 0x14]
test edx, edx
je 0x41b450
cmp edx, dword [eax + 0x10]
je 0x41b450
lea eax, [edx - 1]
xor ecx, ecx
cmp dword [ebx + 0x18], eax
jb 0x41b45c
lea esi, [esi]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0xc]
test al, 0x10
je 0x41b465
xor ecx, ecx
lea esp, [ebp - 8]
mov eax, ecx
pop ebx
pop esi
pop ebp
ret
test al, 0x20
jne 0x41b45a
cmp edx, dword [ebx + 0x10]
jne 0x41b494
test edx, edx
jne 0x41b4d3
mov esi, 0x1000
mov eax, 0x1001
push ecx
push ecx
push eax
mov edx, dword [ebx + 0xc]
push edx
call fcn.0043b720
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], eax
add esp, 0x10
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0x10]
sub eax, edx
push eax
push 1
mov eax, dword [ebx + 0xc]
add edx, eax
push edx
call sub.msvcrt.dll_fread
mov edx, eax
mov eax, dword [ebx + 8]
add esp, 0x10
test byte [eax + 0xc], 0x20
jne 0x41b45a
mov eax, dword [ebx + 0x14]
add eax, edx
test edx, edx
mov dword [ebx + 0x14], eax
setne al
xor ecx, ecx
lea esp, [ebp - 8]
mov cl, al
pop ebx
mov eax, ecx
pop esi
pop ebp
ret
lea esi, [edx + edx]
lea eax, [esi + 1]
jmp 0x41b47c
Function at 0x422790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, edx
mov dword [ebp - 0x1c], eax
mov eax, 1
cmp byte [edx + 0x55], 0
jne 0x4228e2
cmp byte [edx + 0x53], 0
jne 0x4228ea
mov edi, dword [edx + 0x4c]
test edi, edi
jne 0x4228ea
cmp dword [edx + 0x48], 0xffffffff
je 0x422910
mov ax, word [esi + 0x2a]
and eax, 0xf000
cmp eax, 0x3000
je 0x42292f
cmp eax, 0x8000
je 0x4228f4
mov dword [ebp - 0x10], 0x2000
mov byte [ebp - 0x15], 0
mov eax, 0x2010
sub esp, 0xc
xor ebx, ebx
push eax
call fcn.0043b7c0
add esp, 0x10
mov dword [ebp - 0x14], eax
lea esi, [esi]
push eax
mov edi, ebx
mov eax, dword [ebp - 0x10]
sub eax, ebx
push eax
mov eax, dword [ebp - 0x14]
add eax, ebx
push eax
mov eax, dword [esi + 0x48]
push eax
call sub.msvcrt.dll__read
add esp, 0x10
cmp eax, 0
jle 0x42285e
add ebx, eax
cmp ebx, dword [ebp - 0x10]
jne 0x422810
cmp byte [ebp - 0x15], 0
jne 0x422906
lea eax, [ebx + ebx]
mov dword [ebp - 0x10], eax
add eax, 0x10
push edx
push edx
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0043b720
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x422810
jne 0x42294d
cmp byte [ebp - 0x15], 0
je 0x42288a
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x42288a
mov eax, dword [esi + 4]
mov edi, ebx
push eax
push str._s_is_shorter_than_expected
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00421940
add esp, 0x10
push eax
lea eax, [esi + 0x38]
push eax
lea eax, [esi + 0x18]
push eax
push edi
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
mov edi, dword [ebp - 0x14]
push edi
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x268]
push ebx
push eax
call fcn.00430170
mov byte [esi + 0x55], 1
mov dword [esi + 0x14], eax
add esp, 0x20
mov al, 1
sub esp, 0xc
xor eax, 1
mov byte [esi + 0x53], al
mov ecx, dword [esi + 0x48]
push ecx
call sub.msvcrt.dll__close
mov al, byte [esi + 0x53]
mov dword [esi + 0x48], 0xffffffff
xor eax, 1
add esp, 0x10
and eax, 0xff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x38]
mov byte [ebp - 0x15], 1
mov dword [ebp - 0x10], eax
add eax, 0x10
jmp 0x4227fb
mov edi, ebx
mov dword [ebp - 0x10], ebx
jmp 0x42288a
mov eax, edx
call fcn.00421fa0
test al, al
jne 0x4227cc
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, esi
call fcn.004220a0
xor eax, eax
jmp 0x4228e2
mov ebx, dword [esi + 4]
push ebx
push str._s_is_a_block_device
push 3
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00421940
xor eax, eax
add esp, 0x10
jmp 0x4228bb
push ecx
mov edx, dword [esi + 4]
push edx
push 3
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00421970
pop eax
mov eax, dword [ebp - 0x14]
push eax
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x10
jmp 0x4228bb
Function at 0x4246f0
Capabilities:
Write file on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dl, byte [edi + 4]
mov eax, dword [edx*8 + 0x498ea0]
cmp eax, 1
je 0x424770
cmp eax, 2
je 0x4247cb
test eax, eax
jne 0x424763
mov ax, word [edi + 6]
and eax, 0xffff
test al, 2
jne 0x4247e6
test al, 0x10
jne 0x424770
mov eax, dword [edx*8 + 0x498ea4]
xor edx, edx
mov ebx, eax
mov dl, byte [eax]
jmp 0x424745
xor edx, edx
mov dl, al
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
test eax, eax
js 0x4247f2
mov eax, dword [esi]
mov byte [eax], dl
inc eax
mov dword [esi], eax
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x424741
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], edx
test ecx, ecx
je 0x424763
xor ebx, ebx
jmp 0x4247a9
lea eax, [ebp - 0x16]
call fcn.00424600
push esi
push 0xa
push 1
lea ebx, [ebx + eax - 1]
lea eax, [ebp - 0x16]
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [edi + 8]
inc ebx
cmp dword [eax + 4], ebx
jbe 0x424763
mov edx, dword [ebp - 0x20]
add edx, ebx
test byte [edx], 0x80
jne 0x424783
push edx
push edx
push esi
mov eax, dword [eax]
mov al, byte [ebx + eax]
and eax, 0xff
push eax
call sub.msvcrt.dll_fputc
add esp, 0x10
jmp 0x4247a0
push esi
mov ebx, dword [edi + 8]
push ebx
push 1
mov ecx, dword [edi + 0xc]
push ecx
call sub.msvcrt.dll_fwrite
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
call fcn.00423da0
jmp 0x424739
push edi
push edi
push esi
push edx
call sub.msvcrt.dll__flsbuf
add esp, 0x10
jmp 0x42475b
Function at 0x431500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov eax, 7
mov ebp, esp
push edi
push esi
push ebx
sub esp, 4
mov edx, dword [ebp + 0x18]
cmp dword [edx], 3
jbe 0x43152c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
test ecx, ecx
jne 0x431532
mov eax, 0x16
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edi, 2
mov dl, byte [eax]
and edx, 0xff
mov esi, edx
cmp edx, 0x7f
ja 0x4315a2
lea eax, [ecx - 1]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4315ce
mov eax, esi
mov ecx, esi
mov byte [edx], al
movzx eax, ch
mov byte [edx + 1], al
mov eax, esi
shr eax, 0x10
mov byte [edx + 2], al
mov eax, 3
shr esi, 0x18
mov ecx, esi
mov byte [eax + edx], cl
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov esi, dword [eax]
mov ebx, dword [edx]
add esi, 4
sub ebx, 4
mov dword [eax], esi
mov dword [edx], ebx
xor eax, eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
xor edx, edx
mov bl, byte [edi + 0x49ab51]
mov dl, byte [edi + 0x49ab4b]
mov eax, ebx
xor eax, 0xffffffff
and eax, esi
cmp eax, edx
je 0x4315e7
inc edi
cmp edi, 7
jne 0x4315a2
mov eax, 0x2a
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
mov ecx, esi
mov byte [edx + 3], al
movzx eax, ch
mov byte [edx + 2], al
mov eax, esi
shr eax, 0x10
mov byte [edx + 1], al
xor eax, eax
jmp 0x43157e
cmp ecx, edi
jb 0x431527
mov ecx, dword [ebp - 0x10]
and esi, ebx
inc ecx
cmp edi, 1
jbe 0x431640
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dl, byte [eax + 1]
mov eax, edx
and eax, 0xc0
add eax, 0xffffff80
jne 0x4315c3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, 2
lea ebx, [edi + eax]
jmp 0x431631
xor edx, edx
mov dl, byte [ecx]
mov eax, edx
and eax, 0xc0
add eax, 0xffffff80
jne 0x4315c3
inc ecx
mov eax, esi
and edx, 0x3f
shl eax, 6
cmp ecx, ebx
lea esi, [edx + eax]
jne 0x431620
cmp esi, 0x7f
jbe 0x4315c3
cmp esi, 0x7ff
ja 0x43165a
cmp edi, 2
ja 0x4315c3
cmp esi, 0xffff
ja 0x43166b
cmp edi, 3
ja 0x4315c3
cmp esi, 0x1fffff
ja 0x43167c
cmp edi, 4
ja 0x4315c3
cmp esi, 0x3ffffff
ja 0x43168d
cmp edi, 5
ja 0x4315c3
test esi, esi
js 0x4315c3
lea eax, [esi - 0xd800]
cmp eax, 0x7ff
jbe 0x4315c3
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
sub eax, edi
mov dword [ecx], eax
jmp 0x431559
Function at 0x4398c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0xc]
test edx, edx
jle 0x4398e0
push eax
push eax
mov eax, dword [edi + 0x44]
push edx
push edi
call dword [eax + 0xc]
add esp, 0x10
mov edx, dword [edi + 0x18]
test edx, edx
jle 0x4398f4
push eax
push eax
mov eax, dword [edi + 0x44]
push edx
push edi
call dword [eax + 0xc]
add esp, 0x10
mov eax, dword [edi + 0x34]
test eax, eax
je 0x439907
sub esp, 0xc
push eax
call sub.msvcrt.dll_fclose
add esp, 0x10
mov eax, dword [edi + 0x38]
test eax, eax
je 0x43991a
sub esp, 0xc
push eax
call sub.msvcrt.dll_fclose
add esp, 0x10
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4399d6
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x4399c2
sub esp, 0xc
mov ebx, dword [edi + 0x20]
push ebx
call sub.msvcrt.dll_free
pop ecx
mov edx, dword [edi + 0x24]
push edx
call sub.msvcrt.dll_free
pop eax
mov eax, dword [edi + 0x28]
push eax
call sub.msvcrt.dll_free
mov eax, dword [edi + 0x3c]
add esp, 0x10
test eax, eax
jle 0x43999b
xor esi, esi
lea esi, [esi]
lea ebx, [esi*4]
mov eax, dword [edi + 0x40]
sub esp, 0xc
inc esi
mov eax, dword [eax + ebx]
push eax
call sub.msvcrt.dll_remove
pop eax
mov eax, dword [edi + 0x40]
mov eax, dword [eax + ebx]
push eax
call sub.msvcrt.dll_free
add esp, 0x10
cmp dword [edi + 0x3c], esi
jg 0x439960
sub esp, 0xc
mov ebx, dword [edi + 0x40]
push ebx
call sub.msvcrt.dll_free
add esp, 0x10
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4399ae
sub esp, 0xc
push edi
call eax
add esp, 0x10
sub esp, 0xc
push edi
call sub.msvcrt.dll_free
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
mov esi, dword [edi + 0x10]
push esi
call sub.msvcrt.dll_free
add esp, 0x10
jmp 0x439930
mov eax, dword [edi]
sub esp, 0xc
and eax, 0xfffffffe
lea ecx, [ebp - 0x10]
mov dword [edi], eax
lea eax, [ebp - 0x14]
push eax
mov edx, 1
mov eax, edi
call fcn.004397e0
add esp, 0x10
jmp 0x439925