joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4272b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov dword [esp + 0xc], 0
lea eax, [esp + 0x2c]
push 0x43551c
lea ecx, [esp + 0xc]
mov ebx, 1
push eax
push ecx
mov dword [esp + 0x2c], ebx
call fcn.00421c5e
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.00421b02
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call fcn.00421a15
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push str.http:__
call fcn.00421a83
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov byte [esp + 0x2c], 3
call fcn.004217a8
mov byte [esp + 0x28], bl
call fcn.004019a0
add esp, 8
test eax, eax
je 0x402252
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x43551c
call fcn.00421a83
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x2c], 4
call fcn.004217a8
mov byte [esp + 0x28], bl
call fcn.004019a0
add esp, 8
lea ecx, [esp + 8]
push eax
push 0
push ecx
lea ecx, [esp + 0x38]
call fcn.00420e4e
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 5
call fcn.00421b02
mov byte [esp + 0x20], bl
lea ecx, [esp + 8]
jmp 0x4022d9
lea edx, [esp + 8]
push 7
push edx
lea ecx, [esp + 0x34]
call fcn.00420e2b
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 6
call fcn.00421b02
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call fcn.00421a15
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x43551c
call fcn.00421a83
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x2c], 7
call fcn.004217a8
mov byte [esp + 0x28], bl
call fcn.004019a0
add esp, 8
lea ecx, [esp + 8]
push eax
push 0
push ecx
lea ecx, [esp + 0x38]
call fcn.00420e4e
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 8
call fcn.00421b02
mov byte [esp + 0x20], bl
lea ecx, [esp + 8]
call fcn.00421a15
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.004217a8
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.00421a15
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x402320
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4272fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebx
push esi
mov dword [esp + 0xc], 0
lea eax, [esp + 0x20]
mov ebx, 1
push eax
push 0x202
mov dword [esp + 0x1c0], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x1c4]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4023bd
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [esp + 0x1c0]
push 0x439958
mov ecx, esi
call fcn.00421a83
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x1b8], 0
call fcn.00421a15
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
add esp, 0x1b4
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
push edi
lea edi, [esp + 0x18]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x10]
call fcn.00421a83
mov byte [esp + 0x1bc], 2
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [esp + 0x1c4]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004217a8
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x1bc], bl
call fcn.00421a15
lea ecx, [esp + 0x1c8]
mov byte [esp + 0x1bc], 0
call fcn.00421a15
mov ecx, dword [esp + 0x1b4]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b4
ret
Function at 0x402460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42734f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x1c], esi
mov eax, dword [0x4361f0]
mov dword [esp + 0x28], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
mov bl, 3
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x28], bl
je 0x40253e
push 2
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x40]
call fcn.00420e4e
mov eax, dword [eax]
push 0x10
push 0
push eax
mov byte [esp + 0x34], 4
call fcn.00415385
add esp, 0xc
lea ecx, [esp + 0x10]
push eax
push 0x4355ac
push ecx
call fcn.004212e2
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00421a15
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00421bf8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.00421b02
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00421a15
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esi, 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x4024b0
mov esi, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.004217a8
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.00421a15
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.00421a15
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call fcn.00421a15
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4063d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x427c97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov dword [esp + 0x10], 0
push 0x439958
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 1
call fcn.00421a83
push 0x439958
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00421a83
push ecx
mov bl, 3
mov ecx, esp
mov dword [esp + 0x10], esp
push str.HTTPULTIMALINK:
mov byte [esp + 0x30], bl
call fcn.00421a83
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x34], 4
call fcn.004217a8
mov byte [esp + 0x30], bl
call fcn.004019a0
add esp, 8
cmp eax, 0xffffffff
je 0x40651e
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.HTTPULTIMALINK:
call fcn.00421a83
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 5
call fcn.004217a8
mov byte [esp + 0x30], bl
call fcn.004019a0
add esp, 8
add eax, 0x10
lea ecx, [esp + 0x34]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00420e2b
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 6
call fcn.00421b02
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call fcn.00421a15
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x43574c
call fcn.00421a83
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x34], 7
call fcn.004217a8
mov byte [esp + 0x30], bl
call fcn.004019a0
add esp, 8
lea ecx, [esp + 8]
push eax
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00420e4e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 8
call fcn.00421b02
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call fcn.00421a15
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004217a8
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00421a15
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.00421a15
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call fcn.00421a15
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x4119c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x429fa7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov dword [esp + 0x14], 0
push 0x439958
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 7
call fcn.00421a83
push 0x439958
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 8
call fcn.00421a83
push 0x439958
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 9
call fcn.00421a83
push 0x439958
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0xa
call fcn.00421a83
push 0x439958
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 0xb
call fcn.00421a83
mov bl, 0xc
mov byte [esp + 0x40], bl
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.00414a74
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004217a8
lea ecx, [esp + 0x14]
push ecx
call fcn.00401a20
add esp, 8
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 0xd
call fcn.00421b02
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], bl
call fcn.00421a15
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.1__:___
call fcn.00421a83
push ecx
mov byte [esp + 0x48], 0xe
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x439914
call fcn.004217a8
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x50], 0xf
call fcn.004217a8
push ecx
mov byte [esp + 0x50], 0x10
mov ecx, esp
lea eax, [esp + 0x60]
mov dword [esp + 0x40], esp
push eax
call fcn.004217a8
push ecx
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x58], 0x11
call fcn.004217a8
lea eax, [esp + 0x24]
mov byte [esp + 0x54], bl
push eax
call fcn.00406580
add esp, 0x18
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0x12
call fcn.00421b02
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], bl
call fcn.00421a15
mov esi, dword [esp + 0x48]
push 0x4354d4
mov ecx, esi
call fcn.00421a83
mov ebx, 1
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 0xb
call fcn.00421a15
lea ecx, [esp + 8]
mov byte [esp + 0x40], 0xa
call fcn.00421a15
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 9
call fcn.00421a15
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 8
call fcn.00421a15
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 7
call fcn.00421a15
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 6
call fcn.00421a15
lea ecx, [esp + 0x50]
mov byte [esp + 0x40], 5
call fcn.00421a15
lea ecx, [esp + 0x54]
mov byte [esp + 0x40], 4
call fcn.00421a15
lea ecx, [esp + 0x58]
mov byte [esp + 0x40], 3
call fcn.00421a15
lea ecx, [esp + 0x5c]
mov byte [esp + 0x40], 2
call fcn.00421a15
lea ecx, [esp + 0x60]
mov byte [esp + 0x40], bl
call fcn.00421a15
lea ecx, [esp + 0x64]
mov byte [esp + 0x40], 0
call fcn.00421a15
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret
Function at 0x413580
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0x412540
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [esp + 0xc]
push 0x439958
mov ecx, esi
call fcn.00421a83
mov eax, esi
pop esi
pop ecx
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40c70f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40c71e
pop dword [ebp - 0x38]
mov eax, 0x40c71e
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xca2d630c
add dword [ebp - 0x48], 0x8424e23f
mov dword [ebp - 0x44], 0x1df2037c
add dword [ebp - 0x44], 0x144148c9
mov dword [ebp - 0x40], 0xd69a9605
sub dword [ebp - 0x40], 0x8a4e51d7
mov dword [ebp - 0x3c], 0x771f9094
sub dword [ebp - 0x3c], 0x771f9094
lea eax, [ebp - 0x48]
push eax
mov eax, 0x254866a6
add eax, 0xdaf9c9ce
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xe6b5082b
add dword [ebp - 0x48], 0x8dbd612b
mov dword [ebp - 0x44], 0xc7a6cd07
add dword [ebp - 0x44], 0x79c5946e
mov dword [ebp - 0x40], 0x86a2952
add dword [ebp - 0x40], 0x5b05431a
mov dword [ebp - 0x3c], 0xb3d40f0f
add dword [ebp - 0x3c], 0x4c2bf0f1
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xd0b72725
add eax, 0x2f8b09ff
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3ed60
push 0
call eax
mov ecx, 0xb972528f
sub ecx, 0xb9720621
mov ebx, eax
mov esi, 0xef36dfd8
add esi, 0x110c6428
add esi, dword [ebp - 0x38]
mov edi, 0x338fdbe1
add dword [ebp - 0xc], 0x3ba02e6e
mov edx, dword [esi]
xor dword [ebp - 0x2c], 0xfbcf4e60
xor edx, edi
xor dword [ebp - 0x20], edx
mov dword [ebx], edx
sub dword [ebp - 0x30], 0xc17d9679
add ebx, 0xe1aa1b84
sub ebx, 0xe1aa1b80
add esi, 0x5caad592
add esi, 0xa3552a72
loop 0x40c835
add eax, 0x76cc9886
add eax, 0x89348c05
mov ebx, eax
add eax, 0x2fbb3fcf
sub eax, 0x2fbb3fca
mov ecx, 0x9fc1e78c
sub ecx, 0x9f81e78c
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x40dbd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x54
call fcn.0047a8c0
mov eax, dword [0x4af040]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push edi
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], 0x41
xor edi, edi
call fcn.0041eb20
lea edx, [esp + 0x18]
push 8
push edx
call fcn.0041f490
lea eax, [esp + 0x30]
push eax
call fcn.0041eb20
add esp, 0x10
xor ebx, ebx
test ebp, ebp
jg 0x40dc64
lea eax, [esp + 0x38]
push 0x14
push eax
call fcn.0041e840
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041ed20
lea edx, [esp + 0x30]
push edx
call fcn.0041ed20
add esp, 0x10
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046f100
add esp, 0x54
ret
mov edi, dword [esp + 0x34]
add edi, 1
cmp edi, 0x10
mov dword [esp + 0x34], edi
ja 0x40dd9e
test edi, edi
jbe 0x40dc8b
mov ecx, dword [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x54]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add byte [esp + 0x10], 1
push 0
call fcn.00419500
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0041ec00
push edi
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0041ec90
mov eax, dword [esi + 0xbc]
mov ecx, dword [eax + 0x10]
push ecx
add eax, 0x14
push eax
lea edx, [esp + 0x44]
push edx
call fcn.0041ec90
mov eax, dword [esi + 0x58]
push 0x20
add eax, 0x98
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0041ec90
mov edx, dword [esi + 0x58]
push 0x20
add edx, 0xb8
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.0041ec90
push 0
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0041eca0
add esp, 0x48
push 0
call fcn.00419a00
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041ec00
mov eax, dword [esi + 0xbc]
mov ecx, dword [eax + 0x10]
push ecx
add eax, 0x14
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0041ec90
push 0x14
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0041ec90
add esp, 0x24
lea edi, [ebx + 0x10]
cmp edi, ebp
push 0
jle 0x40dd78
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0041eca0
mov eax, dword [esp + 0x18]
mov ecx, ebp
sub ecx, ebx
push ecx
lea edx, [esp + 0x48]
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
jmp 0x40dd8a
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0041eca0
add esp, 0xc
add dword [esp + 0xc], 0x10
mov ebx, edi
cmp ebx, ebp
jl 0x40dc60
jmp 0x40dc24
push 0x9d
push str.._ssl_s3_enc.c
push 0x44
push 0xee
push 0x14
call fcn.00412a30
mov ecx, dword [esp + 0x70]
add esp, 0x14
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0046f100
add esp, 0x54
ret
Function at 0x40f360
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0047a8c0
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, edx
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
and ecx, 1
sar esi, 1
lea eax, [esi + edi]
add esi, ecx
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x2c]
mov edx, ebp
mov dword [esp + 0x1c], eax
call fcn.0040f100
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push ebx
push edx
push esi
mov esi, dword [esp + 0x44]
push eax
mov edx, esi
call fcn.0040f100
add esp, 0x20
test ebx, ebx
jle 0x40f3dd
mov ecx, esi
mov eax, ebp
sub ecx, ebp
mov esi, ebx
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
add eax, 1
sub esi, 1
jne 0x40f3d0
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x4134c0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.0047a8c0
mov eax, dword [0x4af040]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x413525
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x413525
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0046464b
add eax, 0x40
push eax
call fcn.0047a45b
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046f100
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.0047a48c
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4135b4
call fcn.004133e0
test eax, eax
je 0x4135b4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
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.0046f100
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046f100
add esp, 0x108
ret

Function at 0x413920
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x413969
mov al, byte [edx]
test al, al
je 0x413969
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
add edx, 1
xor esi, ecx
test al, al
jne 0x413937
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x41ba70
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10
call fcn.0047a8c0
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x14]
push ebx
mov ebx, dword [esi + 0x20]
push ebp
shr eax, 6
push edi
xor ebp, ebp
and eax, 1
push str.OPENSSL_ALLOW_PROXY_CERTS
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0xffffffff
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x41babb
mov dword [esp + 0x18], 1
cmp dword [esi + 0x48], ebp
jle 0x41bc77
mov ecx, dword [esi + 0x4c]
push ebp
push ecx
call fcn.00413090
mov edx, dword [esi + 0x14]
add esp, 8
test byte [edx + 0x14], 0x10
mov edi, eax
jne 0x41bb02
test dword [edi + 0x28], 0x200
je 0x41bb02
push esi
push 0
mov dword [esi + 0x5c], 0x22
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41bc7c
cmp dword [esp + 0x18], 0
jne 0x41bb2f
test dword [edi + 0x28], 0x400
je 0x41bb2f
push esi
push 0
mov dword [esi + 0x5c], 0x28
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41bc7c
push edi
call fcn.00417770
mov ecx, dword [esp + 0x10]
add esp, 4
cmp ecx, 0xffffffff
je 0x41bb64
test ecx, ecx
je 0x41bb57
test eax, eax
je 0x41bb76
mov edx, dword [esi + 0x14]
test byte [edx + 0x14], 0x20
je 0x41bb97
cmp eax, 1
jmp 0x41bb74
test eax, eax
je 0x41bb97
mov dword [esi + 0x5c], 0x25
jmp 0x41bb7d
mov edx, dword [esi + 0x14]
test byte [edx + 0x14], 0x20
je 0x41bb97
cmp eax, 1
je 0x41bb97
test eax, eax
je 0x41bb97
mov dword [esi + 0x5c], 0x18
push esi
push 0
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41bc7c
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x18]
test eax, eax
jle 0x41bbe2
xor edx, edx
test ecx, ecx
setg dl
push edx
push eax
push edi
call fcn.00417b80
add esp, 0xc
test eax, eax
je 0x41bbc5
mov ecx, dword [esi + 0x14]
test byte [ecx + 0x14], 0x20
je 0x41bbe2
cmp eax, 1
je 0x41bbe2
push esi
push 0
mov dword [esi + 0x5c], 0x1a
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41bc7c
cmp ebp, 1
jle 0x41bc1c
test byte [edi + 0x28], 0x20
jne 0x41bc1c
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x41bc1c
mov edx, dword [esp + 0x14]
lea eax, [eax + edx + 1]
cmp dword [esp + 0x10], eax
jle 0x41bc1c
push esi
push 0
mov dword [esi + 0x5c], 0x19
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41bc7c
mov eax, dword [edi + 0x28]
test al, 0x20
jne 0x41bc28
add dword [esp + 0x10], 1
test eax, 0x400
je 0x41bc63
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x41bc54
cmp ebp, eax
jle 0x41bc54
push esi
push 0
mov dword [esi + 0x5c], 0x26
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41bc7c
add dword [esp + 0x14], 1
mov dword [esp + 0xc], 0
jmp 0x41bc6b
mov dword [esp + 0xc], 1
add ebp, 1
cmp ebp, dword [esi + 0x48]
jl 0x41bac4
mov eax, 1
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41e760
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov edi, eax
add esp, 8
test edi, edi
jne 0x41e7f6
push 0x7e
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00412a30
push 0x481798
push esi
push 0x48b78c
push ebx
push str.fopen_
push 5
call fcn.00412c40
add esp, 0x2c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
jne 0x41e7d8
push 0x81
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00412a30
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x83
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00412a30
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x4b9eb8
call fcn.004144d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x41e818
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.00413fa0
push edi
push 1
push 0x6a
push esi
call fcn.004142b0
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret