joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d28b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x689fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x740184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x50], 0
sub eax, 1
je 0x4d2902
sub eax, 1
je 0x4d28fb
mov eax, 8
jmp 0x4d2907
mov eax, 0x208
jmp 0x4d2907
mov eax, 0x108
cmp dword [ecx + 0x14], 8
jb 0x4d290f
mov ecx, dword [ecx]
lea esi, [ebp - 0x50]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d2a92
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.004d23c0
add esp, 8
test eax, eax
jne 0x4d296c
lea ecx, [ebp - 0x40]
call fcn.0044d800
test esi, esi
je 0x4d2965
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4d2a77
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 2
push eax
push 0x104
mov ecx, eax
mov dword [ebp - 0x54], 0x104
call fcn.00470670
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
cmp ecx, eax
jne 0x4d2a45
xor ecx, ecx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x54]
push eax
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x4d2a1a
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, ecx
je 0x4d29ee
sub ecx, edx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044eb60
movups xmm0, xmmword [ebp - 0x28]
lea ecx, [ebp - 0x28]
movups xmm1, xmmword [ebp - 0x40]
movq xmm2, qword [ebp - 0x30]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x28], xmm1
movq qword [ebp - 0x18], xmm2
call fcn.0044d800
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x4d2a5a
mov ecx, dword [ebp - 0x44]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x4d2a50
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d2aad
jmp 0x4d2a50
sub eax, ecx
sar eax, 1
je 0x4d2ab2
jmp 0x4d29ac
push ecx
push edx
call fcn.0048af59
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.0044d800
test edi, edi
je 0x4d295a
test esi, esi
je 0x4d2a75
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
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.0048b49a
mov esp, ebp
pop ebp
ret
push str.Cannot_open_registry_key
lea ecx, [ebp - 0x1c]
call fcn.0044c070
push 0x73d15c
lea eax, [ebp - 0x1c]
push eax
call fcn.004a18e8
call fcn.004aae7a
call fcn.00453f30
int3
Function at 0x4d2ee0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68a090
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x740184]
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 + 0x14]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
sub eax, 1
je 0x4d2f3f
sub eax, 1
je 0x4d2f38
mov eax, reloc.WS2_32.dll_htonl
jmp 0x4d2f44
mov eax, 0x80000208
jmp 0x4d2f44
mov eax, 0x80000108
cmp dword [ecx + 0x14], 8
jb 0x4d2f4c
mov ecx, dword [ecx]
lea esi, [ebp - 0x2c]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d3066
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
xor ebx, ebx
jmp 0x4d2f85
mov edi, dword [ebp - 0x30]
push edi
push 0x400
mov ecx, edi
call fcn.00470670
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
sar eax, 1
push eax
push ecx
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
cmp edi, 0x103
je 0x4d300d
cmp edi, 0xea
je 0x4d3002
test edi, edi
jne 0x4d300f
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x34], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d2fd0
sub ecx, dword [ebp - 0x34]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044eb60
cmp dword [ebp - 0x18], 0
je 0x4d3002
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, eax
test edi, edi
jne 0x4d300f
add ebx, 1
jns 0x4d2f82
jmp 0x4d300f
xor edi, edi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4d3045
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d303b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d3082
push edx
push ecx
call fcn.0048af59
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x4d3064
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
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.0048b49a
mov esp, ebp
pop ebp
ret
call fcn.004aae7a
int3
Function at 0x4d5680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68a4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x740184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4d56b7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d56d9
mov al, 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 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov bl, byte [ebp + 8]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
test bl, bl
jne 0x4d572f
lea eax, [edi + 0x6c]
push eax
mov dword [ebp + 0xc], eax
call fcn.004d4910
lea eax, [edi + 0x60]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
jmp 0x4d573e
lea eax, [edi + 0x60]
push eax
mov dword [ebp + 8], eax
call fcn.004d4910
add edi, 0x6c
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.004d9940
add esp, 8
cmp byte [ebp + 0x10], 0
je 0x4d5763
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
test bl, bl
je 0x4d575e
mov ecx, dword [ebp + 8]
call fcn.004d4910
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
sub ecx, edx
mov esi, dword [ebp - 0x24]
sub eax, esi
cmp ecx, eax
jne 0x4d57c7
sub ecx, 4
jb 0x4d5791
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4d5796
add edx, 4
add esi, 4
sub ecx, 4
jae 0x4d5780
cmp ecx, 0xfffffffc
je 0x4d57c3
mov al, byte [edx]
cmp al, byte [esi]
jne 0x4d57c7
cmp ecx, 0xfffffffd
je 0x4d57c3
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x4d57c7
cmp ecx, 0xfffffffe
je 0x4d57c3
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x4d57c7
cmp ecx, 0xffffffff
je 0x4d57c3
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
jne 0x4d57c7
mov bl, 1
jmp 0x4d57c9
xor bl, bl
lea ecx, [ebp - 0x24]
call fcn.00452a20
lea ecx, [ebp - 0x18]
call fcn.00452a20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d62d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68a5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x740184]
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 + 0xc]
lea ecx, [ebp - 0x38]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x29]
push eax
push 0x400
mov dword [ebp - 0x3c], ebx
call fcn.0046c2d0
mov dword [ebp - 4], esi
nop dword [eax]
test esi, esi
je 0x4d6368
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x38]
sub eax, dword [ebp - 0x38]
push ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x69ed00]
mulsd xmm0, qword [0x69f2d0]
call fcn.004de631
push eax
lea ecx, [ebp - 0x38]
call fcn.0045cd70
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
sub eax, edx
mov esi, dword [ebp - 0x40]
mov edi, eax
shr edi, 1
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4d6381
mov ecx, dword [esi]
test eax, eax
je 0x4d646e
push ecx
push edi
push edx
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
test esi, esi
jne 0x4d63b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4d6440
lea eax, [edi - 1]
cmp esi, eax
je 0x4d6330
lea eax, [edi - 2]
cmp esi, eax
je 0x4d6330
lea eax, [ebp - 0x38]
push eax
lea eax, [esi + esi]
push eax
lea ecx, [ebp - 0x38]
call fcn.0045cd70
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp ecx, eax
jne 0x4d63f6
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
jmp 0x4d6418
sub eax, ecx
je 0x4d646e
shr eax, 1
xor edx, edx
push eax
push ecx
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov word [ebx], dx
call fcn.0044eb60
lea ecx, [ebp - 0x38]
call fcn.00452a20
mov eax, ebx
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.0048b49a
mov esp, ebp
pop ebp
ret 0x10
push str.Cannot_get_data_from_the_ini_file
lea ecx, [ebp - 0x28]
call fcn.0044dac0
push dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x58]
call fcn.00450300
push 0x73d438
lea eax, [ebp - 0x58]
push eax
call fcn.004a18e8
call fcn.00453f30
int3
Function at 0x4d6480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x688f58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x740184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
call fcn.004cbec0
lea esi, [edi + 0x48]
add esp, 4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d64c2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d64e8
cmp dword [esi + 0x14], 8
jb 0x4d64d6
mov esi, dword [esi]
push esi
push 0
push str.General
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
test eax, eax
je 0x4d6518
lea eax, [edi + 0x18]
push eax
call fcn.004cbec0
lea eax, [edi + 0x30]
push eax
call fcn.004cbec0
add esp, 8
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.0048b49a
mov esp, ebp
pop ebp
ret
push str.Unable_to_create_gpt.ini_file
lea ecx, [ebp - 0x28]
call fcn.0044dac0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
call fcn.00450300
push 0x73d438
lea eax, [ebp - 0x38]
push eax
call fcn.004a18e8
int3

Function at 0x4d9a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68abf3
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x740184]
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 ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x11d]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x134]
push eax
push 0x1000
mov dword [ebp - 0x128], ebx
call fcn.004d1400
push ebx
push 0x10
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0045cd70
lea eax, [ebp - 0xb0]
push eax
call fcn.004dd890
mov esi, dword [ebp - 0x134]
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [eax]
push 0
lea eax, [ebp - 0x124]
push eax
push 0x1000
push esi
push edi
call ebx
test eax, eax
je 0x4d9b66
push dword [ebp - 0x124]
lea eax, [ebp - 0xb0]
push esi
push eax
call fcn.004ddf50
add esp, 0xc
cmp dword [ebp - 0x124], 0x1000
je 0x4d9af0
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x128]
push dword [eax]
call fcn.004dd800
add esp, 8
lea ecx, [ebp - 0x134]
call fcn.00452a20
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.0048b49a
mov esp, ebp
pop ebp
ret
push 0x726074
lea ecx, [ebp - 0x28]
call fcn.0044dac0
push str.CalcMd5ByHandleEx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0044dac0
push 0x409
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0047e430
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0045f3a0
push 0x73d504
lea eax, [ebp - 0x11c]
push eax
call fcn.004a18e8
int3
Function at 0x4dd6d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x740184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
lea eax, [edi*8]
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x4c], eax
mov eax, edi
shr eax, 0x1d
mov dword [ebp - 0x50], 0x10325476
mov dword [ebp - 0x48], eax
cmp edi, 0x40
jb 0x4dd764
mov ebx, edi
shr ebx, 6
movups xmm0, xmmword [esi]
lea eax, [ebp - 0x44]
push eax
movups xmmword [ebp - 0x44], xmm0
lea eax, [ebp - 0x5c]
movups xmm0, xmmword [esi + 0x10]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ebp - 0x24], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [ebp - 0x14], xmm0
call fcn.004dd8d0
add esp, 8
add esi, 0x40
sub edi, 0x40
sub ebx, 1
jne 0x4dd727
mov ebx, dword [ebp - 0x60]
push edi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004a1db0
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
shr eax, 3
mov edx, 0x3f
and eax, 0x3f
add esp, 0xc
add ecx, eax
sub edx, eax
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x4dd7b8
push edx
push 0
push ecx
call fcn.004a28b0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004dd8d0
push 0x38
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004a28b0
add esp, 0x20
jmp 0x4dd7c7
lea eax, [edx - 8]
push eax
push 0
push ecx
call fcn.004a28b0
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004dd8d0
movups xmm0, xmmword [ebp - 0x5c]
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
movups xmmword [ebx], xmm0
pop edi
pop esi
pop ebx
call fcn.0048b49a
mov esp, ebp
pop ebp
ret

Function at 0x4dd890
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x51c080
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.0048c220
mov eax, dword [esp + 0x10]
push ebx
push esi
test byte [eax + 0x10], 4
mov esi, dword [eax + 4]
lea ebx, [esi - 1]
je 0x51c127
mov ecx, dword [eax + 8]
xor edx, edx
push ebp
xor ebp, ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x51c110
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
push edi
push dword [ecx]
mov eax, ebp
xor eax, ebx
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
neg edi
mov esi, edi
or esi, dword [esp + 0x14]
call fcn.0051c150
mov ecx, dword [esp + 0x18]
mov edx, esi
not edx
mov dword [esp + 0x14], esi
and edx, 0x20
and eax, edi
add edx, dword [esp + 0x24]
inc ebp
add edx, eax
add ecx, 4
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp ebp, dword [esp + 0x18]
jl 0x51c0c3
pop edi
mov eax, ebx
shr ebx, 0x1f
not eax
dec eax
shr eax, 0x1f
and eax, ebx
pop ebp
dec eax
pop esi
and eax, edx
pop ebx
add esp, 0xc
ret
test esi, esi
jne 0x51c133
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [eax]
push dword [eax + esi*4 - 4]
call fcn.0051c150
add esp, 4
shl esi, 5
add esi, 0xffffffe0
add eax, esi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x52b990
Capabilities:
Terminate process

Disassembly:
mov eax, 8
call fcn.0048c220
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push ebx
xor edi, edi
call fcn.005293a0
add esp, 4
test eax, eax
jle 0x52bb6a
push edi
push ebx
call fcn.005295d0
mov esi, eax
mov dword [esp + 0x18], 0
push 0x9c
push esi
xor ebp, ebp
call fcn.00585470
add esp, 0x10
test eax, eax
je 0x52b9e1
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
push 0x9d
push esi
call fcn.00585470
add esp, 8
test eax, eax
je 0x52b9f6
mov ebp, dword [eax + 4]
push esi
call fcn.00585560
add eax, 0xffffff6a
add esp, 4
cmp eax, 5
ja case.0x52ba0d.153
jmp dword [eax*4 + 0x52bb8c]
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x52ba0d.153
cmp dword [ebp], 0
jne case.0x52ba0d.153
push esi
call fcn.00585490
push eax
call fcn.00567560
add esp, 8
mov dword [ebp], eax
jmp 0x52bb54
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x52ba0d.153
cmp dword [ebp], 0
jne case.0x52ba0d.153
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call fcn.00585570
mov esi, eax
add esp, 0xc
test esi, esi
je 0x52bb80
push esi
call fcn.00567560
push esi
mov dword [ebp], eax
call fcn.00567400
add esp, 8
cmp dword [ebp], 0
jmp 0x52bb56
cmp dword [esp + 0x2c], 0
je case.0x52ba0d.153
push esi
call fcn.00585520
add esp, 4
cmp eax, 0x9e
jne case.0x52ba0d.153
push esi
call fcn.005854d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x52bb80
test ebp, ebp
je 0x52bada
push dword [ebp]
push dword [ebp + 8]
push ebx
call fcn.005832f0
add esp, 0xc
test eax, eax
je 0x52bb77
mov eax, dword [esp + 0x10]
test eax, eax
je 0x52bb1b
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00518ca0
add esp, 8
test eax, eax
js 0x52bb1b
push eax
push dword [esp + 0x18]
push ebx
call fcn.005831e0
push 0xec
push str.cryptopkcs12p12_kiss.c
push dword [esp + 0x28]
mov esi, eax
call fcn.005312b0
add esp, 0x18
test esi, esi
je 0x52bb77
push ebx
push dword [esp + 0x30]
call fcn.00529430
add esp, 8
test eax, eax
je 0x52bb77
mov ebx, dword [esp + 0x1c]
jmp case.0x52ba0d.153
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.005854b0
add esp, 4
push eax
call fcn.0052b990
add esp, 0x14
test eax, eax
je 0x52bb80
push ebx
inc edi
call fcn.005293a0
add esp, 4
cmp edi, eax
jl 0x52b9b5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push ebx
call fcn.0052ac00
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x531230
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
movzx eax, cl
and eax, 1
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x531272
push ebx
add edi, esi
lea ebx, [edx + esi]
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x531252
pop ebx
pop edi
pop esi
ret
Function at 0x54d8f0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.0059b0a0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.004de910
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x54d9a9
call fcn.00537950
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00537a50
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.00537b00
add esp, 0x14
call fcn.004aaf6a
cmp dword [eax], 2
je 0x54d979
call fcn.004aaf6a
cmp dword [eax], 6
je 0x54d979
mov esi, 0x80002
mov edi, 0x4d
jmp 0x54d981
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.00537950
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.00537a50
push 0
push esi
push 0x20
call fcn.00537b00
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x6c5b8c
call fcn.00526990
mov esi, eax
add esp, 4
test esi, esi
jne 0x54d9cb
push edi
call fcn.004b38df
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.00526250
push edi
push ebx
push 0x6a
push esi
call fcn.00526280
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x5602a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.0048c220
mov eax, dword [0x740184]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x74ca18], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x55fca0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x560050
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x55fc50
jne 0x5603fb
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5603f1
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004b8827
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.006816a3
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x56036f
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x5603b6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004b8827
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.006816a3
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x5603ed
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x5603ea
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x5603ea
inc esi
cmp esi, 3
jl 0x5603b8
mov eax, dword [esp + 0x14]
mov dword [0x744010], eax
mov eax, dword [esp + 0x1c]
mov dword [0x744018], eax
mov eax, dword [esp + 0x24]
mov dword [0x744020], eax
jmp 0x5603ed
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x74ca18], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x744010]
call fcn.0048b49a
add esp, 0x230
ret 4