joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430552
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x4762c4]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x4305ea
push 0x464f04
push 4
push eax
call fcn.0044419c
push eax
call fcn.00424b50
add esp, 0x10
push ebx
push edi
call fcn.00443d02
mov edi, dword [eax]
call fcn.00443d02
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004431b2
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.00443d02
cmp dword [eax], ebx
je 0x430601
call fcn.00443d02
push dword [eax]
call fcn.0042f973
pop ecx
jmp 0x430608
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x43059e
jmp 0x43067a
call fcn.00443d02
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x430676
cmp dword [ebp - 0x3c], esi
jae 0x430676
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00440b70
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x430668
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x430668
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x430668
push ebx
push ebx
push esi
jmp 0x43066e
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x430678
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.004404d4
add ebp, 0xe0
leave
ret
Function at 0x4331b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x460653
call fcn.00443bde
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00433ed9
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4331fe
call fcn.00433ed9
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x43320f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x43321c
or eax, 0xffffffff
jmp 0x433378
mov ecx, esi
call fcn.00432cd8
mov dword [ebp - 0x14], eax
call fcn.0043656f
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x43329a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x43329a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x43329a
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00430523
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x43329a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x43329a
mov ecx, ebx
call fcn.0043923b
test eax, eax
je 0x43329a
push 0
mov ecx, ebx
call fcn.00439256
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00437ee9
push dword [ebp - 0x14]
call fcn.004364c7
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00432fbb
xor edi, edi
cmp eax, edi
je 0x4332f7
test byte [esi + 0x3c], 0x10
je 0x4332e1
push 4
pop edi
mov ecx, esi
call fcn.00439122
test ax, 0x100
je 0x4332d7
push 5
pop edi
push edi
mov ecx, esi
call fcn.0043605d
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4332f7
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004392bd
or dword [ebp - 4], 0xffffffff
jmp 0x433322
cmp dword [ebp - 0x28], edi
je 0x433330
push 1
mov ecx, ebx
call fcn.00439256
cmp dword [ebp - 0x2c], edi
je 0x433340
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x433359
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x433359
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00432d12
cmp dword [esi + 0x58], edi
je 0x433375
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00443c4a
ret
Function at 0x439006
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x439049
call fcn.00433ed9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x439049
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x439064
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00438bbd
test ebx, ebx
mov esi, eax
je 0x439062
test edi, edi
je 0x439062
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43a1d4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4762c4]
xor eax, ebp
mov dword [ebp + 0x88], eax
push esi
push edi
mov edi, dword [ebp + 0x94]
mov esi, 0x105
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x43a20f
xor eax, eax
jmp 0x43a255
lea eax, [ebp - 0x80]
push eax
call fcn.00443b20
cmp byte [ebp + eax - 0x81], 0x5c
pop ecx
je 0x43a239
push 0x462a84
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00444288
add esp, 0xc
test eax, eax
jne 0x43a20b
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00444288
add esp, 0xc
test eax, eax
jne 0x43a20b
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp + 0x88]
pop edi
xor ecx, ebp
pop esi
call fcn.004404d4
add ebp, 0x8c
leave
ret

Function at 0x4404d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4762c4]
jne 0x4404de
repz ret
jmp fcn.004472ce
Function at 0x44dc85
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x476f20]
je 0x44dca0
inc edi
cmp edi, 0x17
jb 0x44dc91
cmp edi, 0x17
jae 0x44de20
push ebp
push 3
call fcn.00454d98
cmp eax, 1
pop ecx
je 0x44ddec
push 3
call fcn.00454d98
test eax, eax
pop ecx
jne 0x44dcd4
cmp dword [0x476340], 1
je 0x44ddec
cmp ebx, 0xfc
je 0x44de1f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x479e70
push ebp
call fcn.0044419c
add esp, 0xc
test eax, eax
je 0x44dd0a
push esi
push esi
push esi
push esi
push esi
call fcn.0044092f
add esp, 0x14
push 0x104
mov esi, 0x479e89
push esi
push 0
mov byte [0x479f8d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44dd4e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044419c
add esp, 0xc
test eax, eax
je 0x44dd4e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044092f
add esp, 0x14
push esi
call fcn.00443b20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44dd93
push esi
call fcn.00443b20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47a184
push 0x46719c
sub ecx, eax
push ecx
push eax
call fcn.00445cfc
add esp, 0x14
test eax, eax
je 0x44dd93
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044092f
add esp, 0x14
jmp 0x44dd95
xor esi, esi
push 0x467198
push ebx
push ebp
call fcn.00444288
add esp, 0xc
test eax, eax
je 0x44ddb5
push esi
push esi
push esi
push esi
push esi
call fcn.0044092f
add esp, 0x14
push dword [edi*8 + 0x476f24]
push ebx
push ebp
call fcn.00444288
add esp, 0xc
test eax, eax
je 0x44ddd7
push esi
push esi
push esi
push esi
push esi
call fcn.0044092f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00454bdb
add esp, 0xc
jmp 0x44de1f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44de1f
cmp ebp, 0xffffffff
je 0x44de1f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x476f24]
push dword [esi]
call fcn.00443b20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x454bdb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004484bc
xor ebx, ebx
cmp dword [0x47a3cc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x454cb1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x454d91
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x468b38
push edi
call esi
cmp eax, ebx
je 0x454d91
push eax
call fcn.0044844e
mov dword [esp], 0x468b28
push edi
mov dword [0x47a3cc], eax
call esi
push eax
call fcn.0044844e
mov dword [esp], 0x468b14
push edi
mov dword [0x47a3d0], eax
call esi
push eax
call fcn.0044844e
mov dword [0x47a3d4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00443ebc
test eax, eax
pop ecx
pop ecx
je 0x454c7f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044092f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x454cb1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044844e
cmp eax, ebx
pop ecx
mov dword [0x47a3dc], eax
je 0x454cb1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044844e
pop ecx
mov dword [0x47a3d8], eax
mov eax, dword [0x47a3d8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x454d36
cmp dword [0x47a3dc], ecx
je 0x454d36
push eax
call fcn.004484c5
push dword [0x47a3dc]
mov esi, eax
call fcn.004484c5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x454d36
cmp edi, ebx
je 0x454d36
call esi
cmp eax, ebx
je 0x454d03
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x454d03
test byte [ebp - 0x18], 1
jne 0x454d36
lea eax, [ebp - 0x10]
push eax
call fcn.00443ef3
test eax, eax
pop ecx
je 0x454d1e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044092f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x454d2d
or dword [ebp + 0x10], 0x200000
jmp 0x454d71
or dword [ebp + 0x10], 0x40000
jmp 0x454d71
mov eax, dword [0x47a3d0]
cmp eax, dword [ebp - 8]
je 0x454d71
push eax
call fcn.004484c5
cmp eax, ebx
pop ecx
je 0x454d71
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x454d71
mov eax, dword [0x47a3d4]
cmp eax, dword [ebp - 8]
je 0x454d71
push eax
call fcn.004484c5
cmp eax, ebx
pop ecx
je 0x454d71
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47a3cc]
call fcn.004484c5
cmp eax, ebx
pop ecx
je 0x454d91
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x454d93
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45670a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xa]
push ebx
mov ebx, ecx
and ecx, 0x8000
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 6]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 2]
movzx eax, word [eax]
and ebx, 0x7fff
sub ebx, 0x3fff
shl eax, 0x10
cmp ebx, 0xffffc001
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
jne 0x456774
xor ebx, ebx
xor eax, eax
cmp dword [ebp + eax*4 - 0x20], ebx
jne 0x456764
inc eax
cmp eax, 3
jl 0x456751
xor eax, eax
jmp 0x456c09
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
jmp 0x456c09
and dword [ebp + 8], 0
push esi
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [str.5_v_]
dec esi
lea ecx, [esi + 1]
mov eax, ecx
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
mov edx, ecx
and edx, 0x8000001f
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
jns 0x4567ac
dec edx
or edx, 0xffffffe0
inc edx
lea edi, [ebp + eax*4 - 0x20]
push 0x1f
xor eax, eax
pop ecx
sub ecx, edx
inc eax
shl eax, cl
mov dword [ebp - 8], ecx
test dword [edi], eax
je fcn.00456852
mov eax, dword [ebp - 0xc]
or edx, 0xffffffff
shl edx, cl
not edx
test dword [ebp + eax*4 - 0x20], edx
jmp 0x4567da
cmp dword [ebp + eax*4 - 0x20], 0
jne 0x4567e4
inc eax
cmp eax, 3
jl 0x4567d5
jmp fcn.00456852
mov eax, esi
cdq
push 0x1f
pop ecx
and edx, ecx
add eax, edx
sar eax, 5
and esi, 0x8000001f
jns 0x4567fe
dec esi
or esi, 0xffffffe0
inc esi
and dword [ebp - 4], 0
sub ecx, esi
xor edx, edx
inc edx
shl edx, cl
lea ecx, [ebp + eax*4 - 0x20]
mov esi, dword [ecx]
add esi, edx
mov dword [ebp + 8], esi
mov esi, dword [ecx]
cmp dword [ebp + 8], esi
jb 0x45683d
cmp dword [ebp + 8], edx
jmp 0x45683b
adc byte [ebx + 0x3e183d9], cl
fld dword [ebx - 0x5b0cfc1f]
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [ebp + 8]
call fcn.00456881
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.004568bc
fmul qword [esi]
invalid
Function at 0x45a062
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4762c4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00459ff7
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00440b70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45a0b1
cmp dword [ebp - 0x1c], 5
jb 0x45a0c9
jmp 0x45a0c5
cmp dword [ebp - 0x10], 1
jne 0x45a0c9
cmp dword [ebp - 0x1c], 4
ja 0x45a0c5
jne 0x45a0c9
cmp dword [ebp - 0x18], 0
jbe 0x45a0c9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x468ca8
call fcn.00459ee8
test eax, eax
jge 0x45a0ea
mov byte [0x477ae1], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004404d4
add ebp, 0x78
leave
ret

Function at 0xd7e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d7e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd7e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd7e06a
add dl, dl
jne 0xd7e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd7e0dc
xor eax, eax
add dl, dl
jne 0xd7e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd7e17d
add dl, dl
jne 0xd7e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd7e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd7e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd7e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd7e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd7e075
mov eax, 1
add dl, dl
jne 0xd7e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd7e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd7e0e1
sub eax, ebx
mov ebx, 1
jne 0xd7e128
mov ecx, 1
add dl, dl
jne 0xd7e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd7e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd7e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd7e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd7e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd7e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd7e136
cmp eax, 0x7d00
jae 0xd7e16d
cmp eax, 0x500
jb 0xd7e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd7e075
cmp eax, 0x7f
ja 0xd7e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd7e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd7e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd7e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x420bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x420bbf
pop dword [ebp - 0x34]
mov eax, 0x5529154f
add eax, 0xab18f670
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x40d3a
push 0
mov eax, 0xa1b27524
add eax, 0x5e8fdcf4
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x52e5
xor edi, edi
add edi, eax
mov ebx, 0x1c619b3d
add ebx, 0xe3e1b8c3
add ebx, dword [ebp - 0x34]
mov esi, 0xed35ba81
sub esi, 0xe4afdade
mov dword [ebp - 0x2c], 0xe3b05c17
mov edx, dword [ebx]
add dword [ebp - 0x28], edi
add edx, esi
xor dword [ebp - 0x14], 0x1614bbf1
mov dword [edi], edx
xor dword [ebp - 4], ebx
add edi, 4
add ebx, 0xa4909c7b
sub ebx, 0xa4909c77
loop 0x420c1a
add eax, 0x13e67
xor ebx, ebx
add ebx, eax
add eax, 0x7f0cd09f
add eax, 0x80f32f66
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x424958
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x424967
pop dword [ebp - 0x1c]
mov eax, 0x21148603
sub eax, 0x20d23c9c
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x4d9c1
push 0
mov eax, 0x6225e23b
sub eax, 0x61e12f8b
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xd9316952
add ecx, 0x26ced3a1
xor esi, esi
add esi, eax
mov edi, 0x706431be
add edi, 0x8fe45c42
add edi, dword [ebp - 0x1c]
mov edx, 0xfb3c4ef1
add dword [ebp - 0x10], 0x55ae0294
mov ebx, dword [edi]
add dword [ebp - 0xc], edi
add ebx, edx
xor dword [ebp - 8], 0x3ef8ed5a
mov dword [esi], ebx
add dword [ebp - 0x10], 0xa4980888
add esi, 0xd6ea02c
add esi, 0xf2915fd8
add edi, 4
loop 0x4249c2
add eax, 0xe34ebbf
add eax, 0xf1cbfae0
xor ebx, ebx
add ebx, eax
add eax, 0x54e1e928
sub eax, 0x54e1e923
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401700
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push 0xffffffffffffffff
push 0x424f38
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42fde0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
push eax
push 0
push 0x1f0fff
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x401776
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40176c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x401863
push 0x400
push 0
push 0x400
call fcn.00402fff
add esp, 4
push eax
call fcn.004127e0
push 0x400
call fcn.00402fff
push 0x400
mov esi, eax
push 0
push esi
call fcn.004127e0
mov ecx, dword [esp + 0x44]
push 0x400
push ecx
push 0x400
push esi
push 0
call fcn.004118ef
add esp, 0x30
push 0x42a22c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x24], eax
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4017e3
push 4
push 0x3000
sub eax, ecx
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov eax, esi
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401806
push 0
sub eax, ebp
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x24]
push 0
push 0
push ebx
push edx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401861
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8