joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e21b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x4e2353
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4e2331
push ebx
push ebp
push esi
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4e221e
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e2210
sub eax, edx
lea ebx, [eax + 1]
jmp 0x4e2220
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4e222d
lea ebp, [eax + 0xe]
jmp 0x4e2239
cmp eax, 0x17
jne 0x4e22d4
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4e22d4
mov eax, dword [edi + 0x10]
test eax, eax
jbe 0x4e22d4
cmp eax, ebp
jb 0x4e22d4
lea edx, [ebx + ebp + 0x20]
push edx
call dword [0x6434c8]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x4e22e1
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x18]
push ebp
push ecx
push eax
call fcn.00422ff0
add esp, 0xc
test ebx, ebx
je 0x4e22ba
mov edx, dword [esi + 0x18]
lea eax, [edx + ebp]
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x14]
push ebx
push ecx
push eax
call fcn.00422ff0
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x4e22c5
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e22d0
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4e2203
jmp 0x4e22e9
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
test eax, eax
je 0x4e22fb
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 8], 0
je 0x4e232a
mov edx, dword [esp + 4]
push edx
call fcn.004e2180
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esp + 8]
pop edi
add esp, 0x10
ret
cmp dword [esp + 4], 0
jne 0x4e2344
push 0x2af9
mov dword [esp + 0xc], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, dword [esp + 8]
pop edi
add esp, 0x10
ret
Function at 0x4e3360
Capabilities:
Move file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.004c7d40
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
push edx
mov dword [esp + 0x28], ecx
call fcn.00435513
mov esi, eax
mov eax, dword [esp + 0x44]
push eax
call fcn.00435513
add esp, 0xc
push 1
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4e3422
jmp 0x4e33b0
lea ecx, [esp + 0x24]
push ecx
call fcn.004c7d40
mov edx, dword [esp + 0x24]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.004c7de0
add esp, 0x20
test edx, edx
jl 0x4e344a
jg 0x4e33fb
test eax, eax
jb 0x4e344a
test edx, edx
jg 0x4e344a
jl 0x4e3408
cmp eax, 0x3e8
ja 0x4e344a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x4e33b0
test esi, esi
je 0x4e342f
push esi
call fcn.00419105
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e3440
push eax
call fcn.00419105
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
test esi, esi
je 0x4e3457
push esi
call fcn.00419105
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e3468
push eax
call fcn.00419105
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret
Function at 0x4e3980
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1b8
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x1b4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
mov dword [esp + 0x18], esi
test eax, eax
je 0x4e39ab
cmp dword [eax + 0xf0], 0
jne 0x4e39c5
call fcn.004e3970
test eax, eax
je 0x4e39dd
mov esi, dword [esi + 0x70]
test esi, esi
je 0x4e39c5
mov dword [esi + 0xf0], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.00418878
add esp, 0x1b8
ret
mov esi, dword [esi + 0x630]
test esi, esi
je 0x4e39fe
push 0x400
push esi
call fcn.00523cc0
add esp, 8
call fcn.004e3970
test eax, eax
jne 0x4e39c5
push ebx
push ebp
push edi
mov esi, 2
lea edi, [esp + 0x84]
mov dword [esp + 0x20], 4
lea eax, [esp + 0x34]
push eax
call fcn.004c7d40
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
push 0
push 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.004c87d0
add esp, 0xc
push ebp
push ebx
lea eax, [esi - 1]
push 0
push eax
call fcn.0041f0d0
lea ecx, [esp + 0x74]
mov ebx, esi
imul ebx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.004c7d40
mov eax, dword [eax + 8]
cdq
mov dword [esp + 0x34], edx
lea edx, [esp + 0x68]
push edx
mov ebp, eax
call fcn.004c7d40
mov ecx, dword [esp + 0x38]
add esp, 8
add ebp, dword [eax]
push 0
adc ecx, dword [eax + 4]
lea edx, [esi + 1]
push edx
push ecx
push ebp
mov dword [esp + 0x38], edx
call fcn.0041f0d0
shld edx, eax, 8
xor dword [esp + 0x14], edx
shl eax, 8
xor dword [esp + 0x10], eax
lea eax, [esp + 0x44]
push eax
call fcn.004c7d40
lea ecx, [esp + 0x58]
push ecx
lea ebp, [eax + 8]
call fcn.004c7d40
mov edx, dword [ebp]
add edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esi, 2
imul edx, esi
mov esi, dword [esp + 0x30]
shl edx, 0x10
mov dword [edi], eax
xor ebx, edx
mov edx, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], edx
add esp, 8
add edi, 0x10
sub dword [esp + 0x20], 1
jne 0x4e3a15
fld qword [0x5da9e0]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x8c]
push 0x40
push eax
call fcn.00523b30
add esp, 0x10
call fcn.004e3970
test eax, eax
je 0x4e3a01
lea ecx, [esp + 0xc4]
push 0x100
push ecx
mov byte [esp + 0xcc], 0
call fcn.00523e20
add esp, 8
cmp byte [esp + 0xc4], 0
pop edi
pop ebp
pop ebx
je 0x4e3b6e
lea edx, [esp + 0xb8]
push 0x400
push edx
call fcn.00523cc0
add esp, 8
call fcn.004e3970
test eax, eax
jne 0x4e39c5
mov eax, dword [esp + 0x18]
push str.libcurl_is_now_using_a_weak_random_seed_
push eax
call fcn.004c81e0
add esp, 8
call fcn.004e3970
mov ecx, dword [esp + 0x1b8]
neg eax
sbb eax, eax
and eax, 0xffffffdd
pop esi
xor ecx, esp
add eax, 0x23
call fcn.00418878
add esp, 0x1b8
ret
Function at 0x4eb4a0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004f4415
add esp, 0x18
test eax, eax
je 0x4eb4c3
cmp eax, 0xffffffff
jne 0x4eb4c5
xor eax, eax
ret
Function at 0x4efb10
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x4efb42
push 0x2e
push esi
call fcn.0041cb40
add esp, 8
test eax, eax
je 0x4efb40
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x4f1120
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x6434c8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f1145
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x4f118c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x4f1190
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x4f11ee
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x4f11b3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x4f1231
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x5dcb9d
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x5dcb9e
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x4f1200
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4f4273
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4f42a4
call fcn.0041d48a
mov dword [eax], esi
call fcn.0041d477
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00419573
add esp, 0x14
push 0x16
pop eax
jmp 0x4f42f9
test dword [ebp + 0xc], 0xfffffff9
jne 0x4f4280
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4f42d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041d49d
pop ecx
call fcn.0041d477
mov eax, dword [eax]
jmp 0x4f42f9
test al, 0x10
jne 0x4f42f7
test al, 1
je 0x4f42f7
test byte [ebp + 0xc], 2
je 0x4f42f7
call fcn.0041d48a
mov dword [eax], 5
call fcn.0041d477
mov dword [eax], 0xd
jmp 0x4f42c8
xor eax, eax
pop esi
pop ebp
ret
Function at 0x514380
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.0042ed50
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push ebp
xor edi, edi
call fcn.004fc9c0
add esp, 0xc
test eax, eax
je 0x5143dc
lea esp, [esp]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
shl edx, 0xa
test eax, edx
je 0x5143c0
inc edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
inc ebp
push ebp
call fcn.004fc9c0
add esp, 0xc
test eax, eax
jne 0x5143b0
test edi, edi
jne 0x514400
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.005235f0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x4c]
cdq
idiv edi
push ebx
mov ebx, eax
cmp edi, 1
jne 0x514417
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
push esi
push 0
push eax
call fcn.00422f70
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esp + 0x30], 0
call fcn.004fc9c0
add esp, 0x18
test eax, eax
je 0x5144ff
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
shl eax, 0xa
test ecx, eax
je 0x5144db
mov eax, dword [esp + 0x14]
test eax, eax
je 0x51450c
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push esi
push ebp
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x5c]
and edx, 1
add edx, ebx
push edx
mov edx, dword [esp + 0x68]
push edi
push eax
call fcn.00513f80
add esp, 0x34
test eax, eax
je 0x51452a
add edi, ebx
test esi, esi
jle 0x5144db
mov eax, dword [esp + 0x54]
mov ecx, ebp
sub ecx, eax
mov ebp, esi
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub ebp, 1
jne 0x5144d0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
inc eax
push edx
push eax
mov dword [esp + 0x24], eax
call fcn.004fc9c0
add esp, 0xc
test eax, eax
jne 0x514450
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.005235f0
add esp, 0x14
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x5166e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0042ed50
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x64]
inc ebp
test byte [ecx + 0x38], 1
je 0x516728
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea edx, [ecx + ebp]
cmp edx, eax
jbe 0x51671b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub eax, ecx
mov dword [esi + 4], eax
jmp 0x516733
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 4]
ja 0x516714
mov esi, eax
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + edx - 1]
je 0x516786
cmp dword [edi + 0x88], 0
jne 0x516786
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x5e6bf8
push eax
call fcn.005376e0
add esp, 0xc
test eax, eax
jne 0x516779
test bl, 1
jne 0x516779
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov ecx, dword [edi + 0x58]
test byte [ecx], 8
je 0x516786
test ebx, ebx
jbe 0x516786
dec ebx
mov edx, dword [edi + 0x80]
mov eax, dword [edx]
push eax
call fcn.0056bb30
add esp, 4
test eax, 0x200000
je 0x5167b1
or ecx, 0xffffffff
sub ecx, ebx
add dword [esi + 4], ecx
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea eax, [ebx + ebp]
mov esi, edi
sub esi, eax
xor esi, eax
mov edx, edi
xor edx, eax
or esi, edx
xor esi, edi
shr esi, 0x1f
mov ecx, 0xff
lea eax, [edi - 1]
dec esi
mov dword [esp + 0x18], ecx
cmp eax, ecx
jae 0x5167df
mov ecx, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
test ecx, ecx
jbe 0x516837
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea eax, [edi + edx - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
lea ecx, [ecx]
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
dec dl
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
dec dword [esp + 0x24]
xor edx, ebx
and eax, edx
not eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0x18]
jb 0x516800
mov edx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
neg ecx
lea eax, [ebx + 1]
and eax, ecx
sub edi, eax
shl eax, 8
or dword [edx], eax
pop ebx
mov dword [edx + 4], edi
mov eax, ecx
pop edi
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x516870
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.0042ed50
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x18], esi
sub esi, edi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
cmp ebx, edi
jae 0x5168da
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.005376b0
add esp, 0xc
cmp edi, 0x40
jbe 0x5168f6
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.005376b0
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x1c], ecx
cmp ebx, edx
jbe 0x516920
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.00422f70
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
cmp edx, dword [esp + 0xc4]
jae 0x5169ff
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub edx, ecx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xc]
shr eax, 0x1f
shr ebx, 0x1f
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x516998
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add ecx, ebx
shr ecx, 0x1f
xor cl, al
mov edx, ebp
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, ebx
mov bl, byte [esp + 0x2c]
shr eax, 0x1f
xor al, bl
xor bl, dl
or al, bl
xor al, dl
dec al
xor cl, dl
mov edx, dword [esp + 0x14]
mov dl, byte [edx + ebp]
not al
inc dword [esp + 0x10]
and al, dl
dec cl
and al, cl
mov ecx, dword [esp + 0x1c]
or byte [esi + ecx], al
inc esi
mov eax, esi
sub eax, edi
xor eax, edi
mov ecx, esi
xor ecx, edi
or eax, ecx
xor eax, esi
shr eax, 0x1f
neg eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0xc4]
jb 0x516990
mov ebx, dword [esp + 0x24]
xor eax, eax
test edi, edi
jbe 0x516a36
mov esi, dword [esp + 0x1c]
mov edx, ebx
xor edx, 0x20
mov cl, byte [edx + esi]
mov dl, byte [ebx + esi]
mov ecx, dword [esp + 0x28]
mov byte [ecx + eax], dl
inc ebx
mov edx, ebx
sub edx, edi
xor edx, edi
mov ecx, ebx
xor ecx, edi
or edx, ecx
xor edx, ebx
shr edx, 0x1f
neg edx
inc eax
and ebx, edx
cmp eax, edi
jb 0x516a05
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418878
add esp, 0xa4
ret
Function at 0x523cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.0042ed50
mov eax, dword [0x630160]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x523d07
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00418878
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.005c27d9
add esp, 8
test eax, eax
jl 0x523cf0
mov eax, 8
call fcn.0042ed50
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.00523b30
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x523cf0
push 0x626fdc
push esi
call fcn.0041c2f6
mov edi, eax
add esp, 8
mov dword [esp + 0x40], edi
test edi, edi
je 0x523e01
test dword [esp + 0x4e], 0x2000
je 0x523d84
cmp ebx, 0xffffffff
jne 0x523d6e
mov ebx, 0x800
push 0
push 4
push 0
push edi
call fcn.004f44c5
add esp, 0x10
jmp 0x523d84
mov edi, dword [esp + 0x40]
test ebx, ebx
jle 0x523d92
cmp ebx, 0x400
mov esi, ebx
jl 0x523d97
mov esi, 0x400
push edi
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.0041c5ad
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x523de5
fild dword [esp + 0x44]
mov eax, 8
call fcn.0042ed50
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.00523b30
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x523d80
sub ebx, esi
test ebx, ebx
jg 0x523d80
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0041ac4b
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.00538410
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418878
mov esp, ebp
pop ebp
ret
Function at 0x533200
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.00532b70
mov edi, eax
add esp, 4
test edi, edi
jne 0x5332a6
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.005235f0
push 0x5e253c
push esi
push 0x5ea23c
push ebx
push str.fopen_
push 5
call fcn.005238c0
add esp, 0x2c
call fcn.0041d477
cmp dword [eax], 2
je 0x533285
call fcn.0041d477
cmp dword [eax], 6
je 0x533285
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.005235f0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.005235f0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x64696c
call fcn.00525760
mov esi, eax
add esp, 4
test esi, esi
jne 0x5332c8
push edi
call fcn.0041ac4b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.005251a0
push edi
push 1
push 0x6a
push esi
call fcn.00525500
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x535d20
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.00422f70
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x537560
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.0042ed50
mov eax, dword [0x630160]
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 0x5375e7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x5375e7
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.005c2e16
add esp, 0x10
test eax, eax
jge 0x5375bd
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00418878
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.005c2e16
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x537679
call fcn.00537420
test eax, eax
jle 0x537679
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x53768d
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
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.00418878
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00418878
add esp, 0x108
ret

Function at 0x5376e0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x537708
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
sub esi, eax
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
sub edi, 1
jne 0x5376f7
pop esi
pop ebx
movzx eax, cl
pop edi
ret

Function at 0x53a360
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x53a3a7
mov al, byte [edx]
test al, al
je 0x53a3a7
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]
inc edx
xor esi, ecx
test al, al
jne 0x53a377
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret