joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003340
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
xor eax, eax
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
cmp ecx, edi
jne 0x10003388
lea edi, [eax + 0x57]
jmp 0x10003498
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x14], edi
jbe 0x100034c9
jmp 0x100033b0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + ebx*4]
push 0x3a
push eax
call fcn.10006d8f
mov esi, eax
add esp, 8
test esi, esi
je 0x10003485
lea eax, [esi + 2]
xor edx, edx
push eax
mov word [esi], dx
call fcn.10006dcc
movzx ebx, ax
add esp, 4
test bx, bx
je 0x10003481
mov ecx, dword [0x100158d0]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10003494
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + eax*4]
push ebx
push ecx
lea eax, [esp + 0x20]
call fcn.10002e10
mov edi, eax
add esp, 8
mov edx, 0x3a
mov word [esi], dx
test edi, edi
je 0x1000342f
cmp edi, 0x102
jne 0x10003481
mov eax, dword [0x100158d0]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call esi
test eax, eax
je 0x10003494
test edi, edi
jne 0x1000345c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.10003070
add esp, 8
mov edi, eax
jmp 0x10003466
cmp edi, 0x102
jne 0x10003466
xor edi, edi
mov eax, dword [0x100158d0]
push 0
push eax
call esi
test eax, eax
je 0x10003494
lea esi, [esp + 0x18]
call fcn.10002cf0
test edi, edi
je 0x100034e1
mov ebx, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x14]
jb 0x100033b0
test edi, edi
je 0x100034c9
mov eax, dword [0x10015458]
inc eax
mov dword [0x10015458], eax
cmp eax, dword [0x10013de8]
jb 0x100034c9
push 0
call fcn.10005760
add esp, 4
test eax, eax
je 0x100034c9
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100034d8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100034c9
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
push eax
push ecx
call fcn.10003250
add esp, 8
jmp 0x100034c9
Function at 0x10003540
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x2b
xor ebx, ebx
lea eax, [ebp - 0x2f]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x34], 1
call fcn.1000a660
push 0x20
lea edx, [ebp - 0x24]
push edi
push edx
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
call fcn.1000b320
mov ecx, dword [esi]
add esp, 0x18
lea edi, [esi + 4]
push edi
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x100035bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006570
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push 0
lea edx, [ebp - 0x34]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x100035a6
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10006570
mov esp, ebp
pop ebp
ret
Function at 0x10003a20
Capabilities:
Encrypt or decrypt via wincrypt
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x28], eax
xor eax, eax
mov edi, edx
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
mov dword [esi], 0
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov dword [ebx], 0
mov eax, dword [edi]
push 0x10
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x10003a8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10003b58
mov edx, dword [edi + 4]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x10003aad
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10003b58
mov ecx, dword [edi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 1
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x10003ad4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10003b58
mov eax, dword [ebp - 0x18]
add eax, 0x18
push eax
push 8
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
jne 0x10003af7
lea edi, [eax + 8]
jmp 0x10003b5e
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
lea ebx, [eax + 0x18]
mov eax, dword [esi]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 0x1c]
push edx
push eax
push ebx
call fcn.1000b320
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 4]
add esp, 0xc
push ecx
lea edx, [ebp - 0x24]
push edx
push ebx
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x10003b92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x20]
mov edi, eax
test edi, edi
je 0x10003b80
mov eax, dword [esi]
test eax, eax
je 0x10003b80
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov dword [ebx], 0
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006570
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10006570
mov esp, ebp
pop ebp
ret
Function at 0x10003bb0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [edi], ebx
mov dword [esi], ebx
cmp eax, 0x10
ja 0x10003bcb
lea eax, [ebx + 0x7a]
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0xfffffff0
push eax
push 8
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi], eax
test eax, eax
jne 0x10003beb
lea ebx, [eax + 8]
jmp 0x10003c50
mov ecx, dword [esi]
mov edx, dword [ebp + 0xc]
push ecx
add edx, 0x10
push edx
push eax
call fcn.1000b320
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
add esp, 0xc
push 0
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x10003c48
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
lea eax, [ebp - 4]
push eax
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x10003c48
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
push esi
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10003c50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003c5e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test ebx, ebx
je 0x10003c84
mov eax, dword [edi]
test eax, eax
je 0x10003c84
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi], 0
mov dword [esi], 0
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003c90
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
push esi
xor esi, esi
push ecx
push esi
push edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call fcn.1000a660
add esp, 0xc
cmp dword [0x10015330], 5
mov eax, 0x10010ca8
ja 0x10003cc8
mov eax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0xf0000040
push 0x18
push eax
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10003ced
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10003d72
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x800c
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x10003d12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10003d72
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10003d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10003d72
mov ecx, dword [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 4
push ecx
call edi
test eax, eax
jne 0x10003d53
xor esi, esi
jmp 0x10003d71
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push 0
push edx
push eax
push 2
push ecx
call edi
test eax, eax
jne 0x10003d71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003d80
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x10003d90
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003e90
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x10015884
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.100042d0
test eax, eax
je 0x10003fe5
cmp dword [0x10013ddc], 0
je 0x10003f30
xor ecx, ecx
xor eax, eax
lea esp, [esp]
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax + 0x10013de0], dl
inc ecx
and ecx, 0x1f
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax + 0x10013de1], dl
inc ecx
and ecx, 0x1f
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax + 0x10013de2], dl
inc ecx
and ecx, 0x1f
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax + 0x10013de3], dl
inc ecx
and ecx, 0x1f
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax + 0x10013de4], dl
inc ecx
and ecx, 0x1f
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax + 0x10013de5], dl
inc ecx
add eax, 6
and ecx, 0x1f
cmp eax, 0x864
jb 0x10003ec0
mov eax, dword [0x10013dec]
or eax, dword [0x10013df0]
push esi
je 0x10003f78
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov esi, eax
test esi, esi
je 0x10003f78
push 0
push 0
push 0
push 0
push 0x10013dec
push esi
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
je 0x10003f71
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf0000040
push 1
xor esi, esi
push esi
push esi
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10003fa9
mov edx, dword [ebp - 4]
push 0x1001461c
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x10003fb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10003fc1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
pop esi
je 0x10003fe0
push 0
call fcn.10006d3e
push eax
call fcn.10006bba
add esp, 8
call fcn.10006bcc
mov dword [0x1001461c], eax
call fcn.100043d0
push 0x10015884
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10004000
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x100041e7
cmp dword [0x10013de4], 0
mov dword [ebp - 0x28], 0
je 0x1000405c
push 4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1000405c
mov eax, dword [ebp - 0x28]
xor edx, edx
div dword [0x10013de4]
mov dword [ebp - 0x28], edx
mov ecx, dword [0x10013de0]
add ecx, dword [ebp - 0x28]
mov eax, dword [0x100158d0]
imul ecx, ecx, 0x3e8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100041e0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
push 0x10015884
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov cl, byte [ebp - 0xc]
movzx edx, word [ebp - 0x20]
mov eax, 1
shl eax, cl
push 0x10015884
test dword [edx*4 + 0x10013e00], eax
setne bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x1000402e
push edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10015884
call ebx
push 0
push 0x10015454
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, eax
test esi, esi
je 0x1000412c
push esi
push 0x10010c9c
push 0x400
push 0x400
push 0x10013e1c
call fcn.10006dd7
add esp, 0x14
call fcn.100043d0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x18
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100041a4
push 0x10013e1c
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], 0x10003500
mov dword [esi + 0xc], esi
mov dword [esi + 0x14], edi
call fcn.10006df8
mov dword [esi + 0x10], eax
mov edi, dword [0x10015450]
add esp, 4
push edi
call ebx
cmp byte [edi + 0x20], 0
push edi
je 0x1000417d
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100041a1
mov ecx, dword [edi + 0x1c]
lea eax, [edi + 0x18]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 0x30]
push 0
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov edi, dword [ebp - 0x2c]
push 0x10015884
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7530
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100040da
mov edx, dword [0x100158d0]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1000402e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10006570
mov esp, ebp
pop ebp
ret
Function at 0x100042d0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlSystemResources
push 0x80000002
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x864
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100043bf
mov ecx, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push ecx
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x10004329
lea esi, [eax + 8]
jmp 0x100043ad
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push esi
push 0
push 0
push str.Control
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1000439e
push edi
mov edi, dword [ebp - 4]
xor ecx, ecx
test edi, edi
je 0x10004367
mov dl, byte [ecx + 0x10013dbc]
xor byte [eax + esi], dl
inc ecx
inc eax
and ecx, 0x1f
cmp eax, edi
jb 0x10004352
mov edi, dword [ebp - 4]
push edi
push esi
push 0x10013de0
mov dword [0x10013ddc], 0
call fcn.1000b320
add esp, 0xc
push 0
push 0x10015454
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
test eax, eax
je 0x1000439e
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x100043bb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100043d0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetControlSystemResources
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100044d2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push 0x864
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x10004422
lea esi, [eax + 8]
jmp 0x100044bf
push 0x864
push 0x10013de0
push edi
call fcn.1000b320
add esp, 0xc
xor ecx, ecx
lea eax, [edi + 1]
mov esi, 0x166
nop
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax - 1], dl
inc ecx
and ecx, 0x1f
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax], dl
inc ecx
and ecx, 0x1f
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax + 1], dl
inc ecx
and ecx, 0x1f
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax + 2], dl
inc ecx
and ecx, 0x1f
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax + 3], dl
inc ecx
and ecx, 0x1f
movzx edx, byte [ecx + 0x10013dbc]
xor byte [eax + 4], dl
inc ecx
and ecx, 0x1f
add eax, 6
dec esi
jne 0x10004440
mov eax, dword [ebp - 4]
push 0x864
push edi
push 3
push esi
push str.Control
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 0
mov esi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
test eax, eax
je 0x100044cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100044e0
Capabilities:
Create thread
Get hostname
Get system information on windows
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
push 0x57c
push 0
push 0x10015308
mov dword [esp + 0x18], 0x100
call fcn.1000a660
add esp, 0xc
lea edi, [esp + 0x10]
call fcn.10004200
lea eax, [esp + 0xc]
push eax
push 0x10015684
push 7
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov dword [0x1001544c], 0x10006
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
push 0x1001532c
mov word [0x10015448], ax
mov dword [0x1001532c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000465f
push 0x1c
push 0x100158dc
push 0x100158dc
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000465f
mov eax, dword [0x100158e0]
push 0x104
push 0x1001545c
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10004591
push esi
call fcn.100023e0
push 0
push 0
push 0
push 0x10003da0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10015884
mov edi, eax
call esi
push 0x1001589c
call esi
push 0x100158b4
call esi
call fcn.10003e90
mov ecx, dword [0x10013dfc]
xor eax, eax
cmp dword [esp + 0x14], eax
jg 0x100045ef
mov eax, dword [esp + 0x10]
jl 0x100045e0
cmp eax, ecx
jae 0x100045ef
sub ecx, eax
imul ecx, ecx, 0xea60
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10015308
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1001531c]
add eax, eax
add eax, eax
cmp eax, 0x40
jb 0x1000460d
mov eax, 0x40
push eax
push 0x10015450
call fcn.10006420
add esp, 8
test eax, eax
jne 0x10004639
call fcn.10004000
mov esi, dword [0x10015450]
call fcn.100064e0
call fcn.100060d0
call fcn.10006050
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x1001589c
call esi
push 0x100158b4
call esi
push 0x10015884
call esi
test edi, edi
je 0x1000465f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10015454]
test eax, eax
je 0x10004678
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x864
push 0
push 0x10013de0
call fcn.1000a660
add esp, 0xc
push 0x57c
push 0
push 0x10015308
call fcn.1000a660
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100046c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10004706
dec eax
jne 0x1000470f
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x100158d0], eax
test eax, eax
je 0x10004700
push 0
push 0
push 0
push 0x100046b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100158d4], eax
test eax, eax
jne 0x1000470f
xor eax, eax
pop ebp
ret 0xc
cmp dword [0x100158d4], 0
jne 0x10004700
mov eax, 1
pop ebp
ret 0xc
Function at 0x10004a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004a92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10004aba
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10004ab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1c
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10004af7
mov ecx, dword [0x1001461c]
mov dword [eax], ecx
mov edx, dword [0x10014620]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], 4
mov dword [eax + 0xc], 0x1f5
mov dword [eax + 0x18], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret