joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416890
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x4168f2
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x4168bf
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4168f7
test ecx, ecx
je 0x4168f0
test esi, esi
ja 0x4168b0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x416c60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4975e0], ecx
add edx, 1
cmp edx, 0x100
jl 0x416c62
cmp edx, 0x800
jae 0x416d4b
mov edi, edi
mov eax, dword [edx*4 + 0x4971e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4975e0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x4975dc], eax
jb 0x416d20
mov dword [0x494340], 0x419290
call fcn.00419460
test eax, eax
jne 0x416d68
mov dword [0x494340], 0x419340
ret
Function at 0x41d2e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x41d2f9
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x41d320
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x41d33f
jmp 0x41d330
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41d33f
add edi, 1
cmp edi, edx
jb 0x41d330
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x41d455
cmp ecx, 3
jbe 0x41d375
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x1c], eax
je 0x41d3b3
cmp cl, 0xff
je 0x41d3b3
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x41d320
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x41d358
movzx ecx, byte [ebp + 0x4768f4]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x4768ec], 0
mov cl, byte [ebx + 4]
je 0x41d39f
test cl, cl
je 0x41d39f
cmp cl, 0xff
jne 0x41d358
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
add eax, 1
jmp 0x41d320
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x41d3de
lea ebx, [edx + eax]
add ebx, esi
jmp 0x41d3e4
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x41d426
movzx esi, byte [ebp + 0x4768f4]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x41d409
cmp dl, 0xff
jne 0x41d422
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x41d3d0
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41d320
cmp ecx, 3
pop edi
pop esi
pop ebx
jbe 0x41d468
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret

Function at 0x4237e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x423824
call fcn.0042916e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x423824
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42383f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042339b
test ebx, ebx
mov esi, eax
je 0x42383d
test edi, edi
je 0x42383d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x425c91
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x425cb1
cmp dword [edi + 0x54], 0
jne 0x425cb1
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042916e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00425c58
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x42a681
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], 0x478a18
jne 0x42a6aa
call fcn.0042916e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x42a6cd
push eax
push dword [esi + 4]
call fcn.0042a60c
push esi
push eax
mov ecx, 0x495f70
call fcn.0042a2df
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x42cbf3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42cc21
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42cc3f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042cb5d
jmp 0x42cc3f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42cc3f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042cb5d
test edi, edi
mov eax, edi
jne 0x42cc29
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x495fac]
test ecx, ecx
je 0x42cd02
jmp 0x42cbf2
ret 8

Function at 0x43aca7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x492740]
jne 0x43acb1
repz ret
jmp fcn.00446824
Function at 0x4528f7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044620b
xor ebx, ebx
cmp dword [0x496e20], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4529cc
push 0x47be5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x452937
xor eax, eax
jmp 0x452a90
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47be50
push edi
call esi
cmp eax, ebx
je 0x452930
push eax
call fcn.004461a8
mov dword [esp], 0x47be40
push edi
mov dword [0x496e20], eax
call esi
push eax
call fcn.004461a8
mov dword [esp], 0x47be2c
push edi
mov dword [0x496e24], eax
call esi
push eax
call fcn.004461a8
mov dword [0x496e28], eax
lea eax, [ebp - 8]
push eax
call fcn.0043b694
test eax, eax
pop ecx
pop ecx
je 0x45299a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b391
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4529cc
push 0x47be10
push edi
call esi
push eax
call fcn.004461a8
cmp eax, ebx
pop ecx
mov dword [0x496e30], eax
je 0x4529cc
push 0x47bdf8
push edi
call esi
push eax
call fcn.004461a8
pop ecx
mov dword [0x496e2c], eax
mov eax, dword [0x496e2c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x452a45
cmp dword [0x496e30], esi
je 0x452a45
push eax
call fcn.00446214
pop ecx
call eax
cmp eax, ebx
je 0x452a12
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x496e30]
call fcn.00446214
pop ecx
call eax
test eax, eax
je 0x452a12
test byte [ebp - 0x18], 1
jne 0x452a45
lea eax, [ebp - 0xc]
push eax
call fcn.0043b6cb
test eax, eax
pop ecx
je 0x452a2d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043b391
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x452a3c
or dword [ebp + 0x10], 0x200000
jmp 0x452a76
or dword [ebp + 0x10], 0x40000
jmp 0x452a76
mov eax, dword [0x496e24]
cmp eax, esi
je 0x452a76
push eax
call fcn.00446214
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x452a76
mov eax, dword [0x496e28]
cmp eax, esi
je 0x452a76
push dword [ebp - 4]
push eax
call fcn.00446214
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x496e20]
call fcn.00446214
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x458748
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x492740]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004586dd
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043acc0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x458797
cmp dword [ebp - 0x1c], 5
jb 0x4587af
jmp 0x4587ab
cmp dword [ebp - 0x10], 1
jne 0x4587af
cmp dword [ebp - 0x1c], 4
ja 0x4587ab
jne 0x4587af
cmp dword [ebp - 0x18], 0
jbe 0x4587af
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x47cf18
call fcn.004585b1
test eax, eax
jge 0x4587d0
mov byte [0x4975b4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043aca7
add ebp, 0x78
leave
ret

Function at 0x459a60
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 5
push 0xffffffffffffffff
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x459aaa
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043d895
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x459ab8
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x45ab80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x492740]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov word [ebp - 0x218], 0
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0043acc0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x45ac93
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x45ac93
lea edx, [ebp - 4]
push edx
push 0x10008
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x45ac91
cmp dword [ebp - 0x21c], 0
jne 0x45ac87
mov dword [ebp - 0x220], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0x103
jne 0x45ac60
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x21c], eax
jmp 0x45ac87
cmp dword [ebp - 0x21c], 0
jne 0x45ac82
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0045ab80
add esp, 8
mov dword [ebp - 0x21c], eax
jmp 0x45ac01
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45ac9d
mov dword [ebp - 0x21c], 0x3f2
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043aca7
mov esp, ebp
pop ebp
ret
Function at 0x45afa0
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x492740]
xor eax, ebp
mov dword [ebp - 0x1c], eax
call fcn.004038a0
mov dword [ebp - 0xc], eax
cmp dword [0x497428], 6
jae 0x45afce
lea ecx, [ebp + 8]
call fcn.00405400
jmp 0x45b0ab
lea ecx, [ebp + 8]
call fcn.004010f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45afee
lea ecx, [ebp + 8]
call fcn.00405400
jmp 0x45b0ab
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push 0x47f5f0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45b0a3
mov dword [ebp - 0x18], 1
lea ecx, [ebp + 8]
call fcn.004010f0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45b032
mov dword [ebp - 0x20], 0
jmp 0x45b081
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x45b054
mov dword [ebp - 0x24], 0
jmp 0x45b07b
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.00445660
mov dword [ebp - 0x28], esp
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
shl eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00403850
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00405400
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043aca7
mov esp, ebp
pop ebp
ret

Function at 0x45b0c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp + 8]
call fcn.004010f0
push eax
call fcn.0043cc41
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xa
jae 0x45b0ed
lea ecx, [ebp + 8]
call fcn.00405400
jmp 0x45b1ad
lea ecx, [ebp - 8]
call fcn.004038b0
cmp dword [0x497428], 6
jae 0x45b15b
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0x47f2fc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45b159
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
push 0x47f338
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x47f350
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45b19d
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0x47f370
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45b19d
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
push 0x47f3cc
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 8]
call fcn.00405400
lea ecx, [ebp + 8]
call fcn.00405400
mov esp, ebp
pop ebp
ret
Function at 0x45b240
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x492740]
xor eax, ebp
mov dword [ebp - 0x30], eax
call fcn.004038a0
mov dword [ebp - 0x10], eax
lea ecx, [ebp + 8]
call fcn.004010f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45b314
lea eax, [ebp + 8]
push eax
push 0x47db58
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004015e0
add esp, 0xc
mov ecx, eax
call fcn.004010f0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x45b29d
mov dword [ebp - 0x34], 0
jmp 0x45b2ec
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x45b2bf
mov dword [ebp - 0x38], 0
jmp 0x45b2e6
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.00445660
mov dword [ebp - 0x3c], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00403850
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
call fcn.0043b22c
push 0x48a190
lea ecx, [ebp - 0x24]
push ecx
call fcn.0044193f
lea ecx, [ebp - 0x2c]
call fcn.00405400
lea ecx, [ebp + 8]
call fcn.004010f0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45b351
push 0x47db98
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45b347
call dword [ebp - 0x18]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 8]
call fcn.00405400
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0043aca7
mov esp, ebp
pop ebp
ret
Function at 0x45b5a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x492740]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x45b604
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x248], 0
lea ecx, [ebp + 8]
call fcn.00405400
mov eax, dword [ebp - 0x248]
jmp 0x45b6b7
mov dword [ebp - 4], 0
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x45b695
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x244]
call fcn.00401f90
lea ecx, [ebp - 0x244]
call fcn.004052c0
lea ecx, [ebp + 8]
call fcn.004052c0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.00403a00
add esp, 8
movzx edx, al
test edx, edx
je 0x45b685
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x24c], eax
lea ecx, [ebp - 0x244]
call fcn.00405400
lea ecx, [ebp + 8]
call fcn.00405400
mov eax, dword [ebp - 0x24c]
jmp 0x45b6b7
lea ecx, [ebp - 0x244]
call fcn.00405400
jmp 0x45b60b
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x250], 0
lea ecx, [ebp + 8]
call fcn.00405400
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043aca7
mov esp, ebp
pop ebp
ret

Function at 0x45bb20
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x492740]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x45bb74
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00405400
jmp 0x45bc30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x45bc14
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x244]
call fcn.00401f90
lea ecx, [ebp - 0x244]
call fcn.004052c0
lea ecx, [ebp + 8]
call fcn.004052c0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.00403a00
add esp, 8
movzx edx, al
test edx, edx
je 0x45bc04
mov eax, dword [ebp - 0x238]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x45bc04
push 0
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x244]
call fcn.00405400
jmp 0x45bb7b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00405400
jmp 0x45bc30
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043aca7
mov esp, ebp
pop ebp
ret
Function at 0x45bff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x492740]
xor eax, ebp
mov dword [ebp - 0x50], eax
call fcn.004038a0
mov dword [ebp - 0x2c], eax
push 0xa
lea ecx, [ebp - 0x28]
call fcn.004269d9
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
lea edx, [ebp + 8]
push edx
call fcn.00401e00
call fcn.0045bc40
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
je 0x45c0df
lea eax, [ebp + 8]
push eax
push 0x47fb80
lea ecx, [ebp - 0x4c]
push ecx
call fcn.004015e0
add esp, 0xc
mov ecx, eax
call fcn.004010f0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45c068
mov dword [ebp - 0x54], 0
jmp 0x45c0b7
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x45c08a
mov dword [ebp - 0x58], 0
jmp 0x45c0b1
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.00445660
mov dword [ebp - 0x5c], esp
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00403850
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x44]
call fcn.0043b22c
push 0x48a190
lea ecx, [ebp - 0x44]
push ecx
call fcn.0044193f
lea ecx, [ebp - 0x4c]
call fcn.00405400
push 0
lea ecx, [ebp - 0x28]
call fcn.004269b5
push eax
lea ecx, [ebp - 0x28]
call fcn.004084d0
push eax
lea ecx, [ebp - 0xc]
call fcn.00401e00
lea ecx, [ebp - 0xc]
call fcn.004010f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45c128
lea ecx, [ebp - 0xc]
call fcn.00405400
lea ecx, [ebp - 0x28]
call fcn.00426af0
lea ecx, [ebp + 8]
call fcn.00405400
jmp 0x45c151
lea ecx, [ebp - 0xc]
call fcn.004055d0
push eax
call fcn.00459ad0
add esp, 4
lea ecx, [ebp - 0xc]
call fcn.00405400
lea ecx, [ebp - 0x28]
call fcn.00426af0
lea ecx, [ebp + 8]
call fcn.00405400
lea esp, [ebp - 0x5c]
mov ecx, dword [ebp - 0x50]
xor ecx, ebp
call fcn.0043aca7
mov esp, ebp
pop ebp
ret