joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461430
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
cmp dword [ecx + 0x40], 0
je 0x4615d7
mov esi, ecx
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x4615e9
mov dword [esp], 0
mov eax, dword [esi + 0x54]
test al, 0x10
jne 0x461487
test al, 8
je 0x4615de
mov eax, dword [esi + 0x4c]
mov dword [esp + 4], eax
cmp byte [esi + 0x5a], 0
je 0x461518
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, ecx
sar eax, 0x1f
xor ebx, ebx
jmp 0x461584
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x14]
je 0x4614a1
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0x34]
cmp eax, 0xffffffff
je 0x46159e
lea ebp, [esi + 0x48]
nop word cs:[eax + eax]
mov dword [esp + 8], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x34]
add edx, eax
mov edi, dword [ecx]
lea ebx, [esp + 8]
push ebx
push edx
push eax
push ebp
call dword [edi + 0x14]
mov ebx, eax
mov edi, dword [esp + 8]
mov eax, dword [esi + 0x20]
sub edi, eax
push dword [esi + 0x40]
push edi
push 1
push eax
call fcn.005fe788
add esp, 0x10
cmp eax, edi
jne 0x46159e
cmp ebx, 1
je 0x4614b0
cmp ebx, 2
je 0x46159e
push dword [esi + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
test eax, eax
jne 0x46159e
jmp 0x4615de
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
sub edi, edx
test eax, eax
jle 0x461544
mov edx, edi
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar edx, 0x1f
imul ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, edi
adc eax, edx
xor ebx, ebx
jmp 0x461584
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x46157b
mov ebx, edi
sar ebx, 0x1f
mov ecx, dword [esi + 0x44]
sub eax, dword [esi + 8]
mov ebp, dword [ecx]
push eax
push edx
push dword [esi + 0x20]
lea eax, [esp + 0x10]
push eax
call dword [ebp + 0x20]
add eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
sub ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, edi
adc eax, ebx
mov bl, 1
jmp 0x461584
mov eax, edi
sar eax, 0x1f
xor ebx, ebx
mov ecx, edi
xor edx, edx
neg ecx
sbb edx, eax
push 1
push edx
push ecx
push dword [esi + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
test eax, eax
je 0x4615a7
mov dword [esp], 0xffffffff
jmp 0x4615de
test bl, bl
je 0x4615b2
mov eax, dword [esp + 4]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x54], 0
mov dword [esp], 0
mov eax, dword [esp]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00461a10
int3
Function at 0x470de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
movsd xmm0, qword [ebp + 0x14]
xorps xmm1, xmm1
movaps xmmword [esp + 0x20], xmm1
mov dword [esp + 0x30], 0
movsd qword [esp + 0x28], xmm0
mov dword [esp + 4], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
push eax
call fcn.00470f20
add esp, 4
lea ecx, [esp + 0x20]
lea edx, [esp + 4]
push ecx
push edx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470e46
mov eax, dword [esp + 4]
jmp 0x470e79
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x470e81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp esi, 0x3e5
jne 0x470e6e
mov dword [eax], 0xb
jmp 0x470e74
mov dword [eax], 0x16
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x470e50
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 8], eax
sub esp, 0x14
movaps xmm0, xmmword [0x873fb0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea esi, [esp + 0x20]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
lea eax, [esp + 0x14]
push ebx
push edi
push str.adb_pread:_could_not_read__d_bytes_from_FD__d
mov edi, eax
push eax
call fcn.004ba8a0
add esp, 0x10
push edi
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 0x14], 1
je 0x470efa
push dword [esp + 0x1c]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
jmp 0x470e50
Function at 0x473a10
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x14]
mov ecx, str.network_peek
push eax
call fcn.00470cc0
add esp, 4
test eax, eax
je 0x473a3d
cmp dword [eax], 0x874d78
je 0x473a6f
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x473abf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 9
xor ecx, ecx
xor eax, eax
xor edx, edx
and edx, 0xffffff00
movzx eax, al
or eax, edx
movzx edx, cl
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], 0xffffffff
mov ecx, esp
push ecx
push 0x4004667f
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x473ab0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push 0
push 4
call fcn.004b9f30
add esp, 8
test al, al
jne 0x473b49
mov ecx, esi
call fcn.004716a0
jmp 0x473a53
mov eax, dword [esp]
mov edx, eax
and edx, 0xffffff00
mov cl, 1
jmp 0x473a59
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x473a47
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x874280]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea esi, [esp + 0x14]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
lea ebp, [esp + 8]
push edi
push str.network_peek:_invalid_fd__d
push ebp
call fcn.004ba8a0
add esp, 0xc
push ebp
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 8], 1
je 0x473b35
push dword [esp + 0x10]
call fcn.0051c570
add esp, 4
mov ecx, esp
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], ebx
jmp 0x473a47
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x874270]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea edi, [esp + 0x18]
mov ecx, edi
call fcn.004b9f90
mov ecx, edi
call fcn.004b9f60
push 0x15
push str.ioctlsocket___failed
push eax
call fcn.00402f60
add esp, 0xc
mov edi, eax
lea ebp, [esp + 8]
push esi
push ebp
call fcn.004bbe60
add esp, 8
push ebp
push edi
call fcn.00402f30
add esp, 8
test byte [esp + 8], 1
je 0x473bb6
push dword [esp + 0x10]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 4]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], ebx
jmp 0x473aa7
Function at 0x473ff0
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x24]
mov ecx, str.adb_setsockopt
push eax
call fcn.00470cc0
add esp, 4
test eax, eax
je 0x47401d
cmp dword [eax], 0x874d78
je 0x474040
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x47407f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 9
mov eax, 0xffffffff
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push edi
push ebp
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x474038
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x474107
mov ecx, esi
call fcn.004716a0
jmp 0x474033
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x474027
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x8742d0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea esi, [esp + 0x18]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
lea ebp, [esp + 0x18]
push ebx
push str.adb_setsockopt:_invalid_fd__d
push ebp
call fcn.004ba8a0
add esp, 0xc
push ebp
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 0x18], 1
je 0x4740f1
push dword [esp + 0x20]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 4]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], edi
jmp 0x474027
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x474076
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8742c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea ecx, [esp + 0x14]
call fcn.004b9f90
mov ecx, esp
call fcn.004b9f60
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push esi
push eax
call fcn.004bbe60
add esp, 8
test byte [esp + 4], 1
je 0x47416c
mov eax, dword [esp + 0xc]
jmp 0x474170
lea eax, [esp + 5]
lea ecx, [esp + 0x18]
push eax
push edi
push ebp
push ebx
push str.adb_setsockopt:_setsockopt_on_fd__d_level__d_optname__d_failed:__s_n
mov edi, ecx
push ecx
call fcn.004ba8a0
add esp, 0x18
push edi
push dword [esp + 0x14]
call fcn.00402f30
add esp, 8
test byte [esp + 0x18], 1
je 0x4741a8
push dword [esp + 0x20]
call fcn.0051c570
add esp, 4
test byte [esp + 4], 1
je 0x4741bb
push dword [esp + 0xc]
call fcn.0051c570
add esp, 4
mov ecx, esp
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
jmp 0x474076
Function at 0x4741e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x20]
mov ecx, str.adb_getsockname
push eax
call fcn.00470cc0
add esp, 4
test eax, eax
je 0x47420d
cmp dword [eax], 0x874d78
je 0x474230
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x474265
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 9
mov eax, 0xffffffff
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x474228
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x4742eb
mov ecx, esi
call fcn.004716a0
jmp 0x474223
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x474217
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x8742f0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea esi, [esp + 0x14]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
lea ebp, [esp + 0x14]
push ebx
push str.adb_getsockname:_invalid_fd__d
push ebp
call fcn.004ba8a0
add esp, 0xc
push ebp
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 0x14], 1
je 0x4742d7
push dword [esp + 0x1c]
call fcn.0051c570
add esp, 4
mov ecx, esp
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], edi
jmp 0x474217
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x47425c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8742e0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea edi, [esp + 0x24]
mov ecx, edi
call fcn.004b9f90
mov ecx, edi
call fcn.004b9f60
mov edi, eax
mov eax, esp
push esi
push eax
call fcn.004bbe60
add esp, 8
test byte [esp], 1
je 0x47434d
mov eax, dword [esp + 8]
jmp 0x474351
lea eax, [esp + 1]
lea ebp, [esp + 0x14]
push eax
push ebx
push str.adb_getsockname:_setsockopt_on_fd__d_failed:__s_n
push ebp
call fcn.004ba8a0
add esp, 0x10
push ebp
push edi
call fcn.00402f30
add esp, 8
test byte [esp + 0x14], 1
je 0x474382
push dword [esp + 0x1c]
call fcn.0051c570
add esp, 4
test byte [esp], 1
je 0x474394
push dword [esp + 8]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x47425c
Function at 0x474c90
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x18]
mov ecx, str.set_file_block_mode
push eax
call fcn.00470cc0
add esp, 4
test eax, eax
je 0x474d2e
cmp dword [eax + 4], 0
je 0x474d2e
cmp dword [eax], 0x874d78
je 0x474d54
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x80
mov eax, dword [0x86159c]
test byte [eax], 0x80
je 0x474d48
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x474d48
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x8743a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea esi, [esp + 0x14]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
lea ebx, [esp + 4]
push ebp
push str.Setting_nonblocking_on_non_socket__d
jmp 0x474e76
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 9
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x474e26
xor ebx, ebx
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [esp + 0x34]
xor cl, 1
movzx ecx, cl
mov dword [esp], ecx
mov ecx, esp
push ecx
push 0x8004667e
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
sete bl
je 0x474d4a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, eax
call fcn.004716a0
mov eax, dword [0x86159c]
test byte [eax], 0x80
je 0x474d4a
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x474d4a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
sub esp, 0x14
movaps xmm0, xmmword [0x8743b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea edi, [esp + 0x28]
mov ecx, edi
call fcn.004b9f90
mov ecx, edi
call fcn.004b9f60
mov edi, eax
lea eax, [esp + 4]
push esi
push ebp
push str.Setting__d_nonblocking_failed___d_
mov esi, eax
push eax
call fcn.004ba8a0
add esp, 0x10
push esi
push edi
call fcn.00402f30
add esp, 8
test byte [esp + 4], 1
je 0x474e0c
push dword [esp + 0xc]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
jmp 0x474d4a
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x474d48
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x8743c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea esi, [esp + 0x14]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov esi, eax
lea ebx, [esp + 4]
push ebp
push str.Setting_nonblocking_on_bad_file_descriptor__d
push ebx
call fcn.004ba8a0
add esp, 0xc
push ebx
push esi
call fcn.00402f30
add esp, 8
test byte [esp + 4], 1
je 0x474e9c
push dword [esp + 0xc]
call fcn.0051c570
add esp, 4
mov ecx, esp
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], edi
jmp 0x474d48
Function at 0x476780
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov ecx, esp
mov esi, 0xffffffff
push ecx
push eax
call fcn.004bc4f0
add esp, 8
test al, al
je 0x4767d5
test byte [esp], 1
je 0x4767c5
mov eax, dword [esp + 8]
jmp 0x4767c9
lea eax, [esp + 2]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
mov esi, eax
test byte [esp], 1
je 0x4767e7
push dword [esp + 8]
call fcn.0051c570
add esp, 4
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret

Function at 0x4767f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
lea ecx, [esp + 0x10]
mov esi, 0xffffffff
push ecx
push eax
call fcn.004bc490
add esp, 8
test al, al
je 0x47688b
mov eax, esp
push eax
push dword [ebp + 0xc]
call fcn.004bc490
add esp, 8
test al, al
je 0x47688b
test byte [esp + 0x10], 1
je 0x47686c
mov eax, dword [esp + 0x18]
test byte [esp], 1
jne 0x476876
lea ecx, [esp + 2]
jmp 0x47687a
lea eax, [esp + 0x12]
test byte [esp], 1
je 0x476866
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
add esp, 8
xor esi, esi
neg eax
sbb esi, esi
test byte [esp], 1
je 0x47689d
push dword [esp + 8]
call fcn.0051c570
add esp, 4
test byte [esp + 0x10], 1
je 0x4768b0
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret

Function at 0x476c80
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, esi
call fcn.00476af0
test eax, eax
je 0x476cbb
imul edi, ebp
mov ecx, ebx
mov edx, edi
push eax
push esi
call fcn.004780f0
add esp, 8
cmp eax, 0xffffffff
je 0x476cc4
xor edx, edx
div ebp
jmp 0x476cc6
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.005fe788
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4792b0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x24]
movzx ebx, byte [ebp]
test bl, 1
mov dword [esp], ecx
je 0x4792cf
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
jmp 0x4792d2
inc ebp
shr ebx, 1
mov eax, ebx
mov ecx, ebp
mov edx, ebx
cmp ebx, 4
jb 0x479362
lea edx, [ebx - 4]
test dl, 4
jne 0x479311
imul eax, dword [ebp], 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul eax, ebx, 0x5bd1e995
xor eax, ecx
lea ecx, [ebp + 4]
mov esi, edx
cmp edx, 4
jae 0x47931c
jmp 0x479362
mov esi, ebx
mov ecx, ebp
mov eax, ebx
cmp edx, 4
jb 0x479362
mov edx, esi
nop
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
imul esi, dword [ecx + 4], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 8
add edx, 0xfffffff8
cmp edx, 3
ja 0x479320
cmp edx, 1
je 0x479388
cmp edx, 2
mov edi, dword [esp]
je 0x47937d
cmp edx, 3
jne 0x479396
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
jmp 0x47938b
mov edi, dword [esp]
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4794eb
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov eax, ecx
shr eax, 1
and eax, 0x55555555
mov edx, ecx
sub edx, eax
mov eax, edx
and eax, 0x33333333
shr edx, 2
and edx, 0x33333333
add edx, eax
mov eax, edx
shr eax, 4
add eax, edx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [esp + 0xc], eax
cmp eax, 1
mov dword [esp + 4], ecx
ja 0x4793fd
lea edx, [ecx - 1]
and edx, esi
jmp 0x47940b
mov edx, esi
cmp esi, ecx
jb 0x47940b
mov eax, esi
xor edx, edx
div dword [esp + 4]
mov eax, dword [edi]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4794eb
mov edi, dword [eax]
test edi, edi
mov eax, 0
je 0x4794ed
mov dword [esp], edx
mov eax, dword [esp + 4]
dec eax
mov dword [esp + 8], eax
jmp 0x479456
and eax, dword [esp + 8]
cmp eax, edx
jne 0x4794eb
mov edi, dword [edi]
test edi, edi
je 0x4794eb
mov eax, dword [edi + 4]
cmp eax, esi
jne 0x4794b0
movzx edx, byte [edi + 8]
mov eax, edx
shr eax, 1
mov ecx, eax
test dl, 1
je 0x47946f
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jne 0x47944c
lea ecx, [edi + 9]
test dl, 1
je 0x47947e
mov ecx, dword [edi + 0x10]
jne 0x4794d0
test ebx, ebx
je 0x4794e7
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [edi + ecx + 9]
cmp dl, byte [ebp + ecx]
jne 0x47944c
inc ecx
cmp eax, ecx
jne 0x479490
jmp 0x4794e7
cmp dword [esp + 0xc], 1
mov edx, dword [esp]
jbe 0x479440
mov ecx, dword [esp + 4]
cmp eax, ecx
jb 0x479444
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [esp]
jmp 0x479444
test ebx, ebx
je 0x4794e7
push ebx
push ebp
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x47944c
mov eax, edi
jmp 0x4794ed
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4b3600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4b3753
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4b3753
mov eax, dword [esp + 0x24]
mov dword [esp], eax
test eax, eax
je 0x4b3753
mov edi, dword [esp + 0x28]
test edx, edx
jle 0x4b3747
lea eax, [ecx + edx*2]
mov dword [esp + 4], eax
jmp 0x4b3680
mov eax, ebx
and al, 0x3f
or al, 0x80
mov byte [edi - 1], al
dec edi
shr ebx, 6
mov eax, ebx
and al, 0x3f
or al, 0x80
mov byte [edi - 1], al
dec edi
shr ebx, 6
or ebx, dword [edx*4 + 0x87a928]
mov byte [edi - 1], bl
mov edi, ebp
cmp ecx, dword [esp + 4]
jae 0x4b3749
movzx ebx, word [ecx]
mov edx, ebx
and edx, 0xfc00
cmp edx, 0xd800
jne 0x4b36e0
lea ebp, [ecx + 2]
cmp ebp, dword [esp + 4]
jae 0x4b36fa
movzx esi, word [ebp]
mov edx, esi
and edx, 0xfc00
cmp edx, 0xdc00
jne 0x4b36fa
shl ebx, 0xa
add ebx, 0xfca00000
add esi, 0xffff2400
or esi, ebx
lea ebx, [esi + 0x10000]
xor edx, edx
cmp esi, 0x100000
setb dl
shl edx, 2
mov ecx, ebp
jmp 0x4b370e
mov edx, 1
cmp ebx, 0x80
jb 0x4b370e
mov edx, 2
cmp ebx, 0x800
jb 0x4b370e
lea edx, [ebx - 0xe000]
xor eax, eax
cmp edx, 0xfffff800
setb al
lea edx, [eax + eax*2]
mov ebp, edi
sub ebp, edx
jb 0x4b375b
add ecx, 2
add dword [esp], edx
lea esi, [edx - 1]
cmp esi, 3
ja case.default.0x4b3729
mov edi, dword [esp]
jmp dword [esi*4 + 0x87a830]
mov eax, ebx
and al, 0x3f
or al, 0x80
mov esi, dword [esp]
lea edi, [esi - 1]
mov byte [esi - 1], al
shr ebx, 6
jmp case.0x4b3729.3
mov ebp, edi
test ebp, ebp
je 0x4b3771
mov eax, dword [esp]
mov byte [eax], 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push edx
push edi
push str._zu____zu
push str.unicode
push str.dst_len___len
call fcn.006128e0
push 0
push str._zu___1
push str.unicode
push str.dst_len___1
call fcn.006128e0
nop word [eax + eax]