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

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4377f4]
push ebx
push esi
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.0040f519
cmp eax, esi
jne 0x40f672
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40f63e
lea eax, [ebp - 0x6c]
push eax
call fcn.0040f5e7
cmp eax, esi
jne 0x40f671
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x70]
je 0x40f631
call fcn.0040f502
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040f502
mov ecx, dword [ebp + 0x94]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c2f6
add ebp, 0x98
leave
ret 4
Function at 0x40f9e1
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40f9ec
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x410440
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, ecx
mov dword [esi + 4], eax
jne 0x410469
push 4
call fcn.0041b48d
add esp, 4
test eax, eax
je 0x410464
mov dword [eax], 0x42d730
jmp 0x410466
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x18], 0x10
jb 0x410478
mov eax, dword [eax + 4]
jmp 0x41047b
add eax, 4
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4104af
mov al, byte [0x43766d]
test al, al
je 0x410533
push str.Error_in_OpenConnection___mh_internet_session__NULL_n
call fcn.0041dd58
add esp, 4
pop esi
ret 0x14
push edi
mov edi, dword [esp + 0x18]
cmp edi, 0xffffffff
jne 0x4104cb
mov al, byte [esp + 0x14]
neg al
sbb eax, eax
and eax, 0x16b
add eax, 0x50
mov edi, eax
mov al, byte [0x43766d]
test al, al
je 0x4104e2
push edi
push str.Utils::HTTP::FileDownloader:_port_d_n
call fcn.0041dd58
add esp, 8
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x4104f1
mov eax, dword [eax + 4]
jmp 0x4104f4
add eax, 4
mov ecx, dword [esi + 8]
push 0
push 0
push 3
push 0
push 0
push edi
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0xc], eax
pop edi
jne 0x41052c
mov al, byte [0x43766d]
test al, al
je 0x410533
push str.Error_in_OpenConnection___mh_http_connection__NULL_n
call fcn.0041dd58
add esp, 4
pop esi
ret 0x14
mov dword [esi + 0x10], 0
pop esi
ret 0x14
Function at 0x4106c0
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x42a8bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
mov eax, dword [0x4377f4]
xor eax, esp
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x434], eax
mov edi, ecx
mov dword [esp + 0x10], ebx
mov ebp, 0xf
lea ebx, [ebx]
cmp byte [edi + 0x14], bl
jne 0x4107ec
mov edx, dword [edi + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4107f6
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4107bd
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x440], ebx
jbe 0x410771
nop
mov al, byte [esp + esi + 0x34]
mov byte [esp + 0x14], al
mov ecx, dword [esp + 0x14]
push ecx
push 1
lea ecx, [esp + 0x20]
call fcn.00408d2a
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x410750
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
call dword [edx + 4]
test al, al
je 0x41080a
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x440], 0xffffffff
jb 0x4107a5
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041c5ad
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
ja 0x410700
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esp + 0x438]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x428]
pop ebx
xor ecx, esp
call fcn.0041c2f6
add esp, 0x434
ret
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
call dword [edx + 0xc]
jmp 0x4107c5
mov eax, dword [edi + 4]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 4]
push eax
call dword [esi + 0x10]
jmp 0x4107c5
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
push 0xffffffffffffffff
call dword [edx + 0x10]
cmp dword [esp + 0x30], 0x10
jb 0x4107c5
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041c5ad
add esp, 4
jmp 0x4107c5
Function at 0x4112c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42a9d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4377f4]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x3c]
push edi
xor edi, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], edi
cmp dword [eax + 0x18], 0x10
jb 0x4112ff
mov eax, dword [eax + 4]
jmp 0x411302
add eax, 4
push edi
push edi
push 3
push edi
push edi
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41133b
push edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], edi
push 0x42c5d4
mov ecx, esi
mov byte [esi + 4], 0
call fcn.004027cf
jmp 0x4113c9
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0041c902
add esp, 4
push 0
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], al
push edi
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
call fcn.004027cf
push ebp
call fcn.0041c254
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov ecx, esi
mov byte [esi + 4], 0
call fcn.004026ab
cmp dword [esp + 0x2c], 0x10
pop ebp
jb 0x4113c9
mov edx, dword [esp + 0x14]
push edx
call fcn.0041c5ad
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
xor ecx, esp
call fcn.0041c2f6
add esp, 0x30
ret 8
Function at 0x412020
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 8]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp], 4
je 0x41205d
mov eax, 0xd
add esp, 8
ret 8

Function at 0x412070
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x4120d4
mov ecx, dword [esp + 8]
test ecx, ecx
jbe 0x4120cf
cmp ecx, 2
jbe 0x4120c5
cmp ecx, 7
jne 0x4120cf
mov ecx, dword [edi]
cmp ecx, 2
jb 0x4120cf
mov dl, byte [ecx + esi - 1]
test dl, dl
jne 0x4120cf
mov dl, byte [ecx + esi - 2]
jmp 0x4120cb
mov ecx, dword [edi]
mov dl, byte [ecx + esi - 1]
test dl, dl
je 0x4120d4
mov eax, 0xd
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x412260
Capabilities:
Delete registry value

Disassembly:
push ecx
mov eax, ecx
mov ecx, dword [esp + 0xc]
push edi
push ecx
lea ecx, [eax + 8]
mov al, byte [eax + 4]
lea edi, [esp + 8]
mov dword [esp + 8], 0
call fcn.00412100
add esp, 4
test al, al
jne 0x41229b
mov eax, dword [esp + 4]
test eax, eax
je 0x4122d9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ecx
ret 8
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x18], 0x10
push esi
lea esi, [edi + 4]
jb 0x4122ad
mov eax, dword [esi]
jmp 0x4122af
mov eax, esi
push eax
lea ecx, [esp + 0xc]
call fcn.0040f5e7
cmp dword [edi + 0x18], 0x10
jb 0x4122c1
mov esi, dword [esi]
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test esi, esi
je 0x4122d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ecx
ret 8
Function at 0x4122e0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, ecx
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea ecx, [eax + 8]
mov al, byte [eax + 4]
lea edi, [esp + 8]
mov dword [esp + 8], 0
call fcn.00412100
add esp, 4
test al, al
jne 0x41231f
mov eax, dword [esp + 4]
test eax, eax
je 0x41239e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ecx
ret 0x10
mov al, byte [esp + 0x14]
test al, al
push esi
mov esi, dword [esp + 0x10]
mov edi, 0x10
jne 0x412366
cmp dword [esi + 0x18], edi
jb 0x41233b
mov eax, dword [esi + 4]
jmp 0x41233e
lea eax, [esi + 4]
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.00412020
test eax, eax
jne 0x412366
mov eax, dword [esp + 8]
test eax, eax
je 0x41239d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ecx
ret 0x10
cmp dword [esi + 0x18], edi
jb 0x412370
mov esi, dword [esi + 4]
jmp 0x412373
add esi, 4
mov eax, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x41239d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ecx
ret 0x10

Function at 0x4123b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, ecx
mov ecx, dword [esp + 0x10]
push edi
push ecx
lea ecx, [eax + 8]
mov al, byte [eax + 4]
lea edi, [esp + 8]
mov dword [esp + 8], 0
call fcn.00412100
add esp, 4
test al, al
jne 0x4123f1
mov eax, dword [esp + 4]
test eax, eax
je 0x4123e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x14], 0
jb 0x412408
mov eax, dword [eax + 4]
jmp 0x41240b
add eax, 4
push ebx
push esi
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov edi, 4
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x18], edi
jne 0x412445
test eax, eax
je 0x41244d
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
test esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41245c
push esi
call ebx
xor esi, esi
test esi, esi
mov edi, dword [esp + 0x1c]
je 0x412467
push esi
call ebx
pop esi
pop ebx
mov eax, edi
pop edi
add esp, 8
ret 0xc
Function at 0x412730
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42ab5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
mov eax, dword [0x4377f4]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x444]
push esi
mov esi, dword [esp + 0x444]
mov dword [esp + 0x430], eax
xor ebx, ebx
mov eax, ecx
mov ecx, dword [esp + 0x450]
push edi
mov dword [esp + 0x10], ebx
push ecx
lea ecx, [eax + 8]
mov al, byte [eax + 4]
lea edi, [esp + 0x14]
mov dword [esp + 0x444], ebx
mov dword [esp + 0x18], 0x400
call fcn.00412100
add esp, 4
test al, al
jne 0x4127b2
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x412857
push eax
jmp 0x412851
mov al, byte [esp + 0x450]
test al, al
mov ebx, 0x10
jne 0x4127f2
cmp dword [esi + 0x18], ebx
jb 0x4127cc
mov eax, dword [esi + 4]
jmp 0x4127cf
lea eax, [esi + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00412070
test eax, eax
jne 0x4127f2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x412857
push eax
jmp 0x412851
push 0x400
push 0
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.004029c1
cmp dword [esi + 0x18], ebx
jb 0x41280f
mov esi, dword [esi + 4]
jmp 0x412812
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x41281c
mov edi, dword [eax + 4]
jmp 0x41281f
lea edi, [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push esi
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [esp + 0x30], ebx
jb 0x41284c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041c5ad
add esp, 4
test esi, esi
je 0x412857
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x438]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x428]
pop ebx
xor ecx, esp
call fcn.0041c2f6
add esp, 0x434
ret 0x10
Function at 0x412880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42ab86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
mov eax, dword [0x4377f4]
mov edx, dword [ebp + 0x14]
xor eax, ebp
push ebx
mov dword [esp + 0x434], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x44c], ebx
mov dword [esp + 0xc], ebx
push ecx
lea ecx, [eax + 8]
mov al, byte [eax + 4]
lea edi, [esp + 0x10]
mov byte [esp + 0x450], 1
call fcn.00412100
add esp, 4
test al, al
jne 0x41291b
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.004026ab
jmp 0x41298f
xor eax, eax
mov byte [esp + 0x38], bl
mov ecx, 0xff
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [esi + 0x18], 0x10
mov dword [esp + 0x10], 0x400
jb 0x412942
mov esi, dword [esi + 4]
jmp 0x412945
add esi, 4
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x18]
call fcn.00412070
test eax, eax
je 0x412970
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.004026ab
jmp 0x41298f
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x412977
sub eax, edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
call fcn.004027cf
mov edi, dword [esp + 0xc]
cmp edi, ebx
je 0x4129a4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x24]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004026ab
cmp edi, ebx
je 0x4129cf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x34], 0x10
jb 0x4129e3
mov eax, dword [esp + 0x20]
push eax
call fcn.0041c5ad
add esp, 4
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x43c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c2f6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412a10
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42ab98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x18]
xor esi, esi
mov ebp, 0x10
cmp ecx, ebp
mov dword [esp + 0x2c], esi
jb 0x412a45
mov eax, dword [eax + 4]
jmp 0x412a48
add eax, 4
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push ecx
push 0x20006
push esi
push eax
push edx
mov dword [esp + 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x412ad9
mov ecx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x3c]
push 0x400
push esi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x48], ebx
call fcn.004029c1
cmp dword [eax + 0x18], ebp
jb 0x412a8e
mov esi, dword [eax + 4]
jmp 0x412a91
lea esi, [eax + 4]
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x18], ebp
push edi
jb 0x412aa0
mov edi, dword [eax + 4]
jmp 0x412aa3
lea edi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [esp + 0x28], ebp
pop edi
jb 0x412acd
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041c5ad
add esp, 4
test ebx, ebx
je 0x412ad8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [esp + 0x24]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x414a60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov al, byte [0x4392b8]
test al, al
push esi
push edi
jne 0x414a9f
push 0
call fcn.0041ea36
add esp, 4
push 0x4388e0
mov esi, eax
mov byte [0x4392b8], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
call fcn.00414930
push 0
call fcn.0041ea36
push eax
call fcn.0041ea07
add esp, 0xc
push 0x4388e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x437634]
cmp eax, 0x270
jl 0x414b89
cmp eax, 0x271
jne 0x414ace
push 0x1105
call fcn.00414930
add esp, 4
xor ecx, ecx
mov edi, dword [ecx*4 + 0x4388f8]
mov eax, dword [ecx*4 + 0x4388fc]
mov esi, dword [ecx*4 + 0x438f2c]
xor eax, edi
and eax, 0x7fffffff
mov edx, edi
xor eax, edx
mov edx, eax
and edx, 1
mov edi, dword [edx*4 + 0x437638]
shr eax, 1
xor eax, edi
xor eax, esi
mov dword [ecx*4 + 0x4388f8], eax
inc ecx
cmp ecx, 0xe3
jl 0x414ad0
cmp ecx, 0x26f
jge 0x414b56
lea ecx, [ecx*4 + 0x4388f8]
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov edx, dword [ecx]
mov esi, dword [ecx - 0x38c]
xor eax, edi
and eax, 0x7fffffff
xor eax, edx
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x437638]
xor edx, esi
shr eax, 1
xor edx, eax
mov dword [ecx], edx
add ecx, 4
cmp ecx, 0x4392b4
jl 0x414b21
mov ecx, dword [0x4392b4]
mov eax, dword [0x4388f8]
xor eax, ecx
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
and ecx, 1
mov edx, dword [ecx*4 + 0x437638]
mov ecx, dword [0x438f28]
shr eax, 1
xor eax, edx
xor eax, ecx
mov dword [0x4392b4], eax
xor eax, eax
mov esi, dword [eax*4 + 0x4388f8]
mov edx, esi
inc eax
shr edx, 0xb
xor esi, edx
mov dword [0x437634], eax
mov eax, esi
and eax, 0xff3a58ad
shl eax, 7
xor esi, eax
mov ecx, esi
and ecx, 0xffffdf8c
shl ecx, 0xf
push 0
xor esi, ecx
call fcn.0041ea36
add esp, 4
mov edi, eax
call fcn.0041ea14
xor edi, eax
mov edx, esi
shr edx, 0x12
xor edi, edx
push 0x4388e0
xor edi, esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
ret
Function at 0x414d80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
xor eax, eax
push esi
push edi
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x18]
mov esi, 0x10
cmp ecx, esi
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x20], 0x42c5d4
mov dword [esp + 0x44], 1
mov word [esp + 0x48], di
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
jb 0x414de6
mov edx, dword [eax + 4]
jmp 0x414de9
lea edx, [eax + 4]
mov eax, dword [esp + 0x68]
cmp dword [eax + 0x18], esi
jb 0x414df7
mov ecx, dword [eax + 4]
jmp 0x414dfa
lea ecx, [eax + 4]
mov eax, dword [esp + 0x60]
cmp dword [eax + 0x18], esi
jb 0x414e08
mov eax, dword [eax + 4]
jmp 0x414e0b
add eax, 4
lea esi, [esp + 8]
push esi
lea esi, [esp + 0x1c]
push esi
push ecx
push edi
push 0x20
push edi
push edi
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x64]
pop edi
pop esi
add esp, 0x54
ret

Function at 0x415630
Capabilities:
Create thread

Disassembly:
push 8
call fcn.0041b48d
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [0x437640]
add esp, 4
cmp ecx, 1
jne 0x41566d
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x4153e0
push 0
push 0
call fcn.0041f128
add esp, 0x18
jmp 0x415684
lea edx, [esp + 4]
push edx
push 0
push eax
push 0x4153e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jbe 0x41568f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x417030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42b270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ebp, [ebx + 4]
push ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x2c], edi
je 0x417089
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 8]
push edx
push esi
push ecx
push eax
call fcn.00402aec
mov eax, dword [esi + 4]
push eax
call fcn.0041c5ad
add esp, 0x14
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
push esi
lea ecx, [ebx + 0x1c]
mov byte [esp + 0x30], 1
call fcn.00416ef0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x418f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x418f6f
mov eax, dword [eax + 4]
jmp 0x418f72
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x418f88
test al, 0x10
je 0x418f88
mov eax, 1
ret
xor eax, eax
ret