joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10110860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023e79b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x102e9794]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x101108a9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
cmp dword [0x102e354c], 0
jne 0x101108c0
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x1011090d
mov eax, dword [esi]
test eax, eax
je 0x10110892
cmp dword [esi + 4], 0
je 0x10110892
push eax
call fcn.10206df0
add esp, 4
push dword [esi + 4]
call fcn.10206df0
mov eax, dword [esi + 0xc]
add esp, 4
test eax, eax
je 0x101108fe
push eax
call fcn.10206df0
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x10110945
push eax
call fcn.10206df0
jmp 0x10110942
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
call fcn.10206df0
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
call fcn.10206df0
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
call fcn.10206df0
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.10206df0
add esp, 4
push 8
call fcn.10206df0
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10110980
push dword [ebp + 0x18]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10206df0
mov dword [edi], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1019c030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023ff89
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x102e9794]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
call sym.AIDE.dll_public:_void___thiscall_AIDE::PaletteInfo::constructor_void_
mov ecx, dword [edi + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.1019d620
mov dword [esi], eax
lea ecx, [edi + 0x28]
mov dword [esi + 4], 3
mov dword [esi + 8], 0
mov dword [ecx], 8
mov dword [edi + 0x30], 8
mov dword [edi + 0x2c], 8
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 8
mov ecx, dword [edi + 0x14]
call fcn.1019d600
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10209e80
Capabilities:
Terminate process

Disassembly:
cmp dword [str._AdobeIP0000539_], 0
jne 0x10209e91
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
jmp 0x1023bf90
movss xmm5, dword [0x102bd82c]
movss xmm4, dword [0x102bd834]
movss xmm6, dword [0x102bd828]
movss xmm7, dword [0x102bd820]
movss xmm3, dword [0x1027b890]
push esi
xor esi, esi
nop dword [eax + eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
sub esp, 8
addsd xmm0, qword [eax*8 + 0x102d46d0]
cvtpd2ps xmm2, xmm0
movaps xmm0, xmm4
movaps xmm1, xmm2
mulss xmm1, xmm5
subss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10206df0
movaps xmm0, xmm2
mov ecx, eax
mulss xmm0, xmm6
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10206df0
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, xmm7
add ecx, eax
mov dword [esi*4 + 0x102fc9f0], ecx
mulss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10206df0
movaps xmm0, xmm2
mov edx, eax
mulss xmm0, dword [0x102bd830]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10206df0
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, dword [0x102bd818]
add eax, edx
mov dword [esi*4 + 0x102fd1f0], eax
mulss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10206df0
movaps xmm0, xmm2
mov ecx, eax
mulss xmm0, dword [0x102bd824]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10206df0
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, dword [0x102bd81c]
add eax, ecx
mov dword [esi*4 + 0x102fcdf0], eax
mulss xmm0, xmm3
subss xmm0, xmm4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10206df0
movaps xmm0, xmm2
mov dword [esi*4 + 0x102fd5f0], eax
mulss xmm0, dword [0x102bd83c]
mov dword [esi*4 + 0x102fddf0], edx
mov dword [esi*4 + 0x102fd9f0], ecx
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10206df0
movaps xmm0, xmm2
mov dword [esi*4 + 0x102fe1f0], eax
mulss xmm0, dword [0x102bd840]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10206df0
movaps xmm0, xmm2
mov dword [esi*4 + 0x102fe5f0], eax
mulss xmm0, dword [0x102bd844]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10206df0
mov dword [esi*4 + 0x102fe9f0], eax
mulss xmm2, dword [0x102bd838]
cvtps2pd xmm0, xmm2
movsd qword [esp], xmm0
call fcn.10206df0
mov dword [esi*4 + 0x102fedf0], eax
add esp, 8
inc esi
cmp esi, 0x100
jb 0x1023bfc0
pop esi
ret
Function at 0x40478b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x412120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, 0xcf
push ebx
mov esi, ecx
call fcn.00404040
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [edi], 1
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x414]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclTitle
call fcn.00403b1d
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push ebx
push dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItemTextW]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclText1
call fcn.00403b1d
push eax
push 0xcf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 0xd0
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclText2
call fcn.00403b1d
push eax
push 0xd0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 1
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.Back
call fcn.00403b1d
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 2
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push 0x40c890
call fcn.00403b1d
push eax
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0040a788
leave
ret 0x10
Function at 0x4048ec
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x412120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0xce
mov esi, ecx
call fcn.00404040
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [edi], 1
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x414]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclTitle
call fcn.00403b1d
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 0xcf
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclText1
call fcn.00403b1d
push eax
push 0xcf
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 0xd0
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.DeclText2
call fcn.00403b1d
push eax
push 0xd0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 1
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push str.Back
call fcn.00403b1d
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
lea eax, [ebp - 0x414]
push eax
push 2
push dword [esi + 4]
call ebx
mov ecx, dword [esi + 0x28]
push edi
lea eax, [ebp - 0x414]
push eax
push 0x40c890
call fcn.00403b1d
push eax
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0040a788
leave
ret 0x10
Function at 0x2ce3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02ce378f
jae 0x2ce370e
xor ecx, ecx
call fcn.02ce378f
jae 0x2ce373d
xor eax, eax
call fcn.02ce378f
jae 0x2ce374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02ce378f
adc al, al
jae 0x2ce372f
jne 0x2ce3779
stosb byte es:[edi], al
jmp 0x2ce3711
call fcn.02ce379b
sub ecx, ebx
jne 0x2ce3756
call fcn.02ce3799
jmp 0x2ce3775
lodsb al, byte [esi]
shr eax, 1
je 0x2ce3783
adc ecx, ecx
jmp 0x2ce3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02ce3799
cmp eax, 0x7d00
jae 0x2ce3772
cmp ah, 5
jae 0x2ce3773
cmp eax, 0x7f
ja 0x2ce3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2ce3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x405210
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
lea eax, [ebp - 0x30]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
push esi
call sub.msvcrt.dll__stat
add esp, 0x10
test eax, eax
je 0x405276
push edx
push edx
push esi
push edi
call sub.msvcrt.dll_rename
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x40526c
call sub.msvcrt.dll__errno
sub esp, 0xc
mov eax, dword [eax]
push eax
call sub.msvcrt.dll_strerror
add esp, 0xc
push eax
push esi
push str.unable_to_rename__s__reason:__s
call fcn.00405b50
mov dword [esp], edi
call sub.msvcrt.dll__unlink
add esp, 0x10
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push esi
call sub.msvcrt.dll_remove
add esp, 0x10
jmp 0x405230

Function at 0x4094c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, ecx
mov edx, dword [ebp + 8]
add ebx, eax
xor edx, 0xffffffff
cmp ecx, ebx
jae 0x4094f0
mov al, byte [ecx]
inc ecx
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x4c8320]
cmp ecx, ebx
jne 0x4094d8
xor edx, 0xffffffff
pop ebx
mov eax, edx
pop ebp
ret

Function at 0x40f3b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f3f4
cld
mov edi, str.default
mov ecx, 8
mov esi, dword [ebp - 0x14]
repe cmpsb byte [esi], byte es:[edi]
jne 0x40f419
mov eax, dword [0x4c20c8]
test eax, eax
je 0x40f410
test ebx, ebx
je 0x40f3ec
or byte [ebx + 0x2b], 4
mov dword [ebx + 4], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push str.GNUTARGET
call sub.msvcrt.dll_getenv
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40f3c6
jmp 0x40f3d8
mov eax, dword [0x4c20c4]
mov eax, dword [eax]
jmp 0x40f3e1
test ebx, ebx
je 0x40f421
and byte [ebx + 0x2b], 0xfb
mov eax, dword [ebp - 0x14]
call fcn.0040f300
test eax, eax
je 0x40f3ec
test ebx, ebx
je 0x40f3ec
mov dword [ebx + 4], eax
jmp 0x40f3ec
Function at 0x4114e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, 0x10
mov dword [eax + 0x10], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], edx
add eax, 0x48
mov dword [ebp + 8], eax
pop ebp
jmp 0x4184f0
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 8]
div edi
mov eax, dword [ebp - 0x10]
lea edx, [eax + edx*4]
mov eax, dword [edx]
test eax, eax
jne 0x418528
jmp 0x418591
mov edx, eax
mov eax, dword [eax]
test eax, eax
je 0x418591
cmp esi, eax
jne 0x418520
mov eax, dword [esi]
xor ebx, ebx
mov dword [edx], eax
mov edx, dword [ebp + 0xc]
mov dword [esi + 4], edx
mov ecx, edx
mov al, byte [edx]
inc ecx
test al, al
je 0x41855f
xor edx, edx
mov dl, al
lea eax, [edx + ebx]
shl edx, 0x11
add eax, edx
xor edx, edx
mov ebx, eax
shr ebx, 2
xor ebx, eax
mov al, byte [ecx]
mov dl, al
inc ecx
test al, al
jne 0x418545
mov eax, dword [ebp + 0xc]
sub ecx, eax
lea eax, [ecx - 1]
lea edx, [eax + ebx]
shl eax, 0x11
add edx, eax
mov eax, edx
shr eax, 2
xor eax, edx
xor edx, edx
mov dword [esi + 8], eax
div edi
mov eax, dword [ebp - 0x10]
lea edx, [eax + edx*4]
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push str.bfd_hash_rename
push 0x243
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.27_bfd_hash.c
call fcn.004081f0
lea esi, [esi]
lea edi, [edi]
Function at 0x418950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
xor ebx, ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
lea edx, [edi + 1]
mov al, byte [edi]
test al, al
je 0x41899a
xor ecx, ecx
mov cl, al
lea esi, [esi]
lea eax, [ecx + ebx]
shl ecx, 0x11
add eax, ecx
xor ecx, ecx
mov ebx, eax
shr ebx, 2
xor ebx, eax
mov al, byte [edx]
mov cl, al
inc edx
test al, al
jne 0x418980
sub edx, edi
mov ecx, dword [ebp - 0x18]
dec edx
mov eax, edx
mov dword [ebp - 0x14], edx
shl edx, 0x11
add eax, ebx
add eax, edx
xor edx, edx
mov esi, eax
shr esi, 2
xor esi, eax
mov eax, esi
div dword [ecx + 0xc]
mov eax, dword [ecx]
mov ebx, dword [eax + edx*4]
test ebx, ebx
jne 0x4189cb
jmp 0x4189ed
mov ebx, dword [ebx]
test ebx, ebx
je 0x4189ed
cmp esi, dword [ebx + 8]
jne 0x4189c5
push eax
push eax
push edi
mov eax, dword [ebx + 4]
push eax
call sub.msvcrt.dll_strcmp
add esp, 0x10
test eax, eax
jne 0x4189c5
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
test eax, eax
je 0x4189e3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x418a39
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x10], eax
jne 0x418a51
mov eax, 8
cmp dword [ecx + 4], eax
jae 0x418a61
push ebx
push ebx
push eax
push ecx
call fcn.004af1d0
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x418a75
push edx
mov eax, dword [ebp - 0x10]
push eax
push edi
push ebx
mov edi, ebx
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004185b0
mov eax, dword [ebp - 0x14]
add eax, 8
and eax, 0xfffffff8
je 0x418a16
cmp dword [ecx + 4], eax
jb 0x418a16
mov ebx, dword [ecx]
mov edx, dword [ecx + 4]
add ebx, eax
sub edx, eax
mov dword [ecx], ebx
mov dword [ecx + 4], edx
mov ebx, dword [ecx]
sub ebx, eax
jmp 0x418a24
sub esp, 0xc
push 6
call fcn.00408440
add esp, 0x10
jmp 0x4189e3
Function at 0x43d280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x44], eax
mov eax, edx
mov dword [ebp - 0x48], edx
shr eax, 4
mov ebx, dword [ebp + 8]
and eax, 0xf
mov byte [ebp - 0x39], 0x3a
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x38], al
mov eax, edx
and eax, 0xf
mov edx, ecx
shr edx, 8
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x37], al
movzx eax, dl
shr eax, 4
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x36], al
mov eax, edx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x35], al
movzx eax, cl
shr eax, 4
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x34], al
mov eax, ecx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x33], al
mov eax, ebx
shr eax, 4
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x32], al
mov eax, ebx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x31], al
mov eax, dword [ebp - 0x48]
add ecx, eax
mov eax, dword [ebp - 0x48]
add ecx, edx
test eax, eax
lea esi, [ecx + ebx]
je 0x43d3c2
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x30]
inc ebx
xor ecx, ecx
mov al, byte [ebx - 1]
xor edx, edx
shr al, 4
inc ecx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [edi], al
mov dl, byte [ebx - 1]
inc ebx
mov eax, edx
add esi, edx
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [edi + 1], al
add edi, 2
cmp ecx, dword [ebp - 0x48]
jne 0x43d331
lea edx, [edi + 1]
lea ebx, [edi + 2]
mov dword [ebp - 0x40], edx
lea ecx, [edi + 3]
mov edx, esi
xor esi, esi
neg edx
movzx eax, dl
shr eax, 4
and edx, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [edi], al
mov al, byte [edx + str.0123456789ABCDEF]
mov edx, dword [ebp - 0x40]
mov byte [edx], al
mov byte [ebx], 0xd
mov byte [ecx], 0xa
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
push edi
push esi
lea ebx, [eax + eax + 0xd]
lea eax, [ebp - 0x39]
push ebx
push eax
call fcn.0040ec80
add esp, 0x10
xor ebx, eax
or ebx, edx
sete al
and eax, 0xff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x2f]
lea edi, [ebp - 0x30]
lea ebx, [ebp - 0x2e]
lea ecx, [ebp - 0x2d]
mov dword [ebp - 0x40], eax
jmp 0x43d36d

Function at 0x43f220
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x1505
mov eax, dword [ebp + 8]
mov dl, byte [eax]
test dl, dl
je 0x43f24b
mov ecx, eax
mov eax, ebx
and edx, 0xff
shl eax, 5
add eax, edx
mov dl, byte [ecx + 1]
add ebx, eax
inc ecx
test dl, dl
jne 0x43f234
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4a8e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [0x4fba48]
test ebx, ebx
je 0x4a8eb0
mov eax, dword [0x4fba48]
mov ebx, dword [ebp - 4]
leave
ret
push ecx
push ecx
push 0
push 0
call sub.KERNEL32.dll_GetTempPathA
mov ebx, eax
pop eax
test ebx, ebx
pop edx
jne 0x4a8ee4
mov ecx, dword [0x4fba48]
test ecx, ecx
jne 0x4a8ea1
sub esp, 0xc
push 0x4f282c
call fcn.004a8350
add esp, 0x10
mov dword [0x4fba48], eax
jmp 0x4a8ea1
sub esp, 0xc
push ebx
call fcn.004a84f0
pop edx
pop ecx
push eax
mov dword [0x4fba48], eax
push ebx
call sub.KERNEL32.dll_GetTempPathA
pop edx
test eax, eax
pop ecx
jne 0x4a8ec3
sub esp, 0xc
mov ebx, dword [0x4fba48]
push ebx
call sub.msvcrt.dll_free
add esp, 0x10
mov dword [0x4fba48], 0
jmp 0x4a8ecd

Function at 0x4a9660
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], 1
pop ebp
jmp fcn.004a9220
Function at 0x4bc560
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [sym.imp.msvcrt.dll__osver]
cmp word [eax], 0
jns 0x4bc57b
mov eax, dword [0x4fbcc8]
test eax, eax
jne 0x4bc5a0
mov ebx, dword [esp + 0x4c]
push ebx
mov ecx, dword [esp + 0x4c]
push ecx
mov edx, dword [esp + 0x4c]
push edx
mov eax, dword [esp + 0x4c]
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
sub esp, 0xc
mov dword [0x4fbcc8], 0
mov eax, dword [esp + 0x58]
push eax
call sub.msvcrt.dll_fflush
pop ebp
mov eax, dword [esp + 0x58]
mov edi, dword [eax + 0x10]
push edi
call sub.msvcrt.dll__get_osfhandle
pop ebx
pop esi
lea edx, [esp + 0x24]
push edx
push eax
call sub.KERNEL32.dll_GetFileSize
mov dword [esp + 0x20], eax
pop edx
inc eax
pop ecx
jne 0x4bc5f8
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4bc705
mov ebx, dword [esp + 0x10]
sub esp, 0xc
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 0x10]
push eax
call sub.msvcrt.dll__get_osfhandle
push 1
lea edx, [esp + 0x28]
push edx
push ebx
push eax
call sub.KERNEL32.dll_SetFilePointer
mov dword [esp + 0x20], eax
add esp, 0x10
inc eax
jne 0x4bc631
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4bc705
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, dword [esp + 0x1c]
jb 0x4bc57b
jbe 0x4bc710
sub esp, 0xc
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x10]
push eax
call sub.msvcrt.dll__get_osfhandle
push 2
push 0
push 0
push eax
call sub.KERNEL32.dll_SetFilePointer
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
sub edi, dword [esp + 0x28]
sbb ebp, dword [esp + 0x2c]
add esp, 0x10
cmp ebp, 0
jl 0x4bc6e5
jle 0x4bc6e0
nop
mov ebx, edi
cmp ebp, 0
jl 0x4bc692
jle 0x4bc71f
mov ebx, 0x200
mov dword [esp + 4], ebx
sub esp, 0xc
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 0x10]
push eax
call sub.msvcrt.dll__get_osfhandle
lea edx, [esp + 0x34]
mov dword [esp], 0
push edx
push ebx
push 0x4fbac8
push eax
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
je 0x4bc730
mov eax, dword [esp + 0x24]
cmp dword [esp + 4], eax
ja 0x4bc757
xor edx, edx
sub edi, eax
sbb ebp, edx
cmp ebp, 0
jg 0x4bc680
jl 0x4bc6e5
cmp edi, 0
ja 0x4bc680
sub esp, 0xc
mov eax, dword [esp + 0x58]
mov esi, dword [eax + 0x10]
push esi
call sub.msvcrt.dll__get_osfhandle
mov dword [esp], eax
call sub.KERNEL32.dll_FlushFileBuffers
add esp, 0xc
jmp 0x4bc57b
add esp, 0x2c
or eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, dword [esp + 0x18]
jbe 0x4bc57b
jmp 0x4bc649
cmp edi, 0x200
jbe 0x4bc692
jmp 0x4bc68d
sub esp, 0xc
mov eax, dword [esp + 0x58]
mov ebp, dword [eax + 0x10]
push ebp
call sub.msvcrt.dll__get_osfhandle
push 0
push 0
push 0
push eax
call sub.KERNEL32.dll_SetFilePointer
or eax, 0xffffffff
add esp, 0x10
jmp 0x4bc597
sub esp, 0xc
mov edx, dword [esp + 0x58]
mov edi, dword [edx + 0x10]
push edi
jmp 0x4bc73b