joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495b62
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x24
mov eax, 0x4af0ac
call fcn.004a956e
mov dword [ebp - 0x28], edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x495ba1
test byte [eax + 0x1c], 1
je 0x495ba1
cmp byte [eax + 0x19], 5
jb 0x495ba1
push dword [eax + 0x14]
mov edx, 0x410160
push dword [eax + 0x10]
push 0x3f
pop ecx
call fcn.00416054
xor esi, esi
lea eax, [ebp - 0x18]
push esi
push esi
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
push esi
push esi
push esi
push dword [ebx]
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_RegQueryInfoKeyW]
mov edi, eax
mov edx, dword [0x4b70c8]
mov ebx, 0x4b70c8
cmp edx, ebx
je 0x495bf9
test byte [edx + 0x1c], 2
je 0x495bf9
cmp byte [edx + 0x19], 4
jb 0x495bf9
push edi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x410160
push 0x40
pop ecx
call fcn.0041610f
mov edx, dword [0x4b70c8]
inc dword [ebp - 0x18]
test edi, edi
jne 0x495d33
push 0x4b8970
lea ecx, [ebp - 0x14]
call fcn.00417475
mov dword [ebp - 4], esi
mov eax, dword [0x4b70c8]
cmp eax, ebx
je 0x495c3f
test byte [eax + 0x1c], 2
je 0x495c3f
cmp byte [eax + 0x19], 4
jb 0x495c3f
push dword [ebp - 0x1c]
mov edx, 0x410160
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x41
pop ecx
call fcn.0041610f
mov ebx, esi
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 0x1c], ebx
jbe 0x495d20
test edi, edi
jne 0x495d20
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push esi
mov dword [ebp - 0x20], esi
call fcn.00417332
push esi
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.0041735f
lea eax, [ebp - 0x30]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push edi
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x495cb7
test byte [eax + 0x1c], 2
je 0x495cb7
cmp byte [eax + 0x19], 4
jb 0x495cb7
push edi
push dword [eax + 0x14]
mov edx, 0x410160
push dword [eax + 0x10]
push 0x42
pop ecx
call fcn.0041610f
mov esi, dword [ebp - 0x14]
mov eax, edi
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
jne 0x495cd1
mov ecx, esi
call fcn.00417403
push eax
lea ecx, [ebp - 0x14]
call fcn.0041735f
test edi, edi
jne 0x495d16
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
call fcn.004233cb
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x495d16
test byte [eax + 0x1c], 2
je 0x495d16
cmp byte [eax + 0x19], 4
jb 0x495d16
push esi
push dword [eax + 0x14]
mov edx, 0x410160
push dword [eax + 0x10]
push 0x43
pop ecx
call fcn.00416072
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x495c4d
lea ecx, [esi - 0x10]
call fcn.004174b0
mov edx, dword [0x4b70c8]
mov ebx, 0x4b70c8
cmp edx, ebx
je 0x495d65
test byte [edx + 0x1c], 1
je 0x495d65
movzx ecx, byte [edx + 0x19]
mov eax, edi
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
cmp ecx, eax
jb 0x495d65
push edi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x410160
push 0x44
pop ecx
call fcn.0041610f
mov eax, edi
call fcn.004a953c
ret
Function at 0x4966a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call fcn.004964e1
neg eax
sbb ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x40eda8
push reloc.OLEAUT32.dll_SysReAllocString
neg ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49672f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x10
push 0x40edf4
push 0x40ee10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x496721
cmp dword [ebp - 8], 4
jne 0x496721
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
sete bl
cmp dword [ebp - 4], esi
je 0x49672f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4967ca
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4b8bd4]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x14]
push esi
push edi
push eax
mov edi, ecx
xor ecx, ecx
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4968ae
cmp dword [esp + 0xc], esi
je 0x496830
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
test esi, esi
jne 0x4968ae
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push esi
push eax
jmp 0x49687d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004967ca
mov esi, eax
test esi, esi
jne 0x4968ae
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x496852
cmp dword [esp + 0xc], 0
je 0x4968a4
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push ebx
mov ecx, edi
call fcn.00496735
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x4968bf
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a8f70
mov esp, ebp
pop ebp
ret 4
Function at 0x49699e
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 4], edi
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x4969dd
test byte [eax + 0x1c], 1
je 0x4969dd
cmp byte [eax + 0x19], 5
jb 0x4969dd
push edi
push ebx
push dword [eax + 0x14]
mov edx, 0x41020c
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.00417794
push 0x80
xor esi, esi
push esi
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 8], esi
xor eax, eax
lea edi, [ebp - 0x28]
push 8
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x28], 4
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x496a2e
test byte [eax + 0x1c], 2
je 0x496a2e
cmp byte [eax + 0x19], 5
jb 0x496a2e
push ebx
push dword [eax + 0x14]
mov edx, 0x41020c
push dword [eax + 0x10]
push 0xb
pop ecx
call fcn.00416072
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov edi, eax
test edi, edi
je 0x496a9a
jg 0x496a4a
mov esi, edi
jmp 0x496a53
movzx esi, di
or esi, 0x80070000
test esi, esi
js 0x496a5c
mov esi, 0x80004005
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x496ad4
test byte [edx + 0x1c], 2
je 0x496ad4
movzx eax, byte [edx + 0x19]
mov ecx, esi
sar ecx, 0x1f
and ecx, 0xfffffffd
add ecx, 5
cmp eax, ecx
jl 0x496ad4
push edi
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x41020c
push 0xc
pop ecx
call fcn.00417822
jmp 0x496ad4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
cmp ecx, 0x80
jbe 0x496ad9
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x496acf
test byte [eax + 0x1c], 2
je 0x496acf
cmp byte [eax + 0x19], 2
jb 0x496acf
push ecx
push ecx
push esi
push ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004968d8
mov esi, 0x80004005
mov edi, dword [ebp - 4]
jmp 0x496b1b
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x496b06
test byte [eax + 0x1c], 2
je 0x496b06
cmp byte [eax + 0x19], 5
jb 0x496b06
push esi
push ecx
push dword [eax + 0x14]
mov edx, 0x41020c
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.004338a6
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 4]
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x496b6c
test byte [edx + 0x1c], 1
je 0x496b6c
movzx eax, byte [edx + 0x19]
mov ecx, esi
sar ecx, 0x1f
and ecx, 0xfffffffd
add ecx, 5
cmp eax, ecx
jl 0x496b6c
test esi, esi
js 0x496b54
movzx eax, word [edi]
jmp 0x496b57
or eax, 0xffffffff
push eax
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x41020c
push 0xf
pop ecx
call fcn.00496974
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x496b73
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4b8bd4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], ecx
mov esi, dword [0x4b70c8]
cmp esi, 0x4b70c8
je 0x496bd3
test byte [esi + 0x1c], 1
je 0x496bd3
cmp byte [esi + 0x19], 5
jb 0x496bd3
push eax
push edi
push dword [esi + 0x14]
mov edx, 0x41020c
push dword [esi + 0x10]
push 0x10
pop ecx
call fcn.00417822
mov esi, dword [0x4b70c8]
movzx eax, word [edi]
xor ebx, ebx
push 2
pop edx
push 0x17
pop ecx
cmp dx, ax
je 0x496c3d
cmp cx, ax
je 0x496c3d
mov ebx, 0x80070057
mov edi, dword [ebp - 0x414]
cmp esi, 0x4b70c8
je 0x496c2a
test byte [esi + 0x1c], 1
je 0x496c2a
movzx eax, byte [esi + 0x19]
mov ecx, ebx
sar ecx, 0x1f
and ecx, 0xfffffffd
add ecx, 5
cmp eax, ecx
jl 0x496c2a
push dword [edi]
mov edx, 0x41020c
push ebx
push dword [esi + 0x14]
push dword [esi + 0x10]
push 0x12
pop ecx
call fcn.0041b4e5
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8f70
leave
ret 4
push edx
push ebx
push ebx
push 0x401
lea eax, [ebp - 0x410]
push eax
push 0x80
push edi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x496cbd
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
jg 0x496c6a
mov ebx, eax
jmp 0x496c73
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x496c7c
mov ebx, 0x80004005
mov esi, dword [0x4b70c8]
cmp esi, 0x4b70c8
je 0x496c2a
test byte [esi + 0x1c], 2
je 0x496bed
cmp byte [esi + 0x19], 2
jb 0x496bed
push eax
push dword [esi + 0x14]
mov edx, 0x41020c
push dword [esi + 0x10]
push 0x11
pop ecx
call fcn.0041610f
mov esi, dword [0x4b70c8]
jmp 0x496bed
cmp dword [ebp - 0x418], ebx
je 0x496d0a
push 0x17
pop eax
cmp ax, word [edi]
jne 0x496d0a
lea eax, [ebp - 0x410]
push 0x25
push eax
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
test eax, eax
je 0x496ce4
mov byte [eax], bl
mov edi, dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push eax
push 0x410170
push edi
call fcn.0041a5a1
add esp, 0xc
mov esi, dword [0x4b70c8]
jmp 0x496bf3
mov edi, dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push eax
mov ecx, edi
call fcn.00435b87
jmp 0x496cff
Function at 0x49eff1
Capabilities:
Get local ipv4 addresses

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49f024
test byte [eax + 0x1c], 2
je 0x49f024
push dword [eax + 0x14]
mov edx, 0x410578
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.00416054
mov eax, 0x1f40
xor esi, esi
mov dword [ebp - 4], eax
push 0x4042e7
push eax
call fcn.004a9c44
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x49f0d8
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0xe
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x7a
je 0x49f062
cmp edi, 0x6f
jne 0x49f077
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
xor ebx, ebx
inc esi
pop ecx
cmp esi, 3
jae 0x49f08c
mov eax, dword [ebp - 4]
jmp 0x49f02e
test edi, edi
jg 0x49f07f
mov esi, edi
jmp 0x49f088
movzx esi, di
or esi, 0x80070000
test esi, esi
js 0x49f0dd
test edi, edi
jg 0x49f094
mov esi, edi
jmp 0x49f09d
movzx esi, di
or esi, 0x80070000
test esi, esi
js 0x49f0dd
mov edi, dword [ebp - 8]
mov dword [edi + 0xc], ebx
xor ebx, ebx
call fcn.004a9be4
test al, al
je 0x49f0dd
call dword [sym.imp.ext_ms_win_casting_receiver_l1_1_0.dll_GetXboxWirelessNetworkInterfaceIndex]
test eax, eax
je 0x49f0dd
mov ecx, dword [edi + 0xc]
jmp 0x49f0c9
cmp dword [ecx + 4], eax
je 0x49f0cf
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x49f0c1
jmp 0x49f0dd
mov dword [ecx + 0x40], 0x47
jmp 0x49f0dd
mov esi, 0x8007000e
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov edi, dword [0x4b70c8]
cmp edi, 0x4b70c8
je 0x49f120
test byte [edi + 0x1c], 2
je 0x49f120
movzx eax, byte [edi + 0x19]
mov ecx, esi
sar ecx, 0x1f
and ecx, 0xfffffffd
add ecx, 5
cmp eax, ecx
jl 0x49f120
push esi
push dword [edi + 0x14]
mov edx, 0x410578
push dword [edi + 0x10]
push 0xb
pop ecx
call fcn.0041610f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a8cd3
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4b6120
call fcn.004a98f0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4ba82c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4a8d25
cmp eax, esi
jne 0x4a8d18
xor esi, esi
inc esi
mov edi, esi
jmp 0x4a8d28
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4a8cfc
xor esi, esi
inc esi
cmp dword [0x4ba830], esi
jne 0x4a8d3a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4a8d74
cmp dword [0x4ba830], ebx
jne 0x4a8d6e
mov dword [0x4ba830], esi
push 0x402870
push 0x402864
call fcn.004a8eae
pop ecx
pop ecx
test eax, eax
je 0x4a8d74
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4a8e9e
mov dword [0x4b9020], esi
cmp dword [0x4ba830], esi
jne 0x4a8d97
push 0x402860
push 0x4027ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4ba830], 2
test edi, edi
jne 0x4a8da4
xor eax, eax
mov ecx, 0x4ba82c
xchg dword [ecx], eax
cmp dword [0x4ba83c], 0
je 0x4a8dd0
push 0x4ba83c
call fcn.004a97e0
pop ecx
test eax, eax
je 0x4a8dd0
push ebx
push 2
push ebx
mov esi, dword [0x4ba83c]
mov ecx, esi
call dword [0x4bb544]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x4a8d5d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x4a8e3b
test ax, ax
je 0x4a8e0a
test edx, edx
jne 0x4a8e3b
test ax, ax
je 0x4a8e0a
cmp ax, si
ja 0x4a8e0a
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x4a8df5
test byte [ebp - 0x3c], 1
je 0x4a8e16
movzx eax, word [ebp - 0x38]
jmp 0x4a8e19
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x4b901c], eax
cmp dword [0x4b9034], 0
jne 0x4a8e83
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x4a8e4c
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x4a8de4
cmp dword [0x4b9020], 0
jne 0x4a8e97
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4b901c]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0056a000
jmp 0x4a8cd3

Function at 0x4a96c4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4b61c0
call fcn.004a98f0
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a9724
cmp eax, 0xffffffff
je 0x4a9724
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4a971d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4a971d
cmp edx, 0x10000000
jae 0x4a971d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4a971a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4a9790
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4a97ce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4a97c6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4a97d0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4a97b6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a98a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4a98d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4a98d1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4a98d1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4405d6
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46d5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x440619
push str.SystemFunction040
push dword [0x46d5d8]
call edi
push str.SystemFunction041
push dword [0x46d5d8]
mov dword [0x46d5e0], eax
call edi
mov dword [0x46d5e4], eax
jmp 0x44061e
mov eax, dword [0x46d5e4]
cmp dword [0x46d5e0], 0
je 0x44062f
test eax, eax
jne 0x4406d6
push 0x46d5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4406e0
push str.CryptProtectMemory
push dword [0x46d5dc]
call edi
cmp dword [0x46d5e0], 0
mov dword [0x46d5e8], eax
jne 0x440694
test eax, eax
jne 0x440694
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44067e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440685
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work21_s_srclibsdutilcryputil.cpp
call fcn.004038fa
jmp 0x4406e0
push str.CryptUnprotectMemory
push dword [0x46d5dc]
call edi
cmp dword [0x46d5e4], 0
mov dword [0x46d5ec], eax
jne 0x4406d6
test eax, eax
jne 0x4406d6
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4406ca
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4406d1
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x440688
mov dword [0x46d5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4447b4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0044a940
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1010], ecx
cmp dword [ebp + 0x10], 0
jne 0x444802
cmp dword [ebp + 0x14], 0
jne 0x444802
mov eax, 0x1000
jmp 0x44482d
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edi
sbb edx, ecx
test edx, edx
jb 0x444827
ja 0x444819
cmp eax, 0x1000
jbe 0x444827
and dword [ebp - 0x1008], 0
mov eax, 0x1000
jmp 0x44482d
mov dword [ebp - 0x1008], edx
push 0
lea ecx, [ebp - 0x1008]
mov dword [ebp - 0x1008], eax
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4448ad
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x44487d
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call main
mov esi, eax
test esi, esi
js 0x4448db
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 0x1010]
add edi, eax
adc ecx, 0
mov dword [ebp - 0x1010], ecx
cmp ecx, dword [ebp + 0x14]
ja 0x4448a2
jb 0x44489a
cmp edi, dword [ebp + 0x10]
jae 0x4448a2
test eax, eax
jne 0x4447ef
test ebx, ebx
je 0x4448db
mov dword [ebx], edi
mov dword [ebx + 4], ecx
jmp 0x4448db
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4448c4
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4448cb
mov esi, 0x80004005
push esi
push 0x40f
push str.c:_agent_work21_s_srclibsdutil_fileutil.cpp
call fcn.004038fa
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e0fe
mov esp, ebp
pop ebp
ret 0x14

Function at 0x445712
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
push edi
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x445759
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x445757
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x445763
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jb 0x445723
jmp 0x445773
push esi
push 0x3ef
push str.c:_agent_work21_s_srclibsdutil_fileutil.cpp
call fcn.004038fa
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x29a0798c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x29a0799b
pop dword [ebp - 0x20]
mov eax, 0x47d33629
sub eax, 0x1e32bc8e
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x481db9af
add dword [ebp - 0x30], 0x6348b9c
mov dword [ebp - 0x2c], 0x7d6939f3
sub dword [ebp - 0x2c], 0x4b35edae
mov dword [ebp - 0x28], 0x81825b54
sub dword [ebp - 0x28], 0x35361726
mov dword [ebp - 0x24], 0xec5f813c
add dword [ebp - 0x24], 0x13a07ec4
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x9d42f1d2
add dword [ebp - 0x30], 0xd72f7784
mov dword [ebp - 0x2c], 0x16702f1d
add dword [ebp - 0x2c], 0x2afc3258
mov dword [ebp - 0x28], 0x62610aea
sub dword [ebp - 0x28], 0xfef19e7e
mov dword [ebp - 0x24], 0xb0d3c46a
add dword [ebp - 0x24], 0x4f2c3b96
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xef9be80b
add eax, 0x3a055839
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3acf7
push 0
call eax
mov ecx, 0xa83f3ef6
add ecx, 0x57c10af2
mov ebx, eax
mov edi, 0x6738d6ac
sub edi, 0x3d96b6ac
add edi, dword [ebp - 0x20]
mov edx, 0x1ee32df3
sub edx, 0x5e086733
xor dword [ebp - 4], edi
mov esi, dword [edi]
sub esi, edx
add dword [ebp - 4], ebx
mov dword [ebx], esi
mov dword [ebp - 8], 0x8bbb04ee
add ebx, 4
add edi, 0xecea24a2
sub edi, 0xecea249e
loop 0x29a07ab8
add eax, 0x6cee8d3c
sub eax, 0x6ced72c9
mov ebx, eax
add eax, 0x424e4f07
add eax, 0xbdb1b0fe
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0xef18b0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xef18ba
pushal
call 0xef18c0
pop ebp
sub ebp, 0x10
sub ebp, 0xaf18b0
jmp 0xef18d6
mov eax, 0xaf18b0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b2
mov edx, 0xcc7a4c62
xor byte [eax], dl
inc eax
dec ecx
jne 0xef18ed
jmp 0xef1900
jmp 0x5fdb02b4
Function at 0x403387
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4033a4
xor eax, eax
jmp 0x4033fd
test al, 0x10
je 0x4033b5
push 0x10
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, 0xffffffff
jmp 0x4033fd
mov eax, dword [0x4197f4]
test eax, eax
jne 0x4033c7
push esi
call fcn.0040335a
pop ecx
jmp 0x4033fd
cmp eax, 2
jne 0x4033fa
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4033be
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
test eax, eax
jl 0x4033be
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x4043f8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.004037ea
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040379f
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.004037da
out 0xe5, eax
cli
push 0x104
lea eax, [ebp - 0x334]