joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10056560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0f9e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x100567b4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 1
call fcn.1004df50
add esp, 4
lea ecx, [ebp - 0x224]
mov esi, eax
push dword [esi + 0xc]
call fcn.10002180
mov dword [ebp - 4], 1
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x100567be
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push str.InstallDate
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.100020c0
test al, al
jne 0x1005663c
push 0xb
push str.InstallDate
lea ecx, [ebp - 0x21c]
call fcn.10001950
cmp dword [esi], 2
mov byte [ebp - 4], 3
jne 0x10056657
push 4
push str.Date
lea ecx, [ebp - 0x21c]
call fcn.10001950
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
push 0x20219
push dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10004f20
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x238]
test eax, eax
jne 0x1005674e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1006c590
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005674e
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x100566fb
cmp eax, 2
jne 0x1005674e
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10056718
test al, 1
jne 0x1005674e
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x10056721
jmp 0x1005674e
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10056730
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10001950
test edi, edi
je 0x10056759
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10056777
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10056796
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
int3
Function at 0x10056d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0f9e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x10056f94
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 1
call fcn.1004df50
add esp, 4
lea ecx, [ebp - 0x224]
mov eax, dword [eax + 0xc]
push eax
call fcn.10002180
mov dword [ebp - 4], 1
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x10056f9e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x100aba34
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.100020c0
test al, al
jne 0x10056e3b
push 3
push 0x100aba34
lea ecx, [ebp - 0x21c]
call fcn.10001950
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
push 0x20219
push dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10004f20
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x238]
test eax, eax
jne 0x10056f2e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1006c590
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10056f2e
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x10056edf
cmp eax, 2
jne 0x10056f2e
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10056efc
test al, 1
jne 0x10056f2e
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x10056f05
jmp 0x10056f2e
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10056f10
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10001950
test edi, edi
je 0x10056f39
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10056f57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10056f76
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
int3
Function at 0x10056ff0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x10057184
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x228]
push eax
call edi
test esi, esi
jle 0x1005705f
lea eax, [ebp - 0x228]
push eax
call edi
sub esi, 1
jne 0x10057051
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x63c], 0
push eax
call fcn.1004df30
mov ecx, dword [ebp - 0x63c]
mov edi, eax
add esp, 4
mov esi, edi
lea ecx, [ecx + ecx*4]
shl ecx, 4
add ecx, edi
cmp edi, ecx
je 0x10057184
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x638]
push 0
push eax
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x228]
push dword [esi + 8]
push eax
lea eax, [ebp - 0x638]
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi]
test eax, eax
jne 0x100571aa
cmp ecx, 2
jne 0x1005716b
push 0x208
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.1006c590
add esp, 0xc
mov dword [ebp - 0x20], 0x61004d
lea eax, [ebp - 0x430]
mov dword [ebp - 0x1c], 0x740073
mov dword [ebp - 0x18], 0x720065
mov dword [ebp - 0x14], 0x440050
push 0
push 0x1a
push eax
push 0
mov dword [ebp - 0x10], 0x440046
mov dword [ebp - 0xc], 0x740061
mov dword [ebp - 8], 0x61
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x10057197
mov eax, dword [ebp - 0x63c]
add esi, 0x50
lea eax, [eax + eax*4]
shl eax, 4
add eax, edi
cmp esi, eax
jne 0x100570a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100612dc
mov esp, ebp
pop ebp
ret
Function at 0x1005d610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1a08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100cd4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1006129e
mov edi, eax
add esp, 4
test edi, edi
je 0x1005d6ad
push 1
mov dword [ebp - 4], 0
call fcn.1004fc44
add esp, 4
mov dword [edi + 4], eax
jmp 0x1005d6af
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.10050613
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x1005d711
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x1005d711
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x1005d734
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1005d757
cmp byte [ebp + 0xc], 0
je 0x1005d743
push esi
call fcn.1005001b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1005d763
mov esi, str.ios_base::badbit_set
jmp 0x1005d773
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.10007720
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.100036e0
push 0x100c3dac
lea eax, [ebp - 0x30]
push eax
call fcn.1006b236
int3
Function at 0x10063f50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.10064080
add esp, 8
test al, al
je 0x10063f75
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10063f75
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x10064080
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x10064400
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006442b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1006442b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x10065ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10065ad0
Function at 0x100670d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a21b3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.1004df90
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x100672e3
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x100672e3
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x100672e3
push eax
call esi
test eax, eax
je 0x100672e3
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10004f20
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x100672d4
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1006c590
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100672d4
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x100671fb
cmp eax, 2
jne 0x100672d4
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1006721c
test cl, 1
jne 0x100672d4
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x10067222
jmp 0x100672d4
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x100672d4
lea ecx, [ebp - 0x78]
call fcn.10001d60
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.10065610
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x100a3cec
push eax
call fcn.10009cd0
push 0x2a
push dword [ebp - 0x78]
call fcn.10065ad0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x100672cc
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10067282
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.10065470
push dword [0x100cd500]
lea eax, [ebp - 0x74]
push dword [0x100cd4fc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x100672bd
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.10001a80
mov edi, 1
jmp 0x100672d6
lea ecx, [ebp - 0x78]
call fcn.10001a80
xor edi, edi
test esi, esi
je 0x100672e5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100672e5
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
Function at 0x10067320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10067335
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10067340
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1006a440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1006a4b1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1006a47f
cmp eax, 2
jne 0x1006a49b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1006a4ab
test ecx, ecx
je 0x1006a4a6
test cl, 1
jne 0x1006a49b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1006a4ab
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10090c0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10090a8e

Function at 0x100970e4
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10096fe9

Function at 0x100981ac
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10097e6c
Function at 0x40f2b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040fc50
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff0
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
leave
shl edx, 5
add eax, edx
ret
Function at 0x4049f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404a14
xor eax, eax
pop esi
pop ecx
ret
push edi
push 2
push 0
push 0xfffffdc2
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
test edi, edi
je 0x404a4d
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x23e
push edx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x404b06
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414044]
jne 0x404b10
repz ret
jmp fcn.00406435

Function at 0x40ec97
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.004082f6
and dword [ebp - 4], 0
cmp dword [0x415be4], 0
mov ebx, eax
jne 0x40ed48
push 0x412470
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40edf9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x412464
push edi
call esi
test eax, eax
je 0x40edf9
push eax
call fcn.00408284
mov dword [esp], 0x412454
push edi
mov dword [0x415be4], eax
call esi
push eax
call fcn.00408284
mov dword [esp], 0x412440
push edi
mov dword [0x415be8], eax
call esi
push eax
call fcn.00408284
mov dword [esp], 0x412424
push edi
mov dword [0x415bec], eax
call esi
push eax
call fcn.00408284
pop ecx
mov dword [0x415bf4], eax
test eax, eax
je 0x40ed48
push 0x41240c
push edi
call esi
push eax
call fcn.00408284
pop ecx
mov dword [0x415bf0], eax
mov eax, dword [0x415bf0]
cmp eax, ebx
je 0x40eda0
cmp dword [0x415bf4], ebx
je 0x40eda0
push eax
call fcn.004082ff
push dword [0x415bf4]
mov esi, eax
call fcn.004082ff
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40eda0
test edi, edi
je 0x40eda0
call esi
test eax, eax
je 0x40ed97
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ed97
test byte [ebp - 0xc], 1
jne 0x40eda0
or dword [ebp + 0x10], 0x200000
jmp 0x40edd9
mov eax, dword [0x415be8]
cmp eax, ebx
je 0x40edd9
push eax
call fcn.004082ff
pop ecx
test eax, eax
je 0x40edd9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40edd9
mov eax, dword [0x415bec]
cmp eax, ebx
je 0x40edd9
push eax
call fcn.004082ff
pop ecx
test eax, eax
je 0x40edd9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415be4]
call fcn.004082ff
pop ecx
test eax, eax
je 0x40edf9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40edfb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xeff588
Capabilities:
Encode data using xor

Disassembly:
jmp 0xeff592
pushal
call 0xeff598
pop ebp
sub ebp, 0x10
sub ebp, 0xaff588
jmp 0xeff5ae
mov eax, 0xaff588
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d0
mov edx, 0xc3b5f448
xor byte [eax], dl
inc eax
dec ecx
jne 0xeff5c5
jmp 0xeff5d8
ret
Function at 0x40319c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x4031ab
pop dword [ebp - 0x28]
mov eax, 0xfb904d98
add eax, 0x4afe413
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x56d4a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x62b8
mov edi, eax
mov ebx, 0x488e00
add ebx, dword [ebp - 0x28]
mov esi, 0x5a1c9a88
xor dword [ebp - 8], 0x95a6a5
mov edx, dword [ebx]
sub dword [ebp - 0x14], esi
add edx, esi
mov dword [edi], edx
add edi, 0x490ab02
add edi, 0xfb6f5502
add ebx, 0xdbab45a0
sub ebx, 0xdbab459c
loop 0x4031f3
add eax, 0xfa683181
sub eax, 0xfa66b3ce
mov ebx, eax
add eax, 0xdcb82cac
sub eax, 0xdcb82ca7
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
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 0x4013b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x4013c9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x401406
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401402
nop word [eax + eax]
cmp esi, edx
jae 0x401406
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4013f0
cmp esi, edx
jb 0x40140d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret