joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056c0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40895c]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, 0xd524e89
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..text_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6b8572f5
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x408937
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
sub esi, esi
call fcn.00408952
sub ecx, ecx
xor dword [eax], ebx
add eax, 1
cmp eax, edx
jne fcn.00408937
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1f783877
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x668462d8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401219
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
mov esi, ecx
test byte [esi + 8], 8
je 0x40130d
lea eax, [ebp - 0x25c]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test byte [esi + 8], 4
je 0x40126b
lea edi, [esi + 0x218]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x158]
lea edx, [esi + 0x31c]
push eax
mov ecx, edi
call fcn.00401396
jmp 0x40127f
lea eax, [esi + 0x31c]
push eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [esi + 8], 0x20
je 0x4012e4
xor edi, edi
push 0x44
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.004069e0
add esp, 0xc
lea eax, [ebp - 0x10]
add esi, 0x218
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push edi
push 0x4000220
push edi
push edi
lea eax, [ebp - 0x158]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4012ff
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x4012ff
add esi, 0x218
push 1
xor edi, edi
push esi
lea eax, [ebp - 0x158]
push edi
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
leave
ret

Function at 0x401310
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40134b
mov ecx, esi
call fcn.00401406
test eax, eax
jne 0x40134b
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40134b
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
push esi
call fcn.00401696
test eax, eax
pop ecx
jne 0x401424
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401429
test al, 0x10
je 0x401429
push 1
pop eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x40142d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, ecx
push edi
push esi
call fcn.00401696
test eax, eax
pop ecx
jne 0x401531
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
cmp eax, 3
jl 0x401531
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
lea esi, [ebp - 0x104]
push eax
call edi
cmp eax, 3
jle 0x4014b4
cmp byte [ebp - 0x104], 0x5c
jne 0x4014b4
cmp byte [ebp - 0x103], 0x5c
jne 0x4014b4
cmp byte [ebp - 0x102], 0x3f
je 0x4014b4
lea eax, [ebp - 0x101]
push 0x5c
push eax
call fcn.00406ad0
inc eax
push 0x5c
push eax
call fcn.00406ad0
add esp, 0x10
mov esi, eax
test esi, esi
je 0x401531
cmp byte [esi], 0
je 0x401531
push 0x5c
push esi
call fcn.00406ad0
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4014d0
and byte [esi], 0
lea eax, [ebp - 0x104]
push eax
call edi
cmp eax, 3
jl 0x401523
lea eax, [ebp - 0x104]
push eax
call fcn.00401696
test eax, eax
pop ecx
jne 0x401523
lea ecx, [ebp - 0x104]
call fcn.00401406
test eax, eax
jne 0x401523
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40152d
lea eax, [ebp - 0x104]
push 0
push eax
push 1
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
test esi, esi
je 0x401531
mov byte [esi], 0x5c
inc esi
jmp 0x4014b4
xor eax, eax
jmp 0x401534
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x401627
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
mov edi, edx
mov ebx, ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0xc]
push edi
push eax
push 0
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x401690
mov ecx, edi
call fcn.00401406
test eax, eax
je 0x401690
push 1
pop eax
jmp 0x401692
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x4019aa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
push eax
push 1
push 0x401819
push 0x40180e
push 0x4017c8
push 0x4017a7
push 0x40178c
push 0x401769
mov esi, edx
mov ebx, ecx
push 0x401755
call fcn.0040203f
mov edi, eax
add esp, 0x24
test edi, edi
je 0x401a94
cmp byte [esi], 0x4d
jne 0x401a94
cmp byte [esi + 1], 0x53
jne 0x401a94
cmp byte [esi + 2], 0x43
jne 0x401a94
cmp byte [esi + 3], 0x46
jne 0x401a94
mov dword [0x40e838], esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov dword [0x40e83c], eax
push dword [esi]
push ebx
call fcn.00401b19
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
pop ecx
mov dword [0x40e834], eax
pop ecx
lea eax, [ebp - 0x11c]
push eax
push 0x104
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x11c]
call fcn.004013d8
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40182e
lea eax, [ebp - 0x11c]
push 0
push eax
push 0x40c05c
push edi
call fcn.0040212a
push edi
mov esi, eax
call fcn.004020cf
push dword [ebp - 0xc]
call fcn.00401b50
add esp, 0x24
mov eax, esi
jmp 0x401a96
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401de4
Capabilities:
Get common file path
Get graphical window text
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
lea eax, [ebp - 0x410]
push edi
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x104]
push esi
push eax
push 0x3eb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
cmp eax, 1
jae 0x401e37
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401f01
lea ecx, [ebp - 0x104]
call fcn.00401406
test eax, eax
jne 0x401edb
lea eax, [ebp - 0x30c]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push 0x40c08c
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x30c]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x24
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call ebx
cmp eax, 6
jne 0x401f2a
lea ecx, [ebp - 0x104]
call fcn.0040142d
test eax, eax
jne 0x401edb
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push 0x40c068
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x10
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call ebx
jmp 0x401f2a
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x410]
push eax
call edi
push 8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
lea ecx, [ebp - 0x104]
add eax, 0x218
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f2f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, ecx
push esi
cmp byte [ebx + 0x218], 0
lea esi, [ebx + 0x218]
je 0x402001
push edi
lea eax, [ebp - 0x104]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
mov edx, str._temp_
push eax
mov ecx, esi
call fcn.0040159d
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
mov edx, str._windir_
push eax
mov ecx, esi
call fcn.0040159d
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
mov edx, str._system_
push eax
mov ecx, esi
call fcn.0040159d
lea edx, [ebp - 0x104]
mov ecx, str.ProgramFilesDir
call fcn.00401627
lea eax, [ebp - 0x104]
mov edx, str._program_
push eax
mov ecx, esi
call fcn.0040159d
lea edx, [ebp - 0x104]
mov ecx, str.CommonFilesDir
call fcn.00401627
lea eax, [ebp - 0x104]
mov edx, str._common_
push eax
mov ecx, esi
call fcn.0040159d
pop edi
jmp 0x40200d
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, esi
call fcn.004013d8
test byte [ebx + 8], 0x10
je 0x40201f
push 1
pop eax
jmp 0x40203b
push ebx
push 0x401d30
push 0
push 0x67
push dword [0x40e830]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
dec eax
neg eax
sbb eax, eax
inc eax
pop esi
pop ebx
leave
ret

Function at 0x4031e2
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, eax
dec eax
test edi, edi
jle 0x403222
lea edi, [eax + 1]
movzx eax, byte [ecx]
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or eax, ebx
inc ecx
xor edx, eax
dec edi
jne 0x403200
and esi, 3
xor eax, eax
dec esi
je 0x40323e
dec esi
je 0x403237
dec esi
jne 0x403243
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
pop esi
xor eax, edx
pop ebx
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4b3958a4
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x3933196b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x423ea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423ecd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423ecd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x423542
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x423551
pop dword [ebp - 0x34]
mov eax, 0x1b1d99c8
add eax, 0xe5249b89
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x4ece0
push 0
mov eax, 0xf0273425
add eax, 0x101d7e8b
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xee799b9d
add ecx, 0x1186a6e9
mov edx, eax
mov edi, 0xda5e0617
sub edi, 0xda157817
add edi, dword [ebp - 0x34]
mov esi, 0xfe4d3339
sub dword [ebp - 4], edi
mov ebx, dword [edi]
sub dword [ebp - 0x20], 0x1e1b3143
xor ebx, esi
xor dword [ebp - 0x28], 0x8a3173
mov dword [edx], ebx
add dword [ebp - 0x10], 0x56ee73df
add edx, 0x1fd3d450
sub edx, 0x1fd3d44c
add edi, 4
loop 0x4235aa
add eax, 0xf52c62d2
sub eax, 0xf52b65e7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5238313
sub ecx, 0x4e38313
add ecx, dword [ebp - 0x34]
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 0x4070d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + ecx - 0x7bf0e6c7]
test al, 0
add bl, ch
mov dword [ebp - 4], ebx
int1
mov ah, dl
push 0x38
push edx
call 0x3f404a60
mov edi, eax
xor eax, eax
mov esi, edi
mov ecx, 0xb8
push eax
stosd dword es:[edi], eax
add byte [eax - 0x55], dl
mov eax, dword [ebp - 0x25]
jns 0x40708b
or al, 0x8b
jge 0x40703e
mov dword [esi], eax
push ecx
or al, 0x8b
mov bl, 0x17
call 0x6a9284a4
add cl, byte [ebx + 0x4e897308]
sub al, 0xe8
jne 0x407056
call 0xb0f36dd0
mov dl, 0xb0
add esp, 0xc
test ebx, ebx
jne 0x4070b7
or al, 0x85
invalid
mov eax, dword [ebp - 0xc]
test dword [esp + esi*2 + 0x4557500d], edi
sbb al, 0x50
call fcn.00405850
mov esi, edx
add al, 0xff
dec ebp
or byte [ecx + 0x56b9eb31], cl
call dword [0x40c1dc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x407010
dec dword [ebp + 8]
mov dword [ecx], esi
jmp 0x407036
mov ecx, 0xdc15ff56
rol dword [eax], 0x3b
ret
mov esi, dword [0xe971d8]
push cs
salc
test eax, eax
je 0x40707c
call esi
xchg esi, eax
pop esi
xlatb
cmp al, 0xfc
or al, byte [eax]
pop ebx
jle 0x40709a
pop ebp
ret
ficom word [edi + 0x7d]
cld
jge 0x4070b5
mov edx, dword [edx]
or al, 0x43
invalid
jae 0x40705d
in al, dx
sub esp, 0xe8c4
mov ebp, dword [eax + 0x3356530c]
test byte [ebx + 0x4518b01], 0x68
inc ebp
inc ebp
mov eax, dword [ebp + 0x4b]
or al, 0x53
push esi
xor esi, esi
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
push 0x458b4545
dec ebx
je 0x407076
jne 0x4070db
js 0x4070f1
mov dword [ebp - 4], esi
test al, al
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
jle 0x407173
fadd st(7)
mov bl, ah
aam 0x84
stosb byte es:[edi], al
or bh, byte [ebp]
test al, 0x5d
adc al, 0x3c
and eax, 0x458b3c74
hlt
mov bl, 0xd0
movups xmm7, xmmword [esi + 0x12]
mov dl, byte [edi]
push 2
push edx
dec edi
push 0x830040e5
les edx, [eax + 0x33]
rol byte [edx + edx - 0x3e87f275], cl
inc eax
add byte [ebx], dh
ror byte [edx - 0x75f674f9], 4
inc ecx
and eax, 2
adc edx, eax
jne 0x407324
mov ecx, 0x4e0001
mov cl, ch
cmp al, 0x2d
jne 0x4071b6
mov dword [ebp - 0x40], edx
std
mov al, byte [0x752b3cf4]
invalid
cmp al, 0x2b
jne 0x4071b8
lcall 0x3c94, 0x7547c44d
and esi, dword [ebp + 6]
push eax
dec ebp
aam 0x57
inc esi
cmp al, 0x3c
and byte [ebp + 6], dh
mov ebx, ebp
or eax, 0xd85bb199
push eax
jle 0x40723c
les eax, [eax]
sbb dword [ecx - 0x6f030edb], ebp
dec edx
jmp 0x407248
aaa
or esi, esp
xor dword [edx + 0x6a], ebp

Function at 0x4076db
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop esi
xor byte [esi + ecx + 7], cl
loop 0x4076de
mov eax, 0x50402a0
out dx, al
clc
div esi
cmc
retf 0x3d52
Function at 0x408a22
Capabilities:
Send data
Send data on socket

Disassembly:
aad 0x50
stosd dword es:[edi], eax
jns 0x408a4d
sbb eax, dword [eax]
add byte [ebx - 0x30367c02], cl
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
je 0x408a5c
test eax, eax
je 0x408a6f
jmp 0x408a8c
mov byte [eax + esi], 0x20
xor byte [eax], ah
test eax, eax
invalid
mov edi, dword [ebp + 0x10]
push edi
push 0x5900c1
push ebx
push esi
call 0x4408680
sbb esp, eax
adc byte [ebx + 0x5b5e5fc6], cl
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
call [edx]
adc al, 0x50
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
inc ebp
or byte [eax - 1], dl
adc eax, 0x40c1d3
add esp, 4
test eax, eax
add byte [ebx - 0x3f7afb3c], al
je 0x408aa7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
cmp al, 0x52
call fcn.00408780
add esp, 0xffffff9d
pop ebp
ret
mov eax, dword [ebp + 0x10]
dec ebx
dec ebp
inc ebx
push str.APR_does_not_understand_this_error_code
push eax
stosb byte es:[edi], al
call 0x2408780
add esp, 0xc
pop ebp
loopne 0x408a4f
nop
push ebp
imul edi, dword [ebx + 0x6f], 0x89dd0c1c
cdq
push esi
mov esi, dword [ebp + 0x10]
mov esp, edx
clc
mov ecx, dword [ebp - 0x5c]
xor al, 0
mov eax, dword [esi]
push 0
lea eax, [eax - 0xbba76e5]
push 0
push edx
mov edx, dword [ecx + 4]
lea edi, [esp + esi*8 + 0x6a]
add dword [eax + 0x52], edx
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_WSASend]
jmp 0x408af3