joyce8/EMBER2024-capa huggingface dataset:
Function at 0x758f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x758fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x758fcf
push ebx
push edi
push 0x77c770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x758fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x77c770
push esi
call ebx
test eax, eax
je 0x758fae
mov ebp, 3
cmp dword [0x77c774], ebp
jne 0x758faa
push 0x3e8
call edi
push 0x77c770
push esi
call ebx
test eax, eax
jne 0x758f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x758fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x758fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0x75ce00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x7728f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x75ced2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.007597a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x75ce61
mov edx, dword [eax]
jmp 0x75ce63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.0075b050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x75cebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x75cebf
cmp esi, edi
je 0x75cebf
mov ecx, esi
call fcn.00754a00
push esi
call fcn.007621c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00759990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x75cef5
mov eax, dword [eax]
jmp 0x75cef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00758640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x75cf25
mov eax, dword [eax]
jmp 0x75cf27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x75cf76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x75cf76
cmp esi, edi
je 0x75cf76
mov eax, dword [esi]
cmp eax, edi
je 0x75cf5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x75cf6d
push eax
call fcn.007621c8
add esp, 4
push esi
call fcn.007621c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x75cf90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x75cffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x75d035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0075ce00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x75cfc5
mov edi, 0x7778b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x75d035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0075ce00
add edi, 4
add esp, 0xc
cmp edi, 0x7778c0
jb 0x75d000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x75d070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00763082
mov esi, eax
add esp, 8
test esi, esi
je 0x75d107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x75d102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00762946
add esp, 8
test eax, eax
je 0x75d0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x75d0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00762946
add esp, 8
test eax, eax
jne 0x75d0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x75d102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x75df10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7729fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x75e002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00761dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x75e002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007596e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0076220b
push 0x10
call fcn.007621d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x75dfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0074e1c0
jmp 0x75dfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0075db80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x75dff0
mov ecx, edi
call fcn.0074e2c0
push edi
call fcn.007621c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x75e021
inc ebx
cmp ebx, 0x20
jb 0x75df3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x75f250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x773808
push 0x763288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x75f329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x75f329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007621d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x75f329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x75f329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x75f32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0075f351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x760000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x760131
push esi
call fcn.00763145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00752080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x760131
push 0
push ebp
call fcn.007523a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00752260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x76008b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007522f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x760121
push 0x778918
push edi
call fcn.007613f0
push eax
push ebx
push esi
call fcn.0075ff60
push 0x7788f8
push edi
call fcn.007613f0
push eax
push ebx
push esi
call fcn.0075ff60
push 0x7788d8
push edi
call fcn.007613f0
push eax
push ebx
push esi
call fcn.0075ff60
push 0x7788c0
push edi
call fcn.007613f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0075ff60
push 0x7788a0
push edi
call fcn.007613f0
push eax
push ebx
push esi
call fcn.0075ff60
push 0x778888
push edi
call fcn.007613f0
push eax
push ebx
push esi
call fcn.0075ff60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7611b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00761140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00761140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00761140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00761140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x761bfa
Capabilities:
Query or enumerate registry value

Disassembly:
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 str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x761c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x77387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x761c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x761c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x405f2e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42bdb4], 0
push esi
jne 0x405f65
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f3f
mov dword [ecx*4 + 0x42bdb0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f3a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f96
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42bdb0]
xor eax, esi
inc ecx
dec edx
jne 0x405f78
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408e84
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
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, 0x50053aa3
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3f0f329d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x405f20
Capabilities:
Allocate thread local storage

Disassembly:
add esp, 8
sti
fnstcw word [esi]
pop es
retf 0x8d29
push ebp
test eax, 0x98ec81ec
add dword [eax], eax
add byte [ecx + 0x66cc0388], ah
mov ecx, eax
inc eax
jecxz 0x405ed0
mov dword [0x3241f688], eax
je 0x405f40
xor eax, eax
mov esp, ebp
pop ebp
inc esi
lea edx, [ebp - 8]
push edx
call 0xe3409820
add esp, 4
test eax, eax
jne 0x40a5d6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
bound edx, qword [ecx + ecx + 0x41]
sbb esp, dword [eax - 0x24]
jmp 0xc0c57de7
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
push edi
mov dword [ebp - 4], 0
jge 0x40a5f9
mov eax, dword [ebp + 0xc]
xor ecx, dword [edi - 0x7d]
cmp byte [eax], al
je 0x40a5f9
mov ecx, dword [eax + ebx*4 + 4]
inc ebx
test ecx, eax
jne 0x40a5f0
jnp 0x40a5ff
popfd
add al, 0xf6
add byte [eax], al
push esi
push eax
add byte [esi + 0x50], dl
jmp eax
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x5ad57fc8
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5bf30dc1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x4ca241
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4c9fca
push eax
pop eax
call fcn.004ca274
add esi, eax
and esi, eax
xor dword [ebx], edi
sub esi, 0xf136aaee
add ebx, 1
mov esi, eax
cmp ebx, ecx
jne fcn.004ca241
sub eax, eax
sub esi, eax
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x532753a6
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x76ac2d55
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40ae20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x434
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x413260
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x440]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [0x45d3a4]
mov ebx, 0x200
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], 0
cmp ebx, 0x201
jae 0x40aea2
jmp 0x40aee0
cmp edi, ebx
mov ebx, edi
jb 0x40af36
cmp ebx, 0x201
jb 0x40aee0
mov ecx, dword [ebp - 0x30]
mov eax, ebx
sub eax, esi
sub ecx, esi
cmp ecx, eax
jae 0x40aed0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
mov edx, esi
push eax
call fcn.00459ad0
add esp, 4
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x20]
mov esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
jmp 0x40aeed
lea edi, [ebp - 0x440]
mov dword [ebp - 0x28], 0x200
mov dword [ebp - 0x24], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x40af10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40af74
cmp edi, ebx
jne 0x40ae90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40ae90
add ebx, ebx
cmp ebx, 0x201
jb 0x40aee0
jmp 0x40aea2
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x40afc3
lea eax, [ebp - 0x40]
push edi
push dword [ebp - 0x24]
push eax
call fcn.0040cc90
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x40]
mov dword [esi + 0xc], eax
movsd qword [esi + 4], xmm0
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40af95
jmp 0x40afad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40afad
cmp dword [ebp - 0x20], 0
je 0x40afad
add eax, eax
je 0x40afad
push 2
push eax
push dword [ebp - 0x20]
call fcn.00407d00
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x434
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x45e834
push eax
push edi
call fcn.00458700
add esp, 0xc
ud2
Function at 0x40da80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc0
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0xe0]
lea eax, [esp + 4]
push dword [esp + 0xd8]
push dword [esp + 0xd8]
push eax
call fcn.0040dc70
add esp, 0xc
lea eax, [esp + 0xa0]
push edi
push esi
push eax
call fcn.0040dc70
add esp, 0xc
lea ebp, [esp + 0x49]
lea esi, [esp + 0x60]
nop dword [eax]
movzx edx, byte [esp + 0xc]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edi, esi
cmp dl, 6
je 0x40db05
lea esi, [esp + 4]
mov ebx, dword [esi + 0x18]
movsd xmm0, qword [esi + 9]
movsd xmm1, qword [esi + 0x11]
mov dword [esp + 0x6f], ebx
movsd qword [esp + 0x68], xmm1
movsd qword [esp + 0x60], xmm0
mov dword [esp + 0x40], eax
movzx ebx, byte [esp + 0x20]
movsd xmm1, qword [esp + 0x68]
mov eax, dword [esp + 0x6f]
movzx esi, word [esp + 0x21]
movsd xmm0, qword [esp + 0x60]
mov dword [esp + 0x44], ecx
mov byte [esp + 0x48], dl
movsd qword [ebp + 8], xmm1
mov dword [ebp + 0xf], eax
lea eax, [esp + 0x40]
test bl, bl
movsd qword [ebp], xmm0
setne byte [esp + 0x5c]
mov word [esp + 0x5d], si
push eax
mov esi, edi
push edi
call fcn.0040d670
add esp, 8
lea eax, [esp + 0xa0]
push eax
lea edi, [esp + 0x84]
push edi
call fcn.0040d670
add esp, 8
mov ecx, dword [esp + 0x80]
cmp dword [esp + 0x60], 5
je 0x40dbc5
cmp ecx, 5
je 0x40dbcc
mov ecx, esi
mov edx, edi
call fcn.00411440
test al, al
je 0x40dc15
movsd xmm1, qword [esp + 0x48]
movsd xmm0, qword [esp + 0x40]
movsd xmm2, qword [esp + 0x50]
movsd qword [esp + 0xc], xmm1
movsd xmm1, qword [esp + 0x58]
movsd qword [esp + 4], xmm0
movsd qword [esp + 0x14], xmm2
movsd qword [esp + 0x1c], xmm1
jmp 0x40dad0
mov al, 2
cmp ecx, 5
jne 0x40dc0d
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
movsd xmm0, qword [esp + 0x14]
movsd xmm1, qword [esp + 0xc]
mov dword [esp + 0x3c], eax
movzx eax, word [ecx + 0x1d]
movsd qword [esp + 0x34], xmm0
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x2c], xmm1
mov word [esp], ax
mov al, byte [ecx + 0x1f]
movsd qword [esp + 0x24], xmm0
mov byte [esp + 2], al
mov eax, ebx
cmp al, 2
jne 0x40dc1b
xor eax, eax
jmp 0x40dc65
mov al, 2
cmp al, 2
je 0x40dc11
mov ecx, dword [esp + 0x3c]
movsd xmm0, qword [esp + 0x34]
movsd xmm2, qword [esp + 0x24]
movsd xmm1, qword [esp + 0x2c]
mov dword [esp + 0x78], ecx
movsd qword [esp + 0x70], xmm0
movsd qword [esp + 0x68], xmm1
movsd qword [esp + 0x60], xmm2
mov byte [esp + 0x7c], al
movzx eax, word [esp]
mov word [esp + 0x7d], ax
mov al, byte [esp + 2]
mov byte [esp + 0x7f], al
push esi
call fcn.0040d080
add esp, 4
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret