joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dl, byte [esp + 0x7f]
mov dh, dl
or dh, 0xde
mov byte [esp + 0x7f], dh
mov esi, dword [esp + 0x4c]
mov edi, esp
lea ebx, [esp + 0x58]
mov dword [edi], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov byte [esp + 0x33], dl
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
call fcn.10006140
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov edi, esp
mov ebx, dword [esp + 0x28]
mov dword [edi], ebx
mov dword [edi + 8], 0x18
mov dword [edi + 4], 0x1002675f
mov byte [esp + 0x27], al
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
call fcn.10006170
mov ax, word [esp + 0x52]
mov ecx, esp
mov esi, dword [esp + 0x28]
mov dword [ecx], esi
mov word [esp + 0x1a], ax
call fcn.10006530
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x84], ecx
mov esi, dword [esp + 0x20]
mov dword [esp + 0x80], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x4c], 0x25d3ac34
cmp eax, 0
je 0x100064f9
mov ax, word [esp + 0x1a]
xor ax, 0xffff
mov word [esp + 0x52], ax
mov ecx, dword [ebp + 0xc]
mov byte [esp + 0x7f], 0x26
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
call fcn.10006d50
mov dx, ax
mov word [esp + 0x40], dx
mov word [esp + 0x42], dx
mov dx, word [esp + 0x1a]
or dx, dx
mov si, word [esp + 0x42]
mov word [esp + 0x52], dx
movzx eax, si
cmp eax, 0
je 0x10006503
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
mov edx, esp
lea esi, [esp + 0x3c]
mov dword [edx + 0xc], esi
lea esi, [esp + 0x40]
mov dword [edx + 4], esi
mov dword [edx], ecx
mov dword [edx + 8], 0
call eax
sub esp, 0x10
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, 0x55afd227
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, ecx
mov edx, dword [esp + 0x14]
mul edx
mov esi, dword [esp + 0x1c]
imul edi, esi, 0x55afd227
add edx, edi
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], eax
jmp 0x10006515
mov dword [esp + 0x48], 0
jmp 0x10006515
mov dword [esp + 0x48], 0
mov al, byte [esp + 0x33]
or al, al
mov byte [esp + 0x7f], al
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
sub ecx, ecx
mov dword [esp + 0x4c], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402530
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
push edi
test edx, edx
je 0x4026aa
mov edi, dword [ebp + 8]
test edi, edi
je 0x4026aa
mov dword [edi + 0xf0], 0xa
mov ecx, dword [edx]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
push ebx
mov ebx, 0xff00ff
and ecx, ebx
or eax, ecx
mov dword [edi], eax
mov ecx, dword [edx + 4]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, ebx
or eax, ecx
push esi
lea esi, [edi + 4]
mov dword [esi], eax
mov ecx, dword [edx + 8]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, ebx
or eax, ecx
mov dword [edi + 8], eax
mov eax, dword [edx + 0xc]
mov edx, eax
rol eax, 8
and eax, ebx
ror edx, 8
and edx, 0xff00ff00
mov ebx, 0xff
or edx, eax
mov eax, edx
mov dword [edi + 0xc], edx
shr eax, 0x10
and eax, ebx
mov ecx, dword [eax*4 + 0x5e3c90]
mov eax, edx
shr eax, 8
xor ecx, 0x1000000
and eax, ebx
and ecx, 0xff000000
mov eax, dword [eax*4 + 0x5e3890]
and eax, 0xff0000
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x5e4490]
and eax, 0xff00
xor ecx, eax
mov eax, dword [esi]
xor ecx, dword [edi]
xor eax, ecx
mov dword [edi + 0x10], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 0x14], eax
xor ecx, eax
mov eax, edx
mov dword [edi + 0x18], ecx
xor eax, ecx
mov dword [edi + 0x1c], eax
mov edi, 0x5e2764
lea esi, [esi + 0x10]
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 8
and eax, ebx
mov edx, dword [eax*4 + 0x5e3890]
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
and eax, ebx
mov eax, dword [eax*4 + 0x5e3c90]
and eax, 0xff000000
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5e4090]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0x5e4490]
and eax, 0xff00
xor edx, eax
xor edx, dword [esi - 4]
xor edx, dword [edi]
add edi, 4
mov dword [esi + 0xc], edx
mov eax, dword [esi]
xor eax, edx
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi + 0x14], ecx
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + 0x18], eax
cmp edi, 0x5e2788
jne 0x40262b
pop esi
xor eax, eax
pop ebx
jmp 0x4026ad
or eax, 0xffffffff
pop edi
pop ebp
ret
Function at 0x4026b0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00402530
pop ecx
test eax, eax
js 0x40288c
push esi
push edi
mov edi, dword [ebx + 0xf0]
shl edi, 2
test edi, edi
jle 0x40271f
lea edx, [ebx + 8]
lea esi, [ebx + 8]
xor ebx, ebx
lea edx, [edx + edi*4]
mov ecx, dword [esi - 8]
add ebx, 4
mov eax, dword [edx - 8]
sub edi, 4
mov dword [esi - 8], eax
mov eax, dword [edx - 4]
mov dword [edx - 8], ecx
mov ecx, dword [esi - 4]
mov dword [esi - 4], eax
mov eax, dword [edx]
mov dword [edx - 4], ecx
mov ecx, dword [esi]
mov dword [esi], eax
lea esi, [esi + 0x10]
mov eax, dword [edx + 4]
mov dword [edx], ecx
lea edx, [edx - 0x10]
mov ecx, dword [esi - 0xc]
mov dword [esi - 0xc], eax
mov dword [edx + 0x14], ecx
cmp ebx, edi
jl 0x4026e0
mov ebx, dword [ebp + 8]
xor edi, edi
inc edi
cmp dword [ebx + 0xf0], edi
jle 0x402888
lea esi, [ebx + 2]
lea esi, [esi + 0x10]
mov edx, dword [esi - 2]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x5e4090]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x5e3490]
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e2c90]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e3090]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e2890]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x5e4090]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x5e3490]
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e2c90]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e3090]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e2890]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x5e4090]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x5e3490]
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e2c90]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e3090]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e2890]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x5e4090]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x5e3490]
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e2c90]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e3090]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5e4090]
xor ecx, dword [eax*4 + 0x5e2890]
inc edi
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x402731
pop edi
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x403bfe
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x595b7c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 0x10]
lea ecx, [esp + 0x10]
call fcn.00403e94
and dword [esp + 0x30], 0
lea eax, [esp + 0xc]
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00403b9d
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.0040412f
mov dword [esi], vtable.std::system_error.0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410093
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x610490]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
lea edx, [ebp - 0x3ec]
cmovae ecx, dword [ebp + 8]
call fcn.00417da5
lea eax, [ebp - 0x3ec]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040412f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00559b09
mov esp, ebp
pop ebp
ret
Function at 0x4101e7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x597402
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x610490]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x610490]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x14], ebx
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.MYDATA
movzx edx, bx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test esi, esi
jne 0x410326
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5e268d
call fcn.00403e94
and dword [esp + 0x100], esi
lea ecx, [esp + 0x90]
mov edx, dword [esp + 0x28]
call fcn.00404abc
mov esi, eax
mov edx, ebx
mov byte [esp + 0x100], 1
lea ecx, [esp + 0x30]
call fcn.00404b03
push eax
mov edx, str.FindResource_err
mov byte [esp + 0x104], 2
lea ecx, [esp + 0x64]
call fcn.00404c2b
mov byte [esp + 0x104], 3
lea ecx, [esp + 0xc4]
mov edx, eax
mov dword [esp], str.ierr
call fcn.00404c5b
sub esp, 0x14
mov byte [esp + 0x118], 4
mov ecx, esp
mov edx, eax
push esi
call fcn.00404c8d
pop ecx
mov byte [esp + 0x118], 8
call fcn.0042feaf
add esp, 0x30
lea ecx, [esp + 0xa8]
xor esi, esi
xor ebx, ebx
inc ebx
push esi
push ebx
call fcn.0040412f
push esi
push ebx
lea ecx, [esp + 0x50]
call fcn.0040412f
push esi
push ebx
lea ecx, [esp + 0x20]
call fcn.0040412f
lea ecx, [esp + 0x78]
jmp 0x410420
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410353
test ebx, ebx
je 0x410353
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
mov dword [edi + 4], ebx
jmp 0x41042c
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x5e268d
call fcn.00403e94
mov edx, ebx
mov dword [esp + 0x100], 9
lea ecx, [esp + 0xd8]
call fcn.0040ff8e
mov esi, eax
mov byte [esp + 0x100], 0xa
lea ecx, [esp + 0xa8]
mov edx, dword [esp + 0x2c]
call fcn.00404b03
push eax
mov edx, str.FindResource_err
mov byte [esp + 0x104], 0xb
lea ecx, [esp + 0x7c]
call fcn.00404c2b
mov byte [esp + 0x104], 0xc
lea ecx, [esp + 0x4c]
mov edx, eax
mov dword [esp], str.nResSize
call fcn.00404c5b
sub esp, 0x14
mov byte [esp + 0x118], 0xd
mov ecx, esp
mov edx, eax
push esi
call fcn.00404c8d
pop ecx
mov byte [esp + 0x118], 0x11
call fcn.0042feaf
add esp, 0x30
lea ecx, [esp + 0x30]
xor esi, esi
xor ebx, ebx
inc ebx
push esi
push ebx
call fcn.0040412f
push esi
push ebx
lea ecx, [esp + 0x68]
call fcn.0040412f
push esi
push ebx
lea ecx, [esp + 0x98]
call fcn.0040412f
lea ecx, [esp + 0xc0]
push esi
push ebx
call fcn.0040412f
mov dword [edi + 4], esi
mov dword [edi], esi
mov eax, edi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00559b09
mov esp, ebp
pop ebp
ret
Function at 0x410d2b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xcc
mov eax, 0x597684
call fcn.0055da28
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 2
push 0x85
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
jne 0x410e11
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x5e268d
call fcn.00403e94
and dword [ebp - 4], esi
lea ecx, [ebp - 0x90]
mov edx, ebx
call fcn.00404abc
mov esi, eax
xor ebx, ebx
lea ecx, [ebp - 0x30]
inc ebx
mov edx, 0x85
mov byte [ebp - 4], bl
call fcn.00404b03
push eax
mov edx, str.FindResource_err
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00404c2b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
mov edx, eax
mov dword [esp], str._ierr
call fcn.00404c5b
sub esp, 0x14
mov byte [ebp - 4], 4
mov ecx, esp
mov edx, eax
push esi
call fcn.00404c8d
pop ecx
mov byte [ebp - 4], 8
call fcn.0042feaf
add esp, 0x30
lea ecx, [ebp - 0xc0]
xor esi, esi
push esi
push ebx
call fcn.0040412f
push esi
push ebx
lea ecx, [ebp - 0x60]
call fcn.0040412f
push esi
push ebx
lea ecx, [ebp - 0x30]
call fcn.0040412f
lea ecx, [ebp - 0x90]
jmp 0x410eeb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410e3e
test ebx, ebx
je 0x410e3e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
mov dword [edi + 4], ebx
jmp 0x410ef7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x5e268d
call fcn.00403e94
mov edx, ebx
mov dword [ebp - 4], 9
lea ecx, [ebp - 0xd8]
call fcn.0040ff8e
mov esi, eax
mov edx, 0x85
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa8]
call fcn.00404b03
push eax
mov edx, str.FindResource_err
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x78]
call fcn.00404c2b
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x48]
mov edx, eax
mov dword [esp], str._nResSize
call fcn.00404c5b
sub esp, 0x14
mov byte [ebp - 4], 0xd
mov ecx, esp
mov edx, eax
push esi
call fcn.00404c8d
pop ecx
mov byte [ebp - 4], 0x11
call fcn.0042feaf
add esp, 0x30
lea ecx, [ebp - 0x48]
xor esi, esi
xor ebx, ebx
inc ebx
push esi
push ebx
call fcn.0040412f
push esi
push ebx
lea ecx, [ebp - 0x78]
call fcn.0040412f
push esi
push ebx
lea ecx, [ebp - 0xa8]
call fcn.0040412f
lea ecx, [ebp - 0xd8]
push esi
push ebx
call fcn.0040412f
mov dword [edi + 4], esi
mov dword [edi], esi
mov eax, edi
call fcn.0055d9d7
ret
Function at 0x412cec
Capabilities:
Accept command line arguments

Disassembly:
push 0x7c
mov eax, 0x597c94
call fcn.0055da28
mov ebx, ecx
mov dword [ebp - 0x80], ebx
xor esi, esi
mov dword [ebp - 4], esi
push 0x5e268d
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x7c], esi
call fcn.00403e94
xor edi, edi
mov dword [ebp - 4], esi
inc edi
mov dword [ebp - 0x7c], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.00417df7
mov dword [ebp - 4], edi
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
push 0x5e5874
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00403e94
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x74]
call fcn.00417acd
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
pop ecx
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
sub eax, edi
cdq
mov dword [ebp - 0x78], 0x18
idiv dword [ebp - 0x78]
test eax, eax
je 0x412df3
mov ebx, dword [ebp - 0x78]
mov esi, eax
push edi
lea ecx, [ebp - 0x44]
call fcn.00403e6e
mov edx, 0x5e268d
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.004057ed
test al, al
jne 0x412dd5
mov edx, 0x5e58dc
lea ecx, [ebp - 0x44]
call fcn.004057ed
test al, al
jne 0x412dd5
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e19e
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0040412f
add edi, ebx
dec esi
jne 0x412d9a
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x80]
sub ecx, esi
mov eax, ecx
cdq
idiv dword [ebp - 0x78]
cmp eax, 2
jb 0x412e13
lea eax, [esi + 0x18]
cmp ebx, eax
je 0x412e13
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.0040409b
lea ecx, [ebp - 0x20]
call fcn.004057b5
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040412f
lea ecx, [ebp - 0x2c]
call fcn.004057b5
push 0
push 1
lea ecx, [ebp - 0x74]
call fcn.0040412f
mov eax, ebx
call fcn.0055d9d7
ret

Function at 0x414315
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ecx + 0x130]
sub eax, dword [ecx + 0x134]
cmp eax, 0x28
jl method.AgentAppLink.virtual_0
ret
cmp byte [ecx + 0x61], 0
jne 0x42e2ac
cmp byte [ecx + 0x60], 0
je 0x42e2ac
mov byte [ecx + 0x60], 0
jmp fcn.0042e2ad
ret
Function at 0x41728d
Capabilities:
Check os version
Get system information on windows

Disassembly:
push 0x14c
mov eax, 0x5982bd
call fcn.0055da28
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x5e268d
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x154], ebx
call fcn.00403e94
lea eax, [ebp - 0x34]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x154], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, str.unknown_OperatingSystem.
mov dword [ebp - 0x150], 0x11c
push edi
call fcn.004035ea
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004042b9
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x417423
mov eax, dword [ebp - 0x14c]
sub eax, 4
je 0x4173d3
dec eax
je 0x417379
dec eax
jne 0x417423
mov eax, dword [ebp - 0x148]
sub eax, ebx
je 0x41735f
dec eax
je 0x417345
dec eax
jne 0x417423
cmp byte [ebp - 0x36], 1
jne 0x417423
mov edi, str.Microsoft_Windows_10
jmp 0x417413
cmp byte [ebp - 0x36], 1
jne 0x417355
mov edi, str.Microsoft_Windows_7
jmp 0x417413
mov edi, str.Microsoft_Windows_Server_2008_R2
jmp 0x417413
cmp byte [ebp - 0x36], 1
jne 0x41736f
mov edi, str.Microsoft_Windows_Vista
jmp 0x417413
mov edi, str.Microsoft_Windows_Server_2008
jmp 0x417413
mov eax, dword [ebp - 0x148]
sub eax, ebx
je 0x4173cc
dec eax
je 0x4173c5
dec eax
jne 0x417423
cmp byte [ebp - 0x36], 1
jne 0x4173a1
cmp word [ebp - 0x34], 9
jne 0x4173a1
mov edi, str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x417413
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x4173b6
mov edi, str.Microsoft_Windows_Server_2003
jmp 0x417413
push 0x59
call edi
test eax, eax
je 0x417423
mov edi, str.Microsoft_Windows_Server_2003_R2
jmp 0x417413
mov edi, str.Microsoft_Windows_XP
jmp 0x417413
mov edi, str.Microsoft_Windows_2000
jmp 0x417413
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x4173f5
cmp eax, 0xa
je 0x4173ee
cmp eax, 0x5a
jne 0x417423
mov edi, str.Microsoft_Windows_Me
jmp 0x417413
mov edi, str.Microsoft_Windows_98
jmp 0x417413
cmp dword [ebp - 0x140], 2
jne 0x417405
mov edi, str.Microsoft_Windows_NT_4.0
jmp 0x417413
cmp dword [ebp - 0x140], 1
jne 0x417423
mov edi, str.Microsoft_Windows_95
push edi
call fcn.004035ea
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004042b9
mov eax, esi
call fcn.0055d9d7
ret
Function at 0x4176f8
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
mov dword [ebp - 0x18], edx
cmp byte [ecx], 0
je 0x4177fc
add ecx, 2
push ebx
mov dword [ebp - 0x14], ecx
push edi
or dword [ebp - 8], 0xffffffff
mov edi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov bh, byte [ecx - 2]
xor bl, bl
mov dl, byte [ebp - 8]
cmp byte [edi], bh
movzx eax, bl
movzx edx, dl
cmove edx, eax
inc bl
inc edi
cmp bl, 0x40
jb 0x417726
mov bh, byte [ecx - 1]
xor bl, bl
mov dword [ebp - 0x10], edx
mov edi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dl, byte [ebp - 7]
cmp byte [edi], bh
movzx eax, bl
movzx edx, dl
cmove edx, eax
inc bl
inc edi
cmp bl, 0x40
jb 0x417749
mov bl, byte [ebp - 6]
mov edi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [ebp - 0xc], edx
xor dl, dl
mov dh, byte [ecx]
cmp byte [edi], dh
movzx eax, dl
movzx ebx, bl
cmove ebx, eax
inc dl
inc edi
cmp dl, 0x40
jb 0x41776b
mov al, byte [ecx + 1]
mov edi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dl, byte [ebp - 5]
mov ch, al
mov byte [ebp - 1], 0
mov cl, byte [ebp - 1]
mov byte [ebp - 2], al
cmp byte [edi], ch
movzx eax, cl
movzx edx, dl
cmove edx, eax
inc cl
inc edi
cmp cl, 0x40
jb 0x417795
mov al, byte [ebp - 0xc]
shl byte [ebp - 0x10], 2
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
shr al, 4
and al, 3
or al, byte [ebp - 0x10]
mov byte [esi + edi], al
inc esi
cmp byte [ecx], 0x3d
je 0x4177fa
shl byte [ebp - 0xc], 4
mov al, bl
shr al, 2
and al, 0xf
or al, byte [ebp - 0xc]
mov byte [esi + edi], al
inc esi
cmp byte [ecx + 1], 0x3d
je 0x4177fa
and dl, 0x3f
shl bl, 6
or dl, bl
add ecx, 4
mov byte [esi + edi], dl
inc esi
mov dword [ebp - 0x14], ecx
cmp byte [ecx - 2], 0
jne 0x417715
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e297
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x610490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov esi, edx
mov dword [ebp - 0x24], eax
push edi
mov edi, ebx
cmp dword [ecx + 0x10], ebx
je 0x41e3c6
cmp dword [esi + 0x10], ebx
je 0x41e3c6
cmp dword [esi + 0x14], 0x10
jb 0x41e2d5
mov eax, dword [esi]
jmp 0x41e2d7
mov eax, esi
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41e3c6
push 0x61d0b4
push eax
call fcn.0055b7b3
mov dword [ebp - 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x41e3c6
cmp dword [esi + 0x14], 0x10
jb 0x41e30d
mov esi, dword [esi]
push eax
push dword [ebp - 0x18]
push dword [ebp - 8]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
mov esi, dword [ebp - 0x1c]
test eax, eax
je 0x41e3b4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x41e3b4
mov eax, dword [ebp - 0x14]
push 0x61d0b4
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x18], ecx
call fcn.0055b7b3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41e3b4
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0x10
jb 0x41e372
mov eax, dword [eax]
push eax
push dword [ebp - 0x18]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.0055a40c
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x41e3b2
push dword [ebp - 0x10]
call fcn.004035ea
pop ecx
mov ecx, dword [ebp - 0x24]
push eax
push dword [ebp - 0x10]
call fcn.004042b9
mov bl, 1
push esi
call fcn.00431ca0
pop ecx
test edi, edi
je 0x41e3c6
push edi
call fcn.00431ca0
pop ecx
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00559b09
mov esp, ebp
pop ebp
ret

Function at 0x41e553
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41e562
xor al, al
ret
shr al, 4
and al, 1
ret