joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ddc29
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4ddc68
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4ddc68
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4ddc68
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4ddc68
cmp dword [ecx + 0x74], 0xe
jbe 0x4ddc68
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4f3866
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004dd690
mov eax, dword [0x60aca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004f99b0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f38a8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f3a04
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004dd5e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x6f2908]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005001af
mov ecx, dword [esi*4 + 0x6f2908]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4f39fd
cmp eax, dword [ecx + edi + 0x24]
jne 0x4f39fd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f39fd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005001af
add esp, 0x14
test edx, edx
jl 0x4f39fd
jg 0x4f3973
test eax, eax
jb 0x4f39fd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f39fd
jl 0x4f398d
cmp dword [ebp - 0x1008], eax
ja 0x4f39fd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f39ab
test ebx, ebx
je 0x4f39e4
cmp ecx, edi
jae 0x4f39e4
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f39c5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f39d1
cmp byte [ecx + 1], 0xa
jne 0x4f39d1
inc ecx
jmp 0x4f39d1
movzx eax, al
movsx eax, byte [eax + 0x60b080]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f39ab
cmp edx, ebx
jne 0x4f39ab
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f3a02
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004dcc5c
leave
ret

Function at 0x4f882c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b6b38
push 0x5b6b30
push str.FlsAlloc
push 0x1f
call fcn.004f8697
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f8860
push dword [ebp + 8]
mov ecx, esi
call dword [0x5815fc]
call esi
jmp 0x4f8866
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4f88aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b6b48
push 0x5b6b40
push str.FlsGetValue
push 0x21
call fcn.004f8697
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f88e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x5815fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4f88e9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b6b50
push 0x5b6b48
push str.FlsSetValue
push 0x22
call fcn.004f8697
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f8923
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5815fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4ff4ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6f2908]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ff4ed
cmp byte [ebx], 0xa
jne 0x4ff4ed
or byte [edi + eax + 0x28], 4
jmp 0x4ff4f2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4ff5f1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4ff5d4
inc eax
cmp dl, 0xd
je 0x4ff51e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4ff544
cmp eax, ecx
jae 0x4ff552
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4ff506
jmp 0x4ff5f1
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ff5cf
cmp dword [ebp - 0x10], 0
je 0x4ff5cf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6f2908]
test byte [eax + edi + 0x28], 0x48
je 0x4ff5a9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ff594
mov byte [esi], dl
jmp 0x4ff5a5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6f2908]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ff5f1
cmp byte [ebp - 1], 0xa
jne 0x4ff5b8
cmp esi, ebx
jne 0x4ff5b8
mov byte [esi], 0xa
jmp 0x4ff5f0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005001cd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ff5f1
mov byte [esi], 0xd
jmp 0x4ff5f0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6f2908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ff5ee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ff5f1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ff5fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x6f2908]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4ff640
cmp word [ebx], dx
jne 0x4ff640
or byte [eax + edi + 0x28], 4
jmp 0x4ff645
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4ff7a8
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4ff788
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4ff686
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4ff6bc
cmp eax, edx
jae 0x4ff6ca
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4ff661
jmp 0x4ff7a8
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ff783
cmp dword [ebp - 0x18], 0
je 0x4ff783
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6f2908]
test byte [eax + edi + 0x28], 0x48
je 0x4ff759
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4ff71d
mov word [esi], cx
jmp 0x4ff754
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6f2908]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x6f2908]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6f2908]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4ff7a8
pop eax
cmp word [ebp - 4], ax
jne 0x4ff769
cmp esi, ebx
jne 0x4ff769
mov word [esi], ax
jmp 0x4ff7a5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005001cd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4ff7a8
push 0xd
pop eax
jmp 0x4ff764
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6f2908]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4ff7a2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4ff7a8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x502e15
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 0x502eb2
push ebx
push esi
call fcn.00502dde
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.004fa881
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x502e5f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x502eb1
push edi
push eax
call fcn.004f7a57
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x502e7f
call fcn.004f7a1d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x502eb0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004fa881
add esp, 0x20
test eax, eax
jne 0x502e9e
push edi
call fcn.004f7a1d
jmp 0x502ea6
push ebx
call fcn.004f7a1d
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 0x502eb5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x502ec6
pop esi
ret
push ebx
push edi
push esi
call fcn.00502dde
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004f7a57
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x502eee
push ebx
push esi
push edi
call fcn.004de9c0
add esp, 0xc
push 0
call fcn.004f7a1d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x503648
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00503163

Function at 0x506083
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004f7de3
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5060f2
cmp esi, dword [ebp - 4]
je 0x5060ed
cmp dword [ebp + 0xc], 0
je 0x5060ed
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5060ca
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00505bd5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5060f4
xor eax, eax
inc eax
jmp 0x5060f4
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x506159
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x60aca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004f7de3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004f7de3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5061d0
cmp word [ecx], dx
je 0x5061d0
mov eax, dword [0x5bf0bc]
push edi
dec eax
push eax
push 0x5befa8
call fcn.005060f8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x506243
cmp word [eax], dx
je 0x506243
mov eax, dword [edi]
test eax, eax
je 0x5061f4
cmp word [eax], dx
je 0x5061f4
lea eax, [ebp - 0x10]
push eax
call fcn.00505adb
jmp 0x5061fd
lea eax, [ebp - 0x10]
push eax
call fcn.00505b76
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x50626d
mov eax, dword [0x5befa4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5bec98
call fcn.005060f8
add esp, 0xc
test al, al
je 0x50626d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x506238
cmp word [eax], di
je 0x506238
lea eax, [ebp - 0x10]
push eax
call fcn.00505adb
pop ecx
jmp 0x50626f
lea eax, [ebp - 0x10]
push eax
call fcn.00505b76
jmp 0x506235
mov eax, dword [edi]
test eax, eax
je 0x50625a
cmp word [eax], dx
je 0x50625a
lea eax, [ebp - 0x10]
push eax
call fcn.00505a90
pop ecx
jmp 0x50626d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x506338
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00505f7d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x506338
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x506338
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x506338
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5062c5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004f8a29
test ebx, ebx
je 0x506333
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004f8a29
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x506338
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x506338
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004f03fb
add esp, 0x10
xor eax, eax
inc eax
jmp 0x50633a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dcc5c
leave
ret
Function at 0x509e22
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.00509d9e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x509f91
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x509f91
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x509f46
jg 0x509e7e
test eax, eax
je 0x509f3c
push 1
push 0x1000
call fcn.004f79c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x509ea1
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x509f33
push 0x8000
push ebx
call fcn.004f58fc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x509eca
jg 0x509ec5
cmp ecx, 0x1000
jb 0x509eca
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004fbd55
add esp, 0x10
cmp eax, 0xffffffff
je 0x509f0f
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 0x509ec5
jl 0x509ef6
test ecx, ecx
jne 0x509eb7
push dword [ebp - 0xc]
push ebx
call fcn.004f58fc
push esi
call fcn.004f7a1d
add esp, 0xc
xor ebx, ebx
jmp 0x509f9f
cmp byte [edi + 0x24], 0
je 0x509f26
cmp dword [edi + 0x20], 5
jne 0x509f26
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x509f31
mov ebx, dword [edi + 0x18]
jmp 0x509f33
xor ebx, ebx
push esi
call fcn.004f7a1d
pop ecx
jmp 0x509f9f
test ecx, ecx
jg 0x509f08
jl 0x509f46
test eax, eax
jae 0x509f08
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005001cd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x509f66
cmp byte [edi + 0x1c], 0
je 0x509f08
jmp 0x509f97
push ebx
call fcn.00503ad1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x509f08
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 0x509f9f
cmp byte [edi + 0x1c], 0
je 0x509f9c
mov ebx, dword [edi + 0x18]
jmp 0x509f9f
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005001cd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50b9f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor bl, bl
test edx, edx
je 0x50bab7
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
cmp edx, 0x20
jb 0x50ba94
push edi
mov eax, edx
mov edi, edx
and eax, 0x1f
xorps xmm3, xmm3
sub edi, eax
mov ebx, esi
movaps xmm2, xmm3
mov eax, ebp
sub ebx, ebp
nop word [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [esi + ecx + 0x10]
add ecx, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, edi
jb 0x50ba30
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd ebx, xmm2
pop edi
cmp ecx, edx
jae 0x50bab0
sub esi, ebp
lea eax, [ecx + ebp]
sub edx, ecx
nop
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x50baa0
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
movzx eax, bl
pop ebx
ret

Function at 0x50bc00
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004dd690
mov eax, dword [0x60aca0]
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 0x50bc9f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x50bc9f
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.00406140
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004ebc62
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004dcc5c
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00406140
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004ebc62
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.0050bac0
test eax, eax
jle 0x50bd33
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x50bd47
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
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.004dcc5c
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004dcc5c
add esp, 0x108
ret
Function at 0x50c9e0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WSOCK32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.0050c200
add esp, 8
test esi, esi
jg 0x50ca37
je 0x50ca19
cmp esi, 0xffffffff
jne 0x50ca37
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.0050cc70
add esp, 4
test eax, eax
je 0x50ca37
push 0xa
push edi
call fcn.0050c900
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x5187d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.004dd690
mov eax, dword [0x60aca0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.005105a0
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00510400
add esp, 0xc
test eax, eax
je 0x5188d2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.005100e0
add esp, 0xc
test eax, eax
je 0x5188d2
lea eax, [esp + 0x20]
push eax
call fcn.00510340
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x5188f0
push edi
call fcn.005116f0
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.00518f00
mov esi, eax
add esp, 0xc
test esi, esi
je 0x5188d2
push esi
call fcn.00519720
add esp, 4
test eax, eax
jle 0x5188d2
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00518cb0
add esp, 0x18
test eax, eax
jle 0x5188d2
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.00519640
add esp, 0x14
test eax, eax
jle 0x5188d2
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.00518ea0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004dcc5c
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x518908
cmp dword [edi], edx
je 0x518932
inc eax
add ecx, 4
cmp eax, 4
jl 0x5188f5
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.0050f140
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004dcc5c
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x518966
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.0050f140
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004dcc5c
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dcc5c
add esp, 0x6c
ret
Function at 0x520c70
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.00520d60
mov edi, eax
add esp, 8
test edi, edi
jne 0x520d08
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0050f140
push 0x58555c
push esi
push 0x5da47c
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.0050e830
add esp, 0x2c
call fcn.004ee2e6
cmp dword [eax], 2
jne 0x520ceb
push 0xb2
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0050f140
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0xb4
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0050f140
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x60ca3c
call fcn.0050c5d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x520d29
push edi
call fcn.004eee1d
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.0050c200
push edi
push 1
push 0x6a
push esi
call fcn.0050c230
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret