joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420750
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 word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5fcd6b
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 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x61a73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x61a73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x619538]
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.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
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.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fcd72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4010c0
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 0x4010d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401114
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401110
lea ebx, [ebx]
cmp esi, eax
jae 0x401114
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401100
cmp esi, eax
jb 0x40111a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40a400
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x48ef30]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.00454560
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40a478
cmp dword [esp + 0x14], 2
jne 0x40a478
mov eax, dword [esp + 8]
cmp eax, 6
jae 0x40a45d
cmp eax, 5
jne 0x40a478
cmp dword [esp + 0xc], 1
jb 0x40a478
mov eax, 1
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00454546
add esp, 0xa0
ret
mov ecx, dword [esp + 0xa0]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00454546
add esp, 0xa0
ret

Function at 0x4308c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x430917
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret

Function at 0x430930
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x430990
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
inc eax
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret

Function at 0x4309a0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x4309f8
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret
Function at 0x430ad0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov dword [esp + 8], 0
je 0x430b35
cmp dword [esp + 0x18], 0x21
jb 0x430b35
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x430b35
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x430b90
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
je 0x430c0b
mov ebp, dword [esp + 0x20]
cmp ebp, 0x21
jb 0x430c0b
mov edx, dword [esp + 0x18]
test edx, edx
je 0x430c0b
push 0
push 0x80
mov ecx, ebp
mov esi, ecx
shr ecx, 2
push 3
xor eax, eax
push 0
mov edi, ebx
rep stosd dword es:[edi], eax
push 1
mov ecx, esi
push SysReAllocString
and ecx, 3
push edx
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x430c0b
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x430c20
Capabilities:
Create directory
Set file attributes

Disassembly:
sub esp, 0x10
push esi
xor eax, eax
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push eax
lea ecx, [esp + 0xc]
push ecx
push 1
xor esi, esi
push str.D:_A_OICI_GA___BU__A_OICI_GA___AU__A_OICI_GA___BA__A_OICI_GA___SY_
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
test eax, eax
je 0x430c68
mov edx, dword [esp + 8]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], edx
lea esi, [esp + 0xc]
push esi
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x430c85
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret
Function at 0x430ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
xor esi, esi
cmp ebp, esi
je 0x430ccf
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [ebp], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x430cd5
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push esi
push esi
push esi
push edi
push ecx
mov dword [esp + 0x3c], esi
call ebx
test eax, eax
jne 0x430d49
mov eax, dword [esp + 0x24]
test eax, eax
je 0x430d49
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x430d49
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push esi
push 0
push 0
push edi
push eax
call ebx
test eax, eax
je 0x430d42
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x10]
push edx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x24]
mov dword [ebp], ecx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x430d60
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x430dbb
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 8]
push edx
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret
Function at 0x430e50
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Terminate process

Disassembly:
sub esp, 0x24
mov eax, dword [0x48ef30]
xor eax, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x28], eax
xor eax, eax
cmp ebp, eax
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0x10
je 0x430f82
mov esi, dword [esp + 0x3c]
cmp esi, eax
je 0x430f82
mov ebx, dword [esp + 0x40]
cmp ebx, 0x20
jb 0x430f84
push edi
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0xf0000000
xor eax, eax
push 1
mov dword [esp + 0x28], eax
xor edi, edi
push edi
mov dword [esp + 0x30], eax
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], eax
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x430ee3
mov dword [esp + 0x14], edi
jmp 0x430f4b
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push edi
push edi
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x430f04
mov dword [esp + 0x10], edi
jmp 0x430f5a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
push edi
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x430f4b
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x430f4b
push ebx
push esi
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.00430740
add esp, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x430f5a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x430f6a
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, dword [esp + 0x24]
add esp, 0x24
jmp fcn.00454546
xor eax, eax
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x30]
pop esi
pop ebp
pop ebx
add esp, 0x24
jmp fcn.00454546
Function at 0x431040
Capabilities:
Get common file path
Get disk information
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2124
call fcn.00454f20
mov eax, dword [0x48ef30]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x2128], eax
xor eax, eax
test esi, esi
push edi
je 0x431239
mov ecx, 0x54
mov edi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4310a4
push 0x101
push str.unknown
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x10]
push ecx
lea edi, [esi + 0x101]
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4310d0
push 0x10
push str.unknown
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
lea edx, [esp + 0x130]
push str._s__s
push edx
call ebx
add esp, 0x10
push 0x21
lea edi, [esi + 0x111]
push edi
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x134]
push ecx
call fcn.00430e50
add esp, 0x10
test eax, eax
jne 0x431122
push 0x471f54
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000
lea edx, [esp + 0x12c]
push edx
push str.ProductId
xor eax, eax
push str.SoftwareMicrosoftWindows_NTCurrentVersion
mov ecx, 0x400
lea edi, [esp + 0x138]
push reloc.OLEAUT32.dll_SysReAllocString
rep stosd dword es:[edi], eax
call fcn.004308c0
add esp, 0x14
test eax, eax
jne 0x431172
push 0x1000
push str.unknown
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor edi, edi
push 0x105
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4311dd
push edi
push edi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x43], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4311dd
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push str.SN_08X
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x1130]
push str._s__s
push ecx
call ebx
add esp, 0x10
push 0x21
add esi, 0x132
push esi
lea edx, [esp + 0x1130]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x1134]
push eax
call fcn.00430e50
add esp, 0x10
test eax, eax
jne 0x431234
push 0x471f54
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
mov ecx, dword [esp + 0x212c]
xor ecx, dword [ebp + 4]
call fcn.00454546
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431600
Capabilities:
Terminate process

Disassembly:
mov eax, 0x1004
call fcn.00454f20
mov eax, dword [0x48ef30]
xor eax, dword [esp + 0x1004]
mov ecx, dword [esp + 0x100c]
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push eax
push ecx
lea edx, [esp + 8]
push str.cnt_s_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x1024]
mov ecx, dword [esp + 0x1020]
add esp, 0x10
push eax
push ecx
lea edx, [esp + 8]
push edx
mov byte [esp + 0x100b], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00430e50
mov ecx, dword [esp + 0x1010]
xor ecx, dword [esp + 0x1014]
add esp, 0x1014
jmp fcn.00454546

Function at 0x431690
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x48ef30]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov dword [esp + 0x118], eax
push edi
je 0x431766
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x431766
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x431766
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0
stosb byte es:[edi], al
push 0x23
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x431766
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.CanonIJSIP
lea ecx, [esp + 0x14]
push ecx
call edi
test eax, eax
je 0x431766
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
call edi
test eax, eax
je 0x431766
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43174b
lea ecx, [esp + 0x10]
push ecx
call fcn.00430c20
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, dword [ebp + 4]
call fcn.00454546
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x11c]
xor ecx, dword [ebp + 4]
xor eax, eax
call fcn.00454546
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431780
Capabilities:
Terminate process

Disassembly:
sub esp, 0x58
mov eax, dword [0x48ef30]
xor eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
push ebx
push esi
mov dword [esp + 0x5c], eax
push edi
lea eax, [esp + 0x10]
push eax
or edi, 0xffffffff
xor ebx, ebx
push ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
call fcn.00430df0
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x431867
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x431847
push ebp
push eax
mov ebp, eax
push esi
shr ebp, 4
call fcn.00430e30
add esp, 8
jmp 0x4317e0
mov eax, dword [esp + 0x70]
push 0x21
lea edx, [esp + 0x44]
push edx
push eax
push ebx
call fcn.00431600
add esp, 0x10
test eax, eax
je 0x431846
xor edi, edi
test ebp, ebp
jle 0x431840
nop
push 0x21
lea ecx, [esp + 0x20]
push ecx
push 0x10
push esi
call fcn.00430740
add esp, 0x10
test eax, eax
je 0x43183c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x431834
cmp ebx, dword [esp + 0x10]
jle 0x431834
mov dword [esp + 0x10], ebx
inc edi
add esi, 0x10
cmp edi, ebp
jl 0x431800
mov esi, dword [esp + 0x18]
inc ebx
cmp ebx, 0xa
jl 0x4317e0
pop ebp
push esi
call fcn.00430e10
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, dword [esp + 0x58]
add esp, 0x58
jmp fcn.00454546
mov ecx, dword [esp + 0x60]
xor ecx, dword [esp + 0x64]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x58
jmp fcn.00454546
Function at 0x431880
Capabilities:
Terminate process

Disassembly:
sub esp, 0x18
mov eax, dword [0x48ef30]
xor eax, dword [esp + 0x18]
push edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
mov dword [esp + 4], edi
je 0x43199a
cmp dword [esp + 0x28], 0x21
jb 0x43199a
mov cl, byte [eax]
test cl, cl
je 0x43199a
cmp cl, 0x2d
je 0x43199a
lea ecx, [esp + 0x24]
push ecx
push 0x10
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00430fa0
add esp, 0x10
test eax, eax
je 0x431987
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.00430e30
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00430df0
mov edi, dword [esp + 0x20]
add esp, 0x10
lea ebp, [edi + 0x10]
push ebp
mov esi, eax
push 0x40
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test esi, esi
mov ebx, eax
je 0x431933
mov ecx, edi
mov eax, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
mov edi, eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [ebx + edi]
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
push ebp
push ebx
mov dword [ecx + 8], edx
push 0x472134
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x38]
push str.STORE
push ecx
call fcn.00430d60
add esp, 0x14
test ebx, ebx
mov edi, eax
je 0x431977
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
je 0x431984
push esi
call fcn.00430e10
add esp, 4
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
mov ecx, dword [esp + 0x14]
xor ecx, dword [esp + 0x18]
add esp, 0x18
jmp fcn.00454546
mov ecx, dword [esp + 0x18]
xor eax, eax
xor ecx, dword [esp + 0x1c]
pop edi
add esp, 0x18
jmp fcn.00454546

Function at 0x431aa0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x2c
mov eax, dword [0x48ef30]
xor eax, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x38]
test edi, edi
mov dword [esp + 0x2c], eax
mov eax, 9
mov dword [esp + 4], eax
je 0x431b40
cmp dword [esp + 0x3c], 0x21
jb 0x431b40
mov al, byte [edi]
test al, al
je 0x431b3d
cmp al, 0x2d
je 0x431b3d
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push esi
xor esi, esi
push 0x21
lea eax, [esp + 0x18]
push eax
push ebx
push esi
call fcn.00431600
add esp, 0x10
test eax, eax
je 0x431b25
push edi
lea ecx, [esp + 0x18]
push ecx
call ebp
test eax, eax
je 0x431b21
inc esi
cmp esi, 0xa
jl 0x431ae2
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x2c]
add esp, 0x2c
jmp fcn.00454546
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x2c]
add esp, 0x2c
jmp fcn.00454546
or eax, 0xffffffff
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x30]
pop edi
add esp, 0x2c
jmp fcn.00454546