joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b24
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push edi
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
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
pop ecx
xor eax, eax
mov byte [ebp - 0x208], bl
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041c718
cmp eax, ebx
pop ecx
pop ecx
je 0x405bd1
mov byte [eax], bl
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0041c620
lea eax, [ebp - 0x208]
push str._rsdebug.ini
push eax
call fcn.0041c630
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push ebx
push str.IsDebug
push str.Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [0x43c318], eax
setne al
jmp 0x405bd3
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x406bac
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x43c318]
cmp eax, 0xffffffff
jne 0x406bcd
call fcn.00405b24
cmp dword [0x43c318], 0
jmp 0x406bcf
test eax, eax
je 0x406d0a
push esi
push edi
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x208], 0
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
mov byte [ebp - 0x30c], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x433840
push dword [ebp + 8]
stosb byte es:[edi], al
call fcn.0041d3bd
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ecx
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp + eax - 0x208]
push eax
call fcn.0040334c
lea eax, [ebp - 0x30c]
push str._RsInstall_
push eax
call fcn.0041c620
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.0041c630
add esp, 0x10
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x104], 0
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x406cbd
push esi
push str.C:Temp
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041c718
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
je 0x406cdc
cmp byte [eax + 1], 0
jne 0x406cdc
mov byte [eax], 0
lea eax, [ebp - 0x104]
push str.Rs7zSfx.log
push eax
call fcn.0041c630
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push 0x80
call fcn.0040439d
add esp, 0x18
leave
ret
Function at 0x408eb1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x408eca
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x408eed
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x408ef2
inc esi
cmp esi, dword [ebp - 4]
jb 0x408ee4
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x408fe6
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x408f28
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x408f55
cmp cl, 0xff
je 0x408f55
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x408edf
dec ecx
shl edx, cl
and edx, 7
je 0x408f0e
movzx ecx, byte [edx + 0x4340f0]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4340e8], 0
mov cl, byte [ebx + 4]
je 0x408f50
test cl, cl
je 0x408f50
cmp cl, 0xff
jne 0x408f0e
mov dword [ebp + 0xc], eax
jmp 0x408f1d
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x408f7e
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x408f85
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x408fb9
movzx edi, byte [edx + 0x4340f0]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x408fa4
cmp al, 0xff
jne 0x408fb6
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x408f70
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x408edf
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x40cb21
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x53ebf8], 0
jne 0x40cb5b
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c62a
mov eax, dword [eax]
pop ecx
pop ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00408c0e
pop ecx
test esi, esi
pop esi
jmp 0x40cb69
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40cb6f
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x40cb73
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x53ebf8], 0
jne 0x40cbac
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c62a
mov eax, dword [eax]
pop ecx
pop ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00408c0e
pop ecx
test esi, esi
pop esi
jmp 0x40cbb9
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40cbbf
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x40d136
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d15c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d15c
xor al, al
jmp 0x40d17c
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0041dff0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x41a1e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
mov dword [ebp - 0x110], 1
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], 0
cmp dword [ebp + 8], 0
je 0x41a235
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jg 0x41a23c
xor eax, eax
jmp 0x41a37a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jbe 0x41a25c
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41a37a
push 0x103
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0xc], 0
je 0x41a285
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x41a2b3
mov eax, 1
jmp 0x41a37a
mov ecx, 1
test ecx, ecx
je 0x41a374
push 0x5c
mov edx, dword [ebp - 0x10c]
push edx
call fcn.0041d272
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x41a318
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and eax, dword [ebp - 0x110]
mov dword [ebp - 0x110], eax
jne 0x41a316
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41a316
mov dword [ebp - 0x110], 1
jmp 0x41a374
mov edx, dword [ebp - 0x114]
mov byte [edx], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
and eax, dword [ebp - 0x110]
mov dword [ebp - 0x110], eax
jne 0x41a357
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41a357
mov dword [ebp - 0x110], 1
mov edx, dword [ebp - 0x114]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x10c], eax
jmp 0x41a2b3
mov eax, dword [ebp - 0x110]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41b2c0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0041c1c0
add esp, 4
mov dword [ebp - 4], eax
push 0x3c
push 0
lea ecx, [ebp - 0x44]
push ecx
call fcn.0041c540
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x88]
call fcn.00402498
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x88]
add ecx, 8
call fcn.00402498
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x88]
add ecx, 0x10
call fcn.00402498
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x88]
add ecx, 0x14
call fcn.00402498
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x88]
add ecx, 0x18
call fcn.00402498
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x88]
add ecx, 0x1c
call fcn.00402498
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x44]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
mov dword [ebp - 0x84], 0xffffffff
mov ecx, dword [ebp - 0x88]
call fcn.00402357
cmp dword [ebp - 0x84], 0xffffffff
jne 0x41b3e2
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x84]
mov dword [ecx - 8], edx
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x84]
mov byte [ecx + edx], 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x88]
add ecx, 8
call fcn.004024ea
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x88]
add ecx, 0x10
call fcn.004024ea
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x88]
add ecx, 0x14
call fcn.004024ea
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x88]
add ecx, 0x18
call fcn.004024ea
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x88]
add ecx, 0x1c
call fcn.004024ea
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x88]
mov ax, word [ebp - 0x2c]
mov word [edx + 0xc], ax
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4
Function at 0x41d6b3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041d7f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d74e
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x53ed94]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41d74e
cmp eax, 1
je 0x41d76f
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d74e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41d71b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41d74a
xor eax, eax
inc eax
jmp 0x41d78e
cmp edi, eax
jae 0x41d752
xor eax, eax
jmp 0x41d78e
cmp eax, esi
jae 0x41d759
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x53ed94]
jmp 0x41d772
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41e2e2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41e2ff
call fcn.0042406c
mov dword [eax], 0x16
xor eax, eax
jmp 0x41e369
push esi
push 0x8c
push 1
call fcn.004240f1
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41e354
push esi
call fcn.0041ffb4
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x41e332
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41e24d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41e368
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041c5a0
test ebx, ebx
pop ecx
je 0x41e366
push ebx
call fcn.0042407e
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41e61d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x434a08
call fcn.0041d798
mov edi, 0x94
mov eax, edi
call fcn.0041d7f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x53ed94], ecx
mov eax, dword [esi + 4]
mov dword [0x53eda0], eax
mov edx, dword [esi + 8]
mov dword [0x53eda4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x53ed98], esi
cmp ecx, 2
je 0x41e67d
or esi, 0x8000
mov dword [0x53ed98], esi
shl eax, 8
add eax, edx
mov dword [0x53ed9c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41e6b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e6b8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41e6d0
cmp eax, 0x20b
je 0x41e6bd
mov dword [ebp - 0x1c], esi
jmp 0x41e6e4
cmp dword [ecx + 0x84], 0xe
jbe 0x41e6b8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41e6de
cmp dword [ecx + 0x74], 0xe
jbe 0x41e6b8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041ed13
pop ecx
test eax, eax
jne 0x41e6f8
push 0x1c
call fcn.0041e5f9
pop ecx
call fcn.004201ae
test eax, eax
jne 0x41e709
push 0x10
call fcn.0041e5f9
pop ecx
call fcn.00424a17
mov dword [ebp - 4], esi
call fcn.00424819
test eax, eax
jge 0x41e722
push 0x1b
call fcn.0041e5d4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5427f4], eax
call fcn.004246f7
mov dword [0x53ed84], eax
call fcn.00424655
test eax, eax
jge 0x41e748
push 8
call fcn.0041e5d4
pop ecx
call fcn.00424422
test eax, eax
jge 0x41e759
push 9
call fcn.0041e5d4
pop ecx
push 1
call fcn.0041e8ed
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41e76f
push eax
call fcn.0041e5d4
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004243c5
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41e790
movzx eax, word [ebp - 0x40]
jmp 0x41e793
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00405885
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41e7b1
push edi
call fcn.0041ea1a
call fcn.0041ea3c
jmp 0x41e7e3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041d7d3
ret
Function at 0x41e957
Capabilities:
Terminate process

Disassembly:
push 8
push 0x434a60
call fcn.0041d798
push 8
call fcn.0041eeb7
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x53edd4], esi
jne 0x41e98b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x53edd0], esi
mov al, byte [ebp + 0x10]
mov byte [0x53edcc], al
cmp dword [ebp + 0xc], edi
jne 0x41e9d5
cmp dword [0x5427ec], edi
je 0x41e9c5
mov eax, dword [0x5427e8]
sub eax, 4
mov dword [0x5427e8], eax
cmp eax, dword [0x5427ec]
jb 0x41e9c5
mov eax, dword [eax]
cmp eax, edi
je 0x41e9a6
call eax
jmp 0x41e9a6
push 0x43c094
mov eax, 0x43c08c
call fcn.0041e8d5
pop ecx
push 0x43c0a0
mov eax, 0x43c098
call fcn.0041e8d5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41ea06
cmp dword [ebp + 0x10], edi
jne 0x41ea14
mov dword [0x53edd4], esi
push dword [ebp + 8]
call fcn.0041e893
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41ea13
push 8
call fcn.0041ee02
pop ecx
ret
call fcn.0041d7d3
ret
Function at 0x41ead0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41eafe
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41eb05
cmp ebx, dword [eax + 4]
jae 0x41eb05
xor eax, eax
jmp 0x41ecf5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41eb16
xor eax, eax
inc eax
jmp 0x41ecf4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41eb2c
cmp ecx, edx
jae 0x41ec71
cmp dword [eax + 4], 0
je 0x41eb35
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41eb1d
cmp dword [ebp + 8], 0
je 0x41eb57
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41ec71
cmp eax, esi
jae 0x41ec71
mov eax, dword [0x53edd8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41eb7c
cmp dword [esi*4 + 0x53ede0], edi
je 0x41ec75
inc esi
cmp esi, eax
jl 0x41eb6a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41ecf1
cmp dword [ebp - 8], 0x1000000
jne 0x41ecf1
test byte [ebp - 0xc], 0xcc
je 0x41ebfa
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41ecf1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41ecf1
cmp word [eax + 0x18], 0x10b
jne 0x41ecf1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41ecf1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41ebfa
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41ebfa
test byte [ecx + 0x27], 0x80
jne 0x41ec71
push 1
push 0x53ee20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41eb0e
mov ecx, dword [0x53edd8]
test ecx, ecx
mov edx, ecx
jle 0x41ec2e
lea eax, [ecx*4 + 0x53eddc]
cmp dword [eax], edi
je 0x41ec2e
dec edx
sub eax, 4
test edx, edx
jg 0x41ec22
test edx, edx
jne 0x41ec5f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41ec3b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41ec53
lea eax, [edx*4 + 0x53ede0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41ec41
cmp ecx, 0x10
jge 0x41ec5f
inc ecx
mov dword [0x53edd8], ecx
push 0
push 0x53ee20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41eb0e
xor eax, eax
jmp 0x41ecf4
test esi, esi
jle 0x41eb0e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x53ee20
call ebx
test eax, eax
jne 0x41eb0e
cmp dword [esi*4 + 0x53ede0], edi
je 0x41eccb
mov eax, dword [0x53edd8]
lea esi, [eax - 1]
test esi, esi
jl 0x41ecb9
cmp dword [esi*4 + 0x53ede0], edi
je 0x41ecb5
dec esi
jns 0x41eca9
test esi, esi
jge 0x41ecc9
cmp eax, 0x10
jge 0x41ecc4
inc eax
mov dword [0x53edd8], eax
lea esi, [eax - 1]
jmp 0x41eccb
je 0x41ece3
xor ecx, ecx
test esi, esi
jl 0x41ece3
lea eax, [ecx*4 + 0x53ede0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41ecd1
push 0
push 0x53ee20
call ebx
jmp 0x41eb0e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424215
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43d2b8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43db70]
je 0x42424a
inc eax
cmp eax, 0x13
jb 0x42423b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43db70]
jne 0x424370
mov eax, dword [0x53ed8c]
cmp eax, 1
je 0x424348
cmp eax, edx
jne 0x42427a
cmp dword [0x43d2b4], 1
je 0x424348
cmp ecx, 0xfc
je 0x424370
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4242b0
lea eax, [ebp - 0x80]
push 0x435244
push eax
call fcn.0041c620
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041c1c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4242e4
mov eax, edi
push eax
call fcn.0041c1c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x435240
push edi
call fcn.004262a0
add esp, 0x10
push edi
call fcn.0041c1c0
push dword [esi + 0x43db74]
mov ebx, eax
call fcn.0041c1c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041d7f0
mov ebx, esp
push 0x435224
push ebx
call fcn.0041c620
push edi
push ebx
call fcn.0041c630
push 0x435220
push ebx
call fcn.0041c630
push dword [esi + 0x43db74]
push ebx
call fcn.0041c630
push 0x12010
push 0x4351f8
push ebx
call fcn.0042790e
add esp, 0x2c
jmp 0x424370
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43db74]
push dword [esi]
call fcn.0041c1c0
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041e823
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret