joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b97a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b9ac
xor eax, eax
jmp 0x40b9cc
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
call fcn.0040b9cf
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x40b9cf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0045ff20
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xfa4]
push edi
mov edi, edx
mov dword [ebp - 0x7c], eax
test ecx, ecx
je 0x40bac5
test edi, edi
jle 0x40bac5
mov eax, edi
cdq
and edx, 0xfff
add eax, edx
mov esi, eax
sar esi, 0xc
and edi, 0x80000fff
jns 0x40ba35
dec edi
or edi, 0xfffff000
inc edi
and dword [ebp - 0x70], 0
and dword [ebp - 0x78], 0
mov dword [ebp - 0x74], ecx
test esi, esi
jle 0x40ba88
mov ebx, 0x1000
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0043e3b0
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bac5
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40ba7d
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
add dword [ebp - 0x74], ebx
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], esi
jl 0x40ba49
test edi, edi
jle 0x40bac0
push edi
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0043e3b0
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bac5
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40bac0
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
xor eax, eax
inc eax
jmp 0x40bac7
xor eax, eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b2b9
add ebp, 0xf98
leave
ret
Function at 0x412b06
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x820
mov eax, 0x46b548
call fcn.00443910
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x820], eax
mov eax, dword [0x487d3c]
mov dword [ebp - method.CResourceUnpack.virtual_0], vtable.CResourceUnpack.0
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x824], edi
push 0x4768ec
push str.IDR_7Z_CAB_DLL
push eax
lea esi, [ebp - 0x82c]
mov dword [ebp - 4], edi
call fcn.0040b936
test eax, eax
jne 0x412b60
call fcn.00443993
ret 4
mov ebx, 0x485f6c
mov ecx, ebx
lea esi, [ebp - 0x81c]
call fcn.00402b4a
push edi
mov eax, esi
push eax
lea eax, [ebp - 0x82c]
push eax
mov byte [ebp - 4], 1
call fcn.0040baf8
test eax, eax
jne 0x412b9c
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, edi
jmp 0x412b58
push 0x800
lea eax, [ebp - 0x814]
push edi
push eax
call fcn.0043e330
mov edi, dword [ebp - 0x81c]
add esp, 0xc
push str.7z.dll
push edi
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, ebx
lea esi, [ebp - 0x818]
call fcn.00402b4a
mov ebx, esi
mov byte [ebp - 4], 2
call fcn.0040236e
mov esi, dword [ebp - 0x818]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412c1a
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x412c1a
mov ecx, edi
call fcn.00416dba
mov edi, dword [ebp - 0x820]
add edi, 0x2c
lea eax, [ebp - 0x818]
call fcn.00402b81
push dword [edi]
call fcn.004019b6
pop ecx
push 4
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esi - 0x10]
call fcn.004031f6
xor edi, edi
inc edi
jmp 0x412b8a

Function at 0x412c52
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
cmp dword [esi + 0x34], 0
je 0x412c61
call fcn.004019dc
and dword [esi + 0x34], 0
push ebx
push dword [esi + 0x2c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
je 0x412c90
push edi
xor edi, edi
push dword [esi + 0x2c]
inc edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412c8f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 5
jl 0x412c74
pop edi
push dword [esi + 0x2c]
call ebx
pop ebx
test eax, eax
je 0x412ca7
push 4
push 0
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
ret
Function at 0x412ca8
Capabilities:
Get disk information
Terminate process

Disassembly:
push 0x34
mov eax, 0x46bef7
call fcn.00443910
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x487d3c]
cmp ebx, edx
je 0x412e6d
mov dword [ebp - 0x40], vtable.CResourceUnpack.0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
push str.FILE
push ecx
push eax
lea esi, [ebp - 0x40]
mov dword [ebp - 4], edx
call fcn.0040b936
test eax, eax
je 0x412e6d
push ebx
mov eax, esi
push eax
call fcn.0040bbe3
mov edi, 0x485f6c
mov ecx, edi
lea esi, [ebp - 0x24]
call fcn.00402b4a
push str.7z.dll
push ebx
mov eax, esi
push 0x475124
push eax
mov byte [ebp - 4], 1
call fcn.00402e53
mov esi, dword [ebp - 0x2c]
xor ecx, ecx
add esi, 0x2c
add esp, 0x10
inc ecx
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.00408c47
xor ecx, ecx
inc ecx
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00408c47
mov byte [ebp - 4], 3
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x20], 1
call fcn.0040bdd7
test eax, eax
je 0x412d69
mov dword [ebp - 0x20], 3
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push esi
call fcn.00402445
pop ecx
pop ecx
push 3
pop ecx
cmp eax, ecx
jne 0x412e14
mov dword [0x48818c], ecx
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, word [ebx]
push eax
lea eax, [ebp - 0x1c]
push str._c:_
push eax
call fcn.0040323a
add esp, 0xc
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, eax
cmp edi, esi
je 0x412def
test byte [ebp - 0x20], 8
je 0x412def
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.00402ad3
mov ecx, dword [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
call fcn.00412e77
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, edi
jmp 0x412e6f
cmp eax, 2
jne 0x412d88
cmp dword [0x487d40], 0
jne 0x412e65
mov ecx, edi
lea esi, [ebp - 0x20]
call fcn.00402b4a
mov byte [ebp - 4], 4
push dword [ebp - 0x24]
mov eax, esi
push 0x4760d8
push eax
call fcn.00402e53
mov esi, dword [ebp - 0x20]
add esp, 0xc
push 0x10000
push 0x47610c
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
call fcn.004031f6
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
call fcn.00443993
ret 4
Function at 0x41304d
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0x46c
mov eax, 0x46b4b0
call fcn.00443910
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
push str.IsInstalled
push str.SOFTWAREMicrosoftActive_SetupInstalled_ComponentsEF289A85_8E57_408d_BE47_73B55609861A
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x430], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x428], edi
je 0x4130af
xor eax, eax
inc eax
call fcn.00443993
ret
mov dword [ebp - method.CResourceUnpack.virtual_0], vtable.CResourceUnpack.0
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], edi
push str.ROOTSUPD
push 0x104
push edi
lea esi, [ebp - 0x43c]
mov dword [ebp - 4], edi
call fcn.0040b936
test eax, eax
jne 0x4130e6
xor eax, eax
jmp 0x4130a9
mov ecx, 0x485f6c
lea esi, [ebp - 0x424]
call fcn.00402b4a
push 1
mov eax, esi
push eax
lea eax, [ebp - 0x43c]
push eax
mov byte [ebp - 4], 1
call fcn.0040baf8
test eax, eax
jne 0x41311f
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.004031f6
jmp 0x4130e2
xor eax, eax
push 0x40e
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push edi
push eax
call fcn.0043e330
mov esi, dword [ebp - 0x424]
add esp, 0xc
push str.rootsupd.exe
push esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x413169
lea eax, [esi - 0x10]
call fcn.004031f6
mov eax, edi
jmp 0x4130a9
push 0x38
lea eax, [ebp - 0x474]
push edi
push eax
call fcn.0043e330
lea eax, [ebp - 0x420]
mov dword [ebp - 0x468], eax
add esp, 0xc
lea eax, [ebp - 0x478]
push eax
mov dword [ebp - 0x478], 0x3c
mov dword [ebp - 0x474], 0x440
mov dword [ebp - 0x46c], 0x476a78
mov dword [ebp - 0x464], 0x476a68
mov dword [ebp - 0x45c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41315a
cmp dword [ebp - 0x458], 0x20
jle 0x41315a
xor edi, edi
inc edi
jmp 0x41315a

Function at 0x413f98
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x414d26
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414d4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x414d4e
xor al, al
jmp 0x414d69
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.0045cd90
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
pop ebp
ret 4

Function at 0x4164d8
Capabilities:
Create process on windows

Disassembly:
push esi
test edi, edi
jne 0x4164e1
xor eax, eax
pop esi
ret
mov esi, dword [edi + 0x10]
call fcn.00416305
test eax, eax
je 0x4164dd
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
ret
Function at 0x4168eb
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x416915
xor eax, eax
inc eax
jmp 0x41697f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0043e330
lea edx, [ebp - 0x20c]
add esp, 0xc
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x41693d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x41697f
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x416976
lea eax, [ebp - 0x20c]
push eax
call fcn.004168eb
pop ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043b2b9
leave
ret

Function at 0x41698d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4169af
xor al, al
jmp 0x416a28
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0043e330
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
push str._s_d.tmp
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.0043f583
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4169ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b2b9
leave
ret
Function at 0x41bbc9
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x41bc11
push dword [ebp - 4]
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x41bc46
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41bc16
sub eax, ecx
sar eax, 1
mov dword [ebp - 4], eax
lea eax, [esi + eax*2]
cmp word [eax - 2], 0x5c
je 0x41bc41
push 0x5c
pop ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [esi + ecx*2 + 2], ax
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x41cce9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x207
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41cd80
cmp eax, esi
ja 0x41cd80
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41cd21
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x41cd55
push edi
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x41cd43
mov esi, 0x474fcc
movsd dword es:[edi], dword [esi]
pop edi
push str.wininit.ini
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push 0x208
push ebx
call fcn.0043f583
xor eax, eax
add esp, 0x14
mov word [ebx + 0x40e], ax
inc eax
jmp 0x41cd82
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043b2b9
leave
ret

Function at 0x41d534
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push ebx
mov ebx, 0x489600
cmp ax, word [0x489600]
jne 0x41d56d
push esi
push edi
push eax
push 0x26
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, ebx
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x41d556
push 0x10
pop ecx
mov esi, str.internet_exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x41eaed
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.0045ff20
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.0043e330
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41eb94
cmp eax, 0x3fff
ja 0x41eb94
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41eb94
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x474fcc
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41eb94
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push ebx
push edi
call fcn.0043f583
xor eax, eax
add esp, 0x1c
mov word [edi + ebx*2 - 2], ax
inc eax
jmp 0x41eb96
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.0043b2b9
add ebp, 0x3f90
leave
ret

Function at 0x41ed88
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x394], eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x41edb6
xor eax, eax
inc eax
jmp 0x41ee58
and dword [ebp - 0x80], 0
mov eax, ebx
push esi
mov esi, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41edc2
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jbe 0x41eddb
xor eax, eax
jmp 0x41ee57
xor eax, eax
push edi
cmp ax, word [ebx]
je 0x41ee53
push 0x474fcc
push esi
call fcn.0043f958
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41ee09
push 0x478308
push esi
call fcn.0043f958
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41ee53
mov esi, edi
sub esi, ebx
sar esi, 1
test esi, esi
jle 0x41ee49
push 0x410
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0043e330
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0043eabd
add esp, 0x18
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41ee46
call fcn.0041ed77
mov dword [ebp - 0x80], eax
lea esi, [edi + 2]
xor eax, eax
cmp ax, word [esi]
jne 0x41ede3
mov eax, dword [ebp - 0x80]
pop edi
pop esi
mov ecx, dword [ebp + 0x394]
xor ecx, ebp
call fcn.0043b2b9
add ebp, 0x398
leave
ret
Function at 0x42c570
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x42c5b6
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f500
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
xor edx, edx
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x42c648
jg 0x42c5de
cmp ebx, ecx
jb 0x42c648
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42c60d
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f500
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.0042a8d0
test eax, eax
je 0x42c603
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42c62e
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42c655
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x42c655
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x431cb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x46a1ab
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [0x489218], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
mov ecx, 0x41
lea ebx, [ebp]
call fcn.00431910
add esp, 0xc
xor eax, eax
mov word [ebp + 0x80], ax
xor edi, edi
mov ecx, ebx
push ecx
mov ebx, 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x431def
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x431d55
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0
call fcn.00431a60
test eax, eax
je 0x431d6c
mov dword [0x489218], eax
jmp 0x431dd0
call fcn.004322c0
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], bl
test eax, eax
je 0x431d84
push esi
push eax
call fcn.00432100
jmp 0x431d86
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x489218], eax
test eax, eax
jne 0x431da4
mov dword [ebp - 0x1c], ebx
push 0x47cbe0
lea edx, [ebp - 0x1c]
push edx
call fcn.004433dc
mov edi, ebx
mov dword [ebp - 0x24], edi
push eax
call fcn.00431b50
add esp, 4
test eax, eax
jne 0x431dcb
mov dword [ebp - 0x18], 3
push 0x47cbe0
lea eax, [ebp - 0x18]
push eax
call fcn.004433dc
mov eax, dword [0x489218]
add dword [eax + 0x5bc], ebx
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
jne 0x431def
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x489218
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.0043b2b9
add ebp, 0x88
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x44d0cd
push 0x14
push 0x535238
call fcn.0044d230
push 1
call fcn.0044cc85
pop ecx
test al, al
je 0x44d0b7
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0044cc53
mov byte [ebp - 0x24], al
mov eax, dword [0x537c74]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x44d0b7
test eax, eax
jne 0x44cfdb
mov dword [0x537c74], ecx
push 0x4602c8
push 0x4602b0
call fcn.00453a29
pop ecx
pop ecx
test eax, eax
je 0x44cfbe
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x44d0a7
push 0x4602ac
push 0x460260
call fcn.004539cd
pop ecx
pop ecx
mov dword [0x537c74], 2
jmp 0x44cfe0
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0044cdf7
pop ecx
call fcn.0044d714
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x44d011
push esi
call fcn.0044cd63
pop ecx
test al, al
je 0x44d011
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x46025c]
call esi
call fcn.0044d71a
mov esi, eax
cmp dword [esi], edi
je 0x44d02f
push esi
call fcn.0044cd63
pop ecx
test al, al
je 0x44d02f
push dword [esi]
call fcn.00452e8c
pop ecx
call fcn.0044d54c
movzx eax, ax
push eax
call fcn.0045397a
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0044d582
test al, al
je 0x44d0be
test bl, bl
jne 0x44d05d
call fcn.00452e67
push edi
push 1
call fcn.0044ce14
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x44d0a7
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.0044d432
push esi
call fcn.00452ec4
push dword [ebp - 0x20]
call fcn.00452e76
int3
call fcn.0044d667
jmp 0x44cf51