joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10055963
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10055a7b
test esi, esi
je 0x10055a7b
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
mov ebx, eax
cmp cx, bx
je 0x10055a1f
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x10055a1f
xor cl, dl
test cl, 0x10
jne 0x10055a1f
mov al, byte [edi]
cmp al, byte [esi]
jne 0x10055a1f
push dword [esi + 8]
push dword [edi + 8]
call fcn.10055963
pop ecx
pop ecx
test eax, eax
jne 0x10055a1f
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.10055963
pop ecx
pop ecx
test eax, eax
jne 0x10055a1f
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.10055a8a
test eax, eax
jne 0x10055a1f
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x10055a1f
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x10055a1f
movzx eax, word [edi + 2]
mov ecx, eax
mov eax, 0x400
and ecx, eax
mov edx, eax
cmp cx, dx
jne 0x10055a24
mov cx, word [esi + 2]
and cx, dx
cmp cx, ax
jne 0x10055a1f
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x10055a4e
push 2
pop eax
jmp 0x10055a86
cmp byte [edi], 0x98
je 0x10055a4e
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10055a4e
mov dx, word [esi + 2]
mov ebx, eax
and dx, bx
cmp dx, ax
je 0x10055a1f
mov edx, dword [esi + 4]
test edx, edx
je 0x10055a1f
call fcn.100379d0
test eax, eax
jne 0x10055a1f
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, 0x100
and ecx, eax
and dx, ax
cmp cx, dx
je 0x10055a6a
xor eax, eax
inc eax
jmp 0x10055a86
test cx, cx
je 0x10055a77
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x10055a1f
xor eax, eax
jmp 0x10055a86
mov eax, esi
sub eax, edi
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
ret
Function at 0x1006bc99
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esi + 4]
call fcn.1006ab31
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x14]
imul edx, edx, 0x28
add edx, edi
cmp byte [ebx + 0x16], 0
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edx
jne 0x1006be91
cmp dword [ebx + 0x34], 0
jne 0x1006be91
jmp 0x1006be85
mov eax, 0x100
cmp word [edi + 0x10], ax
jne 0x1006be82
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
not eax
and eax, dword [edi + 0x20]
not ecx
and ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x1006be82
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x160]
mov esi, dword [ecx + 0x164]
and eax, dword [esp + 0x28]
and esi, dword [esp + 0x2c]
or eax, esi
je 0x1006be82
mov esi, dword [ecx + 0x14]
fldz
mov ebx, dword [ecx + 0x1c]
imul esi, esi, 0x28
fst qword [esp + 0x20]
fstp qword [esp + 0x30]
and dword [esp + 0x10], 0
add esi, ebx
and dword [esp + 0x14], 0
jmp 0x1006be21
mov eax, 0x200
cmp word [ebx + 0x10], ax
jne 0x1006bd82
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebx + 0xc]
jmp 0x1006bdcf
mov eax, dword [esp + 0x3c]
cmp dword [ebx + 8], eax
jne 0x1006be1e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
lea eax, [esp + 0x70]
push dword [ebp + 0x1c]
mov dword [esp + 0x74], ecx
push dword [ebp + 0x18]
mov byte [esp + 0x88], 0x45
push dword [ebp + 0x14]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], 1
push eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.1006cd10
fld qword [esp + 0x70]
fadd qword [esp + 0x38]
mov ecx, dword [ebp + 0x28]
mov eax, dword [esp + 0x78]
or dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
fstp qword [esp + 0x38]
fld qword [esp + 0x60]
or dword [esp + 0x2c], eax
fadd qword [esp + 0x48]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
add esp, 0x18
fstp qword [esp + 0x30]
fld qword [ecx + 0x18]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jnp 0x1006be2c
add ebx, 0x28
cmp ebx, esi
jb 0x1006bd61
mov ecx, dword [ebp + 0x28]
cmp dword [ebp + 0x24], 0
je 0x1006be4f
fld qword [esp + 0x30]
push ecx
push ecx
fstp qword [esp]
call fcn.1006bc5b
fmul qword [esp + 0x38]
add esp, 8
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
fld qword [ecx + 0x18]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x1006be82
mov eax, dword [esp + 0x10]
fld qword [esp + 0x20]
fstp qword [ecx + 0x18]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x14]
fld qword [esp + 0x30]
fstp qword [ecx + 8]
mov dword [ecx + 0x24], eax
mov dword [ecx], 0x10000000
mov dword [ecx + 0x10], edi
add edi, 0x28
mov dword [esp + 0x1c], edi
cmp edi, edx
jb 0x1006bcef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10078558
Capabilities:
Create process on windows

Disassembly:
push 0x68
mov eax, 0x100a58ed
call fcn.100889c6
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
mov edi, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 0x100baa94
and dword [ebp - 4], 0
lea ebx, [edi + 0xd0]
lea esi, [ebp - 0x34]
mov dword [ebp - 0x38], ebx
call fcn.10014253
lea eax, [ebp - 0x2c]
push eax
call fcn.100786da
push 0x100acd34
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10004bad
test eax, eax
jne 0x1007861a
push 0x100baab0
lea esi, [ebp - 0x58]
call fcn.10003bd6
mov edi, esi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.1002dba6
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x100785d4
mov eax, dword [eax + 4]
jmp 0x100785d7
add eax, 4
mov ecx, dword [ebp - 0x38]
push eax
call fcn.100143cb
pop ecx
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x74]
call fcn.10001b5a
push edi
push 1
lea esi, [ebp - 0x58]
call fcn.10001b5a
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.10001b5a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, edi
je 0x10078613
mov eax, dword [ecx]
call dword [eax]
xor eax, eax
jmp 0x100786d2
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x10078626
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x18], 8
jb 0x10078634
mov eax, dword [eax + 4]
jmp 0x10078637
add eax, 4
push 1
xor ebx, ebx
push ebx
push ecx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x100786b5
push 0x100bab00
lea esi, [ebp - 0x58]
call fcn.10003bd6
mov edi, esi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.1002dba6
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 8
jb 0x10078679
mov eax, dword [eax + 4]
jmp 0x1007867c
add eax, 4
mov ecx, dword [ebp - 0x38]
push eax
call fcn.100143cb
pop ecx
push ebx
push 1
lea esi, [ebp - 0x74]
call fcn.10001b5a
push ebx
push 1
lea esi, [ebp - 0x58]
call fcn.10001b5a
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.10001b5a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
jmp 0x1007860d
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.10001b5a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
je 0x100786cf
mov eax, dword [ecx]
call dword [eax]
xor eax, eax
inc eax
call fcn.10088a49
ret 4
Function at 0x1007e19c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov byte [ebp - 1], 1
cmp cl, 0xc
jne 0x1007e1e6
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x1007e20d
shr eax, 2
test al, 1
je 0x1007e216
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1007e249
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x1007e248
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x1008364b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100d15c4], 0
push esi
jne 0x100835be
call fcn.100834e4
test eax, eax
je 0x10083601
mov eax, dword [0x100d15c4]
cmp eax, 1
jne 0x100835df
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10083601
pop esi
ret
push eax
call dword [0x100d15cc]
test eax, eax
jne 0x10083649
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10083605
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x100d15c4]
call dword [0x100d15cc]
mov edi, eax
test edi, edi
je 0x1008362a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10083646
mov edi, esi
add esi, 0xff0
push edi
push dword [0x100d15c4]
call dword [0x100d15c8]
add edi, 0x10
cmp edi, esi
jb 0x10083632
mov eax, edi
pop edi
pop esi
ret
jmp 0x100835ab

Function at 0x100848d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100cd130]
jne 0x100848de
repz ret
jmp fcn.1008bdef
Function at 0x10099b52
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.1008dd12
and dword [ebp - 4], 0
cmp dword [0x100d22a8], 0
mov ebx, eax
jne 0x10099c03
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10099cb4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10099cb4
push eax
call fcn.1008dca0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100d22a8], eax
call esi
push eax
call fcn.1008dca0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100d22ac], eax
call esi
push eax
call fcn.1008dca0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100d22b0], eax
call esi
push eax
call fcn.1008dca0
pop ecx
mov dword [0x100d22b8], eax
test eax, eax
je 0x10099c03
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1008dca0
pop ecx
mov dword [0x100d22b4], eax
mov eax, dword [0x100d22b4]
cmp eax, ebx
je 0x10099c5b
cmp dword [0x100d22b8], ebx
je 0x10099c5b
push eax
call fcn.1008dd1b
push dword [0x100d22b8]
mov esi, eax
call fcn.1008dd1b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10099c5b
test edi, edi
je 0x10099c5b
call esi
test eax, eax
je 0x10099c52
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10099c52
test byte [ebp - 0xc], 1
jne 0x10099c5b
or dword [ebp + 0x10], 0x200000
jmp 0x10099c94
mov eax, dword [0x100d22ac]
cmp eax, ebx
je 0x10099c94
push eax
call fcn.1008dd1b
pop ecx
test eax, eax
je 0x10099c94
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10099c94
mov eax, dword [0x100d22b0]
cmp eax, ebx
je 0x10099c94
push eax
call fcn.1008dd1b
pop ecx
test eax, eax
je 0x10099c94
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100d22a8]
call fcn.1008dd1b
pop ecx
test eax, eax
je 0x10099cb4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10099cb6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4200aa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4200e9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4200e9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4200e9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4200e9
cmp dword [ecx + 0x74], 0xe
jbe 0x4200e9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42609f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44c898
push 0x44c890
push str.FlsAlloc
push 0x1f
call fcn.00425f5e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4260d3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f144]
call esi
jmp 0x4260d9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42611d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44c8a8
push 0x44c8a0
push str.FlsGetValue
push 0x21
call fcn.00425f5e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426154
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42615c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44c8b0
push 0x44c8a8
push str.FlsSetValue
push 0x22
call fcn.00425f5e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426196
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42f144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42794e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4279eb
push ebx
push esi
call fcn.00427917
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004278ab
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x427998
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4279ea
push edi
push eax
call fcn.00426361
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4279b8
call fcn.004263af
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4279e9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004278ab
add esp, 0x20
test eax, eax
jne 0x4279d7
push edi
call fcn.004263af
jmp 0x4279df
push ebx
call fcn.004263af
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42dc30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42dc5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42dc5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41952b
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d0
pushal
lea eax, [ebp - 0x720]
mov dword [ebp - 0x10], eax
push eax
call fcn.00417332
lea eax, [ebp - 0x520]
mov dword [ebp - 4], eax
push eax
call fcn.00417b4a
lea eax, [ebp - 0x620]
mov dword [ebp - 0xc], eax
push eax
jmp loc.0041c8f8

Function at 0x4195ec
Capabilities:
Terminate process

Disassembly:
call fcn.004195f9
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x4182a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x4182b5
pop dword [ebp - 8]
mov eax, 0xed6eac6e
sub eax, 0xed2d29b9
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x4ca36
push 0
mov eax, 0x64710f9b
add eax, 0x9bd3a315
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x3041edfd
sub ecx, 0x3041b3fc
mov ebx, eax
mov edx, 0x6deb89eb
add edx, 0x925d0415
add edx, dword [ebp - 8]
mov edi, 0x4a56738c
sub edi, 0xf181531
sub dword [ebp - 4], 0x894f174d
mov esi, dword [edx]
mov dword [ebp - 4], 0x434d9ee9
xor esi, edi
mov dword [ebx], esi
add dword [ebp - 4], ebx
add ebx, 4
add edx, 0xd676e9ec
add edx, 0x29891618
loop 0x418314
add eax, 0xdad7
mov ebx, eax
add eax, 5
mov ecx, 0x325caa3e
add ecx, 0xcde355c2
add ecx, dword [ebp - 8]
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 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x20202eb5
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x166531b5
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1000ce60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1000ce6f
pop dword [ebp - 0x10]
mov eax, 0x1000ce6f
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x38466
push 0
mov eax, 0xb3b3fe7c
sub eax, 0xa3b29d3c
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x3fd2
xor esi, esi
add esi, eax
mov edi, 0x10024400
add edi, dword [ebp - 0x10]
mov ebx, 0xd5f30853
add ebx, 0xf33e7d1b
xor dword [ebp - 4], 0x4fd45006
mov edx, dword [edi]
xor dword [ebp - 8], 0x5fbefa26
xor edx, ebx
sub dword [ebp - 4], eax
mov dword [esi], edx
add dword [ebp - 4], 0xfaa93caa
add esi, 0x3c8f1ad4
sub esi, 0x3c8f1ad0
add edi, 0xeee1a021
add edi, 0x111e5fe3
loop 0x1000cebf
add eax, 0x3e39abab
sub eax, 0x3e38b990
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xffc6af3d
sub ecx, 0xefc6af3d
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x1000e8d0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0x10]
add esi, 0x568
push 0x10017bc8
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000e959
push str.file:__
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000e959
push dword [ebp + 0xc]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000e959
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
je 0x1000e95c
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x1000e955
add eax, 0xfffffffd
cmp eax, 1
ja 0x1000e95c
mov esi, edi
jmp 0x1000e95c
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.1000ce60
add esp, 0x10
pop edi
pop esi
leave
ret 0x20
Function at 0x40167e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x30efa34]
sub esp, 0x400
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x30ef42c]
test esi, esi
je 0x4016c9
cmp eax, 0x959
jne 0x4016b5
push 0
lea eax, [ebp - 0x400]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, edi
call fcn.00401481
add edi, 8
dec esi
je 0x4016c9
mov eax, dword [0x30efa34]
jmp 0x40169d
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4