joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437a10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0d28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
lea eax, [ecx + 0x1830]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x437a7b
push str.Cannot_open_product_registry_key
lea ecx, [ebp - 0x24]
call fcn.00435850
push 0x4f6328
lea eax, [ebp - 0x24]
push eax
call fcn.0047b07b
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, eax
push eax
push ecx
push 1
push 0
call fcn.004094f0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x437aac
call fcn.004094b0
push eax
jmp 0x437a65
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x1c], 8
jb 0x437ac6
push dword [ebp + 8]
call fcn.0047a557
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0x18

Function at 0x437af0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x165
push eax
push 0xf003f
push 0
lea eax, [ecx + 0x1830]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x437b7e
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
call fcn.00409550
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x437b67
push 0
call fcn.00409580
push eax
call fcn.00404240
push eax
call fcn.0043ff60
mov ecx, eax
call fcn.004401d0
call fcn.00409610
push eax
jmp 0x437b83
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret
push 0x4d9814
lea ecx, [ebp - 0x1c]
call fcn.00435850
push 0x4f6328
lea eax, [ebp - 0x1c]
push eax
call fcn.0047b07b
int3
Function at 0x43afd0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1308
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4c
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
lea ecx, [ebp - 0x50]
movdqa xmmword [ebp - 0x50], xmm0
movdqa xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm0
call fcn.004174a0
cmp dword [0x4fd024], 0xffffffff
mov dword [ebp - 4], 0
jne 0x43b074
push 0x493e0
call fcn.0043ff60
mov ecx, eax
call fcn.0043f780
lea esi, [eax + 0x493e0]
call fcn.00425d90
mov ecx, eax
call fcn.00425e10
test al, al
jne 0x43b140
cmp byte [0x5047f8], al
jne 0x43b140
push esi
jmp 0x43b13a
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [0x5047ec]
call esi
test eax, eax
jne 0x43b099
push dword [0x5047ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43b140
call fcn.00425d90
mov ecx, eax
call fcn.00425e10
test al, al
je 0x43b0d3
push str._Sent_kill_signal
lea ecx, [ebp - 0x50]
call fcn.00418390
push eax
push 0x509f20
call fcn.00402055
add esp, 8
push eax
call fcn.00402055
push eax
call fcn.004172e0
add esp, 0xc
push 0
push 0
push 0x12
push dword [0x4fd024]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
call fcn.00425d90
mov ecx, eax
call fcn.00425e10
test al, al
je 0x43b11f
push str._Waiting_for_thread_to_finish.
lea ecx, [ebp - 0x50]
call fcn.00418390
push eax
push 0x509f20
call fcn.00402055
add esp, 8
push eax
call fcn.00402055
push eax
call fcn.004172e0
add esp, 0xc
push 0xffffffffffffffff
push dword [0x5047ec]
call esi
push dword [0x5047ec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00425d90
mov ecx, eax
call fcn.00425e10
test al, al
je 0x43b19f
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x34]
push eax
movzx eax, word [ebp - 0x36]
push eax
movzx eax, word [ebp - 0x38]
push eax
push 0x4d52f8
push 0x14
push dword [ebp - 0x30]
call fcn.0047b025
add esp, 0x18
push str._Starting_thread
push dword [ebp - 0x30]
push 0x509f20
call fcn.00402055
add esp, 8
push eax
call fcn.00402055
push eax
call fcn.004172e0
add esp, 0xc
call fcn.00420b90
test al, al
je 0x43b1c1
cmp byte [0x5047e7], 0
je 0x43b1c1
push 0x4fd024
push 0
push 0
push 0x423fc0
jmp 0x43b1cf
push 0x4fd024
push 0
push 0
push 0x4235a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp - 0x30]
mov dword [0x5047ec], eax
mov dword [ebp - 0x50], vtable.CTime.0
call fcn.0047b041
push dword [ebp - 0x2c]
call fcn.0047b041
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x43e190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x70]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edx
push 0x20019
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43e236
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x64
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push esi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x70]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43e236
lea ecx, [ebp - 0x68]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43e1f5
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0047a506
lea edx, [ebp - 0x68]
mov esi, eax
mov ecx, edx
add esp, 4
sub esi, ecx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x43e213
mov dword [edi], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43e250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xd4]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edx
push 0x20019
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43e317
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0xc8
push eax
lea eax, [ebp - 0xcc]
push eax
push 0
push 0
push esi
push dword [ebp - 0xd4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xd4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43e317
lea ecx, [ebp - 0xcc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43e2d1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
call fcn.0047a506
push dword [ebp - 0xd0]
mov esi, eax
lea eax, [ebp - 0xcc]
push eax
push esi
call fcn.0047e67d
add esp, 0x10
mov dword [edi], esi
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43e330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edx
push 0x20019
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43e3a8
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43e3a8
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43e3c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push esi
mov esi, dword [ebp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x43e40a
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc
push 1
lea eax, [ebp + 0x10]
push eax
push 3
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43e450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push esi
mov esi, dword [ebp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x43e49a
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43e4e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x43e52f
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43e534
sub eax, edx
sar eax, 1
add eax, eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43e830
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov word [0x504f20], cx
push esi
mov eax, dword [eax + 0x18]
push edi
test eax, eax
je 0x43e9d8
push eax
push ecx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x43e9d8
call fcn.00403c70
push eax
call fcn.00403c40
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x18
lea ecx, [ebp - 0x2c]
push ecx
push 0
push edi
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0xc]
push 0
push 4
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x10
push eax
push edi
call ebx
test eax, eax
je 0x43e9d1
push 0
push 8
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x40
push eax
push edi
call ebx
test eax, eax
je 0x43e9d1
movzx esi, word [ebp - 0x14]
push esi
call fcn.0047d670
add esp, 4
mov dword [ebp - 0x30], eax
push 0
push esi
push eax
push dword [ebp - 0x10]
push edi
call ebx
test eax, eax
je 0x43e9d1
movzx edx, word [ebp - 0x14]
xor ecx, ecx
shr edx, 1
test edx, edx
jle 0x43e925
mov esi, dword [ebp - 0x30]
sub esi, 0x504f20
jmp 0x43e910
mov ax, word [esi + ecx*2 + 0x504f20]
mov word [ecx*2 + 0x504f20], ax
inc ecx
cmp ecx, edx
jl 0x43e910
add ecx, ecx
cmp ecx, 0x800
jae 0x43e9ee
xor eax, eax
mov word [ecx + 0x504f20], ax
lea eax, [ebp - 8]
push eax
push 0x504f20
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x800
push 0
push 0x504f20
mov ebx, eax
call fcn.0047bb20
mov esi, 1
add esp, 0xc
cmp dword [ebp - 8], esi
jle 0x43e9bf
jmp 0x43e970
push dword [ebx + esi*4]
push 0x504f20
call fcn.004040f0
push eax
push 0x400
push 0x504f20
call fcn.0047ce7f
mov ecx, dword [ebp - 8]
add esp, 0x14
lea eax, [ecx - 1]
cmp esi, eax
je 0x43e9ba
push 0x504f20
call fcn.00404120
push eax
push 0x400
push 0x504f20
call fcn.0047ce7f
mov ecx, dword [ebp - 8]
add esp, 0x10
inc esi
cmp esi, ecx
jl 0x43e970
push dword [ebp - 0x30]
call fcn.0047ad36
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 0x504f20
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b06c
mov esp, ebp
pop ebp
ret
call fcn.0047dfc0
int3
Function at 0x43ea00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
jne 0x43ea21
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
mov edi, dword [ebp + 8]
push 0x22c
push 0
push edi
call fcn.0047bb20
add esp, 0xc
mov dword [edi], 0x22c
push edi
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov esi, eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
test esi, esi
je 0x43ea77
mov esi, dword [ebp - 4]
cmp eax, dword [edi + 8]
jne 0x43ea5f
mov ebx, dword [edi + 0x18]
mov dword [edi], 0x22c
test ebx, ebx
jne 0x43ea77
push edi
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
mov eax, dword [ebp + 8]
jne 0x43ea57
xor eax, eax
test ebx, ebx
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43efb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x230]
push edi
mov edi, dword [ebp + 8]
push eax
call fcn.0043ea00
test eax, eax
je 0x43f14e
xor eax, eax
mov word [0x504c20], ax
mov eax, dword [ebp - 0x218]
push esi
test eax, eax
je 0x43f01f
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x43f01f
push 0x104
push 0x504c20
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x504c20
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
lea eax, [ebp - 0x234]
push eax
push 0x504c20
call fcn.0043e5c0
add esp, 8
test eax, eax
jne 0x43f14d
lea eax, [ebp - 0x230]
push eax
call fcn.0043e830
mov edx, eax
add esp, 4
lea ecx, [edx + 2]
mov dword [ebp - 0x238], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x43f062
sub edx, dword [ebp - 0x238]
sar edx, 1
push ebx
je 0x43f096
push eax
push dword [ebp - 0x234]
push esi
push edi
call fcn.00404140
push eax
push 0x505720
call fcn.0043e580
add esp, 0x1c
jmp 0x43f0b1
push dword [ebp - 0x234]
push esi
push edi
call fcn.004041c0
push eax
push 0x505720
call fcn.0043e580
add esp, 0x18
push 0
push 0
push 0x505720
call fcn.0043ea90
add esp, 0xc
cmp eax, 1
jne 0x43f14d
mov dword [ebp - 0x234], 0
call fcn.00404220
push eax
lea eax, [ebp - 0x234]
push 0x504c20
push eax
call fcn.0047f65e
push 2
push 0
push dword [ebp - 0x234]
call fcn.0047fadc
push dword [ebp - 0x234]
call fcn.0047feef
push dword [ebp - 0x234]
mov edi, eax
call fcn.0047ff5b
push edi
call fcn.004780a0
push dword [ebp - 0x234]
mov esi, eax
push edi
push 1
push esi
call fcn.0047f509
push edi
push esi
push 0x505720
call fcn.0043ea90
add esp, 0x40
push esi
call fcn.0047b041
push dword [ebp - 0x234]
call fcn.0047bd17
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047b06c
mov esp, ebp
pop ebp
ret

Function at 0x43f280
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
jne 0x43f2ac
cmp dword [esi + 0x1c], 0xffffffff
lea eax, [esi + 0x1c]
jne 0x43f2ac
push eax
push 0
push esi
push 0x43f2d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
mov byte [esi + 0x21], 1
pop esi
ret

Function at 0x43f360
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
lea ecx, [ecx]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x43f380
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x43f4a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
dec eax
mov ecx, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
test eax, eax
je 0x43f54c
lea esp, [esp]
mov ecx, dword [edi + 4]
dec ecx
shl esi, cl
add esi, esi
mov dword [ebp - 4], esi
jmp 0x43f4d0
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x43f4e4
mov ecx, esi
call fcn.0043fec0
jmp 0x43f4f2
cmp eax, 0x4e0
jb 0x43f4f2
mov ecx, esi
call fcn.0043fe00
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [edi + 8]
ja 0x43f4d0
mov ecx, dword [edi + 4]
mov esi, dword [ebp - 4]
dec ecx
shl ebx, cl
or esi, eax
mov ecx, dword [ebp + 8]
add ebx, ebx
or ebx, dword [edi + 8]
lea eax, [ecx - 1]
cmp ebx, eax
jb 0x43f4c0
xor edx, edx
mov eax, ebx
div ecx
mov ecx, eax
mov ebx, edx
xor edx, edx
mov eax, esi
div dword [ebp + 8]
cmp eax, ecx
mov ecx, dword [ebp + 8]
jb 0x43f56f
lea eax, [ecx - 1]
cmp ebx, eax
jne 0x43f4b0
mov eax, esi
xor edx, edx
div ecx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43f840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0xffffffff
jne 0x43f8f7
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
call fcn.00404f20
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43f8d2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
call fcn.00404f60
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x43f8d2
push 0
mov dword [ebp - 0x28], 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
call fcn.00404f90
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x24]
push 0x4da964
push eax
call fcn.0048088e
push 0
push eax
mov byte [ebp - 5], 0
call fcn.00480bef
add esp, 0x10
call fcn.0047d270
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x10]
xor ecx, ebp
pop esi
call fcn.0047b06c
mov esp, ebp
pop ebp
ret
Function at 0x43fd60
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov edi, edi
mov ecx, dword [edi + 4]
dec ecx
shl ebx, cl
add ebx, ebx
jmp 0x43fd80
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x43fd94
mov ecx, esi
call fcn.0043fec0
jmp 0x43fda2
cmp eax, 0x4e0
jb 0x43fda2
mov ecx, esi
call fcn.0043fe00
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [edi + 8]
ja 0x43fd80
mov eax, dword [ebp - 4]
or ebx, ecx
add eax, dword [edi + 4]
mov dword [ebp - 4], eax
cmp eax, 0x20
jb 0x43fd70
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43fe00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
dec ecx
jne 0x43fe10
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi]
lea esi, [esi + 4]
xor ecx, dword [esi]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
dec edi
jne 0x43fe50
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret

Function at 0x43fec0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
lea esp, [esp]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
dec esi
jne 0x43fed0
pop esi
ret