joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aeeab
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 0x4aef48
push ebx
push esi
call fcn.004aee67
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.004aeda4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4aeef5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4aef47
push edi
push eax
call fcn.004b16ae
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4aef15
call fcn.004acb89
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4aef46
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004aeda4
add esp, 0x20
test eax, eax
jne 0x4aef34
push edi
call fcn.004acb89
jmp 0x4aef3c
push ebx
call fcn.004acb89
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 0x4aef4b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4aef5c
pop esi
ret
push ebx
push edi
push esi
call fcn.004aee67
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b16ae
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4aef84
push ebx
push esi
push edi
call fcn.004897b0
add esp, 0xc
push 0
call fcn.004acb89
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4af873
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004af1f9

Function at 0x4b39c6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004abee3
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b3a35
cmp esi, dword [ebp - 4]
je 0x4b3a30
cmp dword [ebp + 0xc], 0
je 0x4b3a30
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b3a0d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004b3518
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4b3a37
xor eax, eax
inc eax
jmp 0x4b3a37
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4b3a9c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x519180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004abee3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004abee3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4b3b13
cmp word [ecx], dx
je 0x4b3b13
mov eax, dword [0x508824]
push edi
dec eax
push eax
push 0x508710
call fcn.004b3a3b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4b3b86
cmp word [eax], dx
je 0x4b3b86
mov eax, dword [edi]
test eax, eax
je 0x4b3b37
cmp word [eax], dx
je 0x4b3b37
lea eax, [ebp - 0x10]
push eax
call fcn.004b341e
jmp 0x4b3b40
lea eax, [ebp - 0x10]
push eax
call fcn.004b34b9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4b3bb0
mov eax, dword [0x50870c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x508400
call fcn.004b3a3b
add esp, 0xc
test al, al
je 0x4b3bb0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4b3b7b
cmp word [eax], di
je 0x4b3b7b
lea eax, [ebp - 0x10]
push eax
call fcn.004b341e
pop ecx
jmp 0x4b3bb2
lea eax, [ebp - 0x10]
push eax
call fcn.004b34b9
jmp 0x4b3b78
mov eax, dword [edi]
test eax, eax
je 0x4b3b9d
cmp word [eax], dx
je 0x4b3b9d
lea eax, [ebp - 0x10]
push eax
call fcn.004b33b5
pop ecx
jmp 0x4b3bb0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4b3c7b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004b38c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4b3c7b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4b3c7b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4b3c7b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b3c08
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004b4989
test ebx, ebx
je 0x4b3c76
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004b4989
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b3c7b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b3c7b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004b9c03
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4b3c7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00480bf9
leave
ret
Function at 0x4b45fb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x509a4c
push 0x509a44
push str.FlsAlloc
push 0x1f
call fcn.004b42c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b462f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ca218]
call esi
jmp 0x4b4635
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b4679
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x509a5c
push 0x509a54
push str.FlsGetValue
push 0x21
call fcn.004b42c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b46b0
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ca218]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4b46b8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x509a64
push 0x509a5c
push str.FlsSetValue
push 0x22
call fcn.004b42c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b46f2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4ca218]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4c0d6b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x51ab10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c0dab
cmp byte [ebx], 0xa
jne 0x4c0dab
or byte [edi + eax + 0x28], 4
jmp 0x4c0db0
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4c0eaf
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4c0e92
inc eax
cmp dl, 0xd
je 0x4c0ddc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4c0e02
cmp eax, ecx
jae 0x4c0e10
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4c0dc4
jmp 0x4c0eaf
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c0e8d
cmp dword [ebp - 0x10], 0
je 0x4c0e8d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x51ab10]
test byte [eax + edi + 0x28], 0x48
je 0x4c0e67
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4c0e52
mov byte [esi], dl
jmp 0x4c0e63
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51ab10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4c0eaf
cmp byte [ebp - 1], 0xa
jne 0x4c0e76
cmp esi, ebx
jne 0x4c0e76
mov byte [esi], 0xa
jmp 0x4c0eae
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c0bbd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c0eaf
mov byte [esi], 0xd
jmp 0x4c0eae
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x51ab10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c0eac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c0eaf
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c0eba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x51ab10]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c0f00
cmp word [ebx], dx
jne 0x4c0f00
or byte [eax + edi + 0x28], 4
jmp 0x4c0f05
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4c1068
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4c1048
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4c0f46
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4c0f7c
cmp eax, edx
jae 0x4c0f8a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4c0f21
jmp 0x4c1068
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c1043
cmp dword [ebp - 0x18], 0
je 0x4c1043
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x51ab10]
test byte [eax + edi + 0x28], 0x48
je 0x4c1019
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4c0fdd
mov word [esi], cx
jmp 0x4c1014
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x51ab10]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x51ab10]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x51ab10]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4c1068
pop eax
cmp word [ebp - 4], ax
jne 0x4c1029
cmp esi, ebx
jne 0x4c1029
mov word [esi], ax
jmp 0x4c1065
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c0bbd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4c1068
push 0xd
pop eax
jmp 0x4c1024
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x51ab10]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4c1062
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4c1068
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c5a40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c5a6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c5a6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x1000133c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call fcn.10001501
dec edi
cmp byte [esi], al
out dx, eax
insb byte es:[edi], dx
mov ebp, 0x3aea1b1d
sar byte [edi + 0x436ba442], 0x68
pop esi
cld
xchg esp, eax
movsb byte es:[edi], byte [esi]
pop esi
push ds
add al, 0xf
sub al, 0xcd
invalid
push eax
push esi
push ecx
stc
push edx
push ebx
push edi
jb 0x10001310
pop edx
dec esp
push esi
mov esi, 0xe0047fe
aas
mov ebp, 0x7b2e8122
xchg dword [esi - 0xa0de75c], esi
cmpsb byte [esi], byte es:[edi]
push ss
daa
add al, 0xaf
xchg esi, eax
sbb dword [eax], ebx
cmc
test byte [ebx - 0x5d], dl
in eax, dx
setbe byte [ebp + 0x11]
pop esp
invalid
Function at 0x4016d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a12a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49611c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0042fe3f
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x401790
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00449e1d
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x49435c
push eax
call fcn.0044bd64
push edi
push esi
call fcn.0043019f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448a58
mov esp, ebp
pop ebp
ret 4

Function at 0x402260
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x49611c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 8]
push 0
push 1
push 0
push 0
push eax
mov esi, ecx
call edi
test eax, eax
jne 0x4022bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4022bd
push 8
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jne 0x4022bd
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448a58
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
cmp ecx, 0x10
jb 0x4022e2
mov dword [esi + 0x10], 0x10
cmp dword [esi + 0x14], 0x10
jb 0x4022da
mov eax, dword [esi]
mov byte [eax + 0x10], 0
jmp 0x4022f3
mov eax, esi
mov byte [eax + 0x10], 0
jmp 0x4022f3
mov eax, 0x10
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00406070
cmp dword [esi + 0x14], 0x10
jb 0x4022fd
mov eax, dword [esi]
jmp 0x4022ff
mov eax, esi
push dword [esi + 0x10]
push 0
push eax
call fcn.0044bde0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x402317
mov eax, dword [esi]
jmp 0x402319
mov eax, esi
push eax
push 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x402352
push ebx
xor edi, edi
mov ebx, 0xfe
mov ecx, esi
call fcn.004038f0
xor edx, edx
movzx eax, byte [eax + edi]
div ebx
add dl, 0x20
call fcn.004038f0
mov byte [eax + edi], dl
inc edi
cmp edi, 0x10
jl 0x402331
pop ebx
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00448a58
mov esp, ebp
pop ebp
ret
Function at 0x40c340
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ad26
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x49611c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x30]
call fcn.00403a20
mov dword [ebp - 4], 0
call fcn.004156e0
test eax, eax
je 0x40c397
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov dword [ebp - 0x50], 0x49a6c0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x50]
call fcn.0040cb40
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.0040cb30
jmp 0x40c3ca
lea ecx, [ebp - 0x14]
call fcn.0040c5d0
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040c5b0
movzx eax, al
test eax, eax
je 0x40c49f
lea ecx, [ebp - 0x14]
call fcn.0040aa90
push eax
lea ecx, [ebp - 0x48]
call fcn.00407970
mov byte [ebp - 4], 1
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0xb0]
call fcn.00412b90
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x58]
push edx
mov edx, str.cmd__c__
lea ecx, [ebp - 0x98]
call fcn.0040efd0
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
push 0x47d4b8
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x80]
call fcn.0040f020
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040ccc0
lea ecx, [ebp - 0x80]
call fcn.00403900
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.00403900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.00403900
push 0
lea ecx, [ebp - 0x30]
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00403880
jmp 0x40c3c2
call fcn.004156e0
test eax, eax
je 0x40c4b2
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448a58
mov esp, ebp
pop ebp
ret
Function at 0x40e790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a8f6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49611c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00448c8d
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043009c
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x49611c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0x54], 0x61707865
mov dword [ebp - 0x50], 0x3120646e
mov dword [ebp - 0x4c], 0x79622d36
mov dword [ebp - 0x48], 0x6b206574
nop word [eax + eax]
mov eax, 0xcccccccd
mul ecx
shr edx, 4
movzx eax, byte [ebp + edx*4 - 0x54]
mov byte [ebx + ecx], al
movzx eax, byte [ebp + edx*4 - 0x53]
mov byte [ebx + ecx + 1], al
movzx eax, byte [ebp + edx*4 - 0x52]
mov byte [ebx + ecx + 2], al
movzx eax, byte [ebp + edx*4 - 0x51]
mov byte [ebx + ecx + 3], al
add ecx, 0x14
cmp ecx, 0x40
jl 0x412060
mov edi, dword [ebp + 0xc]
lea edx, [ebx + 0x2c]
mov ecx, dword [ebp + 8]
mov esi, 0x10
sub edi, ecx
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx - 0x28], al
lea edx, [edx + 1]
movzx eax, byte [ecx - 1]
mov byte [edx - 1], al
movzx eax, byte [edi + ecx - 1]
mov byte [edx - 0x15], al
sub esi, 1
jne 0x4120a5
lea esi, [ebx + 2]
xor edi, edi
mov edx, esi
nop dword [eax]
movzx ecx, byte [edx + 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
add eax, ecx
mov dword [ebp + edi - 0x44], eax
mov dword [ebp + edi - 0x94], eax
add edi, 4
cmp edi, 0x40
jl 0x4120d0
mov edx, 0xa
nop word [eax + eax]
lea ecx, [ebp - 0x44]
call fcn.00411f60
call fcn.00411ea0
sub edx, 1
jne 0x412110
mov eax, dword [ebp + edx - 0x94]
lea esi, [esi + 4]
add dword [ebp + edx - 0x44], eax
mov ecx, dword [ebp + edx - 0x44]
mov eax, ecx
shr eax, 8
add edx, 4
mov byte [esi - 5], al
mov eax, ecx
mov byte [esi - 6], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esi - 4], al
mov byte [esi - 3], cl
cmp edx, 0x40
jl 0x412122
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448a58
mov esp, ebp
pop ebp
ret