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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], 0x40
cmp dword [esi + 4], ebx
jne 0x408c22
push edi
push 0x100
push ebx
push dword [0x413354]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push ebx
push 4
pop edi
push edi
push dword [esi]
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp + 8], edi
cmp dword [esi + 0x14], 0x706c7a31
push ebx
lea eax, [ebp - 4]
push eax
jne 0x408b52
push 0x18
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0x18
jne 0x408c21
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0x24]
mov word [ebp - 0xc], ax
jmp 0x408b6a
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0x12
jne 0x408c21
mov eax, dword [ebp - 8]
cmp dword [esi + 0xc], eax
jl 0x408b90
add eax, 0x40
mov dword [ebp - 8], eax
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x413354]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi + 4], eax
movsx eax, word [ebp - 0xc]
add eax, 0x19
push eax
push ebx
push dword [0x413354]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], eax
push ebx
lea eax, [ebp - 4]
push eax
movsx eax, word [ebp - 0xc]
push eax
lea eax, [edi + 0x14]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov byte [eax + edi + 0x14], bl
cmp dword [esi + 0x14], 0x706c7a31
movsx eax, word [ebp - 0xc]
jne 0x408bf2
lea eax, [ecx + eax + 0x18]
jmp 0x408bf9
lea eax, [ecx + eax + 0x12]
mov dword [ebp + 8], eax
mov dword [edi + 0x10], eax
add eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
push 1
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + eax*4], edi
inc dword [esi + 0xc]
push ebx
push dword [ebp - 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x408b0a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a1c4
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x413a00]
call fcn.0040e34a
mov edi, eax
test edi, edi
je 0x40a226
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40a1ed
push dword [esp + 0xc]
push edi
call eax
jmp 0x40a226
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040f070
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040f190
pop esi
pop ebx
pop edi
ret 8

Function at 0x40a54f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x40a638
mov eax, dword [ebp - 0xc]
dec eax
je 0x40a61b
dec eax
jne 0x40a638
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40a5ae
cmp byte [ebp - 0x1e], 1
jne 0x40a5ae
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x40a617
dec eax
je 0x40a613
dec eax
je 0x40a5f1
dec eax
jne 0x40a638
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40a5e5
dec eax
je 0x40a5d9
dec eax
jne 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x40a638
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40a60f
dec eax
je 0x40a60b
dec eax
jne 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x40a638
push 0x3c
jmp 0x40a637
push 0x32
jmp 0x40a637
push 0x14
jmp 0x40a637
push 5
jmp 0x40a637
cmp dword [ebp - 0x14], 0
je 0x40a635
cmp dword [ebp - 0x14], 0xa
je 0x40a631
cmp dword [ebp - 0x14], 0x5a
jne 0x40a638
push 0x28
jmp 0x40a637
push 0x1e
jmp 0x40a637
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x40b5a1
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40b61d
push 9
call esi
test bl, al
je 0x40b61d
push 0x11
call esi
test bl, al
jne 0x40b61d
push 0x10
call esi
test bl, al
jne 0x40b61d
push 0x12
call esi
test bl, al
jne 0x40b61d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40b61d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40b61d
xor eax, eax
jmp 0x40b69f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40b646
push 0x11
call esi
test bl, al
jne 0x40b63e
push 0x10
call esi
test bl, al
jne 0x40b63e
push 0x12
call esi
test bl, al
je 0x40b646
push 1
push ebp
call fcn.0040b55a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40b65c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40b69c
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40b69c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40b69c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40b69c
dec esi
push esi
push dword [0x413a08]
call fcn.0040e34a
test eax, eax
je 0x40b69c
mov eax, dword [eax + 8]
jmp 0x40b69e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40b761
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x4138dc], eax
cmp eax, edi
je 0x40b794
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4138e0], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x4138d8], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40b7d2
cmp dword [ebp - 0xc], 1
je 0x40b7e3
cmp dword [ebp - 0xc], 2
jne 0x40b7d2
cmp dword [ebp - 0x18], 5
jb 0x40b7e3
jne 0x40b7d2
cmp dword [ebp - 0x14], edi
jne 0x40b7d2
mov dword [0x4138d8], edi
cmp dword [0x4138d8], edi
je 0x40b7e9
call fcn.0040b6a8
test eax, eax
jne 0x40b7e9
mov dword [0x4138d8], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40c3fd
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40c426
test byte [esp + 8], 2
je 0x40c41a
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40c428
xor eax, eax
ret 8
Function at 0x40c564
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40c5d4
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40c5b6
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40c5b5
cmp dl, 0x5c
je 0x40c5b5
cmp dl, 0x2f
jne 0x40c5c0
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40c5a3
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40c5d6
xor eax, eax
leave
ret 4

Function at 0x40c5e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40c615
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40c9c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x40ca19
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40ca18
mov eax, dword [esp + 0x10]
mov ecx, dword [0x413aa8]
push eax
push ecx
call fcn.0040e34a
test eax, eax
je 0x40ca14
cmp dword [eax + 4], 0
je 0x40ca02
push esi
push edi
push eax
call fcn.0040ca20
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x40ca20
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x40ca55
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40caca
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x40cab7
dec ecx
je 0x40caa2
sub ecx, 2
je 0x40ca8f
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0040c5e0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40caf7
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x40d740
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
mov dword [esp + 8], 0x80000
test eax, eax
je 0x40d94e
push edi
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x40d94d
mov eax, dword [0x413354]
push ebp
push 0x80000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40d945
cmp dword [esp + 0x30], ebx
jl 0x40d7c1
mov eax, dword [esp + 0x2c]
jg 0x40d7b2
test eax, eax
je 0x40d7c1
push 0
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x34]
add edx, 0x80000
mov dword [esp + 0x28], edx
jmp 0x40d7d5
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x28], 0x80000
add ebx, 0x80000
and eax, ecx
mov dword [esp + 0x14], ebx
cmp eax, 0xffffffff
je 0x40d80d
mov eax, ebx
cdq
cmp edx, ecx
jl 0x40d80d
jg 0x40d805
cmp eax, dword [esp + 0x34]
jbe 0x40d80d
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x18]
mov eax, ebp
mov edx, ebx
cmp ebx, 8
jb 0x40d90c
mov edi, ebx
shr edi, 3
jmp 0x40d840
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov esi, dword [esp + 0x1c]
shr ecx, 8
xor ecx, dword [esi*4 + 0x411548]
movzx esi, byte [eax + 1]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411548]
movzx esi, byte [eax + 2]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411548]
movzx esi, byte [eax + 3]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411548]
movzx esi, byte [eax + 4]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411548]
movzx esi, byte [eax + 5]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411548]
movzx esi, byte [eax + 6]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411548]
movzx esi, byte [eax + 7]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x411548]
add eax, 8
sub edx, 8
dec edi
mov esi, ecx
jne 0x40d840
mov edi, dword [esp + 0x20]
test edx, edx
je 0x40d929
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x411548]
inc eax
dec edx
jne 0x40d910
cmp ebx, 0x80000
je 0x40d7d1
mov edx, dword [0x413354]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
mov eax, esi
pop esi
not eax
pop ebx
add esp, 0x14
ret 0x14

Function at 0x40d980
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x410a52
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x438ccd
call fcn.0042412a
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x410a77
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x410abd
lea ecx, [ebp - 0x10]
call fcn.00403180
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409c98
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401a30
mov eax, esi
call fcn.00424202
ret 8

Function at 0x422396
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4495f8]
jne 0x4223a0
repz ret
jmp fcn.00428c3c

Function at 0x43321e
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.0042862a
and dword [ebp - 4], 0
cmp dword [0x44d4b8], 0
mov ebx, eax
jne 0x4332cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x433380
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f0e8
push edi
call esi
test eax, eax
je 0x433380
push eax
call fcn.004285b8
mov dword [esp], 0x43f0d8
push edi
mov dword [0x44d4b8], eax
call esi
push eax
call fcn.004285b8
mov dword [esp], 0x43f0c4
push edi
mov dword [0x44d4bc], eax
call esi
push eax
call fcn.004285b8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44d4c0], eax
call esi
push eax
call fcn.004285b8
pop ecx
mov dword [0x44d4c8], eax
test eax, eax
je 0x4332cf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004285b8
pop ecx
mov dword [0x44d4c4], eax
mov eax, dword [0x44d4c4]
cmp eax, ebx
je 0x433327
cmp dword [0x44d4c8], ebx
je 0x433327
push eax
call fcn.00428633
push dword [0x44d4c8]
mov esi, eax
call fcn.00428633
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x433327
test edi, edi
je 0x433327
call esi
test eax, eax
je 0x43331e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43331e
test byte [ebp - 0xc], 1
jne 0x433327
or dword [ebp + 0x10], 0x200000
jmp 0x433360
mov eax, dword [0x44d4bc]
cmp eax, ebx
je 0x433360
push eax
call fcn.00428633
pop ecx
test eax, eax
je 0x433360
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x433360
mov eax, dword [0x44d4c0]
cmp eax, ebx
je 0x433360
push eax
call fcn.00428633
pop ecx
test eax, eax
je 0x433360
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44d4b8]
call fcn.00428633
pop ecx
test eax, eax
je 0x433380
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x433382
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005b9b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10005baa
pop dword [ebp - 0xc]
mov eax, 0xa54ffec2
sub eax, 0x954fa318
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x8cb1916f
add dword [ebp - 0x1c], 0xc1a0b3dc
mov dword [ebp - 0x18], 0x7422e8e9
add dword [ebp - 0x18], 0xbe10635c
mov dword [ebp - 0x14], 0x96d3cd08
add dword [ebp - 0x14], 0xb5787726
mov dword [ebp - 0x10], 0xbc61be27
sub dword [ebp - 0x10], 0xbc61be27
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xed978708
add eax, 0x2269391c
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x9b40d7d3
sub dword [ebp - 0x1c], 0x26ce6e7d
mov dword [ebp - 0x18], 0x2e453ea
add dword [ebp - 0x18], 0x3e880d8b
mov dword [ebp - 0x14], 0x546345c2
add dword [ebp - 0x14], 0xf0c26aa
mov dword [ebp - 0x10], 0x21db678c
sub dword [ebp - 0x10], 0x21db678c
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x348cb
push 0
call eax
mov ecx, 0x8df3f53e
sub ecx, 0x8df3bb13
mov ebx, eax
mov edx, 0x10047400
add edx, dword [ebp - 0xc]
mov edi, 0x29a96a14
add dword [ebp - 4], 0x87edcb3f
mov esi, dword [edx]
xor dword [ebp - 8], ecx
add esi, edi
sub dword [ebp - 4], ebx
mov dword [ebx], esi
xor dword [ebp - 4], eax
add ebx, 0xdd223c71
add ebx, 0x22ddc393
add edx, 0x5e0d5c89
add edx, 0xa1f2a37b
loop 0x10005cbb
add eax, 0xdb7f
mov ebx, eax
add eax, 0xad5bcf43
add eax, 0x52a430c2
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x43d231
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x43d240
pop dword [ebp - 0x18]
mov eax, 0x43d240
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x52c9b
push 0
mov eax, 0x230f516a
sub eax, 0x22ca9eba
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x27122919
sub ecx, 0x2711d65b
xor esi, esi
add esi, eax
mov edi, 0x8ab5f68e
add edi, 0x75929772
add edi, dword [ebp - 0x18]
mov edx, 0x5934af31
add edx, 0x63d35290
sub dword [ebp - 4], edx
mov ebx, dword [edi]
xor ebx, edx
add dword [ebp - 0x14], edi
mov dword [esi], ebx
add dword [ebp - 0xc], 0x3596a9e5
add esi, 0xdc05a9b1
sub esi, 0xdc05a9ad
add edi, 4
loop 0x43d29c
add eax, 0x13dcb
xor ebx, ebx
add ebx, eax
add eax, 0x711b3ed3
add eax, 0x8ee4c132
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
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 0x1005387
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10020fc
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10053df
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1002138
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10053d2
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10053e1
xor eax, eax
pop esi
leave
ret 4

Function at 0x1013262
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call fcn.0101326e

Function at 0x10138e7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.010138fa

Function at 0x1013961
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.01013974
Function at 0xab791d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00ab791d
ret
Function at 0x40cb68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40cb77
pop dword [ebp - 0x10]
mov eax, 0x40cb77
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xaf95d4f3
sub dword [ebp - 0x20], 0x61438fa8
mov dword [ebp - 0x1c], 0xf1839fe7
sub dword [ebp - 0x1c], 0xbf5053a2
mov dword [ebp - 0x18], 0xeb45dbf0
add dword [ebp - 0x18], 0x6106683e
mov dword [ebp - 0x14], 0xfbc680cf
sub dword [ebp - 0x14], 0xfbc680cf
lea eax, [ebp - 0x20]
push eax
mov eax, 0xbb4ab1c2
sub eax, 0xbb09d17e
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x4ef15df3
add dword [ebp - 0x20], 0x25810b63
mov dword [ebp - 0x1c], 0x8f10bb98
sub dword [ebp - 0x1c], 0x4da45a23
mov dword [ebp - 0x18], 0x11398c0d
add dword [ebp - 0x18], 0x5235e05f
mov dword [ebp - 0x14], 0x4dc6877b
sub dword [ebp - 0x14], 0x4dc6877b
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xd96dd458
add eax, 0x26d30c34
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x35660
push 0
call eax
mov ecx, 0x3dbecaa5
sub ecx, 0x3dbe8ac5
mov edx, eax
mov esi, 0xb94bab13
add esi, 0x46f5f8ed
add esi, dword [ebp - 0x10]
mov ebx, 0x58e12fcd
sub dword [ebp - 8], 0xfcaa6b6e
mov edi, dword [esi]
xor dword [ebp - 0xc], ecx
xor edi, ebx
mov dword [edx], edi
mov dword [ebp - 0xc], 0xc0987c40
add edx, 0xf9cc6661
sub edx, 0xf9cc665d
add esi, 0x781f742c
sub esi, 0x781f7428
loop 0x40cc8e
add eax, 0xaaf42389
sub eax, 0xaaf33136
mov ebx, eax
add eax, 0x52d9cf00
add eax, 0xad263105
mov ecx, 0x53c58180
add ecx, 0xac7a7e80
add ecx, dword [ebp - 0x10]
call ebx
leave
ret