joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 8], ebx
test esi, esi
je 0x488a6f
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x488a6e
cmp edi, 0x10
jb 0x488a47
mov eax, dword [ebx + 4]
mov ecx, edi
shr ecx, 4
mov dword [ebp - 4], ecx
nop dword [eax + eax]
mov edi, dword [ebp - 8]
lea ebx, [esi + 2]
mov esi, 4
nop dword [eax + eax]
movzx edx, byte [ebx - 2]
lea ebx, [ebx + 4]
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x68f7a8]
xor eax, dword [ecx + edx*4]
mov dword [edi + 4], eax
movzx edx, byte [ebx - 5]
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x68f7a8]
xor eax, dword [ecx + edx*4]
mov dword [edi + 4], eax
movzx ecx, byte [ebx - 4]
movzx edx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x68f7a8]
xor eax, dword [ecx + edx*4]
mov dword [edi + 4], eax
movzx edx, byte [ebx - 3]
movzx ecx, al
xor edx, ecx
shr eax, 8
mov ecx, dword [0x68f7a8]
xor eax, dword [ecx + edx*4]
mov dword [edi + 4], eax
sub esi, 1
jne 0x4889c0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub edi, 0x10
add esi, 0x10
mov dword [ebp + 0xc], edi
sub dword [ebp - 4], 1
mov dword [ebp + 8], esi
jne 0x4889b0
mov ebx, dword [ebp - 8]
test edi, edi
je 0x488a6e
mov edx, dword [ebx + 4]
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
mov eax, dword [0x68f7a8]
xor edx, dword [eax + ecx*4]
mov dword [ebx + 4], edx
sub edi, 1
jne 0x488a50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48a2f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5baf8b
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x100]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x108], eax
push ecx
push 0
push edi
push eax
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, eax
xor al, al
mov dword [ebp - 0x110], ecx
mov byte [ebp - 0x101], al
test ecx, ecx
jne 0x48a4b0
mov ecx, dword [ebp - 0x100]
test ecx, ecx
je 0x48a51c
push ecx
call fcn.0040de50
mov edi, eax
add esp, 4
test edi, edi
jne 0x48a39a
xor al, al
jmp 0x48a51c
lea eax, [ebp - 0x100]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x10c]
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x108], eax
test eax, eax
jne 0x48a43a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x100]
cmp eax, 4
jne 0x48a3f5
cmp ecx, 4
jne 0x48a3ff
push dword [edi]
mov ecx, esi
call fcn.0042ad00
push edi
mov byte [ebp - 0x101], 1
call fcn.005af5b6
add esp, 4
jmp 0x48a516
cmp eax, 1
je 0x48a41d
cmp eax, 2
je 0x48a41d
push ecx
push edi
mov ecx, esi
call fcn.0042b2c0
push edi
mov byte [ebp - 0x101], 1
call fcn.005af5b6
add esp, 4
jmp 0x48a516
push edi
mov ecx, esi
call fcn.0042ade0
push edi
mov byte [ebp - 0x101], 1
call fcn.005af5b6
add esp, 4
jmp 0x48a516
push 0x74
lea eax, [ebp - 0x88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.0042a8a0
push dword [ebp - 0x108]
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.0042b8a0
mov esi, dword [ebx]
lea ecx, [ebp - 0x88]
call fcn.0042f3c0
push eax
push str.RegistryQueryError2
mov ecx, ebx
call dword [esi + 0x2c]
push dword [ebp - 0x10c]
mov eax, dword [ebx]
mov ecx, ebx
push str.ValueName
call dword [eax + 0x2c]
lea ecx, [ebp - 0x88]
call fcn.0042a8f0
push edi
call fcn.005af5b6
add esp, 4
jmp 0x48a516
push 0x74
lea eax, [ebp - 0xfc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xfc]
call fcn.0042a8a0
push dword [ebp - 0x110]
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], 1
call fcn.0042b8a0
mov esi, dword [ebx]
lea ecx, [ebp - 0xfc]
call fcn.0042f3c0
push eax
push str.RegistryQueryError
mov ecx, ebx
call dword [esi + 0x2c]
mov edx, dword [ebx]
mov ecx, ebx
push edi
push str.ValueName
call dword [edx + 0x2c]
lea ecx, [ebp - 0xfc]
call fcn.0042a8f0
mov al, byte [ebp - 0x101]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
Function at 0x4a1680
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 8], 0x6119a407
je 0x4a16a0
push 0
call fcn.004014f0
add esp, 4
xor eax, eax
pop edi
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push esi
call fcn.0042f3c0
mov edx, eax
mov eax, 0x1505
movsx esi, byte [edx]
test esi, esi
je 0x4a16ca
mov ecx, eax
lea edx, [edx + 1]
shl eax, 5
add eax, esi
movsx esi, byte [edx]
add eax, ecx
test esi, esi
jne 0x4a16b7
xor edx, edx
div dword [edi + 0xc]
pop esi
mov eax, edx
pop edi
pop ebp
ret 4

Function at 0x4a1aa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b199d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x68cc00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00429f90
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [esi], vtable.MimeHeader.0
mov dword [esi + 8], 0
call fcn.0045a620
mov byte [esi + 0x28], 1
mov eax, esi
mov dword [esi + 0x2c], vtable.MimeControl.0
mov word [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4af310
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], vtable._ckMd5.0
mov eax, ecx
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
ret

Function at 0x4afad0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 4], 0x67452301
mov dword [edi + 8], 0xefcdab89
mov dword [edi + 0xc], 0x98badcfe
mov dword [edi + 0x10], 0x10325476
cmp dword [eax + 0x804], ebx
jbe 0x4afb31
push esi
lea esi, [eax + 4]
push dword [esi + 0x400]
mov ecx, edi
push dword [esi]
call fcn.004aff90
mov eax, dword [ebp + 8]
lea esi, [esi + 4]
inc ebx
cmp ebx, dword [eax + 0x804]
jb 0x4afb12
pop esi
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004afe90
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4afb50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
call fcn.004aff90
push dword [ebp + 0x10]
mov ecx, esi
call fcn.004afe90
pop esi
pop ebp
ret 0xc

Function at 0x4afba0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 4], 0x67452301
mov dword [edi + 8], 0xefcdab89
mov dword [edi + 0xc], 0x98badcfe
mov dword [edi + 0x10], 0x10325476
call fcn.00402f10
mov ecx, dword [ebp + 8]
push eax
call fcn.00438b90
push eax
mov ecx, edi
call fcn.004aff90
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004afe90
pop edi
pop ebp
ret 8
Function at 0x4afe30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 4], 0x67452301
mov dword [edi + 8], 0xefcdab89
mov dword [edi + 0xc], 0x98badcfe
mov dword [edi + 0x10], 0x10325476
call fcn.0042f360
mov ecx, dword [ebp + 8]
push eax
call fcn.0042f3c0
push eax
mov ecx, edi
call fcn.004aff90
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004afe90
pop edi
pop ebp
ret 8

Function at 0x4aff60
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
ret

Function at 0x4b18a0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xa70]
test eax, eax
je 0x4b18b5
mov ecx, eax
pop ebp
jmp fcn.00577f10
cmp dword [ecx + 0xa7c], 2
jne 0x4b18ca
add ecx, 0x164
pop ebp
jmp fcn.0056e9d0
add ecx, 0x720
pop ebp
jmp fcn.004feff0
Function at 0x4b23a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
push edi
mov edi, dword [ebp + 0x18]
mov byte [eax], 0
cmp byte [edi + 8], 0
jne 0x4b23cd
mov ecx, dword [ebp + 0x1c]
push dword [0x689f1c]
mov eax, dword [ecx]
call dword [eax + 0x14]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x18
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ecx - 0x78]
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x1c]
test ebx, ebx
jne 0x4b2422
mov eax, dword [ecx + 0x9f8]
push esi
push edi
test eax, eax
je 0x4b23f4
mov ecx, eax
call fcn.00577f10
jmp 0x4b2415
cmp dword [ecx + 0xa04], 2
jne 0x4b240a
add ecx, 0xec
call fcn.0056e9d0
jmp 0x4b2415
add ecx, 0x6a8
call fcn.004feff0
test al, al
je 0x4b24ec
mov ebx, 0x7530
mov ecx, dword [ebp + 8]
call fcn.00402f10
mov ecx, dword [ebp - 4]
push esi
mov esi, dword [ebp + 8]
push edi
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
push esi
call fcn.004b1f00
mov byte [ebp + 0x1b], al
test al, al
je 0x4b24ec
mov ecx, esi
call fcn.00402f10
cmp eax, dword [ebp + 0x10]
jbe 0x4b246f
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp + 0x14]
pop esi
pop ebx
pop edi
mov byte [ecx], al
mov al, 1
mov esp, ebp
pop ebp
ret 0x18
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
xor esi, esi
nop dword [eax]
mov ecx, dword [ebp + 8]
call fcn.00402f10
cmp eax, dword [ebp + 0x10]
jne 0x4b24c1
cmp esi, ebx
jae 0x4b24c1
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b1f00
mov byte [ebp + 0x1b], al
call sub.KERNEL32.DLL_GetTickCount
mov esi, eax
mov eax, dword [ebp - 8]
cmp esi, eax
jb 0x4b24ec
sub esi, eax
cmp esi, ebx
jae 0x4b24db
cmp byte [ebp + 0x1b], 0
jne 0x4b2480
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp + 0x14]
pop esi
pop ebx
pop edi
mov byte [ecx], al
mov al, byte [ebp + 0x1b]
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x1c]
push str.Timed_out......
mov eax, dword [ecx]
call dword [eax + 0x14]
mov byte [edi + 0x14], 1
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4b3e10
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xa70]
test eax, eax
je 0x4b3e25
mov ecx, eax
pop ebp
jmp fcn.0057e4d0
cmp dword [ecx + 0xa7c], 2
jne 0x4b3e3a
add ecx, 0x164
pop ebp
jmp fcn.0056f0b0
add ecx, 0x720
pop ebp
jmp fcn.00501180
Function at 0x4be930
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4a40
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 8]
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4be9d8
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4be9d4
test edi, edi
je 0x4be9d4
push 0x74
lea eax, [ebp - 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.0042a8a0
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
call fcn.0042b950
mov esi, dword [edi]
lea ecx, [ebp - 0x84]
call fcn.0042f3c0
push eax
mov ecx, edi
call dword [esi + 0x14]
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_get_file_size__32_
call dword [eax + 0x14]
lea ecx, [ebp - 0x84]
call fcn.0042a8f0
mov eax, ebx
jmp 0x4be9f5
mov eax, dword [ecx + 4]
test eax, eax
je 0x4be9f2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__filelength]
add esp, 8
jmp 0x4be9f5
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 4

Function at 0x4bea20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bef50
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4beb14
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4beb06
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4beb06
test edi, edi
je 0x4beae4
push 0x74
lea eax, [ebp - 0x88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.0042a8a0
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.0042b950
mov esi, dword [edi]
lea ecx, [ebp - 0x88]
call fcn.0042f3c0
push eax
mov ecx, edi
call dword [esi + 0x14]
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_get_file_size__64_
call dword [eax + 0x14]
lea ecx, [ebp - 0x88]
call fcn.0042a8f0
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x14]
push esi
call fcn.0045ef50
add esp, 8
jmp 0x4beae9
mov eax, dword [esi + 4]
test eax, eax
je 0x4beae4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
push dword [esi + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__filelengthi64]
add esp, 0xc
jmp 0x4beae9
Function at 0x4bec40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, ecx
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov byte [eax], 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [edi], 0
test ebx, ebx
jne 0x4bec9e
test ecx, ecx
je 0x4beded
mov eax, dword [ecx]
push str.NULL_buf_pointer.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4bee02
mov dword [ebp - 0x18], 0x10000
cmp esi, 0x10000
mov byte [eax], 0
mov ecx, esi
cmova ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], eax
test ebx, ebx
je 0x4bedd7
mov edx, dword [edx + 8]
cmp edx, 0xffffffff
je 0x4bed28
push eax
lea eax, [ebp - 8]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4bed1f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x26
je 0x4bed5b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4bede8
push eax
call fcn.004492a0
mov eax, dword [ebp - 8]
add dword [edi], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4bed64
jmp 0x4bed5e
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 4]
test edx, edx
je 0x4bedac
push edx
push ecx
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x1c]
je 0x4bed64
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
jne 0x4bed86
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 1
add dword [edi], eax
sub esi, eax
add ebx, eax
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x4bee02
test esi, esi
je 0x4bee02
mov edx, dword [ebp - 0x14]
jmp 0x4becb0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4bede8
call fcn.00448fd0
mov eax, dword [ebp - 8]
add dword [edi], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4bedeb
mov eax, dword [ecx]
push str.No_file_is_open.
call dword [eax + 0x14]
mov eax, dword [ebp - 8]
add dword [edi], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4bedeb
mov eax, dword [ecx]
push str.NULL_buf_or_bufSize
call dword [eax + 0x14]
mov eax, dword [ebp - 8]
add dword [edi], eax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4bf2b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [ebp + 0x18]
push ebx
push esi
cmp dword [eax + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], ecx
jne 0x4bf30a
cmp dword [eax + 4], 0
jne 0x4bf30a
test ecx, ecx
je 0x4bf41f
mov eax, dword [ecx]
push str.Failed_to_write_because_file_is_not_open.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
test edi, edi
je 0x4bf31b
mov dword [edi], 0
mov dword [edi + 4], 0
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov esi, dword [ebp + 0x10]
or eax, esi
mov dword [ebp - 0x14], esi
je 0x4bf3f9
mov ecx, dword [ebp - 8]
test esi, esi
jl 0x4bf346
jg 0x4bf33f
cmp ebx, 0x989680
jbe 0x4bf346
mov esi, 0x989680
jmp 0x4bf348
mov esi, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x4bf3b0
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4bf374
mov ecx, dword [ebp - 8]
cmp ecx, esi
je 0x4bf3d2
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4bf41f
mov eax, dword [ebx]
mov ecx, ebx
push 1
push str.WriteFileError
call dword [eax + 0x24]
mov ecx, ebx
call fcn.00448fd0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x4bf3d5
push eax
push 1
push esi
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x4bf40e
mov ecx, esi
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
add edx, esi
sub ebx, esi
mov esi, dword [ebp - 0x14]
sbb esi, 0
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
test edi, edi
je 0x4bf3ef
add dword [edi], ecx
adc dword [edi + 4], 0
mov eax, ebx
or eax, esi
jne 0x4bf331
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4bf41f
mov eax, dword [ecx]
push str.fwrite_failed.
call dword [eax + 0x14]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4c45a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf0bb
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x2c]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp + 0x28]
push 0x118
mov dword [ebp - 0x1a4], eax
push 0
mov dword [eax], 0
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 0x1c0], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.00403870
push esi
lea ecx, [ebp - 0x19c]
mov dword [ebp - 4], 0
call fcn.004044e0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x19c]
call fcn.004071a0
lea ecx, [ebp - 0x19c]
call fcn.00406cc0
mov ebx, eax
call fcn.004be880
mov esi, eax
test esi, esi
je 0x4c47c5
xor edi, edi
mov byte [ebp - 0x19d], 0
nop word [eax + eax]
push dword [ebp - 0x1a8]
push dword [ebp - 0x1ac]
push dword [ebp - 0x1b0]
push dword [ebp - 0x1b4]
push dword [ebp - 0x1b8]
push dword [ebp - 0x1bc]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi + 8], eax
cmp edi, 3
jge 0x4c46e8
cmp eax, 0xffffffff
jne 0x4c46e8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x1a4]
mov dword [ecx], eax
cmp eax, 0x20
jne 0x4c46e8
push 0x32
inc edi
call fcn.00447b20
add esp, 4
jmp 0x4c4690
cmp dword [esi + 8], 0xffffffff
jne 0x4c47c7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x1a4]
mov dword [ecx], eax
cmp eax, 2
jne 0x4c4749
cmp byte [ebp - 0x19d], 0
jne 0x4c4749
lea eax, [ebp - 0x19c]
push eax
call fcn.0043d350
add esp, 4
test al, al
je 0x4c4749
lea eax, [ebp - 0x19c]
mov byte [ebp - 0x19d], 1
push eax
call fcn.0043da50
add esp, 4
lea ecx, [ebp - 0x19c]
call fcn.00406cc0
mov ebx, eax
jmp 0x4c4690
mov ebx, dword [ebp - 0x1c0]
test ebx, ebx
je 0x4c47bd
push 0x74
lea eax, [ebp - 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x84]
call fcn.0042a8a0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0042b950
mov eax, dword [ebx]
mov ecx, ebx
push str.Failed_to_open_file__3_
call dword [eax + 0x14]
lea eax, [ebp - 0x19c]
mov ecx, ebx
push eax
push str.filePath
call fcn.00448c80
lea eax, [ebp - 0x84]
mov ecx, ebx
push eax
push str.osErrorInfo
call fcn.00448a80
lea ecx, [ebp - 0x84]
call fcn.0042a8f0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
lea ecx, [ebp - 0x19c]
call fcn.00403900
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
Function at 0x4c94f0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9aed
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
jl 0x4c9597
test esi, esi
je 0x4c9597
push str.getEntropy
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.00447ef0
mov dword [ebp - 4], 0
xor bl, bl
call fcn.00447210
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4c9568
lea ecx, [ebp - 0x1c]
call fcn.00447ff0
mov al, bl
jmp 0x4c9599
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 0x20]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x1c]
call fcn.00447ff0
mov al, bl
jmp 0x4c9599
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret