joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f590
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
push ebp
mov word [esp + 8], cx
push esi
push edi
mov ecx, edx
call fcn.0046f940
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ebp
push edi
mov ecx, eax
call fcn.0042f660
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov esi, dword [ebx + 0x14]
test byte [esi + 0x32], 3
jne 0x46f6b9
mov ecx, dword [0x49285c]
or eax, 0xffffffff
cmp ecx, eax
jne 0x46f5de
mov dword [0x49285c], esi
jmp 0x46f5e7
mov ecx, dword [0x492860]
mov dword [ecx + 0x2c], esi
mov dword [0x492860], esi
mov ecx, edi
mov dword [esi + 0x2c], eax
call fcn.0046e330
test eax, eax
je 0x46f657
test ebp, ebp
je 0x46f60a
mov ecx, ebp
call fcn.0046e330
test eax, eax
je 0x46f657
or byte [esi + 0x32], 2
mov ecx, edi
call fcn.0046e3c0
test eax, eax
jne 0x46f62c
test ebp, ebp
je 0x46f628
mov ecx, ebp
call fcn.0046e3c0
test eax, eax
jne 0x46f62c
xor eax, eax
jmp 0x46f631
mov eax, 1
mov dx, word [esi + 0x32]
and eax, 1
and edx, 0xfffb
shl eax, 2
or edx, eax
mov word [esi + 0x32], dx
mov edx, dword [esi + 0x1c]
mov ecx, dword [0x497cd4]
call fcn.00433d30
jmp 0x46f684
mov ebx, dword [esi + 0x1c]
or byte [esi + 0x32], 1
mov ecx, dword [0x497cd0]
mov edx, ebx
call fcn.00433d30
mov ecx, dword [0x497cb8]
mov edx, ebx
call fcn.00433d30
mov al, byte [esi + 6]
mov ebx, dword [esp + 0x1c]
or al, 0x40
mov byte [esi + 6], al
mov cl, byte [edi + 8]
mov eax, 1
shl eax, cl
test al, 6
je 0x46f69c
mov ecx, dword [edi + 0x14]
mov edx, esi
call fcn.00435910
test ebp, ebp
je 0x46f6b9
mov cl, byte [ebp + 8]
mov edx, 1
shl edx, cl
test dl, 6
je 0x46f6b9
mov ecx, dword [ebp + 0x14]
mov edx, esi
call fcn.00435910
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x47ce10
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
xor ecx, ecx
mov cl, byte [edi + 8]
lea eax, [ecx - 1]
cmp eax, 0x13
ja case.0x47ce2f.8
xor edx, edx
mov dl, byte [eax + 0x47cf84]
jmp dword [edx*4 + 0x47cf64]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov ecx, 0x20
call fcn.00487530
xor eax, dword [edi + 0x18]
mov esi, eax
and esi, 0xffff
sar eax, 0x10
xor esi, eax
mov eax, esi
and eax, 0xffff
pop edi
pop esi
ret
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov esi, eax
and esi, 0xffff
sar eax, 0x10
xor esi, eax
mov eax, esi
and eax, 0xffff
pop edi
pop esi
ret
mov eax, dword [edi + 0x20]
xor ecx, ecx
mov cx, word [edi + 4]
mov esi, eax
and esi, 0xffff
xor esi, ecx
mov ecx, dword [edi + 0x24]
sar eax, 0x10
xor esi, eax
test ecx, ecx
je case.0x47ce2f.8
call fcn.0047ce10
xor esi, eax
mov eax, esi
and eax, 0xffff
pop edi
pop esi
ret
mov eax, 1
shl eax, cl
and eax, 6
je 0x47ced5
mov edx, dword [edi + 0x14]
mov ecx, dword [edx + 0x14]
test ecx, ecx
je 0x47ced5
call fcn.0047ce10
mov esi, eax
and eax, 0xffff
pop edi
pop esi
ret
test eax, eax
je 0x47ceef
mov eax, dword [edi + 0x14]
cmp byte [eax + 4], 3
jne 0x47ceef
mov esi, dword [eax + 0x1c]
mov eax, esi
and eax, 0xffff
pop edi
pop esi
ret
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
mov esi, eax
and esi, 0xffff
shr eax, 0x10
xor esi, eax
mov eax, esi
and eax, 0xffff
pop edi
pop esi
ret
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x28]
mov esi, eax
and esi, 0xffff
shr eax, 0x10
xor esi, eax
mov eax, esi
and eax, 0xffff
pop edi
pop esi
ret
mov eax, dword [edi + 0x18]
test eax, eax
je 0x47cf46
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
and ecx, 0xffff
xor esi, ecx
test eax, eax
jne 0x47cf35
xor edx, edx
mov dx, word [edi + 4]
xor esi, edx
mov eax, esi
and eax, 0xffff
pop edi
pop esi
ret
xor esi, esi
mov eax, esi
pop edi
and eax, 0xffff
pop esi
ret
Function at 0x485800
Capabilities:
Terminate process

Disassembly:
call dword [sym.imp.MSVCRT40.dll__fcloseall]
mov eax, dword [esp + 4]
xor edx, edx
lea ecx, [eax + 0x3e8]
call fcn.00485e20
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push eax
push edx
push 0x3e8
call fcn.00485a40
mov eax, dword [0x493b1c]
add esp, 0x10
inc eax
push eax
mov dword [0x493b1c], eax
call dword [sym.imp.MSVCRT40.dll_exit]
add esp, 4
ret

Function at 0x485a40
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [0x493b34]
mov eax, dword [0x493b38]
sub esp, 0x910
test ecx, ecx
push ebx
push ebp
push esi
push edi
lea ebx, [esp + 0x14]
je 0x485a78
test eax, eax
jne 0x485a67
mov eax, dword [0x493b3c]
inc eax
lea edx, [esp + 0x10]
mov ecx, eax
call fcn.00486880
mov ecx, dword [esp + 0x10]
jmp 0x485a82
mov ecx, dword [0x498244]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x485ab1
cmp byte [ecx], 0
je 0x485ab1
push eax
push ecx
lea ecx, [esp + 0x1c]
push str._s__ld__:
push ecx
call fcn.00485bc0
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esp + ecx + 0x14]
mov ebp, dword [esp + 0x924]
test ebp, ebp
je 0x485b5a
cmp ebp, 0x3e8
je 0x485aea
cmp ebp, 0x7d0
je 0x485ae3
cmp ebp, 0xfa0
jne 0x485bb4
mov ecx, 0x12d
jmp 0x485aef
mov ecx, 0x12e
jmp 0x485aef
mov ecx, 0x12f
call fcn.00485e00
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [0x493b0c]
not ecx
dec ecx
add ebx, ecx
mov ecx, dword [esp + 0x928]
add ecx, ebp
neg edx
sbb edx, edx
push ecx
and edx, 3
add edx, 0x43
push edx
push str.__c_d:
push ebx
call fcn.00485bc0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebx, ecx
mov eax, dword [esp + 0x930]
mov ecx, dword [esp + 0x92c]
push eax
push ecx
push ebx
call fcn.00485be0
mov esi, dword [sym.imp.MSVCRT40.dll___p__iob]
add esp, 0xc
call esi
add eax, 0x40
lea edi, [esp + 0x14]
push eax
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.MSVCRT40.dll_fwrite]
lea edx, [esp + 0x1c]
not ecx
dec ecx
push ecx
push edx
call edi
add esp, 0x10
call esi
add eax, 0x40
push eax
push 1
push 1
push 0x493764
call edi
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x910
ret
Function at 0x487910
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4883f0
push 0x487624
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT40.dll___set_app_type]
add esp, 4
mov dword [0x49a06c], 0xffffffff
mov eax, dword [0x49a06c]
mov dword [0x49a070], eax
call dword [sym.imp.MSVCRT40.dll___p__fmode]
mov ecx, dword [0x489010]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT40.dll___p__commode]
mov ecx, dword [0x4938cc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT40.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x49a068], eax
call fcn.00487aa0
cmp dword [0x4938c8], 0
jne 0x4879a0
push 0x487a90
call dword [sym.imp.MSVCRT40.dll___setusermatherr]
add esp, 4
call fcn.00487a70
push 0x48900c
push 0x489008
call sub.MSVCRT40.dll__initterm
add esp, 8
mov eax, dword [0x4938c4]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x4938c0]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT40.dll___getmainargs]
add esp, 0x14
push 0x489004
push section..data
call sub.MSVCRT40.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT40.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.0042a260
add esp, 0xc
push eax
call dword [sym.imp.MSVCRT40.dll_exit]
jmp 0x487a40
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1caa966
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1caa975
pop dword [ebp - 0x2c]
mov eax, 0x1caa975
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x3bc95529
sub dword [ebp - 0x3c], 0xed770fde
mov dword [ebp - 0x38], 0x7b1b999c
add dword [ebp - 0x38], 0xb717b2a9
mov dword [ebp - 0x34], 0x79d90988
sub dword [ebp - 0x34], 0x2d8cc55a
mov dword [ebp - 0x30], 0x8f156809
sub dword [ebp - 0x30], 0x8f156809
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x29f13e35
sub eax, 0x2825fde1
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xbb1dd401
sub dword [ebp - 0x3c], 0x46ab6aab
mov dword [ebp - 0x38], 0x23364091
sub dword [ebp - 0x38], 0xe1c9df1c
mov dword [ebp - 0x34], 0x6748ff8
sub dword [ebp - 0x34], 0xa305238c
mov dword [ebp - 0x30], 0x1d1fe8b4
add dword [ebp - 0x30], 0xe2e0174c
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xe2ffc0e
add eax, 0xf39b43fe
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ee76
push 0
call eax
mov ecx, 0x3ca7
xor edx, edx
add edx, eax
mov ebx, 0x1cf8a00
add ebx, dword [ebp - 0x2c]
mov esi, 0xd1ffebb1
sub esi, 0x3bb29511
mov edi, dword [ebx]
add dword [ebp - 0x24], edx
xor edi, esi
sub dword [ebp - 0xc], 0x321801ef
mov dword [edx], edi
add dword [ebp - 0x24], 0xdaa4d7a4
add edx, 0x936f07e9
sub edx, 0x936f07e5
add ebx, 4
loop 0x1caaa88
add eax, 0xe56f
mov ebx, eax
add eax, 0x28b2d1fe
add eax, 0xd74d2e07
mov ecx, 0x771e7c1d
sub ecx, 0x755c7c1d
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x408b8e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x408b9d
pop dword [ebp - 0x30]
mov eax, 0x408b9d
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3758c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x519b9c57
add ecx, 0xae64a439
xor edi, edi
add edi, eax
mov ebx, 0x1916cd02
add ebx, 0xe72a6ec2
add ebx, dword [ebp - 0x30]
mov esi, 0xcaec31a5
add esi, 0x637c1826
xor dword [ebp - 0x20], 0x49079c6b
mov edx, dword [ebx]
xor dword [ebp - 0x18], 0xcd9edf07
add edx, esi
mov dword [edi], edx
sub dword [ebp - 8], 0x76b50585
add edi, 4
add ebx, 0xcacf8102
add ebx, 0x35307f02
loop 0x408bf4
add eax, 0xb5f9dd46
sub eax, 0xb5f8e833
xor ebx, ebx
add ebx, eax
add eax, 0x2c259bda
sub eax, 0x2c259bd5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x404130
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [0x42d0a8]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x404355
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x404355
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.00417a00
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [0x42d058]
test eax, eax
je 0x404355
push 4
push 0x1000
push 4
push 0
call dword [0x42d094]
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call dword [0x42d03c]
test eax, eax
je 0x404355
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push 0x432ec4
push dword [ebp - 0x160]
call dword [0x42d050]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0x40424c
push 0x432ec8
push 0x432ee0
call dword [0x42d080]
push eax
call dword [0x42d040]
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call dword [0x42d044]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x404355
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call dword [0x42d0a4]
mov eax, 1
mov dword [ebp - 0x164], 1
cmp ax, word [edi + 6]
ja 0x4042ee
mov ebx, 0x28
nop
lea ecx, [ebx + esi]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0xe0]
mov eax, dword [ecx + 0xe4]
add eax, esi
push eax
mov eax, dword [ecx + 0xdc]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call dword [0x42d0a4]
mov ecx, dword [ebp - 0x164]
lea ebx, [ebx + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x164], ecx
cmp ecx, eax
jle 0x4042a0
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call dword [0x42d0a4]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call dword [0x42d060]
push dword [ebp - 0x15c]
call dword [0x42d088]
push 0x8000
push 0
push esi
call dword [0x42d09c]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416332
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
call dword [0x42d09c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416332
mov esp, ebp
pop ebp
ret
Function at 0x41675a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x41678e
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x416787
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x416793
add edx, 0x28
cmp edx, esi
jne 0x416778
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x416790

Function at 0x45cc10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x435015
lea edi, [esi - 0x34015]
push edi
or ebp, 0xffffffff
jmp 0x45cc32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45cc39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45cc28
mov eax, 1
add ebx, ebx
jne 0x45cc4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45cc40
jne 0x45cc5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45cc40
xor ecx, ecx
sub eax, 3
jb 0x45cc70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45cce2
mov ebp, eax
add ebx, ebx
jne 0x45cc7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45cc88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45ccac
inc ecx
add ebx, ebx
jne 0x45cc98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45cc8d
jne 0x45cca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45cc8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45cccc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45ccbd
jmp 0x45cc2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45cccc
add edi, ecx
jmp 0x45cc2e
pop esi
mov edi, esi
mov ecx, 0x6f6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45ccea
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45ccef
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45cd57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5c25c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c2c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45cd15
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c2d0]
or eax, eax
je 0x45cd51
mov dword [ebx], eax
add ebx, 4
jmp 0x45cd32
call dword [esi + 0x5c2cc]
mov ebp, dword [esi + 0x5c2d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45cd8b
sub esp, 0xffffff80
jmp 0x42d0b0
Function at 0x405710
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.00458210
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 0x405c10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00458630
mov eax, dword [0x492220]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebp, ebp
je 0x405c5f
mov eax, 1
mov dword [esi], ebp
jmp 0x405c61
mov ebp, dword [esi]
test ecx, ecx
je 0x405d44
push ebp
call fcn.0040b030
mov ebx, eax
add esp, 4
cmp ebx, 0x80
jle 0x405c90
push str.j____int_sizeof_ctx__key_
push 0x68
push str..cryptohmachmac.c
call fcn.0040aef0
add esp, 0xc
mov edi, dword [esp + 0xa8]
cmp ebx, edi
jge 0x405ce7
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esi + 4]
push ebp
push ebx
call fcn.0040a490
add esp, 0xc
test eax, eax
je 0x405de6
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
call fcn.0040a640
add esp, 0xc
test eax, eax
je 0x405de6
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.0040a650
add esp, 0xc
test eax, eax
je 0x405de6
jmp 0x405d21
cmp edi, 0x80
jbe 0x405d03
push str.len_0__len__int_sizeof_ctx__key_
push 0x75
push str..cryptohmachmac.c
call fcn.0040aef0
add esp, 0xc
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esi + 0x50]
push edx
call fcn.004587e0
mov eax, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x405d4c
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + esi + 0x50]
push 0
push edx
call fcn.00458210
add esp, 0xc
jmp 0x405d4c
test eax, eax
je 0x405dd2
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x405d50
mov edi, dword [esp + 0x10]
push edi
lea ebx, [esi + 0x1c]
push ebp
push ebx
call fcn.0040a490
add esp, 0xc
test eax, eax
je 0x405de6
push ebp
call fcn.0040b030
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.0040a640
add esp, 0x10
test eax, eax
je 0x405de6
xor eax, eax
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x405d94
push edi
lea ebx, [esi + 0x34]
push ebp
push ebx
call fcn.0040a490
add esp, 0xc
test eax, eax
je 0x405de6
push ebp
call fcn.0040b030
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.0040a640
add esp, 0x10
test eax, eax
je 0x405de6
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call fcn.0040a780
add esp, 8
test eax, eax
jne 0x405dea
xor eax, eax
jmp 0x405def
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004581fd
add esp, 0x8c
ret
Function at 0x40add0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00458630
mov eax, dword [0x492220]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x40ae35
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x40ae35
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0045938d
add eax, 0x40
push eax
call fcn.00459993
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004581fd
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.004598cc
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40aec4
call fcn.0040ac90
test eax, eax
jle 0x40aec4
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.004581fd
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.004581fd
add esp, 0x108
ret

Function at 0x40f5f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x40f637
mov al, byte [edx]
test al, al
je 0x40f637
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 0x40f607
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x40fd10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.00458630
mov eax, dword [0x492220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x40fd40
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40fd40
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x40fdb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x40fd9a
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x40fdb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x40fe4a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x40fe38
lea eax, [esi + esi]
call fcn.004598a0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x40fe4a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fde3
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x40fe4a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.0045bd95
mov esi, eax
add esp, 8
test esi, esi
jne 0x40feee
call fcn.0045bd41
cmp dword [eax], 2
je 0x40fe30
call fcn.0045bd41
cmp dword [eax], 9
jne 0x40fe42
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.0045b48b
mov esi, eax
add esp, 8
test esi, esi
jne 0x40feee
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0040db50
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x47b000
push eax
push 0x47affc
push ecx
push str.fopen_
push 5
call fcn.0040dcc0
add esp, 0x2c
call fcn.0045bd41
cmp dword [eax], 2
jne 0x40fec0
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0040db50
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004581fd
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0040db50
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004581fd
mov esp, ebp
pop ebp
ret
push 0x491630
call fcn.0040c2b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40ff20
push esi
call fcn.0045acc8
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004581fd
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.0040bd40
push esi
push 1
push 0x6a
push edi
call fcn.0040c0a0
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004581fd
mov esp, ebp
pop ebp
ret