joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ca90
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x100751e0]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [0x100767b4]
mov dword [esp + 4], 0
mov dword [esp + 4], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x1002cb2d
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x1002cade
mov ebx, eax
mov dword [esp + 0xc], ebx
jmp 0x1002cb0d
cmp byte [0x10077e50], 0
jne 0x1002cba0
int3
mov ecx, ebx
mov edx, 0x100767b4
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x1002cb2d
push ebx
call esi
mov ebx, dword [0x100767b4]
mov dword [esp + 0xc], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002cb42
cmp byte [0x10077e50], 0
jne 0x1002cbae
int3
push 0x400
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1004ab00
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.10049129
add esp, 4
lea esi, [esp + 0x10]
mov ebx, eax
mov ecx, 0x100
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004a139
mov esp, ebp
pop ebp
ret
push 1
call fcn.1004d551
push 1
call fcn.1004d551
push 1
call fcn.1004d551
int3

Function at 0x1002cbc0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x100751e0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x100767b4]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.1004a134
add esp, 4
mov edi, 0x100
jmp 0x1002cc20
mov esi, dword [0x10079014]
xor dl, dl
test esi, esi
jle 0x1002cc58
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x1002cc53
mov eax, dword [esi*4 + 0x10078850]
test eax, eax
je 0x1002cc53
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x1002cc30
dec edi
test edi, edi
jle 0x1002cc61
test dl, dl
jne 0x1002cc20
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004a139
mov esp, ebp
pop ebp
ret
Function at 0x10030e50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x10030ea2
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov esi, dword [ebx + 8]
mov edx, dword [ebx]
shl ecx, 3
mov dword [ebp + 0xc], ecx
mov eax, dword [esi + ecx]
cmp eax, edx
jne 0x10030eb8
mov esi, edx
jmp 0x10030ebe
mov esi, dword [esi + ecx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x10030ed0
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x10030f1e
cmp esi, eax
jne 0x10030ec4
push edi
push dword [edx]
mov ecx, ebx
call fcn.10031000
mov edi, dword [ebx]
mov edi, dword [edi]
mov eax, dword [edi]
cmp esi, eax
je 0x10030f05
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x10030f2e
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x10030f50
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp eax, esi
jne 0x10030f36
mov dword [ecx], edi
jmp 0x10030f50
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x10030f50
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.100295f0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
pop ebp
ret 0xc
Function at 0x10032500
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov dword [esp + 0xc], 0
mov eax, dword [ecx + 0xc]
push esi
push edi
test eax, eax
je 0x10032533
mov ebx, 1
mov dword [esp + 0x14], eax
mov ecx, ebx
add eax, 4
lock xadd dword [eax], ecx
lea ecx, [esp + 0x14]
jmp 0x1003255f
mov ebx, 2
call fcn.10015e90
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1003255b
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
lea ecx, [esp + 0x10]
mov esi, dword [ebp + 8]
or edi, 0xffffffff
mov eax, dword [ecx]
mov dword [ecx], 0
mov dword [esi], eax
test bl, 2
je 0x100325a0
mov eax, dword [esp + 0x10]
and ebx, 0xfffffffd
test eax, eax
je 0x100325a0
lea ecx, [eax + 4]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x100325a0
test ecx, ecx
je 0x10032599
add ecx, 0xfffffffc
jmp 0x1003259b
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test bl, 1
je 0x100325db
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100325db
lea ecx, [eax + 4]
lock xadd dword [ecx], edi
dec edi
setne al
test al, al
jne 0x100325db
test ecx, ecx
je 0x100325d4
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
call dword [edx + 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov edx, dword [ecx]
call dword [edx + 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10033a30
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x168], 0
mov dword [ecx + 0x170], 0
mov dword [ecx + 0x174], 0
mov dword [ecx + 0x14], 0x67452301
mov dword [ecx + 0x18], 0xefcdab89
mov dword [ecx + 0x1c], 0x98badcfe
mov dword [ecx + 0x20], 0x10325476
mov dword [ecx + 0x24], 0xc3d2e1f0
ret
Function at 0x1003974a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x100751e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x58], 0
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
inc ebx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x10039845
mov eax, dword [esi]
lea ecx, [ebp - 0x58]
push 0
push ecx
push esi
call dword [eax + 0x18]
push eax
call fcn.10037372
cmp dword [ebp - 0x58], 0
pop ecx
pop ecx
jne 0x10039845
mov eax, dword [esi]
lea ecx, [ebp - 0x54]
and dword [ebp - 0x54], 0
push ecx
push dword [0x10075004]
push esi
call dword [eax]
test eax, eax
jne 0x10039834
and dword [ebp - 0x50], eax
mov esi, dword [ebp - 0x54]
push eax
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
and dword [ebp - 0x50], 0
lea ecx, [ebp - 0x50]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x18]
push dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
call fcn.100374f0
mov esi, str.connect
push esi
call fcn.10002800
add esp, 0xc
lea ecx, [ebp - 0x4c]
push eax
push esi
push dword [ebp - 0x3c]
push 0
call fcn.10009bd0
lea ecx, [ebp - 0x4c]
push 0
test eax, eax
jne 0x10039826
push ebx
call fcn.10002010
push dword [ebp - 0x50]
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x100398ed
and dword [ebp - 0x54], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100398ed
push ebx
call fcn.10002010
push dword [ebp - 0x50]
call sub.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x10039845
and dword [ebp - 0x54], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [ebp - 0x34]
call fcn.1000b560
lea eax, [ebp - 0x34]
push eax
push 6
call fcn.1000fdf0
pop ecx
pop ecx
test al, al
jne 0x10039865
xor bl, bl
jmp 0x100398e5
push str.__silent_launch___connect_to_metro_viewer
lea ecx, [ebp - 0x1c]
call fcn.10004000
test edi, edi
je 0x10039887
push edi
call fcn.10002800
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.10005c80
push 0x38
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], 0x3c
push 0
push eax
call fcn.1004ab00
add esp, 0xc
mov dword [ebp - 0x78], ebx
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov dword [ebp - 0x7c], 0x1006eed8
cmovae eax, dword [ebp - 0x34]
cmp dword [ebp - 8], 8
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10002010
lea ecx, [ebp - 0x34]
call fcn.10001bf0
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a139
mov esp, ebp
pop ebp
ret
Function at 0x1003b5d7
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x100751e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x70
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1004ab00
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor eax, eax
inc eax
add esp, 0xc
xor edi, edi
test byte [ebp + 0xc], al
je 0x1003b621
push 0x10
mov dword [ebp - 0x74], eax
pop eax
push edi
push eax
mov word [ebp - 0x70], ax
call ebx
mov word [ebp - 0x6e], ax
xor eax, eax
inc eax
mov edi, eax
test byte [ebp + 0xc], 2
je 0x1003b641
imul esi, edi, 0x1c
push 0x11
mov dword [ebp + esi - 0x74], eax
pop eax
push 0
push eax
mov word [ebp + esi - 0x70], ax
call ebx
mov word [ebp + esi - 0x6e], ax
inc edi
test byte [ebp + 0xc], 4
je 0x1003b665
imul esi, edi, 0x1c
push 0x12
pop eax
push 0
push eax
mov dword [ebp + esi - 0x74], 1
mov word [ebp + esi - 0x70], ax
call ebx
mov word [ebp + esi - 0x6e], ax
inc edi
mov ax, word [ebp + 8]
imul esi, edi, 0x1c
push 0
mov word [ebp + esi - 0x70], ax
movzx eax, ax
push eax
mov dword [ebp + esi - 0x74], 1
call ebx
inc edi
mov word [ebp + esi - 0x6e], ax
cmp edi, 1
setg bl
mov byte [ebp - 0x75], bl
test edi, edi
jle 0x1003b6c3
lea esi, [ebp - 0x6c]
mov ebx, edi
push 0x1c
lea eax, [esi - 8]
push eax
push 1
call dword [sym.imp.USER32.dll_SendInput]
or dword [esi], 2
cmp byte [ebp - 0x75], 0
je 0x1003b6b8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x1c
dec ebx
jne 0x1003b699
mov bl, byte [ebp - 0x75]
test edi, edi
je 0x1003b6ec
imul eax, edi, 0x1c
lea esi, [ebp + eax - 0x90]
push 0x1c
push esi
push 1
call dword [sym.imp.USER32.dll_SendInput]
test bl, bl
je 0x1003b6e6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 0x1c
dec edi
jne 0x1003b6cf
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a139
mov esp, ebp
pop ebp
ret
Function at 0x10040228
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100751e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x410], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x408], eax
call ebx
mov edi, eax
test edi, edi
jne 0x10040291
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x10040291
call fcn.1003f419
mov esi, eax
jmp 0x10040332
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100402b1
call fcn.1003f419
jmp 0x10040325
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x100402aa
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x100402d7
mov esi, 0x8007000e
jmp 0x10040327
push eax
lea ecx, [ebp - 0x408]
call fcn.1003f23b
cmp dword [ebp - 0x408], 0
je 0x100402d0
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100402aa
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.100400ed
mov esi, eax
test edi, edi
je 0x10040332
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x1004034b
lea ecx, [ebp - 0x408]
call fcn.1003f8c1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a139
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10040a11
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10040a24
push 0xd
pop eax
jmp 0x10040a68
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x10040a37
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10040a2f
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10040a6f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10040a81
push 0xd
pop eax
jmp 0x10040ab3
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10040a8a
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x10045b67
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
cmp byte [esi + 0x105c], bl
je 0x10045bcd
mov byte [esi + 0x105c], bl
cmp dword [ebp + 8], ebx
je 0x10045c74
cmp dword [ebp + 0xc], ebx
je 0x10045c74
cmp dword [esi + 0x1078], ebx
jne 0x10045ba7
call fcn.100027e0
lea edi, [esi + 0x1068]
mov ecx, edi
call fcn.10045f31
mov ecx, dword [eax]
dec dword [edi + 0x10]
jne 0x10045bc0
mov dword [edi + 0xc], ebx
jmp 0x10045bc3
inc dword [edi + 0xc]
test ecx, ecx
je 0x10045bcd
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0x1078], ebx
je 0x10045cd2
mov edi, dword [esi + 0x1060]
push edi
call fcn.10010880
pop ecx
test al, al
je 0x10045cc7
lea ecx, [esi + 0x1068]
call fcn.10045f31
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
lea eax, [esi + 0x1044]
push eax
push ebx
add ecx, dword [edx]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10045ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x10045ccb
call fcn.100032a0
cmp eax, 2
jg 0x10045c6e
push 2
push 0x1b3
push str.e:core_45_srcipcipc_channel_win.cc
lea ecx, [ebp - 0xb4]
mov ebx, 0x80
call fcn.10003310
push edi
add eax, 8
push str.pipe_error:
push eax
call fcn.10002510
pop ecx
pop ecx
mov ecx, eax
call fcn.10004260
test bl, bl
jns 0x10045cc7
jmp 0x10045cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.100032a0
cmp eax, 2
jg 0x10045cb7
push 8
pop ebx
push 2
push 0x191
push str.e:core_45_srcipcipc_channel_win.cc
lea ecx, [ebp - 0xb4]
call fcn.10003310
push esi
add eax, ebx
push str.pipe_error:
push eax
call fcn.10002510
pop ecx
pop ecx
mov ecx, eax
call fcn.10004260
test bl, 8
je 0x10045cc7
lea ecx, [ebp - 0xb4]
call fcn.10003360
xor al, al
jmp 0x10045cd4
mov byte [esi + 0x105c], 1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0xa08058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa081a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa0807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0806a
add dl, dl
jne 0xa08089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa080dc
xor eax, eax
add dl, dl
jne 0xa08096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0817d
add dl, dl
jne 0xa080a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa080b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa080bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa080c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa080d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa08075
mov eax, 1
add dl, dl
jne 0xa080ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa080f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa080e1
sub eax, ebx
mov ebx, 1
jne 0xa08128
mov ecx, 1
add dl, dl
jne 0xa0810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa08119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa08105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa08075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa0813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa08136
cmp eax, 0x7d00
jae 0xa0816d
cmp eax, 0x500
jb 0xa08168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa08075
cmp eax, 0x7f
ja 0xa08170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa08075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa0819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa08075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40cfbb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40cfca
pop dword [ebp - 0x34]
mov eax, 0xfbebf062
sub eax, 0xfbab2098
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xd94f4070
sub dword [ebp - 0x44], 0x8afcfb25
mov dword [ebp - 0x40], 0x178555cb
add dword [ebp - 0x40], 0x1aadf67a
mov dword [ebp - 0x3c], 0xa7d1e557
add dword [ebp - 0x3c], 0xa47a5ed7
mov dword [ebp - 0x38], 0xae9a285
add dword [ebp - 0x38], 0xf5165d7b
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x52ff3cb7
sub dword [ebp - 0x44], 0xde8cd361
mov dword [ebp - 0x40], 0x231a52f9
add dword [ebp - 0x40], 0x1e520e7c
mov dword [ebp - 0x3c], 0x16d992dc
sub dword [ebp - 0x3c], 0xb36a2670
mov dword [ebp - 0x38], 0xcc959e5e
sub dword [ebp - 0x38], 0xcc959e5e
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x3ff75837
sub eax, 0x3fb52713
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x40de7
push 0
call eax
mov ecx, 0x8b0813f1
add ecx, 0x74f840c9
xor ebx, ebx
add ebx, eax
mov edx, 0x456e502b
sub edx, 0x452b0c2b
add edx, dword [ebp - 0x34]
mov edi, 0xb3e834e2
add edi, 0x579be459
sub dword [ebp - 0x1c], 0x729dae79
mov esi, dword [edx]
xor dword [ebp - 0x30], esi
xor esi, edi
xor dword [ebp - 0x14], edx
mov dword [ebx], esi
xor dword [ebp - 0x28], 0x3ea01258
add ebx, 4
add edx, 0x121bbdbe
add edx, 0xede44246
loop 0x40d0e9
add eax, 0x19102b8f
add eax, 0xe6f11a2c
xor ebx, ebx
add ebx, eax
add eax, 0x38e01fa4
sub eax, 0x38e01f9f
mov ecx, 0xe5e3e995
sub ecx, 0xe5a3e995
invalid
invalid
int3
invalid
invalid
Function at 0x444db9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46f748
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x444dfc
push str.SystemFunction040
push dword [0x46f748]
call edi
push str.SystemFunction041
push dword [0x46f748]
mov dword [0x46f738], eax
call edi
mov dword [0x46f73c], eax
jmp 0x444e01
mov eax, dword [0x46f73c]
cmp dword [0x46f738], 0
je 0x444e12
test eax, eax
jne 0x444eb9
push 0x46f74c
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x444ec3
push str.CryptProtectMemory
push dword [0x46f74c]
call edi
cmp dword [0x46f738], 0
mov dword [0x46f740], eax
jne 0x444e77
test eax, eax
jne 0x444e77
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x444e61
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x444e68
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work35_swix_srclibsdutilcryputil.cpp
call fcn.004013b3
jmp 0x444ec3
push str.CryptUnprotectMemory
push dword [0x46f74c]
call edi
cmp dword [0x46f73c], 0
mov dword [0x46f744], eax
jne 0x444eb9
test eax, eax
jne 0x444eb9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x444ead
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x444eb4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x444e6b
mov dword [0x46f750], 1
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x19bb2b0c
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x76b72fd8
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219