joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412310
Capabilities:
Access peb ldr_data
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4e0977
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov dword [esp + 0x14], 0
push 0x517348
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
call fcn.004d38eb
mov esi, dword [esp + 0x30]
mov byte [esp + 0x20], 2
test esi, esi
mov dword [esp + 0xc], 0x34
mov eax, 0x4e9894
je 0x412364
mov eax, esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4123ec
push ebp
push edi
call fcn.004d35be
add esp, 4
mov ebp, eax
test esi, esi
mov eax, 0x4e9894
je 0x412389
mov eax, esi
push ebp
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4123e2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x50857c
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4123e2
mov eax, dword [esp + 0x14]
xor edx, edx
mov dx, word [eax + 0xc]
mov ecx, dword [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
lea ecx, [esp + 0x1c]
push str._d._d._d._d
push ecx
call fcn.004d2912
add esp, 0x18
push ebp
call fcn.004d35e7
add esp, 4
pop ebp
mov edi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, edi
call fcn.004d35f2
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.004d387d
test esi, esi
je 0x412443
mov al, byte [esi - 1]
test al, al
je 0x412439
cmp al, 0xff
je 0x412439
dec al
mov byte [esi - 1], al
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
dec esi
push esi
call fcn.004d35e7
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x415cf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x400
xor ecx, ecx
lea edx, [esp]
push esi
mov eax, ecx
mov esi, 8
test al, 1
je 0x415d11
shr eax, 1
xor eax, 0xedb88320
jmp 0x415d13
shr eax, 1
dec esi
jne 0x415d04
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x415cfd
mov edx, dword [esp + 0x40c]
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x415d5b
mov esi, dword [esp + 0x408]
push ebx
push edi
movsx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [esp + edi*4 + 0xc]
xor eax, edi
inc ecx
cmp ecx, edx
jb 0x415d3d
pop edi
pop ebx
not eax
pop esi
add esp, 0x400
ret

Function at 0x415ea0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x8c
lea eax, [esp + 4]
push esi
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
test esi, esi
je 0x415ee8
lea edx, [esp + 4]
push edi
push edx
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x8c
ret
xor eax, eax
pop esi
add esp, 0x8c
ret
Function at 0x416f90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e1287
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [esp + 0x18], 0
push 0x517348
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 3
call fcn.004d38eb
lea eax, [esp + 0x30]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
call fcn.004d35f2
lea ecx, [esp + 4]
mov byte [esp + 0x24], 5
call fcn.004d3d7f
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call fcn.004d35f2
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 6
call fcn.004d3d7f
lea edx, [esp + 0x38]
lea ecx, [esp + 8]
push edx
call fcn.004d35f2
lea ecx, [esp + 8]
mov byte [esp + 0x24], 7
call fcn.004d3d7f
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push eax
call fcn.004d258c
mov esi, eax
test esi, esi
jl 0x417099
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx - 8]
lea ecx, [esp + 4]
add esi, edx
mov edx, dword [esp + 8]
push esi
push edx
call fcn.004d259a
cmp eax, 0xffffffff
jne 0x417058
mov eax, dword [esp + 4]
mov eax, dword [eax - 8]
mov ecx, dword [esp + 0x30]
sub eax, esi
mov ecx, dword [ecx - 8]
cmp esi, ecx
jg 0x417099
lea edx, [eax + esi]
cmp edx, ecx
jg 0x417099
push eax
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x3c]
call fcn.004d23e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 8
call fcn.004d39b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 7
call fcn.004d387d
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004d35f2
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x24], 6
call fcn.004d387d
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call fcn.004d387d
lea ecx, [esp + 4]
mov byte [esp + 0x24], 4
call fcn.004d387d
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.004d387d
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.004d387d
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 1
call fcn.004d387d
lea ecx, [esp + 0x38]
mov byte [esp + 0x24], 0
call fcn.004d387d
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x417420
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4e138d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
push edi
mov dword [esp + 8], 0
push 0x517348
lea ecx, [esp + 8]
mov dword [esp + 0x418], 1
call fcn.004d38eb
mov edx, dword [esp + 0x420]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [0x51753c]
lea ecx, [esp + 0xc]
push eax
push 0x3ff
push ecx
push 0x517348
push edx
push str.Config
mov byte [esp + 0x42c], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + eax + 0xc], 0
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x4174be
lea eax, [esp + 8]
lea ecx, [esp]
push eax
call fcn.004d3a06
push esi
mov esi, dword [esp + 0x41c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.004d35f2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x414], 1
call fcn.004d387d
lea ecx, [esp + 0x420]
mov byte [esp + 0x414], 0
call fcn.004d387d
mov ecx, dword [esp + 0x40c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x414
ret
Function at 0x419470
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
push SysReAllocStringLen
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x4194a5
push str.IRNPAPFAIL5.exe
call fcn.00418d30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0x10000
push 0x40
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push 0x10000
push ebp
push 3
push 0xb
push esi
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x41950a
push str.IRNPAPFAIL6.exe
call fcn.00418d30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0xc]
xor edi, edi
test eax, eax
jbe 0x41955d
mov eax, dword [ebp]
mov esi, str.IRNPF
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x419540
test cl, cl
je 0x41953c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x419540
add eax, 2
add esi, 2
test cl, cl
jne 0x41951c
xor eax, eax
jmp 0x419545
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x419581
mov eax, dword [esp + 0xc]
inc edi
add ebp, 0x24
cmp edi, eax
jb 0x419514
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.IRNPAPFAIL7.exe
call fcn.00418d30
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov esi, dword [esp + 0x10]
lea eax, [edi + edi*8]
mov eax, dword [esi + eax*4 + 0xc]
dec eax
cmp eax, 6
ja case.0x419592.3
jmp dword [eax*4 + 0x4195f0]
push str.CONTINUEPENDING.exe
jmp 0x4195c8
push str.PAUSEPENDING.exe
jmp 0x4195c8
push str.SERVICEPAUSED.exe
jmp 0x4195c8
push str.SERVICERUNNING.exe
jmp 0x4195c8
push str.SERVICESTART.exe
jmp 0x4195c8
push str.SERVICESTOPPED.exe
jmp 0x4195c8
push str.SERVICEUNKNOW.exe
call fcn.00418d30
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
Function at 0x41a8f0
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x4e1915
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [0x511ed0]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xb4], 1
push ecx
mov dword [esp + 0x10], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
shr edx, 0xa
push edx
push str._ld_KB_
push eax
call fcn.004add1e
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 8]
call fcn.004d3a06
mov esi, dword [esp + 0xbc]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.004d35f2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0xb4], 0
call fcn.004d387d
mov ecx, dword [esp + 0xac]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xb4
ret

Function at 0x41a9b0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4e193f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x511ed0]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x18]
push ebx
stosw word es:[edi], ax
push ecx
push ebx
push ebx
push 0x50934c
mov dword [esp + 0x60], 1
mov dword [esp + 0x2c], ebx
stosb byte es:[edi], al
call esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x41aa32
push ebx
push ebx
push ebx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebx
push 0x509348
call esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
jbe 0x41aa55
push eax
lea eax, [esp + 0x1c]
push str._Serial:_d_
push eax
call fcn.004add1e
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.004d3a06
mov esi, dword [esp + 0x48]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.004d35f2
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], bl
call fcn.004d387d
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x41ad20
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4e19a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x39c
push edi
push 0x517348
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.004d38eb
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x3a8], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x210]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
jne 0x41add9
lea ecx, [esp + 0x108]
push 0x104
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41add9
mov eax, dword [eax + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax]
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 8]
push esi
push ecx
lea ecx, [esp + 8]
call fcn.004d3a06
mov esi, dword [esp + 0x3b0]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.004d35f2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x3a8], 0
call fcn.004d387d
mov ecx, dword [esp + 0x3a0]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x3a8
ret
Function at 0x41d080
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x5174f8]
push esi
push eax
call fcn.0041d810
test eax, eax
je 0x41d0b4
push eax
push 1
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41d0b4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x41d0c0
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
push ecx
mov eax, dword [0x517500]
push ebx
push esi
push edi
push eax
push 1
mov ebx, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x41d15a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d15a
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0x41d050
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41d147
push 0
push 0
push 0x7ef
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4e20
push esi
call edi
cmp eax, 0x102
jne 0x41d15a
mov ecx, ebx
call fcn.0041d080
push 0x4e20
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov ecx, ebx
call fcn.0041d080
push 0x4e20
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x41d700
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push eax
push 1
push 0
push ecx
push ebx
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41d72e
xor eax, eax
pop ebx
pop ecx
ret 0x14
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push esi
push edi
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov esi, eax
call edi
push ebx
call edi
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
pop ecx
ret 0x14

Function at 0x41d810
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x238
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x14], eax
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov byte [esp + 0x140], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 2
stosb byte es:[edi], al
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41d873
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x41d89f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret 4
mov esi, dword [esp + 0x248]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41d905
cmp eax, 4
je 0x41d905
lea ecx, [esp + 0x40]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x24]
test eax, eax
jne 0x41d8d0
cmp edx, dword [esp + 0x18]
jne 0x41d916
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x144]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x144]
push eax
push edx
call fcn.0041d780
test eax, eax
je 0x41d905
lea ecx, [esp + 0x144]
push ecx
push esi
call ebp
test eax, eax
je 0x41d91c
lea edx, [esp + 0x1c]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x41d924
jmp 0x41d8ad
mov dword [esp + 0x10], edx
jmp 0x41d924
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x238
ret 4
Function at 0x41d940
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov ecx, dword [0x5175dc]
sub esp, 0x44
test ecx, ecx
je 0x41d952
call fcn.004327b0
push esi
push edi
mov ecx, 0xb
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [esp + 0xc]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0x3a], eax
lea ecx, [esp + 8]
mov dword [esp + 0x3e], eax
push ecx
mov dword [esp + 0x46], eax
push 0xf003f
mov dword [esp + 0x4e], eax
lea edx, [esp + 0x14]
push eax
push edx
push SysReAllocStringLen
mov word [esp + 0x5e], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x41d9ba
mov eax, dword [0x517504]
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00499c50
call fcn.00499d90
add esp, 0x44
ret
Function at 0x41fa10
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x4e2082
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x34]
push 0x508674
push eax
call fcn.004add1e
add esp, 8
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004d38eb
push ecx
mov dword [esp + 0x498], 0
mov ecx, esp
mov dword [esp + 0x24], esp
push str.PROCESSID
call fcn.004d38eb
mov dword [esp + 0x498], 0xffffffff
call fcn.00417520
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x4c]
add esp, 8
rep stosd dword es:[edi], eax
mov eax, dword [0x511ed0]
mov dword [esp + 0x44], 0x44
mov dword [esp + 0xc], eax
mov dword [esp + 0x490], 1
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov byte [esp + 0x498], 2
call fcn.004d3cad
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004d3cfc
push 0x5c
lea ecx, [esp + 0xc]
call fcn.004d256a
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.004d24f2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x494], 3
call fcn.004d39b6
lea ecx, [esp + 0x10]
mov byte [esp + 0x490], 2
call fcn.004d387d
lea ecx, [esp + 8]
push 0x50857c
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004d3b12
lea eax, [esp + 0x14]
push 0x517524
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x49c], 4
call fcn.004d3aac
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x494], 5
call fcn.004d39b6
lea ecx, [esp + 0x10]
mov byte [esp + 0x490], 4
call fcn.004d387d
push 0x509164
lea ecx, [esp + 0x10]
call fcn.004d3c59
push 0x517500
lea ecx, [esp + 0x10]
call fcn.004d3c95
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x88]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41fbf3
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x490], 2
call fcn.004d387d
lea ecx, [esp + 8]
mov byte [esp + 0x490], 1
call fcn.004d387d
lea ecx, [esp + 0xc]
mov dword [esp + 0x490], 0xffffffff
call fcn.004d387d
mov ecx, dword [esp + 0x488]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x48c
ret
Function at 0x420f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 2
push 0
mov dword [esp + 0x20], ecx
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
je 0x421100
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4210c9
push 0xe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4210f9
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4210f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4210f9
xor eax, eax
mov ax, word [edi + 4]
shl eax, 5
add eax, 0x210
push eax
call fcn.004aeaa7
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x4210f9
xor ecx, ecx
lea edx, [esi + 0x108]
mov cx, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
mov dword [esi + 0x20c], ecx
call ebx
lea eax, [esi + 4]
push 0x517348
push eax
call ebx
mov eax, dword [esi + 0x20c]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x4210c9
mov ecx, esi
add edi, 0x12
mov dword [esp + 0x20], edi
lea ebx, [ecx + 0x21c]
mov eax, dword [esp + 0x20]
xor edx, edx
push 3
mov dx, word [eax]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4210de
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4210e5
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebx + 4], eax
call fcn.004aeaa7
add esp, 4
mov dword [ebx], eax
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebx]
mov ecx, esi
mov esi, eax
mov edx, ecx
lea eax, [ebx - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.00420ee0
test eax, eax
je 0x4210ec
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0x20c]
add edi, 0xe
add ebx, 0x20
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jb 0x42102c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x10]
push edx
jmp 0x4210f1
mov eax, dword [esp + 0x10]
push eax
jmp 0x4210f1
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004ae9be
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x421110
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x421140
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x42114f
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x421172
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x421181
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x4211a4
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8