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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x405bca
cmp dword [esp + 0x34], esi
je 0x405bca
push 0x200
call fcn.0040a7f3
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x405bd5
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405d34
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x405cca
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405c2d
mov eax, 0x80000002
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ca3
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c98
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.00405b00
cmp edx, edi
jb 0x405c98
ja 0x405c92
cmp eax, dword [esp + 0x24]
jbe 0x405c98
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
je 0x405c20
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x405ce0
cmp dword [esp + 0x24], 0
jbe 0x405d34
mov ecx, dword [esp + 0x24]
push edi
push ecx
push str._012I64X
mov ecx, 0x200
call fcn.00403920
add esp, 0xc
test eax, eax
jne 0x405d19
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.00409b68
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push str.MAC:
call fcn.00405740
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.00409b68
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x408af0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x417b6b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x42d190]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x42ffb0], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.0040a3db
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x408cdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408b8e
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.00409c00
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.004087e0
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x408bf5
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x42adf0
push eax
call fcn.00409f57
add esp, 0xc
cmp eax, 1
jne 0x408bf5
mov eax, dword [ebp - 0x14]
mov dword [0x42ffb0], eax
jmp 0x408cc5
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x408c0f
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x408c23
push ebx
push esi
call fcn.00408f40
jmp 0x408c25
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x42ffb0], eax
test eax, eax
jne 0x408c47
push 0x42b748
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.004167a4
push eax
lea edx, [ebp + 0x84]
push 0x42adf0
push edx
mov edi, 1
call fcn.0040a4ae
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.00408920
test eax, eax
jne 0x408cbe
push 0x42b748
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.004167a4
call fcn.004089c0
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x42ffb0]
test esi, esi
je 0x408caf
call fcn.00409020
mov dword [0x42ffb0], 0
jmp 0x408cb6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x408cbc
ret
mov eax, dword [0x42ffb0]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x408cdd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x42ffb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.00409575
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x408d10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x42d190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x42ffb0]
xor edi, edi
cmp ecx, edi
jne 0x408d5b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x408d68
mov dword [ebp - 0x14], edi
jmp 0x408d80
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x408e16
mov ecx, dword [0x42ffb0]
mov eax, dword [ecx]
cmp eax, edi
je 0x408d47
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408d47
mov ebx, 0x42ffb0
mov dword [ebp - 4], edi
call fcn.00408e30
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x408dbe
push 0x42b748
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.004167a4
mov ecx, dword [0x42ffb0]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x408dd8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x408e02
push 0x42b748
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.004167a4
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x408df9
call fcn.00409140
mov eax, 0x408dff
ret
mov eax, dword [0x42ffb0]
mov eax, dword [eax]
test eax, eax
je 0x408e14
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e30
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x408e5d
xor ecx, ecx
jmp 0x408e69
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x408f1d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x408e90
mov dword [esp + 0xc], esi
jmp 0x408ef0
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x408ee9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x408edc
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x408ef0
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x408ef0
push 0x42adf8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x408ef0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x408f13
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x408e82
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x408f31
mov ecx, dword [ebx]
add ecx, 8
call fcn.00409070
test eax, eax
je 0x408f31
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x408f40
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x417b3b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x42d190]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00409c00
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x408fd8
push 0x42b748
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004167a4
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x409575
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d190]
jne 0x40957f
repz ret
jmp fcn.0040ac5f
Function at 0x4132c2
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.0040b3a4
and dword [ebp - 4], 0
cmp dword [0x42f228], 0
mov ebx, eax
jne 0x413373
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413424
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413424
push eax
call fcn.0040b332
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42f228], eax
call esi
push eax
call fcn.0040b332
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42f22c], eax
call esi
push eax
call fcn.0040b332
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42f230], eax
call esi
push eax
call fcn.0040b332
pop ecx
mov dword [0x42f238], eax
test eax, eax
je 0x413373
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b332
pop ecx
mov dword [0x42f234], eax
mov eax, dword [0x42f234]
cmp eax, ebx
je 0x4133cb
cmp dword [0x42f238], ebx
je 0x4133cb
push eax
call fcn.0040b3ad
push dword [0x42f238]
mov esi, eax
call fcn.0040b3ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4133cb
test edi, edi
je 0x4133cb
call esi
test eax, eax
je 0x4133c2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4133c2
test byte [ebp - 0xc], 1
jne 0x4133cb
or dword [ebp + 0x10], 0x200000
jmp 0x413404
mov eax, dword [0x42f22c]
cmp eax, ebx
je 0x413404
push eax
call fcn.0040b3ad
pop ecx
test eax, eax
je 0x413404
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413404
mov eax, dword [0x42f230]
cmp eax, ebx
je 0x413404
push eax
call fcn.0040b3ad
pop ecx
test eax, eax
je 0x413404
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42f228]
call fcn.0040b3ad
pop ecx
test eax, eax
je 0x413424
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413426
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001ef0
Capabilities:
Encode data using xor

Disassembly:
out dx, eax
lds ecx, [edi + 0x60]
das
scasd eax, dword es:[edi]
into
popfd
invalid
inc esi
test eax, 0xb1c97e77
adc edx, dword [ecx]
movsb byte es:[edi], byte [esi]
insd dword es:[edi], dx
or ch, byte [ebx]
jg 0x10001e08
pop ecx
iretd
xor al, 0x31
xchg dword [ebp + 0x61], esi
mov ebx, 0x7d228908
invalid
inc edi
wait
jbe 0x10001e7a
insb byte es:[edi], dx
xor edx, 0xffffff9d
mov edx, dword [eax - 0x5c6f86db]
test eax, 0x8900c1be
and bh, al
cli
aaa
or bl, dl
sahf
fcmovne st(0), st(1)
js 0x10001e61
inc esp
shr byte [ebx + ebx*8], 0x7c
stc
jbe 0x10001ecc
pop eax
mov dl, 0xab
mov dword [0x8ba60a79], eax
mov ebx, edi
outsb dx, byte [esi]
aad 0x64
push 0x4e629b23
sbb byte [ecx + 0xd], 0x98
sub eax, 0x2951a9b9
leave
int 0xde
inc ebx
test byte [ebp - 0x72], ch
and ebp, ebx
jne 0x10001f63
xor esp, dword [edi - 0x49d35cf6]
in eax, dx
add edi, esp
in eax, 0x9a
dec edx
leave
call 0x73b12924
pop esi
inc esp
inc esp
inc edi
adc dl, byte [ebx + 0x3f]
leave
jle 0x10001ea8
out dx, eax
lcall 0xba85, 0xaa340aa3
pop ebp
invalid
add al, 0xe6
push edx
das
mov dl, 0xec
in al, dx
pop esp
mov esp, 0xa9341751
push esi
jle 0x10001f5e
xchg esi, eax
ror byte [ebp + 0x6b], 0xc4
aas
leave
adc dword [ecx - 0x1f988880], 5
pop eax
xor ebp, dword [ecx - 0x6fda521e]
sbb ecx, dword [ebx]
out 0x53, al
or cl, byte [esp + ecx*4 - 0x20547c27]
in eax, 0x58
das
sbb eax, 0x3a289440
adc eax, 0xda82e334
wait
aad 0x7d
pop edi
movsb byte es:[edi], byte [esi]
in al, dx
sub ch, byte [ecx - 0x365def61]
add ebp, ebx
into
pop ss
mov esi, 0x1ca941d8
cmp ah, bh
pop edx
adc eax, 0xca9a011
invalid
Function at 0x1055f108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1055f258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1055f12e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1055f11a
add dl, dl
jne 0x1055f139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1055f18c
xor eax, eax
add dl, dl
jne 0x1055f146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1055f22d
add dl, dl
jne 0x1055f155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1055f160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1055f16b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1055f176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1055f182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1055f125
mov eax, 1
add dl, dl
jne 0x1055f19a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1055f1a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1055f191
sub eax, ebx
mov ebx, 1
jne 0x1055f1d8
mov ecx, 1
add dl, dl
jne 0x1055f1be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1055f1c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1055f1b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1055f125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1055f1ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1055f1fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1055f1e6
cmp eax, 0x7d00
jae 0x1055f21d
cmp eax, 0x500
jb 0x1055f218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1055f125
cmp eax, 0x7f
ja 0x1055f220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1055f125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1055f24e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1055f125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x126b9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe56000]
push edi
or ebp, 0xffffffff
jmp 0x126ba02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x126ba09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x126b9f8
mov eax, 1
add ebx, ebx
jne 0x126ba1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x126ba10
jne 0x126ba2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x126ba10
xor ecx, ecx
sub eax, 3
jb 0x126ba40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x126bab2
mov ebp, eax
add ebx, ebx
jne 0x126ba4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x126ba58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x126ba7c
inc ecx
add ebx, ebx
jne 0x126ba68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x126ba5d
jne 0x126ba79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x126ba5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x126ba9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x126ba8d
jmp 0x126b9fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x126ba9c
add edi, ecx
jmp 0x126b9fe
pop esi
mov edi, esi
mov ecx, 0x1090
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x126baba
cmp byte [edi], 0x11
jne 0x126baba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x126babf
lea edi, [esi + 0xe69000]
mov eax, dword [edi]
or eax, eax
je 0x126bb2e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe6db20]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe6db70]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x126baec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe6db74]
or eax, eax
je 0x126bb28
mov dword [ebx], eax
add ebx, 4
jmp 0x126bb09
call dword [esi + 0xe6db7c]
mov ebp, dword [esi + 0xe6db78]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x126bb62
sub esp, 0xffffff80
jmp 0x411850
Function at 0x10002df0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
sub esp, 0x124
mov eax, dword [0x10005004]
xor eax, esp
mov dword [esp + 0x11c], eax
mov al, byte [0x1000b590]
movups xmm0, xmmword [str.HMN34P67R9TWCXYF]
push esi
push edi
push 0xf0000040
push 0x18
push 0
mov byte [esp + 0x28], al
mov edi, ecx
push 0
lea eax, [esp + 0x18]
push eax
movups xmmword [esp + 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10002e95
lea eax, [esp + 0x20]
push eax
push 0x100
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
je 0x10002e95
xor eax, eax
nop
movzx ecx, byte [esp + eax + 0x20]
and ecx, 0xf
mov cl, byte [esp + ecx + 0xc]
mov byte [edi + eax], cl
inc eax
cmp eax, 8
jb 0x10002e60
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.10001000
add esp, 0x124
ret
mov ecx, dword [esp + 0x124]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10001000
add esp, 0x124
ret

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

Disassembly:
push ecx
push esi
push 0xf0000040
push 0x18
push 0
push 0
lea eax, [esp + 0x14]
mov esi, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x10002ed1
pop esi
pop ecx
ret
push esi
push dword [esp + 0x10]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x10003620
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x10005004]
xor eax, esp
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x4c]
mov eax, ecx
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
push esi
xor esi, esi
mov dword [esp + 0x24], eax
xor ebp, ebp
mov dword [esp + 0x18], ebx
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
mov al, byte [eax + ebp]
test al, al
je 0x10003678
cmp ebp, 0x40
je 0x10003678
mov byte [esp + esi + 0x2c], al
inc ebp
inc esi
mov dword [esp + 0x20], ebp
cmp esi, 0x10
jne 0x10003794
jmp 0x10003724
lea edx, [esp + 0x2c]
mov ecx, 0x10
add edx, esi
sub ecx, esi
xor al, al
mov edi, edx
rep stosb byte es:[edi], al
mov byte [edx], 0x80
cmp esi, 0xc
jb 0x10003711
movups xmm0, xmmword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov ecx, ebx
xor ebx, ebx
movups xmmword [esp + 0x3c], xmm0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
nop dword [eax]
mov eax, edx
ror ecx, 8
mov edx, dword [esp + 0x18]
add ecx, edi
ror edx, 8
xor ecx, esi
add edx, esi
rol edi, 3
xor edx, ebx
rol esi, 3
inc ebx
mov dword [esp + 0x18], ebp
xor edi, ecx
xor esi, edx
mov ebp, eax
cmp ebx, 0x1b
jb 0x100036c0
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
xor ebx, ecx
mov ebp, dword [esp + 0x20]
xor edx, edi
lea edi, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
xor al, al
mov dword [esp + 0x14], edx
mov ecx, 0x10
rep stosb byte es:[edi], al
jmp 0x10003715
mov edx, dword [esp + 0x14]
inc dword [esp + 0x24]
lea eax, [ebp*8]
mov dword [esp + 0x38], eax
movups xmm0, xmmword [esp + 0x2c]
mov eax, ebx
mov esi, edx
xor ebx, ebx
movups xmmword [esp + 0x3c], xmm0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
nop dword [eax + eax]
mov ecx, edx
ror eax, 8
mov edx, dword [esp + 0x18]
add eax, esi
ror edx, 8
xor eax, edi
add edx, edi
rol esi, 3
xor edx, ebx
rol edi, 3
inc ebx
mov dword [esp + 0x18], ebp
xor esi, eax
xor edi, edx
mov ebp, ecx
cmp ebx, 0x1b
jb 0x10003750
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
xor ebx, eax
mov ebp, dword [esp + 0x20]
xor edx, esi
mov dword [esp + 0x1c], ebx
xor esi, esi
mov dword [esp + 0x14], edx
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x28]
je 0x10003654
mov ecx, dword [esp + 0x4c]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001000
add esp, 0x44
ret