joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403250
push 0x402140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x404184], 0xffffffff
mov dword [0x404188], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404180]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40417c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40418c], ecx
call fcn.00402130
mov eax, dword [0x404130]
test eax, eax
jne 0x401fd1
push 0x402120
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402100
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x404178]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x404174]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4020df
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x402045
cmp al, 0x22
jne 0x402037
cmp byte [esi], 0x22
jne 0x40204e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40205e
cmp al, 0x20
ja 0x40205e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40204e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40207f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402084
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4020c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40204e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4020df

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x533008], 0x8088405
inc edx
mov dword [ebx + 0x533008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cb9c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cbb5
add dl, dl
jne 0x41cbd8
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc29
xor eax, eax
add dl, dl
jne 0x41cbe5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccc6
add dl, dl
jne 0x41cbf4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc0a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc15
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc1f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbc4
mov eax, 1
add dl, dl
jne 0x41cc37
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc2e
sub eax, ebx
mov ebx, 1
jne 0x41cc75
mov ecx, 1
add dl, dl
jne 0x41cc5b
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc66
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc52
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc8c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc97
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc83
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cce7
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cbc4
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e0b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51c56f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e161
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e14a
test esi, esi
jbe 0x41e161
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ac
test eax, eax
jne 0x41e13c
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e161
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e119
jmp 0x41e161
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e161
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51c576
ret
Function at 0x41e9a4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x51cf53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e9df
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e9f8
lea eax, [ebp - 0x10]
mov edx, dword [0x535248]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ea0b
lea eax, [ebp - 0x10]
mov edx, dword [0x535248]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ea17
adc edx, 0
mov edx, dword [edx*4 + 0x5340d8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41eb25
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41eb18
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d9c
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41eb18
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41eb18
cmp dx, 0x150
ja 0x41eb18
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41eb18
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eb3d
inc ebx
cmp ebx, 0x19
jne 0x41e9d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51cf5a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x404450
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x53c3e0
push 0x4b3850
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x54d158]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7530
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call ebx
test eax, eax
jne 0x404630
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40450a
mov edx, dword [ebp - 0x1c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x40450a
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x40451e
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x54d158
call fcn.004bcab4
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x404624
lea ecx, [ebx + ebx*8]
lea esi, [esi + ecx*4]
mov ecx, 9
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x40457c
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x54d158
call fcn.004bcab4
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x58]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4044f7
cmp dword [ebp - 0x54], edi
je 0x4045f8
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1c]
push edx
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x404555
cmp dword [ebp - 0x54], edi
je 0x4045f8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x404598
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x54d158
call fcn.004bcab4
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.0040461c
add ebx, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x28]
jmp 0x404523
mov dword [ebp - 4], 0xfffffffe
call fcn.0040464a
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d83e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x20], 1
mov ebp, dword [esp + 0x34]
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push ebp
call fcn.0040ff10
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov eax, dword [esp + 0x34]
push eax
mov byte [esp + 0x28], 2
mov edi, dword [esp + 0x34]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x3c], esp
mov ebx, esp
push edi
call fcn.0040ff10
add esp, 4
add eax, 0x10
mov dword [ebx], eax
push esi
mov byte [esp + 0x30], 1
call fcn.00419b20
push 0xffffffffffffffff
mov byte [esp + 0x24], 3
push 0x51cd44
lea ecx, [esi + 0x2c0]
mov dword [esi], vtable.Cy_MiInstaller.0
call fcn.004748c0
push 0xffffffffffffffff
mov byte [esp + 0x24], 4
xor ebx, ebx
push 0x51cd44
lea ecx, [esi + 0x2c8]
mov dword [esi + 0x2c4], ebx
call fcn.004748c0
push 0xffffffffffffffff
push 0x51cd44
lea ecx, [esi + 0x2cc]
mov byte [esp + 0x28], 5
call fcn.004748c0
push 0xffffffffffffffff
push 0x51cd44
lea ecx, [esi + 0x2d0]
mov byte [esp + 0x28], 6
call fcn.004748c0
or eax, 0xffffffff
mov byte [esp + 0x20], 7
push eax
push 0x51cd44
lea ecx, [esi + 0x2e8]
mov dword [esi + 0x2d4], ebx
mov dword [esi + 0x2d8], eax
mov dword [esi + 0x2dc], eax
mov dword [esi + 0x2e0], eax
mov dword [esi + 0x2e4], eax
call fcn.004748c0
mov byte [esp + 0x20], 8
mov ecx, esi
mov dword [esi + 0x2ec], ebx
mov dword [esi + 0x2f0], ebx
call fcn.00426f20
mov ecx, esi
call fcn.0041a2d0
mov byte [esp + 0x20], bl
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d7ab
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x20], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d7cd
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10

Function at 0x40fb80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40fb99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40fbd4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40fbd0
lea ebx, [ebx]
cmp esi, eax
jae 0x40fbd4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40fbc0
cmp esi, eax
jb 0x40fbda
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4137d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d48eb
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x54d158]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x14]
call fcn.004755e0
push esi
lea esi, [esp + 0x14]
mov dword [esp + 0x27c], 0
call fcn.00410550
mov ecx, dword [esp + 0x14]
add esp, 4
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413878
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [esp + 0x10]
or esi, 0x80070000
mov dword [esp + 0x278], 0xffffffff
call fcn.004732d0
mov eax, esi
jmp 0x4138d1
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, edi
lea edx, [esp + 0x40]
push edx
mov ecx, edi
call fcn.00475ce0
lea eax, [esp + 0x14]
push eax
push esi
call ebx
test eax, eax
jne 0x413880
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0x12
mov dword [esp + 0x278], 0xffffffff
lea ecx, [esp + 0x10]
je 0x4138ca
or edi, 0x80070000
call fcn.004732d0
mov eax, edi
jmp 0x4138d1
call fcn.004732d0
xor eax, eax
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004ac89d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413a00
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4d3141
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.00474bb0
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.00474bb0
lea ebx, [esi + 8]
mov ecx, ebx
mov byte [esp + 0x1c], 1
call fcn.00474bb0
lea ebp, [esi + 0xc]
mov ecx, ebp
mov byte [esp + 0x1c], 2
call fcn.00474bb0
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 3
call fcn.00474bb0
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 4
call fcn.00474bb0
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 5
call fcn.00474bb0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x1c], 6
call fcn.00474bb0
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 7
call fcn.00474bb0
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 8
call fcn.00474bb0
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 9
call fcn.00474bb0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 0xa
call fcn.00474bb0
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
push eax
mov ecx, esi
mov byte [esp + 0x24], 0xb
call fcn.00473ec0
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.00473ec0
mov edx, dword [esp + 0x30]
push 0xffffffffffffffff
push edx
mov ecx, ebx
call fcn.00473ec0
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
mov ecx, ebp
call fcn.00473ec0
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
lea ecx, [esi + 0x10]
call fcn.00473ec0
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
lea ecx, [esi + 0x14]
call fcn.00473ec0
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [esi + 0x18]
call fcn.00473ec0
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ecx
lea ecx, [esi + 0x1c]
call fcn.00473ec0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x24
Function at 0x413c20
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4d30a0
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.00474bb0
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.00474bb0
lea ebx, [esi + 0x10]
mov ecx, ebx
mov byte [esp + 0x1c], 1
call fcn.00474bb0
lea ebp, [esi + 0x14]
mov ecx, ebp
mov byte [esp + 0x1c], 2
call fcn.00474bb0
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 3
call fcn.00474bb0
lea ecx, [esi + 0x1c]
mov byte [esp + 0x1c], 4
call fcn.00474bb0
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 5
call fcn.00474bb0
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 6
call fcn.00474bb0
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 7
call fcn.00474bb0
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
push eax
mov ecx, esi
mov byte [esp + 0x24], 8
call fcn.00473ec0
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.00473ec0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0xc], edx
call fcn.00473ec0
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
mov ecx, ebp
call fcn.00473ec0
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
lea ecx, [esi + 0x18]
call fcn.00473ec0
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [esi + 0x1c]
call fcn.00473ec0
push 0xffffffffffffffff
push str._INSTALL_Component_
lea ecx, [esi + 0x20]
call fcn.00473ec0
lea eax, [esi + 0x24]
push eax
lea ecx, [esi + 0x28]
call fcn.00474c20
mov dword [esi + 8], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x20

Function at 0x413e00
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x13c
mov eax, dword [0x54d158]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
lea eax, [esp + 0x28]
push eax
xor esi, esi
mov dword [esp + 0x2c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x413e4e
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x413e59
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x2c]
cmp eax, 6
jae 0x413e6e
cmp eax, 5
jne 0x413e9f
cmp dword [esp + 0x30], 2
jne 0x413e9f
mov ax, word [esp + 4]
cmp ax, 6
jne 0x413e94
mov eax, 1
pop esi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.004ac89d
add esp, 0x13c
ret
cmp ax, 9
mov eax, 1
je 0x413ea1
mov eax, esi
mov ecx, dword [esp + 0x13c]
pop esi
xor ecx, esp
call fcn.004ac89d
add esp, 0x13c
ret