joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417d71
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x105
push eax
push 0x401650
push 0x402b68
xor esi, esi
push 0x402b10
xor edi, edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x21c]
push 0x402b50
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x21c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417e14
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x401e5c
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor eax, eax
cmp dword [ebp + 8], esi
setne al
mov edi, eax
cmp dword [ebp - 4], esi
je 0x417e22
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x418417
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x238
push ebx
push esi
push edi
xor eax, eax
push 0x1f
mov esi, ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 0x1c0], bl
lea edi, [ebp - 0x1bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f
xor eax, eax
pop ecx
mov byte [ebp - 0x140], bl
lea edi, [ebp - 0x13f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f
xor eax, eax
pop ecx
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x1c0]
push eax
mov dword [ebp + 0x6c], ebx
call fcn.0041469a
cmp eax, 5
mov dword [ebp + 0x74], eax
je 0x418564
cmp eax, 8
je 0x418564
xor eax, eax
mov byte [ebp + 0x5c], bl
lea edi, [ebp + 0x5d]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edx, edx
cmp byte [ebp - 0x24], bl
stosw word es:[edi], ax
je 0x4184c9
lea ecx, [ebp - 0x24]
push ecx
call fcn.004182d8
test eax, eax
je 0x4184c4
mov al, byte [ecx]
mov byte [ebp + edx + 0x5c], al
inc edx
cmp edx, 0xa
je 0x4184c9
inc ecx
cmp byte [ecx], bl
jne 0x4184ae
cmp dword [ebp + 0x74], 0xb
je 0x41855f
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 0x5c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4184ee
lea eax, [ebp + 0x5c]
push eax
call fcn.0041c3b9
pop ecx
jmp 0x4184f0
xor eax, eax
push 4
pop ecx
cmp dword [ebp + 0x74], ecx
mov dword [esi + 8], eax
jne 0x418595
cmp eax, 6
jne 0x418595
lea eax, [ebp + 0x74]
push eax
push 0x20019
push ebx
push 0x402cbc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418595
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x70]
push eax
push ebx
push ebx
push 0x402cf8
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418554
inc eax
cmp dword [ebp + 0x70], eax
jne 0x418554
mov dword [esi + 0x10], eax
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x418595
mov dword [esi + 8], ebx
jmp 0x418595
push 0x27
pop ecx
xor eax, eax
lea edi, [ebp - 0xc0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
movzx ecx, word [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x4186ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0x10
push edi
mov dword [ebp - 0x10], 4
jb 0x4186ee
mov eax, dword [esi + 0x10]
jmp 0x4186f1
lea eax, [esi + 0x10]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
push eax
lea edi, [esi + 0x44]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x418716
xor eax, eax
pop edi
pop esi
leave
ret
test eax, eax
jne 0x418725
cmp dword [ebp - 8], 4
jne 0x418725
mov eax, dword [ebp - 0xc]
jmp 0x418712
push edi
mov ecx, esi
call fcn.00418201
mov al, byte [ebp - 1]
mov byte [ebp - 1], al
push 0x42b6f4
lea eax, [ebp - 1]
push eax
call fcn.0041be0f
int3

Function at 0x418742
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0x10
push edi
mov dword [ebp - 8], 0x40
jb 0x41875e
mov eax, dword [esi + 0x10]
jmp 0x418761
lea eax, [esi + 0x10]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
push eax
lea edi, [esi + 0x44]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x418782
xor eax, eax
jmp 0x4187ac
test eax, eax
je 0x4187a2
push edi
mov ecx, esi
call fcn.00418201
mov al, byte [ebp - 1]
mov byte [ebp - 1], al
push 0x42b6f4
lea eax, [ebp - 1]
push eax
call fcn.0041be0f
lea eax, [ebp - 0x48]
push eax
call fcn.0041c3b9
pop ecx
pop edi
pop esi
leave
ret

Function at 0x4187b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x48], 0x10
push edi
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x1a
jb 0x4187d4
mov eax, dword [esi + 0x34]
jmp 0x4187d7
lea eax, [esi + 0x34]
lea ecx, [ebp - 0xc]
push ecx
lea ebx, [esi + 4]
push ebx
lea ecx, [ebp - 8]
push ecx
push 0
push eax
lea edi, [esi + 0x68]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x418807
mov eax, dword [0x402e4c]
mov dword [ebx], eax
mov eax, dword [0x402e50]
mov dword [ebx + 4], eax
jmp 0x418811
test eax, eax
jne 0x418819
cmp dword [ebp - 8], 1
jne 0x418819
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
push edi
mov ecx, esi
call fcn.00418201
mov al, byte [ebp - 1]
mov byte [ebp - 1], al
push 0x42b6f4
lea eax, [ebp - 1]
push eax
call fcn.0041be0f
int3
Function at 0x4196cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4291aa
call fcn.0041b8d0
sub esp, 0x128
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0x403078
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
call fcn.00405ea1
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00405b57
push 0x4030a0
lea ecx, [ebp - 0x2c]
call fcn.00405e10
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x41971b
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x10]
push ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x419790
push edi
push 0x41
pop ecx
mov byte [ebp - 0x134], bl
lea edi, [ebp - 0x133]
rep stosd dword es:[edi], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp + 8], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x419790
lea eax, [ebp - 0x134]
push 0x5c
push eax
call fcn.0041d100
cmp eax, ebx
pop ecx
pop ecx
je 0x419790
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov byte [eax], bl
lea eax, [ebp - 0x134]
push eax
lea ecx, [esi + 0x40]
call fcn.00405e80
cmp dword [ebp - 0x10], ebx
je 0x4197a0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00418201
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405948
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4198fe
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x41
xor eax, eax
cmp dword [esi + 0x20], 0x10
pop ecx
lea edi, [ebp - 0x11b]
mov byte [ebp - 0x11c], bl
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
jb 0x419936
mov ecx, dword [esi + 0xc]
jmp 0x419939
lea ecx, [esi + 0xc]
lea edx, [ebp - 0x11c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x41993f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x4199cd
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call fcn.0041c7f9
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x419977
xor eax, eax
jmp 0x4199d6
push eax
push edi
push ebx
lea eax, [ebp - 0x11c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4199bf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x401654
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4199bf
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov dword [esi + 0x5c], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x60], eax
lea eax, [esi + 0x40]
push eax
mov ecx, esi
call fcn.004191f4
jmp 0x4199c2
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call fcn.0041b8f4
pop ecx
jmp 0x4199d3
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ab09
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push edi
xor eax, eax
push 0x40
xor ebx, ebx
pop ecx
mov byte [ebp - 0x104], bl
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
cmp dword [ebp + 8], ebx
mov byte [ebp - 0x208], bl
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x41ab8c
cmp dword [ebp + 0x10], ebx
je 0x41ab8c
lea eax, [ebp - 0x208]
push eax
push 0x104
call fcn.0041ae63
lea eax, [ebp - 0x104]
push eax
push ebx
push 0x403778
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp dword [ebp + 0xc], ecx
jae 0x41ab90
xor eax, eax
jmp 0x41abc3
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
push 0x4015fc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x104]
lea eax, [ebp - 0x104]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x41abb6
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 0xc
Function at 0x41abc9
Capabilities:
Copy file
Create process on windows
Get common file path
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
xor eax, eax
push 0x40
xor ebx, ebx
pop ecx
mov byte [ebp - 0x158], bl
lea edi, [ebp - 0x157]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push 0x40
pop ecx
mov byte [ebp - 0x25c], bl
lea edi, [ebp - 0x25b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor eax, eax
cmp dword [ebp + 8], ebx
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x44
je 0x41ad2a
cmp dword [ebp + 0xc], ebx
je 0x41ad2a
lea eax, [ebp - 0x158]
push eax
push 0x104
call fcn.0041ae63
lea eax, [ebp - 0x158]
push eax
push ebx
push 0x40379c
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x41ad2a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, ebx
je 0x41ad2a
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push 0x40378c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call edi
push dword [ebp - 0xc]
call edi
cmp esi, ebx
je 0x41ad2a
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
push 0x40377c
push ebx
push 0x1f0001
mov dword [ebp + 8], ebx
call esi
cmp eax, ebx
jne 0x41ad16
cmp dword [ebp + 8], 0x64
jge 0x41ad12
inc dword [ebp + 8]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40377c
push ebx
push 0x1f0001
call esi
cmp eax, ebx
je 0x41acf0
cmp eax, ebx
je 0x41ad2a
push eax
call edi
mov ecx, dword [ebp + 0x10]
xor eax, eax
inc eax
cmp ecx, ebx
je 0x41ad2c
mov edx, dword [ebp - 8]
mov dword [ecx], edx
jmp 0x41ad2c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41ad33
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
push 0xc
pop ecx
mov esi, 0x4037cc
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor ebx, ebx
push 0x41
xor eax, eax
cmp dword [ebp + 8], ebx
pop ecx
lea edi, [ebp - 0x13b]
mov byte [ebp - 0x13c], bl
rep stosd dword es:[edi], eax
je 0x41addf
cmp dword [ebp + 0xc], ebx
je 0x41addf
push dword [ebp + 0xc]
lea eax, [ebp - 0x13c]
push 0x4037bc
push dword [ebp + 8]
push 0x4037ac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp + 0xc]
push eax
push 2
push ebx
lea eax, [ebp - 0x34]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41addf
or ecx, 0xffffffff
lea edi, [ebp - 0x13c]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea eax, [ebp - 0x13c]
push eax
push 1
push ebx
push 0x4037a0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41add2
inc ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x41ade1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41ae63
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
je 0x41ae85
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x41ae8c
xor eax, eax
jmp 0x41af73
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x41af67
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
push 0x4022d8
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41af3d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x4022c4
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 4
call edi
test eax, eax
jne 0x41aef4
cmp dword [ebp - 4], ebx
sete al
mov esi, eax
cmp esi, ebx
jne 0x41af2b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push ebx
push 0x4022b8
push dword [ebp + 8]
mov dword [ebp - 0xc], 0x400
call edi
test eax, eax
jne 0x41af2b
lea eax, [ebp - 0x40c]
push eax
call fcn.0041c3b9
mov esi, eax
neg esi
sbb esi, esi
pop ecx
neg esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x41af3d
mov edi, dword [ebp + 0xc]
jmp 0x41af66
mov edi, dword [ebp + 0xc]
push 0x5c
push edi
call fcn.0041d100
cmp eax, ebx
pop ecx
pop ecx
je 0x41af55
cmp byte [eax + 1], bl
jne 0x41af55
mov byte [eax], bl
push 0x5c
push edi
call fcn.0041d100
cmp eax, ebx
pop ecx
pop ecx
je 0x41af66
mov byte [eax + 1], bl
pop esi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
pop edi
pop ebx
leave
ret 8
Function at 0x41b29d
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0xf0
push 0x403828
call fcn.0041be4c
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [ebp - 0x9c]
mov dword [0x42fd38], edx
mov eax, dword [ebp - 0xa8]
mov dword [0x42fd44], eax
mov esi, dword [ebp - 0xa4]
mov dword [0x42fd48], esi
mov ecx, dword [ebp - 0xa0]
and ecx, 0x7fff
mov dword [0x42fd3c], ecx
cmp edx, 2
je 0x41b309
or ecx, 0x8000
mov dword [0x42fd3c], ecx
shl eax, 8
add eax, esi
mov dword [0x42fd40], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41b344
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b344
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41b35f
cmp eax, 0x20b
je 0x41b34c
mov dword [ebp - 0xb0], esi
jmp 0x41b376
cmp dword [ecx + 0x84], 0xe
jbe 0x41b344
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41b36d
cmp dword [ecx + 0x74], 0xe
jbe 0x41b344
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0xb0], eax
push 1
call fcn.0041e450
pop ecx
test eax, eax
jne 0x41b38a
push 0x1c
call fcn.0041b279
pop ecx
call fcn.0041e3d5
test eax, eax
jne 0x41b39b
push 0x10
call fcn.0041b279
pop ecx
call fcn.0041e2dc
mov dword [ebp - 4], esi
call fcn.0041e121
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4315d0], eax
call fcn.0041dfff
mov dword [0x42fd20], eax
call fcn.0041df67
call fcn.0041dd42
call fcn.0041d8c1
mov dword [ebp - 0xc8], esi
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041dce4
mov dword [ebp - 0xf8], eax
test byte [ebp - 0xc8], 1
je 0x41b3fc
movzx eax, word [ebp - 0xc4]
jmp 0x41b3ff
push 0xa
pop eax
push eax
push dword [ebp - 0xf8]
push esi
push esi
call edi
push eax
call fcn.00413059
mov edi, eax
mov dword [ebp - 0xfc], edi
cmp dword [ebp - 0xb0], esi
jne 0x41b426
push edi
call fcn.0041d9a4
call fcn.0041d9c8
jmp 0x41b461
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.0041be85
ret

Function at 0x41c2eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c30b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041f454
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41c32e
test byte [esp + 8], 2
je 0x41c32e
call fcn.0041f442
mov dword [eax], 0xd
call fcn.0041f44b
mov dword [eax], 5
jmp 0x41c307
xor eax, eax
ret

Function at 0x41c65d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41c68a
test byte [esp + 8], 0x80
je 0x41c678
and eax, 0xfffffffe
jmp 0x41c67b
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41c69b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041f454
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x41d8fa
Capabilities:
Terminate process

Disassembly:
push esi
push 0xd
call fcn.0041fbd8
xor esi, esi
inc esi
cmp dword [0x42fd78], esi
pop ecx
jne 0x41d91f
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0xc], 0
mov dword [0x42fd74], esi
mov byte [0x42fd70], bl
jne 0x41d975
mov ecx, dword [0x4315c8]
test ecx, ecx
je 0x41d965
mov eax, dword [0x4315c4]
sub eax, 4
cmp eax, ecx
jmp 0x41d95e
mov eax, dword [eax]
test eax, eax
je 0x41d950
call eax
mov eax, dword [0x4315c4]
sub eax, 4
cmp eax, dword [0x4315c8]
mov dword [0x4315c4], eax
jae 0x41d948
push 0x42e048
mov eax, 0x42e040
call fcn.0041d8a9
pop ecx
push 0x42e054
mov eax, 0x42e04c
call fcn.0041d8a9
test ebx, ebx
pop ecx
je 0x41d992
push 0xd
call fcn.0041fbc3
jmp 0x41d9a1
push dword [esp + 8]
mov dword [0x42fd78], esi
call fcn.0041d867
pop ecx
pop esi
ret

Function at 0x41d9e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x42ead0]
je 0x41da09
inc eax
cmp eax, 0x12
jb 0x41d9fa
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42ead0]
jne 0x41db3c
mov eax, dword [0x42fd28]
cmp eax, 1
je 0x41db16
test eax, eax
jne 0x41da39
cmp dword [0x42ea6c], 1
je 0x41db16
cmp ecx, 0xfc
je 0x41db3c
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41da70
lea eax, [ebp - 0x104]
push 0x403c80
push eax
call fcn.004208f0
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
lea edi, [ebp - 0x104]
call fcn.004209e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41dab2
lea eax, [ebp - 0x104]
push eax
call fcn.004209e0
mov edi, eax
lea eax, [ebp - 0x104]
sub eax, 0x3b
push 3
add edi, eax
push 0x403c7c
push edi
call fcn.0041f580
add esp, 0x10
push edi
call fcn.004209e0
push dword [esi + 0x42ead4]
mov ebx, eax
call fcn.004209e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041c620
mov ebx, esp
push 0x403c60
push ebx
call fcn.004208f0
push edi
push ebx
call fcn.00420900
push 0x402ad0
push ebx
call fcn.00420900
push dword [esi + 0x42ead4]
push ebx
call fcn.00420900
push 0x12010
push 0x403c38
push ebx
call fcn.00423139
add esp, 0x2c
jmp 0x41db3c
push 0
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x42ead4]
push dword [esi]
call fcn.004209e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423139
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42ff14], ebx
push esi
push edi
jne 0x4231b9
push 0x4044d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4231f4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4044cc
push edi
call esi
test eax, eax
mov dword [0x42ff14], eax
je 0x4231f4
push 0x4044bc
push edi
call esi
push 0x4044a8
push edi
mov dword [0x42ff18], eax
call esi
cmp dword [0x42fd38], 2
mov dword [0x42ff1c], eax
jne 0x4231b9
push 0x40448c
push edi
call esi
test eax, eax
mov dword [0x42ff24], eax
je 0x4231b9
push 0x404474
push edi
call esi
mov dword [0x42ff20], eax
mov eax, dword [0x42ff20]
test eax, eax
je 0x4231fe
call eax
test eax, eax
je 0x4231e5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42ff24]
test eax, eax
je 0x4231e5
test byte [ebp - 8], 1
jne 0x4231fe
cmp dword [0x42fd44], 4
jb 0x4231f8
or byte [ebp + 0x12], 0x20
jmp 0x42321d
xor eax, eax
jmp 0x42322d
or byte [ebp + 0x12], 4
jmp 0x42321d
mov eax, dword [0x42ff18]
test eax, eax
je 0x42321d
call eax
mov ebx, eax
test ebx, ebx
je 0x42321d
mov eax, dword [0x42ff1c]
test eax, eax
je 0x42321d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42ff14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4237e3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041c620
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call esi
mov edi, dword [ebp - 0x1c]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call esi
test byte [ebp - 0xf], 0x20
je 0x423828
mov ecx, dword [ebp - 0x14]
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
add ecx, eax
push ecx
call esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x40]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
cmp esi, edi
mov dword [ebp - 4], eax
jb 0x42387c
jbe 0x423858
push 0x4000
mov eax, esi
sub eax, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 4
push 0x1000
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [ebp - 4]
push eax
push 0x104
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret