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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.0047c430
mov edi, eax
add esp, 8
test edi, edi
jne 0x47c3e6
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 1
push 2
call fcn.004713e0
push 0x4d86d4
push esi
push 0x4d86d8
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.00470fa0
add esp, 0x2c
call sub.MSVCR120.dll__errno
cmp dword [eax], 2
je 0x47c3c6
call sub.MSVCR120.dll__errno
cmp dword [eax], 6
je 0x47c3c6
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004713e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004713e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x4ff2f8
call fcn.00476520
mov esi, eax
add esp, 4
test esi, esi
jne 0x47c407
push edi
call sub.MSVCR120.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.00476160
push edi
push 1
push 0x6a
push esi
call fcn.00476190
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret
Function at 0x47e410
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004c1db0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x47e476
cmp edi, dword [esi]
je 0x47e46d
test ebp, ebp
je 0x47e4f0
test ebx, ebx
js 0x47e4f0
mov eax, 1
mov dword [esi], edi
jmp 0x47e47c
mov edi, dword [esi]
test edi, edi
je 0x47e4f0
test ebp, ebp
je 0x47e60b
push edi
call fcn.004719d0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x47e4b0
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004708e0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x47e50b
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.0047dc50
add esp, 0xc
test eax, eax
je 0x47e4f0
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.0047de00
add esp, 0xc
test eax, eax
je 0x47e4f0
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.0047dbd0
add esp, 0xc
test eax, eax
jne 0x47e527
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046bea8
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x47e4f0
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call sub.MSVCR120.dll_memcpy
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x47e54a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x47e550
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.0047dc50
add esp, 0xc
test eax, eax
je 0x47e4f0
push edi
call fcn.004719d0
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0047de00
add esp, 0x10
test eax, eax
je 0x47e4f0
xor ecx, ecx
jmp 0x47e5a0
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x47e5a0
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.0047dc50
add esp, 0xc
test eax, eax
je 0x47e4f0
push edi
call fcn.004719d0
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0047de00
add esp, 0x10
test eax, eax
je 0x47e4f0
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.0047dee0
add esp, 8
test eax, eax
je 0x47e4f0
mov eax, 1
jmp 0x47e4f2
test eax, eax
je 0x47e5e9
jmp 0x47e54e
Function at 0x492310
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x4923d9
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x492331
cmp al, 0x6b
jne 0x4923d9
inc ecx
cmp al, 0x6b
jne 0x49239b
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x492352
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x492352
cmp dl, 0xbb
jne 0x49237b
inc eax
cmp eax, esi
jl 0x492340
sub esi, eax
test eax, eax
jne 0x49239e
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004713e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004713e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x4923c7
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.004713e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.004713e0
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x498650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x70
call fcn.004c1db0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x88], 0x40000000
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
ja 0x498827
mov esi, dword [esp + 0x80]
cmp esi, 0x40000000
ja 0x498827
cmp dword [esp + 0x88], 0x40000000
ja 0x498827
push ebx
push edi
push eax
call fcn.004719f0
mov edi, eax
lea eax, [esp + 0x28]
push eax
call fcn.0047e080
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x34]
mov ebx, 1
push eax
call fcn.0047dc50
push dword [esp + 0xa4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], 0x1000000
push dword [esp + 0x30]
push eax
call fcn.0047de00
add esp, 0x20
test eax, eax
je 0x498803
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0047de00
add esp, 0xc
test eax, eax
je 0x498803
push dword [esp + 0x98]
lea eax, [esp + 0x28]
push dword [esp + 0x24]
push eax
call fcn.0047de00
add esp, 0xc
test eax, eax
je 0x498803
push 0
cmp esi, edi
jb 0x4987cb
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.0047dba0
add esp, 0xc
test eax, eax
je 0x498803
sub esi, edi
je 0x4987fb
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
add ebp, edi
push eax
inc ebx
call fcn.0047dc50
push dword [esp + 0x9c]
mov eax, ebx
mov byte [esp + 0x23], bl
push dword [esp + 0x28]
shr eax, 8
mov byte [esp + 0x26], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x24], al
lea eax, [esp + 0x38]
push eax
call fcn.0047de00
add esp, 0x18
test eax, eax
jne 0x498717
jmp 0x498803
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0047dba0
add esp, 0xc
test eax, eax
je 0x498803
push esi
lea eax, [esp + 0x40]
push eax
push ebp
call sub.MSVCR120.dll_memcpy
lea eax, [esp + 0x48]
push edi
push eax
call fcn.004068a0
add esp, 0x14
mov dword [esp + 0x14], 1
lea eax, [esp + 0x24]
push eax
call fcn.0047de10
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0046bea8
add esp, 0x70
ret
mov ecx, dword [esp + 0x74]
xor eax, eax
pop esi
pop ebp
xor ecx, esp
call fcn.0046bea8
add esp, 0x70
ret
Function at 0x4989d0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x4989e2
xor eax, eax
pop edi
ret
push ebp
push esi
push edi
call fcn.00471550
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x498a99
mov ecx, dword [edi + 0x10c]
push ebx
cmp ecx, esi
jne 0x498a34
test esi, esi
jle 0x498a78
mov edx, ebp
lea ecx, [edi + 0x8c]
mov ebx, esi
lea ebx, [ebx]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
dec ebx
jne 0x498a20
jmp 0x498a78
sub eax, ecx
mov byte [ecx + edi + 0xec], 0x80
cmp eax, 1
jle 0x498a58
dec eax
push eax
lea eax, [edi + 0xed]
add eax, ecx
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
test esi, esi
jle 0x498a78
mov edx, ebp
lea ecx, [edi + 0xac]
mov ebx, esi
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
dec ebx
jne 0x498a66
push esi
push ebp
push ebp
push edi
call fcn.00471990
add esp, 0x10
pop ebx
test eax, eax
jne 0x498a99
push esi
push ebp
call fcn.004068a0
add esp, 8
xor eax, eax
pop esi
pop ebp
pop edi
ret
pop esi
pop ebp
mov eax, 1
pop edi
ret
Function at 0x4ad960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.004c1db0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 4], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.0047e080
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0047dee0
add esp, 0xc
test eax, eax
je 0x4ada62
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0047dbd0
add esp, 0xc
test eax, eax
je 0x4ada62
lea eax, [esp + 0x20]
push eax
call fcn.0047de10
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x4ada80
push edi
call fcn.00488be0
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.00482cb0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4ada62
push esi
call fcn.0049de60
add esp, 4
test eax, eax
jle 0x4ada62
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00482a60
add esp, 0x18
test eax, eax
jle 0x4ada62
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push esi
call fcn.0049dd70
add esp, 0x14
test eax, eax
jle 0x4ada62
mov ecx, dword [esp + 0x18]
mov ebx, 1
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.00482c50
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0046bea8
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x4ada98
cmp dword [edi], edx
je 0x4adac2
inc eax
add ecx, 4
cmp eax, 4
jl 0x4ada85
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.004713e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0046bea8
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4adaf6
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.004713e0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0046bea8
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
push dword [esp + 0x20]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046bea8
add esp, 0x6c
ret
Function at 0x4b7b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x30
call fcn.004c1db0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
push ebx
push ebp
movzx ebx, byte [eax]
push esi
push edi
lea edi, [eax + 1]
mov ebp, dword [esp + 0x60]
mov edx, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], edi
mov esi, dword [ebp]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [edx + 5]
mov dword [esp + 0x34], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x34]
shl ecx, 8
or ecx, eax
mov byte [esp + 0x34], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [esp + 0x35], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x3b], al
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x38], dl
test eax, eax
je 0x4b7d1d
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
sub ecx, ebp
mov dword [esp + 0x10], ecx
xor edi, edi
lea ebx, [ebx]
dec eax
mov dword [esp + 0x4c], eax
test esi, esi
jne 0x4b7cad
push dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x30]
push eax
call fcn.004056e0
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x35], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x36], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x37], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3a], al
mov eax, edx
shr eax, 0x18
inc edi
mov byte [esp + 0x34], bl
mov byte [esp + 0x38], dl
mov byte [esp + 0x3b], al
mov al, byte [esp + esi + 0x34]
inc esi
xor al, byte [ebp]
and esi, 7
mov byte [ecx + ebp], al
inc ebp
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4b7c40
test edi, edi
mov edi, dword [esp + 0x24]
je 0x4b7d04
mov eax, dword [esp + 0x30]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 2], bl
shr eax, 8
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 5], al
mov byte [edi + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0046bea8
add esp, 0x30
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ebp], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046bea8
add esp, 0x30
ret
Function at 0x4bcb20
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x4bcb37
mov ebx, ecx
jmp 0x4bcb3b
mov ebx, ebp
mov ebp, ecx
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x4bcb4b
mov eax, edi
jmp 0x4bcb55
push eax
push edi
call fcn.004783b0
add esp, 8
test eax, eax
jne 0x4bcb5d
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x4bcb7b
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x4bcb65
cmp esi, dword [ebx + 4]
jge 0x4bcb90
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebx + 4]
jl 0x4bcb80
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
pop esi
test ecx, ecx
jle 0x4bcbb4
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x4bcbb1
dec ecx
test ecx, ecx
jg 0x4bcba3
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x4bcbc1
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4bdb50
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
xor edi, edi
call fcn.00498eb0
push ebp
call fcn.00498dd0
mov esi, eax
add esp, 8
test esi, esi
je 0x4bdd59
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x4bdb85
mov eax, esi
jmp 0x4bdb8f
push eax
push esi
call fcn.004783b0
add esp, 8
test eax, eax
je 0x4bdd58
mov ebp, dword [ebx + 4]
dec ebp
js 0x4bdd08
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
dec ebp
jns 0x4bdba1
mov eax, dword [ebx + 4]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x4bdd31
mov ecx, dword [esi]
lea edx, [eax - 1]
lea edx, [ecx + edx*4]
lea esp, [esp]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x4bdd2e
dec eax
test eax, eax
jg 0x4bdd20
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x4bdd39
mov dword [esi + 0xc], edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.004bcc60
mov ebp, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov ecx, 1
cmovne edi, ecx
pop ebx
push ebp
call fcn.00498d60
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4c0550
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x4c063c
push edi
mov edi, dword [esp + 0x14]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x4c05ce
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4e86a0]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4e86a0]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x4e86a0]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x4e86a0]
mov byte [eax + 3], cl
jmp 0x4c061f
shl edx, 0x10
cmp esi, 2
jne 0x4c05de
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4e86a0]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4e86a0]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x4c060b
lea ecx, [esi + 0x3c]
jmp 0x4c0618
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x4e86a0]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x4c0570
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4c2570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4c25c3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 2
push 1
push 0x4ee2c0
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 4
mov esp, ebp
pop ebp
ret 8
Function at 0x4c2610
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x144], ecx
mov ecx, dword [ebp - 0x144]
call fcn.004360d0
mov eax, dword [ebp - 0x144]
mov dword [eax], vtable.core_log::log_device_file.0
mov byte [ebp - 0x130], 0
push 0x12b
push 0
lea ecx, [ebp - 0x12f]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x14c]
call fcn.0041c210
lea edx, [ebp - 0x140]
push edx
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
push str.c:MyLog_
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0xffffffff
je 0x4c269a
mov eax, dword [ebp - 0x148]
and eax, 0x10
jne 0x4c26a7
push 0
push 0x4ee26c
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
movzx ecx, word [ebp - 0x13a]
push ecx
movzx edx, word [ebp - 0x13e]
push edx
movzx eax, word [ebp - 0x140]
push eax
push str.c:MyLogMyLog__d__02d__02d.log
push 0xffffffffffffffff
push 0x12c
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.MSVCR120.dll__snprintf_s]
add esp, 0x1c
push 0x4ee2bc
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x144]
add eax, 4
push eax
call dword [sym.imp.MSVCR120.dll_fopen_s]
add esp, 0xc
lea ecx, [ebp - 0x14c]
call fcn.0041c240
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret