joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e194
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x436010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41e1df
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041e32f
test al, al
jne 0x41e1d9
sub edx, 2
cmp edx, edi
jne 0x41e1bf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41e201
lea eax, [edi + 2]
cmp edx, eax
je 0x41e201
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041e0e0
add esp, 0x10
jmp 0x41e2fb
push esi
lea ecx, [ebp - 0x255]
call fcn.0041e32f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e244
push dword [ebp - 0x25c]
jmp 0x41e1f1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41e281
cmp word [ebp - 0x226], 0
je 0x41e2a2
cmp word [ebp - 0x226], ax
jne 0x41e281
cmp word [ebp - 0x224], 0
je 0x41e2a2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041e0e0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41e2ee
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41e25b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41e2d6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41e2fb
push 0x41df10
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004238b0
add esp, 0x10
jmp 0x41e2cb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b0d7
leave
ret
Function at 0x41ec07
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41eca4
push ebx
push esi
call fcn.0041ebd0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041c758
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ec51
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41eca3
push edi
push eax
call fcn.0041a371
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ec71
call fcn.00417b5d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41eca2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c758
add esp, 0x20
test eax, eax
jne 0x41ec90
push edi
call fcn.00417b5d
jmp 0x41ec98
push ebx
call fcn.00417b5d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41eca7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41ecb8
pop esi
ret
push ebx
push edi
push esi
call fcn.0041ebd0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041a371
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41ece0
push ebx
push esi
push edi
call fcn.0040bd70
add esp, 0xc
push 0
call fcn.00417b5d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x424c15
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00424b91
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424d84
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424d84
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424d39
jg 0x424c71
test eax, eax
je 0x424d2f
push 1
push 0x1000
call fcn.0041b558
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424c94
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424d26
push 0x8000
push ebx
call fcn.0041703b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424cbd
jg 0x424cb8
cmp ecx, 0x1000
jb 0x424cbd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00419dd6
add esp, 0x10
cmp eax, 0xffffffff
je 0x424d02
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424cb8
jl 0x424ce9
test ecx, ecx
jne 0x424caa
push dword [ebp - 0xc]
push ebx
call fcn.0041703b
push esi
call fcn.00417b5d
add esp, 0xc
xor ebx, ebx
jmp 0x424d92
cmp byte [edi + 0x24], 0
je 0x424d19
cmp dword [edi + 0x20], 5
jne 0x424d19
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424d24
mov ebx, dword [edi + 0x18]
jmp 0x424d26
xor ebx, ebx
push esi
call fcn.00417b5d
pop ecx
jmp 0x424d92
test ecx, ecx
jg 0x424cfb
jl 0x424d39
test eax, eax
jae 0x424cfb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041929a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424d59
cmp byte [edi + 0x1c], 0
je 0x424cfb
jmp 0x424d8a
push ebx
call fcn.00415647
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424cfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424d92
cmp byte [edi + 0x1c], 0
je 0x424d8f
mov ebx, dword [edi + 0x18]
jmp 0x424d92
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041929a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426a00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426a2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426a2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4943f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
mov dword [esp + 0x14], 0
lea eax, [edi + 0x114]
push eax
push 0
push 0x70
call ebp
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [edi + 0x10c], eax
mov eax, dword [esp + 0x10]
lea esi, [edi + 8]
mov ecx, eax
inc eax
push ecx
mov dword [esp + 0x14], eax
call ebx
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add esi, 4
cmp eax, 0x1f
jl 0x494433
push 0x65b854
call fcn.00494370
add esp, 4
lea ecx, [edi + 0x110]
push 0
push ecx
push 0
push 0x5e
call ebp
push 0x85ba30
call fcn.00494370
add esp, 4
lea edx, [edi + 0x178]
push 0
push edx
push 0
push 0x2006
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.Control_PanelAppearanceNew_Schemes
push connect
mov dword [edi + 0x11c], 0
call ebx
test eax, eax
jne 0x494569
call fcn.00494320
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
lea esi, [edi + 0x1188]
push ecx
push esi
push 0
push 0
push str.SelectedStyle
push edx
mov dword [esp + 0x28], 0x28
mov word [esi], 0
call ebp
test eax, eax
jne 0x49455e
cmp dword [esp + 0x10], 2
jbe 0x49455e
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push esi
push ecx
call ebx
test eax, eax
jne 0x49455e
mov ecx, dword [esp + 0x18]
mov word [esp + 0x20], ax
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push str.SelectedSize
push ecx
mov dword [esp + 0x28], 0x28
call ebp
cmp word [esp + 0x20], 0
je 0x49454a
cmp dword [esp + 0x10], 2
jbe 0x49454a
mov eax, 0xfffffffe
jmp 0x49454d
or eax, 0xffffffff
mov edx, dword [esp + 0x18]
mov dword [edi + 0x11b0], eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x52a8e7
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add dword [eax], 0
push ebx
push esi
push edi
mov dword [ebp + 0x77], ecx
add byte [ebp - 0x30], dl
mov dword [ebp - 0x2c], eax
mov eax, 0x1c
call 0x479f5493
add byte [ebp - 0x2c], dl
mov eax, dword [edx + 0x2f0]
add dl, dl
call 0xda9a0043
add byte [0x9cdc6c], bh
add byte [eax + eax], dh
xor eax, 0x9cdc6c
xchg ebp, eax
add bl, ch
push esp
add bh, bh
xor eax, 0xdc6c
call 0xa7912b
add byte [eax], al
inc ebp
call 0x3dd5a942
push eax
add byte [eax], al
add byte [ecx], al
je 0x5323e8
mov ecx, dword [ebp - 0x2c]
cmp byte [ecx + 0x8b], 0
je 0x52a999
mov eax, dword [edi]
add al, ch
mov byte [0x840002d7], al
rol byte [eax], 0
mov word [ebp - 0x18], 0x7c14
add byte [edx], al
popal
xchg ebp, eax
add byte [ebp + 0xfc45], cl
pop edx
dec ebp
add bh, bh
inc ebp
fld qword [eax]
add byte [edx + 0x1b68], bh
call fcn.0055a97f
dec dword [ebp - 0xc]
mov al, byte [eax]
cld
mov edx, 2
call 0x9fa98f
xor edx, edx
mov ecx, edx
add al, ch
xchg esi, eax
fild word [edx]
add byte [ebx + 0x32000045], cl
mov eax, dword [ebp]
add byte [edx], dh
add eax, dword fs:[eax]
mov esp, dword [esi - 0xe391800]
add dword [eax], eax
mov dword [ebp], eax
add bh, al
inc ebp
call 0x73a9bc
insb byte es:[edi], dx
add dword [eax], eax
fstp qword [ebp - 0x40]
lea eax, [eax]
add al, ch
push ebp
cmc
invalid
faddp st(5)
invalid
xchg ecx, eax
daa
mov eax, dword [edx + edx + 0x16267c5c]
cmc
or dl, 0x50
shl dword [ecx], 1
loopne 0x53245a
mov ch, 0xf3
pop ebp
add eax, dword [edi]
cld
std
je 0x5323ab
adc bl, al
push ds
xor ah, cl
push ebx
jno 0x53241e
dec edx
inc ecx
pop edi
or dword [eax], 0x63
cmp byte [ecx], ch
ret 0x7d91
add al, 0xbb
jbe 0x53243d
and eax, 0xdc2dbdef
bound edx, qword [esi]
dec eax
mov dh, 0xd9
mov esi, 0xfe7cdacb
add esi, dword [ebp - 0x5b]
mov ebx, dword [eax - 0x4fd12efa]
jb 0x532407
invalid
aad 0xc9
int3
pushfd
invalid

Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
add al, 0x5f
pop esi
retf
push ebp
mov ebp, esp
jl 0x401e31
js 0x401e9d
mov esi, dword [eax + 0xc]
push esi
mov cl, byte [eax + ecx*4 + 0x5650786a]
push eax
push esi
Function at 0x407e15
Capabilities:
Terminate process

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

Function at 0x40c470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40c47f
pop dword [ebp - 0x20]
mov eax, 0x6d991070
add eax, 0x92a7b40f
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x471160fe
add dword [ebp - 0x30], 0x740e44d
mov dword [ebp - 0x2c], 0xca274fec
sub dword [ebp - 0x2c], 0x97f403a7
mov dword [ebp - 0x28], 0x3e7317fe
sub dword [ebp - 0x28], 0xf226d3d0
mov dword [ebp - 0x24], 0xed0a9a89
add dword [ebp - 0x24], 0x12f56577
lea eax, [ebp - 0x30]
push eax
mov eax, 0x63806a01
add eax, 0x9cc1c673
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x4baead3
sub dword [ebp - 0x30], 0x9048817d
mov dword [ebp - 0x2c], 0x53e97713
add dword [ebp - 0x2c], 0xed82ea62
mov dword [ebp - 0x28], 0xf4259bfa
add dword [ebp - 0x28], 0x6f49d072
mov dword [ebp - 0x24], 0xe807f5bf
add dword [ebp - 0x24], 0x17f80a41
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x5c8cd638
sub eax, 0x5c4aa514
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3bd0b
push 0
call eax
mov ecx, 0x4086
xor edi, edi
add edi, eax
mov esi, 0x350191a6
sub esi, 0x34be4da6
add esi, dword [ebp - 0x20]
mov ebx, 0x31331a9a
add ebx, 0xfac0a5a9
add dword [ebp - 4], 0x6151e72e
mov edx, dword [esi]
mov dword [ebp - 4], 0x43e6e441
add edx, ebx
xor dword [ebp - 0x1c], 0x9975a10a
mov dword [edi], edx
add edi, 0x410f9fa3
sub edi, 0x410f9f9f
add esi, 4
loop 0x40c59d
add eax, 0xbd566b85
sub eax, 0xbd55769a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x408de6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b6018]
jne 0x408df0
repz ret
jmp fcn.0040939f

Function at 0x416930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x54
call fcn.00465b80
mov eax, dword [0x4b6018]
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.00427890
lea edx, [esp + 0x18]
push 8
push edx
call fcn.00428200
lea eax, [esp + 0x30]
push eax
call fcn.00427890
add esp, 0x10
xor ebx, ebx
test ebp, ebp
jg 0x4169c4
lea eax, [esp + 0x38]
push 0x14
push eax
call fcn.004275b0
lea ecx, [esp + 0x1c]
push ecx
call fcn.00427a90
lea edx, [esp + 0x30]
push edx
call fcn.00427a90
add esp, 0x10
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00408de6
add esp, 0x54
ret
mov edi, dword [esp + 0x34]
add edi, 1
cmp edi, 0x10
mov dword [esp + 0x34], edi
ja 0x416afe
test edi, edi
jbe 0x4169eb
mov ecx, dword [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x54]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
add byte [esp + 0x10], 1
push 0
call fcn.00422270
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00427970
push edi
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00427a00
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.00427a00
mov eax, dword [esi + 0x58]
push 0x20
add eax, 0x98
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00427a00
mov edx, dword [esi + 0x58]
push 0x20
add edx, 0xb8
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.00427a00
push 0
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.00427a10
add esp, 0x48
push 0
call fcn.00422770
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00427970
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.00427a00
push 0x14
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00427a00
add esp, 0x24
lea edi, [ebx + 0x10]
cmp edi, ebp
push 0
jle 0x416ad8
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00427a10
mov eax, dword [esp + 0x18]
mov ecx, ebp
sub ecx, ebx
push ecx
lea edx, [esp + 0x48]
push edx
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0x18
jmp 0x416aea
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00427a10
add esp, 0xc
add dword [esp + 0xc], 0x10
mov ebx, edi
cmp ebx, ebp
jl 0x4169c0
jmp 0x416984
push 0x9d
push str.._ssl_s3_enc.c
push 0x44
push 0xee
push 0x14
call fcn.0041b7b0
mov ecx, dword [esp + 0x70]
add esp, 0x14
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00408de6
add esp, 0x54
ret
Function at 0x4180d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00465b80
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.00417e70
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.00417e70
add esp, 0x20
test ebx, ebx
jle 0x41814d
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 0x418140
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x41c240
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00465b80
mov eax, dword [0x4b6018]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x41c2a5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x41c2a5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call sub.MSVCR90.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR90.dll_vfprintf
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00408de6
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 sub.MSVCR90.dll__vsnprintf
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x41c334
call fcn.0041c160
test eax, eax
je 0x41c334
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.00408de6
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.00408de6
add esp, 0x108
ret

Function at 0x41c6a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x41c6e9
mov al, byte [edx]
test al, al
je 0x41c6e9
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 0x41c6b7
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x41d500
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call sub.WS2_32.dll_WSASetLastError
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call sub.WS2_32.dll_send
push 0xf
push edi
mov esi, eax
call fcn.0041cd20
add esp, 8
test esi, esi
jg 0x41d55b
je 0x41d53a
cmp esi, 0xffffffff
jne 0x41d55b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 4
je 0x41d550
cmp eax, 0xb
je 0x41d550
cmp eax, 0x2733
jne 0x41d55b
push 0xa
push edi
call fcn.0041cd40
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x4247e0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10
call fcn.00465b80
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.MSVCR90.dll_getenv
add esp, 4
test eax, eax
je 0x42482b
mov dword [esp + 0x18], 1
cmp dword [esi + 0x48], ebp
jle 0x4249e7
mov ecx, dword [esi + 0x4c]
push ebp
push ecx
call fcn.0041be10
mov edx, dword [esi + 0x14]
add esp, 8
test byte [edx + 0x14], 0x10
mov edi, eax
jne 0x424872
test dword [edi + 0x28], 0x200
je 0x424872
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 0x4249ec
cmp dword [esp + 0x18], 0
jne 0x42489f
test dword [edi + 0x28], 0x400
je 0x42489f
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 0x4249ec
push edi
call fcn.004204d0
mov ecx, dword [esp + 0x10]
add esp, 4
cmp ecx, 0xffffffff
je 0x4248d4
test ecx, ecx
je 0x4248c7
test eax, eax
je 0x4248e6
mov edx, dword [esi + 0x14]
test byte [edx + 0x14], 0x20
je 0x424907
cmp eax, 1
jmp 0x4248e4
test eax, eax
je 0x424907
mov dword [esi + 0x5c], 0x25
jmp 0x4248ed
mov edx, dword [esi + 0x14]
test byte [edx + 0x14], 0x20
je 0x424907
cmp eax, 1
je 0x424907
test eax, eax
je 0x424907
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 0x4249ec
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x18]
test eax, eax
jle 0x424952
xor edx, edx
test ecx, ecx
setg dl
push edx
push eax
push edi
call fcn.004208e0
add esp, 0xc
test eax, eax
je 0x424935
mov ecx, dword [esi + 0x14]
test byte [ecx + 0x14], 0x20
je 0x424952
cmp eax, 1
je 0x424952
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 0x4249ec
cmp ebp, 1
jle 0x42498c
test byte [edi + 0x28], 0x20
jne 0x42498c
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x42498c
mov edx, dword [esp + 0x14]
lea eax, [eax + edx + 1]
cmp dword [esp + 0x10], eax
jle 0x42498c
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 0x4249ec
mov eax, dword [edi + 0x28]
test al, 0x20
jne 0x424998
add dword [esp + 0x10], 1
test eax, 0x400
je 0x4249d3
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x4249c4
cmp ebp, eax
jle 0x4249c4
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 0x4249ec
add dword [esp + 0x14], 1
mov dword [esp + 0xc], 0
jmp 0x4249db
mov dword [esp + 0xc], 1
add ebp, 1
cmp ebp, dword [esi + 0x48]
jl 0x424834
mov eax, 1
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4274d0
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.MSVCR90.dll_fopen
mov edi, eax
add esp, 8
test edi, edi
jne 0x427566
push 0x7e
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0041b7b0
push 0x48867c
push esi
push 0x49265c
push ebx
push str.fopen_
push 5
call fcn.0041b9c0
add esp, 0x2c
call sub.MSVCR90.dll__errno
cmp dword [eax], 2
jne 0x427548
push 0x81
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0041b7b0
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.0041b7b0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x4c0e88
call fcn.0041d240
mov esi, eax
add esp, 4
test esi, esi
jne 0x427588
push edi
call sub.MSVCR90.dll_fclose
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.0041cd20
push edi
push 1
push 0x6a
push esi
call fcn.0041d030
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret