joyce8/EMBER2024-capa huggingface dataset:
Function at 0x504b93
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x614c5a
call fcn.005c9fc4
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.00504f22
call fcn.00475960
push eax
lea ecx, [ebp - 0x94]
call fcn.004f0271
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00475970
mov ecx, eax
call fcn.004f0a3e
test al, al
je 0x504ca9
push ebx
lea ecx, [ebp - 0x94]
call fcn.004f04be
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.004f08e4
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x504c1a
push str.Error_opening_file
jmp 0x504d8a
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
test edi, edi
je 0x504d23
cmp edi, 0x400000
ja 0x504d34
and dword [ebp - 0x2c8], 0
push edi
call fcn.005c9b2c
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x504c92
push ebx
call fcn.005c98d2
pop ecx
mov ecx, esi
call fcn.00504f22
push 0
push str.Could_not_read_file
jmp 0x504d8a
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00504dd5
push dword [ebp - 0x2cc]
jmp 0x504db8
call fcn.00475970
push eax
lea ecx, [ebp - 0x94]
call fcn.004f04a1
call fcn.00475980
test al, al
je 0x504cca
call fcn.00475990
jmp 0x504ce1
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004f08e4
push eax
call fcn.004fb8b6
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x504cf2
push eax
push str.Error_opening_zip_file
jmp 0x504d8a
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.004fb2f7
add esp, 0x14
test eax, eax
je 0x504d19
push 0
push str.Could_not_find_ziped_file
jmp 0x504d8a
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x504d2c
push 0
push str.File_is_empty
jmp 0x504d8a
cmp ebx, 0x400000
jbe 0x504d3d
push 0
push 0x62002c
jmp 0x504d8a
push ebx
call fcn.005c9b2c
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.004fbc76
add esp, 0x18
test eax, eax
je 0x504d95
cmp eax, 0x600
je 0x504d95
push dword [ebp - 0x2c8]
call fcn.005c98d2
pop ecx
call fcn.00475980
test al, al
jne 0x504d83
push edi
call fcn.004fb151
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00504f4a
mov bl, al
jmp 0x504dc0
call fcn.00475980
test al, al
jne 0x504da5
push edi
call fcn.004fb151
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.00504dd5
push edi
mov bl, al
call fcn.005c98d2
pop ecx
lea ecx, [ebp - 0x94]
call fcn.004f03ac
mov al, bl
call fcn.005c9f7f
ret 8
Function at 0x509fa3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x509fc7
cmp dword [esi + 8], edi
jge 0x509fbf
push esi
call fcn.00508299
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x509ff0
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x509fd3
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x50a00d
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x509ffb
xor eax, eax
jmp 0x50a003
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x509ff2
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x50a042
push str.zlib_corrupt
call fcn.00508154
add esp, 4
jmp 0x50a07f
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x50a052
push str.read_past_buffer
jmp 0x50a038
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x50a069
push edi
push esi
call fcn.00508163
pop ecx
pop ecx
test eax, eax
je 0x50a07f
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.005e2940
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x51975d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6c6f60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x5197ca
cmp dword [esi + 0x10], 0
je 0x5197ca
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.005ca190
mov ebx, esp
test ebx, ebx
je 0x5197ca
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.004f044a
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0047a070
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c950e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x51a4d1
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x615378
call fcn.005c9fc4
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.00475960
push eax
lea ecx, [ebp - 0x94]
call fcn.004f0271
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00475970
mov ecx, eax
call fcn.004f0a3e
test al, al
je 0x51a5bf
push ebx
lea ecx, [ebp - 0x94]
call fcn.004f04be
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.004f08e4
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x51a562
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004f03ac
jmp 0x51a6a0
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
test esi, esi
je 0x51a54e
push esi
mov dword [ebp - 0x2c8], edi
call fcn.005c9b2c
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x51a68b
push edi
call fcn.005c98d2
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004f03ac
jmp 0x51a69e
call fcn.00475970
push eax
lea ecx, [ebp - 0x94]
call fcn.004f04a1
call fcn.00475980
test al, al
je 0x51a5e0
call fcn.00475990
jmp 0x51a5f7
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004f08e4
push eax
call fcn.004fb8b6
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x51a54e
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.004fb2f7
add esp, 0x14
test eax, eax
jne 0x51a54e
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x51a54e
push esi
call fcn.005c9b2c
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.004fbc76
add esp, 0x18
test eax, eax
je 0x51a67b
cmp eax, 0x600
je 0x51a67b
push edi
call fcn.005c98d2
pop ecx
call fcn.00475980
test al, al
jne 0x51a5ab
push ebx
call fcn.004fb151
jmp 0x51a5aa
call fcn.00475980
test al, al
jne 0x51a68b
push ebx
call fcn.004fb151
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004f03ac
test edi, edi
jne 0x51a712
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push connect
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x51a70e
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
test esi, esi
je 0x51a70e
push esi
mov dword [ebp - 0x2d0], edi
call fcn.005c9b2c
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x51a70a
push edi
call fcn.005c98d2
pop ecx
xor edi, edi
test edi, edi
jne 0x51a712
xor eax, eax
jmp 0x51a72d
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0051a735
push 1
push edi
mov esi, eax
call fcn.005c9787
pop ecx
pop ecx
mov eax, esi
call fcn.005c9f7f
ret 4
Function at 0x51bb22
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6c6f60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
cmp esi, 0x4e
jne 0x51bb4a
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, 8
jne 0x51bc09
push ebx
push str.SysMonthCal32
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x51bbc2
push 0x20
pop edi
push edi
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.005e2ec0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
push ebx
push 0x100e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x18], 0x1010003
jne 0x51bbb7
xor eax, eax
inc eax
jmp 0x51bc83
cmp dword [ebp - 0x18], 0x2010003
jne 0x51bc05
jmp 0x51bbaf
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jl 0x51bbf0
cmp eax, dword [ebp - 0xc]
jg 0x51bbf0
cmp eax, dword [ebp - 0x10]
jl 0x51bbf0
cmp eax, dword [ebp - 8]
jle 0x51bc05
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 8
call fcn.0051bdc3
mov ebx, eax
mov eax, ebx
jmp 0x51bc83
mov eax, dword [ebp + 0xc]
mov ecx, 0x101
cmp esi, ecx
jne 0x51bc77
cmp eax, 0x2e
je 0x51bc43
cmp eax, 8
je 0x51bc43
cmp eax, 0x1b
jne 0x51bc77
push dword [ebp + 0x10]
push eax
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
mov esi, eax
mov dword [ecx + 0x594], 3
jmp 0x51bc68
push dword [ebp + 0x10]
push eax
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
mov esi, eax
mov dword [ecx + 0x594], 2
mov ecx, dword [edi + 0x10]
call fcn.0051be2b
push ebx
push ebx
push 0x10
mov ecx, edi
call fcn.004ffdfa
mov eax, esi
jmp 0x51bc83
push dword [ebp + 0x10]
mov ecx, edi
push eax
push esi
call fcn.004ffcc5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c950e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51bc96
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x615499
call fcn.005c9fc4
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x594], ebx
cmp dword [edi + 4], ebx
jne 0x51bd28
lea eax, [ebp - 0xa8]
push eax
call fcn.0051b8cb
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00475c20
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.004ffbdc
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00517355
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0047ac90
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004f0a3e
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004f03ac
mov esi, 0x584
test bl, bl
je 0x51bd63
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.005c9f7f
ret 4
Function at 0x51ec90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x434
call fcn.005ca540
mov eax, dword [0x6c6f60]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0xc], ebx
test edi, edi
jne 0x51ecd5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.005c950e
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
push eax
push edi
call fcn.005f5b94
add esp, 8
test eax, eax
js 0x51ecbe
mov eax, 8
call fcn.005ca540
xorps xmm0, xmm0
lea eax, [esp + 0x1c]
movsd qword [esp], xmm0
push 0x24
push eax
call fcn.0051e9d0
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x51ecbe
push 0x6a66f8
push edi
call fcn.005ec2cc
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x51eda0
mov edi, 0x400
test esi, esi
jle 0x51ed33
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x40]
push 1
push eax
call fcn.005f6105
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x51ed81
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.005ca540
lea eax, [esp + 0x40]
movsd qword [esp], xmm0
push edi
push eax
call fcn.0051e9d0
add dword [esp + 0x1c], ebx
add esp, 0x10
mov eax, dword [esp + 0x10]
test esi, esi
jle 0x51ed25
sub esi, edi
test esi, esi
jg 0x51ed25
push dword [esp + 0x10]
call fcn.005e7e28
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.00438a20
mov ebx, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x43c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c950e
mov esp, ebp
pop ebp
ret
Function at 0x537680
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
lea ebx, [ebx - 1]
mov ecx, dword [ebp + 4]
shr ebx, 0x1f
dec ebx
mov eax, dword [edi + 4]
xor eax, ecx
and eax, ebx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [edi + 4], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax - 1]
cmp ecx, 9
ja case.default.0x5376b5
jmp dword [ecx*4 + 0x5377f8]
mov ecx, 0xa
mov dword [esp + 0x14], ecx
cmp eax, ecx
jle case.0x5376b5.10
lea esp, [esp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x14]
lea edx, [eax + ecx*4]
mov eax, dword [edi]
mov ecx, dword [edx]
mov esi, dword [eax + esi*4]
xor esi, ecx
and esi, ebx
xor ecx, esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
xor dword [eax + ecx*4], esi
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x20]
jl 0x5376d0
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x24]
mov ecx, dword [esi + 0x24]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x24], ecx
mov eax, dword [edi]
xor dword [eax + 0x24], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x20]
mov ecx, dword [esi + 0x20]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x20], ecx
mov eax, dword [edi]
xor dword [eax + 0x20], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x1c]
mov ecx, dword [esi + 0x1c]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x1c], ecx
mov eax, dword [edi]
xor dword [eax + 0x1c], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x18]
mov ecx, dword [esi + 0x18]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x18], ecx
mov eax, dword [edi]
xor dword [eax + 0x18], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, dword [esi + 0x14]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x14], ecx
mov eax, dword [edi]
xor dword [eax + 0x14], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, dword [esi + 0x10]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0x10], ecx
mov eax, dword [edi]
xor dword [eax + 0x10], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 0xc]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 0xc], ecx
mov eax, dword [edi]
xor dword [eax + 0xc], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, dword [esi + 8]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 8], ecx
mov eax, dword [edi]
xor dword [eax + 8], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
xor edx, ecx
and edx, ebx
xor ecx, edx
mov dword [esi + 4], ecx
mov eax, dword [edi]
xor dword [eax + 4], edx
mov eax, dword [edi]
mov esi, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [esi]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [esi], edx
mov eax, dword [edi]
pop edi
pop esi
pop ebp
xor dword [eax], ecx
pop ebx
ret
Function at 0x53a070
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x53a095
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x53a086
pop edi
movzx eax, dl
pop esi
ret

Function at 0x53a310
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.005ca540
mov eax, dword [0x6c6f60]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov esi, eax
test esi, esi
je 0x53a397
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileType]
test eax, eax
je 0x53a397
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.004e4cf0
add esp, 0x10
lea ecx, [esp + 4]
test eax, eax
push 0
push ecx
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005c950e
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0xff
push eax
call fcn.004e4cf0
add esp, 0x10
mov byte [esp + 0x107], 0
call fcn.0053a1d0
test eax, eax
jle 0x53a41b
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x53a42f
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005c950e
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.005c950e
add esp, 0x108
ret

Function at 0x53a590
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.00522eb0
add esp, 8
test esi, esi
jg 0x53a5e7
je 0x53a5c9
cmp esi, 0xffffffff
jne 0x53a5e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0053a820
add esp, 4
test eax, eax
je 0x53a5e7
push 0xa
push edi
call fcn.005235a0
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x54ba60
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.0054bb50
mov edi, eax
add esp, 8
test edi, edi
jne 0x54baf8
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 1
push 2
call fcn.00527f70
push 0x641c54
push esi
push 0x642214
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.005275c0
add esp, 0x2c
call fcn.005eb479
cmp dword [eax], 2
jne 0x54badb
push 0xb2
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00527f70
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0xb4
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00527f70
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x6beae0
call fcn.00523280
mov esi, eax
add esp, 4
test esi, esi
jne 0x54bb19
push edi
call fcn.005e7e28
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.00522eb0
push edi
push 1
push 0x6a
push esi
call fcn.00522ee0
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret
Function at 0x566300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.005ca540
mov eax, dword [0x6c6f60]
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.0053ce20
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0053cc80
add esp, 0xc
test eax, eax
je 0x566402
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0053c960
add esp, 0xc
test eax, eax
je 0x566402
lea eax, [esp + 0x20]
push eax
call fcn.0053cbc0
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x566420
push edi
call fcn.00521c50
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.005668d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x566402
push esi
call fcn.005670f0
add esp, 4
test eax, eax
jle 0x566402
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00566680
add esp, 0x18
test eax, eax
jle 0x566402
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push esi
call fcn.00567010
add esp, 0x14
test eax, eax
jle 0x566402
mov ecx, dword [esp + 0x18]
mov ebx, 1
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
push esi
call fcn.00566870
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005c950e
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x566438
cmp dword [edi], edx
je 0x566462
inc eax
add ecx, 4
cmp eax, 4
jl 0x566425
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.00527f70
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005c950e
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x566496
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.00527f70
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005c950e
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.005c950e
add esp, 0x6c
ret