joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007e920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x90
xor eax, eax
mov dl, byte [edi + eax + 0x2c0f6166]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1007e94e
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1007e931
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10080f30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009176d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100ba00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.10080dc0
cmp byte [ebp - 0x84], 0
jne 0x10081081
xor edx, edx
lea ecx, [ebp - 0x3f]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x10080fc5
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x100bba50
call fcn.10080dc0
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.10080dc0
xor edx, edx
lea ecx, [ebp - 0x37]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x10081034
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.10080e70
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100810c3
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100810b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100810b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10081abf
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10081199
mov esp, ebp
pop ebp
ret
Function at 0x401571
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x41d040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x46ac38]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x4015d8
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.00401803
lea ecx, [esp + 0x1c]
call fcn.0040133b
cmp eax, dword [esp + 0x14]
je 0x4015f0
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00401834
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x4015a8
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004025da
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00401834
jmp 0x4015da

Function at 0x401673
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
sub cx, 0x1f9
mul edi
dec cx
mul di
mul ebx
sub ax, 0x22b
or edi, ebx
shr cx, 2
rcl eax, 0x6e
rol ax, 0x19
rcl cx, 0xcb
mul si
mov si, 0x1b0
rcr esi, 0xed
inc si
dec dx
movsx ebx, si
movsx ecx, si
rcl cx, 0x33
mov edx, esi
shr ax, 0xb9
dec cx
ja 0x4016cf
test edx, 0x43
ja 0x4016f0
dec bx
imul eax
jmp 0x4016df
rol bx, 0x64
sub di, cx
ror esi, 0x18
ror ecx, 0xef
movsx ebx, bx
rcl eax, 0x5b
mul esi
jae 0x4016f0
inc ax
movsx ecx, si
rcr ebx, 0x8e
jmp 0x40170b
and ecx, 0x33b
ror edx, 0x56
rcr di, 0xc6
or esi, 0x389
movzx edi, ax
movsx edi, si
imul edx
mul cx
ror ax, 0x4e
sub ebx, 0xb9
rcl cx, 0x60
jb 0x40172a
imul si
mul eax
inc esi
xor bx, dx
inc ebx
jmp 0x40173c
mul eax
add eax, edi
mov ax, 0x2a4
mul ebx
ror edi, 0xfc
xor di, 0xdb
movsx ecx, di
dec bx
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x46ac38], eax
push 0x27
mov esi, 0x469980
mov edx, 0x547
push 0x41d950
mov ecx, esi
call fcn.00401134
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.00401571
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x4017ed
push 4
call fcn.004025e8
pop ecx
lea ecx, [ebp - 8]
xor esi, esi
push ecx
push esi
push eax
push 0x401a9a
push esi
push esi
mov dword [eax], 0x40160e
call fcn.004059fb
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4017e6
cmp dword [ebp - 8], esi
je 0x4017f6
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [ebp - 8], eax
jne 0x4017cf
push 5
jmp 0x4017f8
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.004022f8
add esp, 0xc
test eax, eax
je 0x4017ed
push 2
jmp 0x4017f8
mov dword [ebp - 8], esi
push 6
jmp 0x4017f8
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
push 1
call fcn.00402015
int3
Function at 0x406183
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405079
and dword [ebp - 4], 0
cmp dword [0x417298], 0
mov ebx, eax
jne 0x406234
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4062e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4062e5
push eax
call fcn.00405007
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x417298], eax
call esi
push eax
call fcn.00405007
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41729c], eax
call esi
push eax
call fcn.00405007
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4172a0], eax
call esi
push eax
call fcn.00405007
pop ecx
mov dword [0x4172a8], eax
test eax, eax
je 0x406234
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405007
pop ecx
mov dword [0x4172a4], eax
mov eax, dword [0x4172a4]
cmp eax, ebx
je 0x40628c
cmp dword [0x4172a8], ebx
je 0x40628c
push eax
call fcn.00405082
push dword [0x4172a8]
mov esi, eax
call fcn.00405082
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40628c
test edi, edi
je 0x40628c
call esi
test eax, eax
je 0x406283
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406283
test byte [ebp - 0xc], 1
jne 0x40628c
or dword [ebp + 0x10], 0x200000
jmp 0x4062c5
mov eax, dword [0x41729c]
cmp eax, ebx
je 0x4062c5
push eax
call fcn.00405082
pop ecx
test eax, eax
je 0x4062c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4062c5
mov eax, dword [0x4172a0]
cmp eax, ebx
je 0x4062c5
push eax
call fcn.00405082
pop ecx
test eax, eax
je 0x4062c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417298]
call fcn.00405082
pop ecx
test eax, eax
je 0x4062e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4062e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407fee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4119f8]
jne 0x407ff8
repz ret
jmp fcn.00409715
Function at 0x401180
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402a57
mov eax, dword fs:[0]
push eax
mov eax, 0x13dc
call fcn.004029f0
mov eax, dword [0x405004]
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, ecx
mov dword [ebp - 0x13e0], ebx
mov dword [ebp - 4], 0
lea edi, [ebp - 0x50]
mov dword [ebp - 0x13e8], ebx
mov ecx, 0xf
mov dword [ebp - 0x13e4], 0
mov esi, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x13d8], edx
mov ecx, 1
nop dword [eax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x13d8], edx
inc ecx
cmp ecx, 0x270
jb 0x401200
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebp - 0x13dc], 0x270
mov byte [ebx], 0
mov esi, 0xa
mov dword [ebp - 4], 0
mov dword [ebp - 0x13e4], 1
lea edi, [esi + 0x34]
nop dword [eax]
lea ecx, [ebp - 0x13dc]
call fcn.00401ab0
mov ecx, eax
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
cmp eax, 0x4210842
jae 0x401260
xor edx, edx
mov eax, ecx
div edi
mov ecx, dword [ebx + 0x10]
mov al, byte [ebp + edx - 0x50]
mov edx, dword [ebx + 0x14]
mov byte [ebp - 0x54], al
cmp ecx, edx
jae 0x4012b9
lea eax, [ecx + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x4012ac
mov eax, dword [ebx]
mov dl, byte [ebp - 0x54]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x4012d1
push dword [ebp - 0x54]
mov byte [ebp - 0x13e0], 0
push dword [ebp - 0x13e0]
push ecx
mov ecx, ebx
call fcn.00401960
sub esi, 1
jne 0x401260
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.00401cb4
mov esp, ebp
pop ebp
ret
Function at 0x401ab0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x401b0e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x401ad0
mov eax, dword [edi]
jmp 0x401bf9
cmp eax, 0x4e0
jb 0x401bf9
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x401b30
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x401b80
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10008f10
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10018cc0

Function at 0x10011430
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x37c]
mov edi, dword [eax + 0x14]
lea eax, [ebp - 4]
push eax
push esi
call fcn.10001190
push 0
push 0
push esi
call fcn.10001000
add esp, 0x14
mov dword [edi], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp + 8], eax
test eax, eax
je 0x1001151b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10011494
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
or dword [edi], 6
test ecx, ecx
js 0x100114a6
or dword [edi], 8
mov dword [edi + 0xc], ecx
jmp 0x100114ad
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x100114be
push dword [edi + 0x1c]
push 1
call eax
add esp, 8
lea eax, [edi + 0x20]
push eax
call fcn.10016d30
mov eax, dword [edi + 0x18]
add esp, 4
test eax, eax
je 0x100114db
push dword [edi + 0x1c]
push 0
call eax
add esp, 8
test byte [edi + 4], 8
jne 0x10011518
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x1007
push 0xffff
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10011518
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001151b
call fcn.10028b07
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10017cf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10052550]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10053750], 0
jne 0x10017d4b
lea eax, [ebp - 0x194]
push eax
push 0x202
mov byte [0x10053750], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10017d4b
mov ecx, dword [ebp - 0x194]
mov eax, ecx
shr eax, 8
movzx edx, al
movzx eax, cl
lea eax, [eax + eax*4]
lea eax, [edx + eax*2]
cmp eax, 0x16
jge 0x10017d4b
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100290a4
mov esp, ebp
pop ebp
ret
Function at 0x10018b60
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
mov eax, dword [eax + 8]
push ecx
push 0x53
add eax, 0x30
push eax
mov dword [ebp + 8], 0
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
je 0x10018b87
xor eax, eax
pop ebp
ret
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 3
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, dword [ebp + 0x10]
pop ebp
ret

Function at 0x10019740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x10052550]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1c
push 1
call fcn.10027d54
add esp, 8
mov dword [0x10053754], eax
test eax, eax
je 0x10019868
push 0x200
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10019866
lea eax, [ebp - 0x204]
push eax
push dword [0x10053754]
call fcn.10019700
add esp, 8
test eax, eax
jne 0x10019866
push 0x200
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10019866
lea eax, [ebp - 0x204]
push eax
push dword [0x10053754]
call fcn.10019700
add esp, 8
test eax, eax
jne 0x10019866
push 0x100439a0
push dword [0x10053754]
call fcn.10019700
add esp, 8
test eax, eax
jne 0x10019866
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1001982f
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x204]
push eax
push dword [0x10053754]
call fcn.10019700
add esp, 8
test eax, eax
jne 0x10019866
push str.MYSQL_HOME
call fcn.10028bfc
add esp, 4
test eax, eax
je 0x10019853
push eax
push dword [0x10053754]
call fcn.10019700
add esp, 8
test eax, eax
jne 0x10019866
mov eax, dword [0x10053754]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100290a4
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100290a4
mov esp, ebp
pop ebp
ret
Function at 0x1001c050
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 8], esi
test edi, edi
je 0x1001c093
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x1001c09c
push dword [ebp + 8]
call fcn.1001c890
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
jne 0x1001c0ce
mov eax, dword [ebp + 8]
push str.SSL_connection_error:_Invalid_pem_format
push dword [0x10051240]
push 0x7ea
push dword [eax + 0x28]
mov eax, dword [eax + 0x30]
call eax
add esp, 0x10
jmp 0x1001c183
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 0
test esi, esi
jne 0x1001c0fe
push dword [0x10051240]
mov eax, dword [ebp + 8]
push 0x7d8
push dword [eax + 0x28]
mov eax, dword [eax + 0x30]
call eax
add esp, 0x10
jmp 0x1001c183
lea eax, [ebp - 8]
push eax
push dword [edi]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c178
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [edi]
push esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x1001c178
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push 0
test ebx, ebx
jne 0x1001c162
push dword [0x10051240]
mov eax, dword [ebp + 8]
push 0x7d8
push dword [eax + 0x28]
mov eax, dword [eax + 0x30]
call eax
add esp, 0x10
jmp 0x1001c183
push 0
lea eax, [ebp - 4]
push eax
push ebx
push 0
push dword [edi]
push esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1001c1b3
push dword [ebp + 8]
call fcn.1001c890
add esp, 4
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x1001c19d
push esi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x1001c1a4
push ebx
call eax
mov dword [edi], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001c980
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
push edi
mov edi, dword [esi + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x37c]
mov ecx, dword [edi + 0x340]
test eax, eax
je 0x1001c9ad
mov eax, dword [eax + 8]
jmp 0x1001c9af
xor eax, eax
xor ebx, ebx
mov dword [ebp - 8], eax
mov dword [ebp + 8], 0
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
test ecx, ecx
jne 0x1001c9d2
test eax, eax
jne 0x1001c9ec
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push esi
call fcn.1001bcf0
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x1001cb04
cmp dword [ebp - 8], ebx
je 0x1001ca08
mov eax, dword [edi + 0x37c]
push dword [eax + 8]
push esi
call fcn.1001bd50
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1001caf2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
push 0x53
add ecx, 0x30
push ecx
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
je 0x1001ca2d
push eax
push esi
call fcn.1001c620
add esp, 8
jmp 0x1001cae7
mov eax, dword [ebp - 4]
test eax, eax
je 0x1001caa4
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 3
call dword [sym.imp.CRYPT32.dll_CertVerifySubjectCertificateContext]
test eax, eax
jne 0x1001ca5b
push esi
call fcn.1001c890
add esp, 4
jmp 0x1001cae7
mov eax, dword [ebp - 8]
test eax, eax
je 0x1001caa4
test al, 1
je 0x1001ca70
mov eax, dword [esi + 0x30]
push str.SSL_connection_error:_Certificate_signature_check_failed
jmp 0x1001ca91
test al, 4
je 0x1001ca7e
mov eax, dword [esi + 0x30]
push str.SSL_connection_error:_certificate_was_revoked
jmp 0x1001ca91
test al, 2
mov eax, dword [esi + 0x30]
je 0x1001ca8c
push str.SSL_connection_error:_certificate_has_expired
jmp 0x1001ca91
push str.SSL_connection_error:_Unknown_error_during_certificate_validation
push dword [0x10051240]
push 0x7ea
push edi
call eax
add esp, 0x10
jmp 0x1001cae7
test ebx, ebx
je 0x1001cae0
lea eax, [ebx + 0xc]
push eax
mov eax, dword [ebp + 8]
push 1
push dword [eax + 0xc]
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertVerifyCRLRevocation]
test eax, eax
jne 0x1001cae0
mov eax, dword [esi + 0x30]
push str.SSL_connection_error:_CRL_Revocation_test_failed
push dword [0x10051240]
push 0x7ea
push dword [esi + 0x28]
call eax
add esp, 0x10
jmp 0x1001cae7
mov dword [ebp - 0xc], 1
test ebx, ebx
je 0x1001caf2
push ebx
call dword [sym.imp.CRYPT32.dll_CertFreeCRLContext]
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test eax, eax
je 0x1001cb0a
push eax
call esi
jmp 0x1001cb0a
mov esi, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1001cb14
push ecx
call esi
mov al, byte [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret