joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100123e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.10037d00
mov eax, dword [0x10070470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x101c], edx
push edi
lea ecx, [ebp - 0x1008]
mov dword [ebp - 0x100c], ebx
xor esi, esi
mov dword [ebp - 0x1018], ecx
mov edi, 0x1000
mov dword [ebp - 0x1010], esi
mov dword [ebp - 0x1014], edi
mov eax, edi
sub eax, esi
cmp eax, 0x1000
jae 0x1001250d
add edi, edi
mov eax, edi
sub eax, esi
cmp eax, 0x1000
jae 0x10012449
lea edi, [esi + 0x1000]
cmp edi, esi
jb 0x10012572
mov eax, edi
sub eax, esi
cmp eax, 0x1000
jb 0x10012572
push edi
push ebx
call sym.lua53.dll_lua_newuserdata
push dword [ebp - 0x1010]
mov esi, eax
push dword [ebp - 0x1018]
mov dword [ebp - 0x1020], esi
push esi
call fcn.10036420
lea eax, [ebp - 0x1008]
add esp, 0x14
cmp dword [ebp - 0x1018], eax
je 0x100124f5
push 0xffffffffffffffff
push 0xfffffffffffffffe
push ebx
call sym.lua53.dll_lua_rotate
add esp, 0xc
cmp dword [0x100725a0], 0
jne 0x100124bd
push 0x10072588
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x100725a0], 1
push 0x10072588
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [ebx + 8], 0xfffffff0
cmp dword [0x100725a0], 0
jne 0x100124ea
push 0x10072588
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x100725a0], 1
push 0x10072588
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x1020]
mov dword [ebp - 0x1018], esi
mov esi, dword [ebp - 0x1010]
mov dword [ebp - 0x1014], edi
push dword [ebp - 0x101c]
lea eax, [ecx + esi]
push 0x1000
push 1
push eax
call fcn.1002c931
mov esi, dword [ebp - 0x1010]
add esp, 0x10
add esi, eax
mov dword [ebp - 0x1010], esi
cmp eax, 0x1000
jne 0x10012552
mov ebx, dword [ebp - 0x100c]
mov edi, dword [ebp - 0x1014]
mov ecx, dword [ebp - 0x1018]
jmp 0x10012427
lea eax, [ebp - 0x1018]
push eax
call sym.lua53.dll_luaL_pushresult
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1002bd68
mov esp, ebp
pop ebp
ret
push str.buffer_too_large
push ebx
call sym.lua53.dll_luaL_error
int3

Function at 0x10012580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10037d00
mov eax, dword [0x10070470]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x100c]
push edi
mov dword [ebp - 0x101c], eax
mov edi, edx
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x1010], ecx
push esi
push eax
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1018], 0x1000
call sym.lua53.dll_luaL_prepbuffsize
push edi
push esi
push 1
push eax
call fcn.1002c931
mov esi, eax
lea eax, [ebp - 0x101c]
add dword [ebp - 0x1014], esi
push eax
call sym.lua53.dll_luaL_pushresult
mov ecx, dword [ebp - 8]
add esp, 0x1c
xor eax, eax
cmp eax, esi
sbb eax, eax
xor ecx, ebp
pop edi
neg eax
pop esi
call fcn.1002bd68
mov esp, ebp
pop ebp
ret
Function at 0x100139b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push esi
push dword [ebp + 8]
call fcn.100135c8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10013613
push eax
push esi
push dword [ebp + 8]
call fcn.100135c8
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10013613
push eax
push esi
push dword [ebp + 8]
call fcn.100135c8
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10013603
dec ecx
insd dword es:[edi], dx
shr dword [ecx - 0x78], 1
popfd
jl 0x10013a88
invalid
invalid
Function at 0x10019650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 4], eax
xorps xmm1, xmm1
mov eax, dword [ebp - 0xc]
push esi
mov esi, ecx
push edi
mov dword [eax], esi
xor edi, edi
movzx eax, byte [esi]
test byte [eax + 0x100560a1], 8
je 0x1001968e
lea ecx, [ecx]
movzx eax, byte [esi + 1]
inc esi
test byte [eax + 0x100560a1], 8
jne 0x10019680
mov al, byte [esi]
cmp al, 0x2d
jne 0x1001969e
inc esi
mov dword [ebp - 0x14], 1
jmp 0x100196a6
cmp al, 0x2b
jne 0x100196a3
inc esi
mov dword [ebp - 0x14], edx
cmp byte [esi], 0x30
jne 0x100197da
mov al, byte [esi + 1]
cmp al, 0x78
je 0x100196be
cmp al, 0x58
jne 0x100197da
movsd xmm2, qword [0x100587f0]
add esi, 2
lea esp, [esp]
mov cl, byte [esi]
cmp cl, 0x2e
jne 0x100196e7
cmp dword [ebp - 4], 0
jne 0x1001973b
mov dword [ebp - 4], 1
inc esi
jmp 0x100196d0
movzx eax, cl
test byte [eax + 0x100560a1], 0x10
je 0x1001973b
test edx, edx
jne 0x10019701
cmp cl, 0x30
jne 0x10019701
inc dword [ebp - 8]
jmp 0x10019731
inc edx
cmp edx, 0x1e
jg 0x10019730
movsx eax, cl
test byte [eax + 0x100560a1], 2
je 0x10019718
add eax, 0xffffffd0
jmp 0x1001971e
or eax, 0x20
sub eax, 0x57
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x10019731
inc edi
cmp dword [ebp - 4], 0
je 0x10019738
dec edi
inc esi
jmp 0x100196d0
mov eax, dword [ebp - 8]
add eax, edx
je 0x100197da
mov eax, dword [ebp - 0xc]
shl edi, 2
mov dword [eax], esi
mov al, byte [esi]
cmp al, 0x70
je 0x10019758
cmp al, 0x50
jne 0x100197ad
mov al, byte [esi + 1]
inc esi
xor ecx, ecx
cmp al, 0x2d
jne 0x1001976c
inc esi
mov dword [ebp - 8], 1
jmp 0x10019774
cmp al, 0x2b
jne 0x10019771
inc esi
mov dword [ebp - 8], ecx
mov dl, byte [esi]
movzx eax, dl
test byte [eax + 0x100560a1], 2
je 0x100197da
movsx eax, dl
lea ecx, [ecx + ecx*4]
mov dl, byte [esi + 1]
lea ecx, [ecx - 0x18]
inc esi
lea ecx, [eax + ecx*2]
movzx eax, dl
test byte [eax + 0x100560a1], 2
jne 0x10019782
cmp dword [ebp - 8], 0
je 0x100197a6
neg ecx
mov eax, dword [ebp - 0xc]
add edi, ecx
mov dword [eax], esi
cmp dword [ebp - 0x14], 0
je 0x100197bb
xorpd xmm1, xmmword [0x10058840]
push edi
sub esp, 8
movsd qword [esp], xmm1
call fcn.1002f442
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xorps xmm0, xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001fc60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10070470]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov esi, ecx
call fcn.100303e6
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], esi
add esp, 4
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0x10056510
lea edi, [ebp - 5]
mov dword [ebp - 8], sym.lua53.dll_lua_newstate
xor eax, 0x10
mov esi, 0x10
movzx edx, byte [edi + esi - 0x10]
mov ecx, eax
shl ecx, 5
dec esi
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
cmp esi, 1
jae 0x1001fca0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002bd68
mov esp, ebp
pop ebp
ret
Function at 0x10020560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edi, esi
mov eax, esi
xor eax, dword [ebp + 8]
shr edi, 5
inc edi
cmp esi, edi
jb 0x1002059b
lea esp, [esp]
movzx edx, byte [ebx + esi - 1]
mov ecx, eax
shl ecx, 5
sub esi, edi
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
cmp esi, edi
jae 0x10020580
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10020730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, ecx
mov dword [ebp - 0xc], edx
push esi
push edi
mov dword [ebp - 8], eax
mov edi, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov esi, eax
shr esi, 5
mov edx, eax
inc esi
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0x38]
xor ebx, eax
cmp eax, esi
jb 0x1002077e
mov edi, dword [ebp - 0xc]
mov edi, edi
movzx ecx, byte [edi + edx - 1]
mov eax, ebx
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, esi
jae 0x10020760
mov edi, dword [ebp - 4]
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x14], edx
lea ecx, [edx - 1]
and ecx, ebx
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x10020816
mov ecx, dword [ebp + 8]
lea esp, [esp]
cmp ecx, dword [edi + 0xc]
jne 0x1002080c
mov edx, dword [ebp - 0xc]
lea eax, [edi + 0x18]
mov esi, ecx
sub esi, 4
jb 0x100207c3
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x100207cc
add edx, 4
add eax, 4
sub esi, 4
jae 0x100207b2
cmp esi, 0xfffffffc
je 0x100208a8
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10020809
cmp esi, 0xfffffffd
je 0x100208a8
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10020809
cmp esi, 0xfffffffe
je 0x100208a8
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10020809
cmp esi, 0xffffffff
je 0x100208a8
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x100208a8
mov ecx, dword [ebp + 8]
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x100207a0
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cmp dword [esi + 0x1c], edx
jl 0x10020841
cmp edx, 0x3fffffff
jg 0x10020841
add edx, edx
mov ecx, edi
call fcn.100205a0
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
and ecx, ebx
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov esi, dword [edi + 0xc]
add eax, 0x19
push eax
push 4
mov ecx, edi
call fcn.10016f10
mov cl, byte [esi + 0x3c]
mov edi, eax
and cl, 3
mov byte [edi + 5], cl
lea eax, [edi + 0x18]
mov byte [edi + 4], 4
mov ecx, dword [esi + 0x40]
mov dword [edi], ecx
mov dword [esi + 0x40], edi
mov esi, dword [ebp + 8]
push esi
push dword [ebp - 0xc]
mov dword [edi + 0xc], esi
push eax
mov dword [edi + 8], ebx
mov byte [edi + 6], 0
call fcn.10036420
mov ecx, dword [ebp - 0x10]
add esp, 0x14
mov byte [edi + esi + 0x18], 0
mov eax, dword [ecx]
mov dword [edi + 0x10], eax
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
inc dword [ecx + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [edi + 5]
xor al, 3
mov cl, byte [ecx + 0x3c]
xor cl, 3
test al, cl
jne 0x1002089f
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4019fe
Capabilities:
Start service

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp]
call fcn.00402000
mov dword [esp + 0x10], 0
push 0xf000f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerW
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
and ebx, ebx
jne 0x401a96
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
cmp ebx, 5
jne 0x401a94
push 0x80000000
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerW
mov dword [esp + 4], eax
push 0x20000000
mov eax, dword [esp + 4]
push eax
push dword [esp + 0xc]
call sub.ADVAPI32.DLL_OpenServiceW
mov dword [esp + 8], eax
push 0
push 0
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_StartServiceA
and eax, eax
je 0x401a94
mov dword [esp + 0x10], 1
jmp 0x401aeb
push 0x20000000
mov eax, dword [esp + 4]
push eax
push dword [esp + 0xc]
call sub.ADVAPI32.DLL_OpenServiceW
mov dword [esp + 8], eax
push 0
push 0
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_StartServiceA
and eax, eax
je 0x401ace
mov dword [esp + 0x10], 1
jmp 0x401aeb
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
cmp ebx, 0x420
jne 0x401aeb
mov dword [esp + 0x10], 1
cmp dword [esp + 8], 0
je 0x401afb
push dword [esp + 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
cmp dword [esp + 4], 0
je 0x401b0b
push dword [esp + 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, dword [esp + 0x10]
jmp 0x401b13
push dword [esp]
call fcn.00402d80
add esp, 0x14
pop ebx
ret 4
Function at 0x401d22
Capabilities:
Enumerate processes

Disassembly:
push ebp
push ebx
mov edx, 0x90
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x401d29
mov edx, dword [esp + 0x24c]
lea ecx, [esp]
call fcn.00402000
mov dword [esp + 4], 0
mov dword [esp + 8], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
cmp ebx, 0xffffffff
je 0x401e9b
lea eax, [esp + 0x10]
lea ebp, [esp + 0x10]
mov dword [ebp], 0x22c
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x401e92
push dword [0x4059bc]
push dword [0x4059bc]
push dword [0x4059bc]
push dword [0x4059bc]
push 0x104
lea ebp, [esp + 0x24]
lea eax, [ebp + 0x24]
push eax
call fcn.004026f0
mov edx, dword [0x40543c]
add dword [esp], edx
call fcn.00402120
add dword [0x4059bc], 2
mov edx, dword [esp + 4]
pop ecx
mov dword [0x4059bc], ecx
add ecx, dword [0x40543c]
call fcn.00402080
je 0x401e6f
lea eax, [esp + 8]
push eax
lea ebp, [esp + 0x14]
push dword [ebp + 8]
call sub.KERNEL32.dll_ProcessIdToSessionId
mov ebx, dword [esp + 8]
cmp ebx, dword [esp + 0x250]
je 0x401e21
push dword [esp]
mov edx, str.winlogon.exe
pop ecx
call fcn.00402080
je 0x401e21
jmp 0x401e28
mov eax, 1
jmp 0x401e2a
xor eax, eax
and eax, eax
je 0x401e6f
push dword [0x4059bc]
lea ebp, [esp + 0x14]
push dword [ebp + 8]
call fcn.00401b22
lea eax, [esp + 0x240]
push eax
call fcn.00402ca0
push dword [esp + 0x23c]
mov edx, str.SystemIntegrityLevel
pop ecx
call fcn.00402080
je 0x401e6f
lea ebp, [esp + 0x10]
push dword [ebp + 8]
pop eax
mov dword [esp + 4], eax
jmp 0x401e92
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call sub.KERNEL32.dll_Process32NextW
and eax, eax
je 0x401e85
xor eax, eax
jmp 0x401e8a
mov eax, 1
and eax, eax
je 0x401d9a
push dword [esp + 0xc]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [esp + 4]
jmp 0x401ea3
push dword [esp + 0x23c]
call fcn.00402d80
push dword [esp]
call fcn.00402d80
add esp, 0x240
pop ebx
pop ebp
ret 8
Function at 0x4024b1
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x4059c8]
call fcn.00402989
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x4025b1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x402507
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x4024ff
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x402547
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x402589
push 0x22
pop edx
cmp cx, dx
je 0x402539
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x402529
xor ecx, ecx
cmp word [eax], cx
je 0x402589
mov ecx, eax
add eax, 2
jmp 0x40258b
test dx, dx
je 0x402591
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x402539
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x40257f
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x402589
cmp cx, dx
je 0x40257c
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40256c
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x402551
jmp 0x402539
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x402593
xor edx, edx
cmp dword [ebp], ebx
jne 0x40259c
test edi, edi
jne 0x4025b9
test edx, edx
je 0x4025a1
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4024f5
test edi, edi
jne 0x4025ca
mov eax, ebx
jmp 0x4025ce
test esi, esi
je 0x4025ca
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x4025ce
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x407539
Capabilities:
Check os version
Terminate process

Disassembly:
and esi, 0xffffffff
neg ecx
mov dword [0x410edb], esi
and edi, 0xffffffff
not ecx
mov dword [0x410ed7], edi
and ebx, 0xffffffff
not ecx
mov dword [0x410ee7], ebx
pop eax
jmp fcn.00403f7c

Function at 0x408091
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x4080a0
pop dword [ebp - 0x20]
mov eax, 0x5124c2f8
sub eax, 0x50e44258
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x52b9d
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x5244
xor edx, edx
add edx, eax
mov ebx, 0x488e00
add ebx, dword [ebp - 0x20]
mov edi, 0x297cb7c
sub edi, 0x5935d41a
add dword [ebp - 4], edx
mov esi, dword [ebx]
add dword [ebp - 0xc], ecx
xor esi, edi
xor dword [ebp - 4], edi
mov dword [edx], esi
sub dword [ebp - 0x1c], ecx
add edx, 4
add ebx, 0x220d2165
add ebx, 0xddf2de9f
loop 0x4080f0
add eax, 0x13be3
xor ebx, ebx
add ebx, eax
add eax, 0x46e93551
add eax, 0xb916cab4
mov ecx, 0x99146cd3
add ecx, 0x672b932d
add ecx, dword [ebp - 0x20]
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 0x40258d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4025cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4025cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4025cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4025cc
cmp dword [ecx + 0x74], 0xe
jbe 0x4025cc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4013dd
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
mov ecx, 0x40d00c
xor eax, eax
movzx edi, dx
mov esi, ecx
cmp edi, dword [esi]
je 0x401401
inc eax
add esi, 0x10
cmp eax, 0x11
jb 0x4013f4
cmp eax, 0x11
jne 0x401427
mov esi, 0x3ff
xor eax, eax
and edx, esi
push ebx
mov di, word [ecx]
mov ebx, esi
and di, bx
cmp dx, di
je 0x401426
inc eax
add ecx, 0x10
cmp eax, 0x10
jb 0x401410
pop ebx
pop edi
pop esi
ret

Function at 0x40145c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.SetDllDirectoryA
mov ebx, str.kernel32.dll
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x40148a
push 0x4091bc
call eax
cmp byte [ebp + 0x10], 0
je 0x401517
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp + 0x10], 3
mov dword [ebp - 4], eax
jl 0x401504
push dword [eax + 4]
push str._stdio
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x401504
push eax
push eax
push 4
push eax
push eax
mov eax, dword [ebp - 4]
push 0xc0000000
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4014ea
push 5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push ebx
push 0xfffffffffffffff6
call edi
test eax, eax
je 0x4014e2
push ebx
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x401517
jmp 0x4014e2
push str.AttachConsole
push ebx
call esi
push eax
call edi
test eax, eax
je 0x401517
push 0xffffffffffffffff
call eax
and dword [ebp - 4], 0
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040107e
mov ebx, eax
xor edi, edi
add esp, 0x10
cmp ebx, edi
je 0x40155f
call fcn.004013dd
push edi
push 0x30
push str.Adobe_AIR
push edi
push eax
call fcn.0040142a
pop ecx
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxExW]
mov eax, ebx
jmp 0x401569
push dword [ebp + 0x10]
push edi
call esi
push eax
call dword [ebp - 4]
push eax
jmp 0x4014e4
Function at 0x403723
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004025d7
and dword [ebp - 4], 0
cmp dword [0x40e600], 0
mov ebx, eax
jne 0x4037d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403885
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403885
push eax
call fcn.00402565
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e600], eax
call esi
push eax
call fcn.00402565
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e604], eax
call esi
push eax
call fcn.00402565
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e608], eax
call esi
push eax
call fcn.00402565
pop ecx
mov dword [0x40e610], eax
test eax, eax
je 0x4037d4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402565
pop ecx
mov dword [0x40e60c], eax
mov eax, dword [0x40e60c]
cmp eax, ebx
je 0x40382c
cmp dword [0x40e610], ebx
je 0x40382c
push eax
call fcn.004025e0
push dword [0x40e610]
mov esi, eax
call fcn.004025e0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40382c
test edi, edi
je 0x40382c
call esi
test eax, eax
je 0x403823
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403823
test byte [ebp - 0xc], 1
jne 0x40382c
or dword [ebp + 0x10], 0x200000
jmp 0x403865
mov eax, dword [0x40e604]
cmp eax, ebx
je 0x403865
push eax
call fcn.004025e0
pop ecx
test eax, eax
je 0x403865
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403865
mov eax, dword [0x40e608]
cmp eax, ebx
je 0x403865
push eax
call fcn.004025e0
pop ecx
test eax, eax
je 0x403865
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e600]
call fcn.004025e0
pop ecx
test eax, eax
je 0x403885
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403887
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40558e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40db08]
jne 0x405598
repz ret
jmp fcn.00406cb5