joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101692eb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101c5a48], 0x102f
mov dword [0x101c5a50], 0
mov byte [0x101c5a54], 0
mov dword [0x101c5a44], 0x194
mov dword [0x101c5a4c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10169411
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
mov dword [0x101c5a58], 0
mov esi, ecx
add esi, 0xffffeb81
add ecx, 0x8b2
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov dword [0x101c5a48], esi
mov esi, dword [0x101c5a50]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
movzx edi, byte [ebx + edi]
add edi, esi
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101c5a58], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x2c]
idiv edi
mov dword [0x101c5a50], edx
mov dword [0x101c5a44], ecx
mov ecx, dword [ebp - 0x28]
mov cl, byte [ebx + ecx]
mov byte [0x101c5a54], cl
mov dword [0x101c5a48], 0xf5e
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x28]
mov byte [ebx + edx], cl
mov ecx, dword [0x101c5a44]
add ecx, 0xffffe36b
mov dword [0x101c5a44], ecx
mov cl, byte [0x101c5a54]
mov edx, dword [0x101c5a50]
mov byte [ebx + edx], cl
mov edx, dword [0x101c5a4c]
add edx, 1
mov dword [0x101c5a4c], edx
cmp edx, 0x100
mov dword [ebp - 0x30], edx
jl 0x10169467
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101c5a44], 0x540
mov eax, dword [0x101c5a4c]
add eax, 1
mov dword [0x101c5a4c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10169411
mov eax, 0x225b
xor ecx, ecx
mov dword [0x101c5a48], 0x225b
mov dword [0x101c5a4c], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x1016933f
mov eax, dword [0x101c5a48]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x1016933f
Function at 0x10169698
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x2d17
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, 0xb8c
mov dword [0x101c5a4c], 0
mov dword [0x101c5a50], 0
mov dword [0x101c5a5c], 0
mov dword [ebp - 0x14], eax
mov eax, dword [0x101c5a44]
add eax, 0xffffdbca
mov dword [0x101c5a48], eax
mov dword [0x101c5a44], 0xb8c
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, ebx
mov dword [ebp - 0x18], eax
mov eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
je 0x10169853
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov edi, 0x100
mov ebx, esi
add ebx, 1
add ecx, 1
add eax, 0xffffe6cf
mov dword [ebp - 0x38], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
idiv edi
mov dword [0x101c5a4c], edx
mov dword [0x101c5a48], 0x2089
mov ecx, dword [ebp - 0x2c]
movzx ecx, byte [ecx + edx]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [0x101c5a50], edx
mov ecx, dword [ebp - 0x38]
mov dword [0x101c5a48], ecx
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
mov cl, byte [ecx + edi]
mov byte [0x101c5a54], cl
mov dword [0x101c5a44], 0x136f
mov ecx, dword [ebp - 0x2c]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x2c]
mov byte [edx + edi], cl
mov dword [0x101c5a48], 0xf56
mov cl, byte [0x101c5a54]
mov edx, dword [0x101c5a50]
mov edi, dword [ebp - 0x2c]
mov byte [edi + edx], cl
mov dword [0x101c5a44], 0x2311
mov edx, dword [0x101c5a4c]
movzx edx, byte [edi + edx]
mov ecx, dword [0x101c5a50]
movzx ecx, byte [edi + ecx]
add ecx, edx
mov dword [0x101c5a48], 0xa5a
and ecx, 0xff
mov dword [0x101c5a5c], ecx
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x24]
mov ch, byte [edx + esi]
mov dword [0x101c5a44], 0x6f8
xor ch, cl
mov edx, dword [ebp - 0x28]
mov byte [edx + esi], ch
mov esi, dword [ebp - 0x10]
cmp ebx, esi
mov dword [ebp - 0x44], ebx
je 0x10169846
mov eax, dword [0x101c5a44]
mov ecx, dword [0x101c5a4c]
mov edx, dword [0x101c5a50]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], eax
jmp 0x10169723
mov eax, dword [0x101c5a44]
add eax, 0x218b
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [0x101c5a48], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10169863
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x101c5a44], 0x1c0e
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.10168eab
lea ecx, [0x101691ab]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x88], edx
mov dword [esp + 0x54], 0x138800
mov edx, dword [0x101c5a30]
mov dword [esp + 0x8c], edx
mov edx, dword [0x101c5a34]
mov dword [esp + 0x50], edx
mov edx, dword [0x101c5a38]
mov dword [esp + 0x4c], edx
mov edx, dword [0x101c5a3c]
mov dword [esp + 0x5c], edx
mov edx, dword [0x101c5a40]
mov dword [esp + 0x64], edx
mov dword [0x101c5a44], 0x1fcb
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10169910
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10169924
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101698ed
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], eax
mov dword [0x101c5a44], 0xe25
mov dword [0x101c5a48], 0x265c
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x80], edx
call fcn.10168a43
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x1016999f
lea eax, [esp + 0x30]
mov dword [0x101c5a44], 0x1c67
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101688db
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x101c5a44], 0x1592
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x1003854f
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x5ac]
sub esp, 0x62c
mov eax, dword [0x1004a018]
xor eax, ebp
mov dword [ebp + 0x5a8], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov esi, 0x104
push esi
lea eax, [ebp + 0x39c]
push eax
push 0
call edi
and word [ebp + 0x5a4], 0
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x10047a0c
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x7c]
push eax
push 0x10000000
call edi
and word [ebp + 0x18c], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push esi
push eax
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy]
and word [ebp + 0x398], 0
add esp, 0xc
lea eax, [ebp + 0x39c]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x190]
push eax
push 0x100479ec
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
cmp eax, 0xffffffff
pop edi
pop esi
mov dword [0x1004a030], 0xa
je 0x10038620
mov dword [0x1004a030], eax
lea ecx, [ebp - 0x80]
call fcn.1003848b
push dword [eax]
lea eax, [ebp + 0x190]
push eax
push 0x10047a2c
push 0x10047a3c
push 0x28
pop eax
call fcn.10038668
add esp, 0x10
lea eax, [ebp - 0x80]
call fcn.10038b3b
mov ecx, dword [ebp + 0x5a8]
mov eax, dword [0x1004a030]
xor ecx, ebp
call fcn.1003a054
add ebp, 0x5ac
leave
ret

Function at 0x10038683
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp esi, dword [0x1004a030]
ja 0x100386c9
mov eax, dword [0x1004aef4]
mov ecx, 0x1004aef4
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
push dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.10038b58
cmp esi, dword [0x1004a030]
ja 0x100386c1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
lea eax, [ebp - 4]
call fcn.10038b3b
leave
ret 8

Function at 0x1003896a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x10038981
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x100389b6
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x100389b2
cmp edi, eax
jae 0x100389b6
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x100389a4
cmp edi, eax
jb 0x100389ba
xor eax, eax
jmp 0x100389c4
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x1003a054
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004a018]
jne 0x1003a05e
repz ret
jmp fcn.1003a4dd
Function at 0x1003ae40
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
lea eax, [ecx + 1]
ret
Function at 0x1003c6d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.1003c1d0
add esp, 0xc
test eax, eax
jl 0x1003c91a
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
test edx, edx
push edi
jle 0x1003c74d
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x1003c710
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x1003c916
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x1003e6d8]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1003e6d8]
and esi, 0xff
mov esi, dword [esi*4 + 0x1003f2d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x1003fad8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1003e6d8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1003fed8]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x1003e6d8]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1003f6d8]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x1003e6d8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1003e6d8]
and esi, 0xff
mov esi, dword [esi*4 + 0x1003f2d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x1003fad8]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x1003e6d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x1003f6d8]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1003e6d8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1003fed8]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x1003e6d8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1003e6d8]
and esi, 0xff
mov esi, dword [esi*4 + 0x1003f2d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x1003fad8]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x1003e6d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x1003f6d8]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1003e6d8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1003fed8]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x1003e6d8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x1003e6d8]
and esi, 0xff
mov esi, dword [esi*4 + 0x1003f2d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x1003fad8]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x1003e6d8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1003e6d8]
and edi, 0xff
xor esi, dword [edi*4 + 0x1003f6d8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1003fed8]
add edx, 1
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x1003c761
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
loop 0x402620
rcr byte [ebx - 0x3d], 1

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x426a65
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x426ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x426aae
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x426ab5
mov esi, 0x80004005
push esi
push 0x1fc
push str.c:_agent_work138_s_src_burnenginemsuengine.cpp
call fcn.004038f5
push str.Failed_to_stop_wusa_service.
push esi
call fcn.00440657
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042de30
leave
ret 4

Function at 0x429ac7
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 4]
mov edi, 0x44b524
mov dword [ebp - 4], esi
test eax, eax
je 0x429ae6
mov edx, dword [eax]
jmp 0x429af3
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x429af1
mov edx, dword [ecx]
jmp 0x429af3
mov edx, edi
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x429afc
mov edi, dword [ecx]
test eax, eax
je 0x429b0e
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x429b1d
mov eax, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebp + 0xc]
push str.copy
push edi
push edx
push eax
push 2
call fcn.00405678
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.0044488b
test eax, eax
je 0x429b9b
mov eax, dword [ebp - 4]
test al, 1
je 0x429b9b
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x429b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429b73
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429b7a
mov esi, 0x80004005
push esi
push 0x538
push str.c:_agent_work138_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00440657
add esp, 0xc
jmp 0x429c19
push esi
lea eax, [ebx + 0x20]
push eax
push ebx
push fcn.004299a0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x429c19
cmp dword [ebx + 0x20], esi
je 0x429bd9
mov esi, 0x80070642
push esi
push 0x542
push str.c:_agent_work138_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x429c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x429bf0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x429bf7
mov esi, 0x80004005
push esi
push 0x546
push str.c:_agent_work138_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.00440657
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x44675d
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call fcn.00444d47
mov esi, eax
test esi, esi
js 0x4468b3
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x446884
cmp dword [ebp - 4], 0
je 0x4468b2
xor ebx, ebx
and dword [ebp + 0x10], ebx
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
sub eax, ebx
push eax
mov eax, dword [ebp + 0x20]
add eax, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44685e
add ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x4467e2
cmp ebx, dword [ebp - 4]
jb 0x4467b1
add dword [edi], ebx
push 0
pop eax
adc dword [edi + 4], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x44682c
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 8], eax
call fcn.00444d47
test eax, eax
js 0x44682c
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*8]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x44682c
cmp ebx, 8
jb 0x446805
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x446852
cmp dword [eax], 0
je 0x446852
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.00446096
mov esi, eax
test esi, esi
js 0x4468b2
cmp dword [ebp - 4], 0
jne 0x446787
jmp 0x4468b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x446875
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44687c
mov esi, 0x80004005
push esi
push 0x1a6
jmp 0x4468a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44689b
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4468a2
mov esi, 0x80004005
push esi
push 0x19a
push str.c:_agent_work138_s_srclibsdutildlutil.cpp
call fcn.004038f5
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x24

Function at 0x448dda
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], 4
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000005
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x448e2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x448e1b
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x448e2c
push esi
push 0x18
push str.c:_agent_work138_s_srclibsdutilinetutil.cpp
call fcn.004038f5
jmp 0x448e38
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
and dword [edx + 4], 0
mov dword [edx], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x40987c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409930
jmp 0x409925
cmp dword [esi + 0x10], 0x1000
jne 0x409911
test byte [esi + 0x15], 1
jne 0x409911
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4098d0
cmp eax, 2
je 0x4098d0
cmp eax, 0x10
je 0x4098d0
cmp eax, 0x20
jne 0x4098e5
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4098e5
mov bl, 1
xor ebp, ebp
jmp 0x4098f6
mov eax, dword [esi]
add eax, ebp
call fcn.00409874
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4098e9
test bl, bl
je 0x409911
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409930
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4098a8
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
je 0x41541c
pushal
pop ds
adc ebp, ebx
arpl word [edi], bp
invalid
mov eax, dword [0xf1a1fb01]
push 0x89f4267f
jbe 0x4153a3
out 0xcb, al
push ds
or eax, 0xdb446002
or dh, byte [edi + 0x4e]
invalid
mov dword [edi - 0x1f], esi
scasb al, byte es:[edi]
aaa
mov byte [esi], bl
hlt
Function at 0xa86370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xa8638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xaaf074
push ecx
mov edi, eax
call fcn.00a9a198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa863cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a9a02e
push esi
call fcn.00a99fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret