joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc09e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xc1f8f0
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 0xc09ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00c067a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xc09e61
mov edx, dword [eax]
jmp 0xc09e63
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.00c08050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xc09ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xc09ebf
cmp esi, edi
je 0xc09ebf
mov ecx, esi
call fcn.00c01a00
push esi
call fcn.00c0f1c8
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.00c06990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xc09ef5
mov eax, dword [eax]
jmp 0xc09ef7
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.00c05640
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 0xc09f25
mov eax, dword [eax]
jmp 0xc09f27
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 0xc09f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xc09f76
cmp esi, edi
je 0xc09f76
mov eax, dword [esi]
cmp eax, edi
je 0xc09f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xc09f6d
push eax
call fcn.00c0f1c8
add esp, 4
push esi
call fcn.00c0f1c8
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 0xc09f90
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 0xc09ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xc0a035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00c09e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xc09fc5
mov edi, 0xc248b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xc0a035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00c09e00
add edi, 4
add esp, 0xc
cmp edi, 0xc248c0
jb 0xc0a000
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 0xc0a070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00c10082
mov esi, eax
add esp, 8
test esi, esi
je 0xc0a107
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 0xc0a102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00c0f946
add esp, 8
test eax, eax
je 0xc0a0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xc0a0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00c0f946
add esp, 8
test eax, eax
jne 0xc0a0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xc0a102
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 0xc0af10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xc1f9fb
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 0xc0b002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00c0edff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xc0b002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00c066e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00c0f20b
push 0x10
call fcn.00c0f1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xc0afc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00bfb1c0
jmp 0xc0afc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00c0ab80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xc0aff0
mov ecx, edi
call fcn.00bfb2c0
push edi
call fcn.00c0f1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xc0b021
inc ebx
cmp ebx, 0x20
jb 0xc0af3e
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 0xc0c250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc20808
push 0xc10288
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 0xc0c329
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 0xc0c329
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.00c0f1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xc0c329
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 0xc0c329
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 0xc0c32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00c0c351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xc0cd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc0cd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xc0cd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xc0cd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xc0cd94
push eax
push esi
call fcn.00c0f20b
add esp, 8
pop esi
ret 0x10

Function at 0xc0cda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc0ce22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xc0ce15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xc25320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c0edff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xc0cdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xc0ce30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xc0cec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xc0ceb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xc25320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00c0edff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xc0ceab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xc0ce6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xc0d000
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 0xc0d131
push esi
call fcn.00c10145
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.00bff080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xc0d131
push 0
push ebp
call fcn.00bff3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00bff260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xc0d08b
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.00bff2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xc0d121
push 0xc25918
push edi
call fcn.00c0e3f0
push eax
push ebx
push esi
call fcn.00c0cf60
push 0xc258f8
push edi
call fcn.00c0e3f0
push eax
push ebx
push esi
call fcn.00c0cf60
push 0xc258d8
push edi
call fcn.00c0e3f0
push eax
push ebx
push esi
call fcn.00c0cf60
push 0xc258c0
push edi
call fcn.00c0e3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00c0cf60
push 0xc258a0
push edi
call fcn.00c0e3f0
push eax
push ebx
push esi
call fcn.00c0cf60
push 0xc25888
push edi
call fcn.00c0e3f0
push eax
push ebx
push esi
call fcn.00c0cf60
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 0xc0e1b0
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.00c0e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00c0e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00c0e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00c0e140
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 0xc0ebfa
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 0xc0ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xc2087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xc0ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xc0ec52
xor eax, eax
pop esi
leave
ret 4

Function at 0x62ba41
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6333a0
cmp edx, dword [eax]
je 0x62ba63
add eax, 8
inc ecx
cmp eax, 0x633430
jl 0x62ba54
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6333a0]
jne 0x62bb91
mov eax, dword [0x63bd30]
cmp eax, 1
je 0x62bb6b
test eax, eax
jne 0x62ba94
cmp dword [0x6332cc], 1
je 0x62bb6b
cmp edx, 0xfc
je 0x62bb91
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62bacb
lea eax, [ebp - 0x1a4]
push 0x630958
push eax
call fcn.0062c420
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062c8b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62bb0e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062c8b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x630954
push edi
call fcn.0062e780
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x630938
push eax
call fcn.0062c420
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062c430
lea eax, [ebp - 0xa0]
push 0x630934
push eax
call fcn.0062c430
push dword [esi + 0x6333a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062c430
push 0x12010
lea eax, [ebp - 0xa0]
push 0x63090c
push eax
call fcn.0062e6f4
add esp, 0x2c
pop edi
jmp 0x62bb91
lea eax, [ebp + 8]
lea esi, [esi + 0x6333a4]
push 0
push eax
push dword [esi]
call fcn.0062c8b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10002150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x20], ecx
lea eax, [ebp + 8]
mov dword [esi + 0x24], eax
mov eax, dword [0x10096480]
xor eax, ebp
mov dword [esi + 0x78], eax
mov dword [esi + 0x28], 0x5f0968ee
mov eax, dword [esi + 0x28]
mov dword [esi + 0x1c], eax
sub eax, 0xc7b6a82e
je 0x100022a8
jmp 0x10002191
mov eax, dword [esi + 0x1c]
sub eax, 0xd1d2ff3f
je 0x10002372
jmp 0x100021a4
mov eax, dword [esi + 0x1c]
sub eax, 0x235cb404
je 0x1000229c
jmp 0x100021b7
mov eax, dword [esi + 0x1c]
sub eax, 0x5f0968ee
je 0x100021e2
jmp 0x100021ca
mov eax, dword [esi + 0x1c]
sub eax, 0x7fed4bca
je 0x1000224d
jmp 0x100021dd
jmp 0x10002379
mov ecx, dword [0x10097bb4]
mov eax, dword [0x10097bb0]
xor edi, edi
sub edi, 1
mov edx, ecx
add edx, edi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xd1d2ff3f
mov ecx, 0x7fed4bca
test dl, 1
cmovne eax, ecx
mov dword [esi + 0x28], eax
jmp 0x10002379
push eax
sub esp, 0x14
mov eax, esp
mov dword [esi + 0x5c], eax
mov eax, dword [0x10097bb4]
mov ecx, dword [0x10097bb0]
xor edi, edi
sub edi, 1
mov edx, eax
add edx, edi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xd1d2ff3f
mov ecx, 0x235cb404
test dl, 1
cmovne eax, ecx
mov dword [esi + 0x28], eax
jmp 0x10002379
mov dword [esi + 0x28], 0xc7b6a82e
jmp 0x10002379
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, ecx
add edx, 0x20
mov dword [esi + 8], edx
add ecx, 0x38
mov dword [esi + 0xc], ecx
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], 0x40e61be0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0x40e042e0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0x40aae200
mov dword [esi + 0x40], 0
sub esp, 4
mov eax, esp
mov dword [eax], str.mkaxsyfogrgrdhpperldmhsihxuzjjdmcnumuednsdbgnfikyfkwkwdlebelrsrxvahlkbm
lea ecx, [esi + 0x60]
mov dword [esi + 4], ecx
call fcn.1001ac80
mov dword [esi + 0x3c], 0x40d9cdc0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0x40ed3e00
mov dword [esi + 0x30], 0
mov byte [esi + 0x2f], 1
mov ecx, dword [esi + 0x5c]
sub esp, 4
mov eax, esp
mov dword [eax], str.tqqyabwloxpcoeujhiyqpqjjsyhywekzohfjazo
call fcn.1001ac80
mov ecx, dword [esi + 0x5c]
call fcn.1001b050
mov ecx, dword [esi + 4]
call fcn.1001b050
mov ecx, dword [esi + 8]
call fcn.1001b050
mov ecx, dword [esi + 0xc]
call fcn.1001b050
fld dword [0x1003b1d8]
fstp xword [esi + 0x10]
mov ecx, dword [esi + 0x78]
xor ecx, ebp
call fcn.1002c980
fld xword [esi + 0x10]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x50
mov dword [esi + 0x28], 0x7fed4bca
jmp 0x1000217b
Function at 0x10031929
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10031968
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10031968
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10031968
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10031968
cmp dword [ecx + 0x74], 0xe
jbe 0x10031968
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003455b
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 0x100345f8
push ebx
push esi
call fcn.10034524
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.100344b8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100345a5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100345f7
push edi
push eax
call fcn.10035484
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100345c5
call fcn.10033000
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100345f6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100344b8
add esp, 0x20
test eax, eax
jne 0x100345e4
push edi
call fcn.10033000
jmp 0x100345ec
push ebx
call fcn.10033000
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 0x10034865
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003d9e0
push 0x1003d9d8
push str.FlsAlloc
push 0x1f
call fcn.10034781
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10034899
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b174]
call esi
jmp 0x1003489f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100348e3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003d9f0
push 0x1003d9e8
push str.FlsGetValue
push 0x21
call fcn.10034781
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003491a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10034922
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003d9f8
push 0x1003d9f0
push str.FlsSetValue
push 0x22
call fcn.10034781
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003495c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1003b174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10039eb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10039edd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10039edd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401bf0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b4200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call edi
test eax, eax
jne 0x401c51
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
je 0x401c75
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x401c89
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
xor edi, edi
push ebx
push edi
xor bl, bl
push dword [eax]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x401d58
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push edi
push ecx
push eax
push 4
push dword [ebp - 0xc]
mov dword [eax], edi
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401d58
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.0046a3df
add esp, 4
mov edi, eax
push 0
push dword [ebp - 0x14]
push edi
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401d58
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
test esi, esi
je 0x401d56
xor eax, eax
mov word [esi], ax
lea eax, [edx*2 + 1]
cmp eax, 0xffff
jg 0x401d56
xor ecx, ecx
test edx, edx
jle 0x401d4d
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [edi + ecx]
shr eax, 4
movzx eax, word [eax*2 + 0x49ede8]
mov word [esi], ax
movzx eax, byte [edi + ecx]
inc ecx
and eax, 0xf
movzx eax, word [eax*2 + 0x49ede8]
mov word [esi + 2], ax
add esi, 4
cmp ecx, edx
jl 0x401d20
xor eax, eax
mov bl, 1
mov word [esi], ax
jmp 0x401d58
xor bl, bl
mov eax, dword [ebp - 8]
test eax, eax
je 0x401d68
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x401d76
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test edi, edi
je 0x401d83
push edi
call fcn.00469dd3
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00469dc5
mov esp, ebp
pop ebp
ret 8