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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 9], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x22
jge 0x401056
mov eax, dword [ebp - 4]
add eax, 0x24
mov dword [ebp - 4], eax
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x93
jmp 0x40101f
cmp dword [ebp - 8], 0xffffffff
je 0x4010c7
mov dword [ebp - 0x1c], 0
jmp 0x40106e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0xc]
jae 0x4010bb
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x1c]
movsx edx, byte [ecx]
movsx eax, byte [ebp + 0x14]
xor edx, eax
mov byte [ebp - 0x15], dl
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
lea edx, [ebp - 0x10]
push edx
push 1
lea eax, [ebp - 0x15]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x1c]
sub edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x401065
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0xc]
jne 0x4010c7
mov byte [ebp - 9], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x401270
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x46c128]
mov dword [ebp - 0xc], eax
push edi
mov byte [ebp - 0x50], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x4f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xd0], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0xcf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0x7f
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xd0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [ebp - 0xd0]
push edx
movzx eax, byte [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00401140
add esp, 0xc
lea edx, [ebp - 0x50]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4012fa
jmp 0x401339
lea eax, [ebp - 0x50]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x40132e
cmp dword [ebp - 0xd4], 0xb7
je 0x401330
jmp 0x401332
jmp 0x401334
jmp 0x401339
jmp 0x401339
mov eax, dword [ebp - 4]
jmp 0x401345
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
call fcn.00401f01
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401cc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x46c128]
mov dword [ebp - 8], eax
mov byte [ebp - 0x150], 0
xor eax, eax
mov dword [ebp - 0x14f], eax
mov dword [ebp - 0x14b], eax
mov dword [ebp - 0x147], eax
mov dword [ebp - 0x143], eax
mov dword [ebp - 0x13f], eax
mov dword [ebp - 0x13b], eax
mov dword [ebp - 0x137], eax
mov word [ebp - 0x133], ax
mov byte [ebp - 0x131], al
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
jne 0x401d30
xor al, al
jmp 0x401e77
mov dword [ebp - 0x130], 0x128
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x154]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x401d65
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x401e77
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004010e0
add esp, 4
mov dword [ebp - 0x158], str.1__ufbrquw_dwd
mov edx, dword [ebp - 0x158]
movsx eax, byte [edx]
test eax, eax
je 0x401e4d
mov ecx, dword [ebp - 0x158]
add ecx, 2
push ecx
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x15c], 0
jmp 0x401dd2
mov eax, dword [ebp - 0x15c]
add eax, 1
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x15c], eax
jge 0x401e07
mov edx, dword [ebp - 0x15c]
movsx eax, byte [ebp + edx - 0x150]
add eax, 1
mov ecx, dword [ebp - 0x15c]
mov byte [ebp + ecx - 0x150], al
jmp 0x401dc3
lea edx, [ebp - 0x150]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00405ac8
add esp, 8
test eax, eax
jne 0x401e2b
mov ecx, dword [ebp - 0x158]
mov al, byte [ecx]
jmp 0x401e77
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x158]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x158], edx
jmp 0x401d8f
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401d76
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 8]
call fcn.00401f01
mov esp, ebp
pop ebp
ret

Function at 0x401e90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x401eb1
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
jne 0x401eb5
xor eax, eax
jmp 0x401eba
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402095
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406168
call fcn.00402420
mov edi, 0x94
mov eax, edi
call fcn.00403130
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 [0x46c3c0], ecx
mov eax, dword [esi + 4]
mov dword [0x46c3cc], eax
mov edx, dword [esi + 8]
mov dword [0x46c3d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46c3c4], esi
cmp ecx, 2
je 0x4020f5
or esi, 0x8000
mov dword [0x46c3c4], esi
shl eax, 8
add eax, edx
mov dword [0x46c3c8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402130
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402130
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402148
cmp eax, 0x20b
je 0x402135
mov dword [ebp - 0x1c], esi
jmp 0x40215c
cmp dword [ecx + 0x84], 0xe
jbe 0x402130
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402156
cmp dword [ecx + 0x74], 0xe
jbe 0x402130
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004030d2
pop ecx
test eax, eax
jne 0x402188
cmp dword [0x46c3ac], 1
jne 0x402175
call fcn.00402887
push 0x1c
call fcn.00402710
push 0xff
call fcn.00402575
pop ecx
pop ecx
call fcn.00403030
mov dword [ebp - 4], esi
call fcn.00402e85
test eax, eax
jge 0x4021a1
push 0x1b
call fcn.00402070
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46c934], eax
call fcn.00402d63
mov dword [0x46c3a4], eax
call fcn.00402cc1
test eax, eax
jge 0x4021c7
push 8
call fcn.00402070
pop ecx
call fcn.00402a8e
test eax, eax
jge 0x4021d8
push 9
call fcn.00402070
pop ecx
push 1
call fcn.004025a5
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4021ee
push eax
call fcn.00402070
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402a31
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40220f
movzx eax, word [ebp - 0x40]
jmp 0x402212
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401360
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x402230
push edi
call fcn.004026d0
call fcn.004026f2
jmp 0x402262
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040245b
ret
Function at 0x40260f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x46c400], esi
push edi
jne 0x40262f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x46c3fc], esi
mov byte [0x46c3f8], al
jne 0x402695
mov ecx, dword [0x46c928]
test ecx, ecx
je 0x402676
mov eax, dword [0x46c924]
sub eax, 4
cmp eax, ecx
jmp 0x40266f
mov eax, dword [eax]
test eax, eax
je 0x402661
call eax
mov eax, dword [0x46c924]
sub eax, 4
cmp eax, dword [0x46c928]
mov dword [0x46c924], eax
jae 0x402659
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x402695
mov eax, dword [edi]
test eax, eax
je 0x40268e
call eax
add edi, 4
cmp edi, esi
jb 0x402686
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x4026b4
mov eax, dword [edi]
test eax, eax
je 0x4026ad
call eax
add edi, 4
cmp edi, esi
jb 0x4026a5
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4026ce
push dword [ebp + 8]
mov dword [0x46c400], 1
call fcn.00402575
pop ebp
ret

Function at 0x402710
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x46c128]
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 + 0x46c138]
je 0x402745
inc eax
cmp eax, 0x13
jb 0x402736
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x46c138]
jne 0x40286b
mov eax, dword [0x46c3ac]
cmp eax, 1
je 0x402843
cmp eax, edx
jne 0x402775
cmp dword [0x46c134], 1
je 0x402843
cmp ecx, 0xfc
je 0x40286b
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 0x4027ab
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00401f10
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004033a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4027df
mov eax, edi
push eax
call fcn.004033a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4061ac
push edi
call fcn.00403270
add esp, 0x10
push edi
call fcn.004033a0
push dword [esi + 0x46c13c]
mov ebx, eax
call fcn.004033a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403130
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00401f10
push edi
push ebx
call fcn.00401f20
push 0x4061a8
push ebx
call fcn.00401f20
push dword [esi + 0x46c13c]
push ebx
call fcn.00401f20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040316d
add esp, 0x2c
jmp 0x40286b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x46c13c]
push dword [esi]
call fcn.004033a0
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.00401f01
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40316d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46c51c], ebx
push esi
push edi
jne 0x4031ed
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403228
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x46c51c], eax
je 0x403228
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46c520], eax
call esi
cmp dword [0x46c3c0], 2
mov dword [0x46c524], eax
jne 0x4031ed
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46c52c], eax
je 0x4031ed
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46c528], eax
mov eax, dword [0x46c528]
test eax, eax
je 0x403232
call eax
test eax, eax
je 0x403219
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46c52c]
test eax, eax
je 0x403219
test byte [ebp - 8], 1
jne 0x403232
cmp dword [0x46c3cc], 4
jb 0x40322c
or byte [ebp + 0x12], 0x20
jmp 0x403251
xor eax, eax
jmp 0x403261
or byte [ebp + 0x12], 4
jmp 0x403251
mov eax, dword [0x46c520]
test eax, eax
je 0x403251
call eax
mov ebx, eax
test ebx, ebx
je 0x403251
mov eax, dword [0x46c524]
test eax, eax
je 0x403251
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46c51c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40351a
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 0x403548
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 0x40354f
cmp ebx, dword [eax + 4]
jae 0x40354f
xor eax, eax
jmp 0x40373f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403560
xor eax, eax
inc eax
jmp 0x40373e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x403576
cmp ecx, edx
jae 0x4036bb
cmp dword [eax + 4], 0
je 0x40357f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x403567
cmp dword [ebp + 8], 0
je 0x4035a1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4036bb
cmp eax, esi
jae 0x4036bb
mov eax, dword [0x46c530]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4035c6
cmp dword [esi*4 + 0x46c538], edi
je 0x4036bf
inc esi
cmp esi, eax
jl 0x4035b4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40373b
cmp dword [ebp - 8], 0x1000000
jne 0x40373b
test byte [ebp - 0xc], 0xcc
je 0x403644
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40373b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40373b
cmp word [eax + 0x18], 0x10b
jne 0x40373b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40373b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403644
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403644
test byte [ecx + 0x27], 0x80
jne 0x4036bb
push 1
push 0x46c578
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x403558
mov ecx, dword [0x46c530]
test ecx, ecx
mov edx, ecx
jle 0x403678
lea eax, [ecx*4 + 0x46c534]
cmp dword [eax], edi
je 0x403678
dec edx
sub eax, 4
test edx, edx
jg 0x40366c
test edx, edx
jne 0x4036a9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403685
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40369d
lea eax, [edx*4 + 0x46c538]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40368b
cmp ecx, 0x10
jge 0x4036a9
inc ecx
mov dword [0x46c530], ecx
push 0
push 0x46c578
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x403558
xor eax, eax
jmp 0x40373e
test esi, esi
jle 0x403558
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x46c578
call ebx
test eax, eax
jne 0x403558
cmp dword [esi*4 + 0x46c538], edi
je 0x403715
mov eax, dword [0x46c530]
lea esi, [eax - 1]
test esi, esi
jl 0x403703
cmp dword [esi*4 + 0x46c538], edi
je 0x4036ff
dec esi
jns 0x4036f3
test esi, esi
jge 0x403713
cmp eax, 0x10
jge 0x40370e
inc eax
mov dword [0x46c530], eax
lea esi, [eax - 1]
jmp 0x403715
je 0x40372d
xor ecx, ecx
test esi, esi
jl 0x40372d
lea eax, [ecx*4 + 0x46c538]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40371b
push 0
push 0x46c578
call ebx
jmp 0x403558
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057c9
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.00403130
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405864
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 [0x46c3c0]
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 0x405864
cmp eax, 1
je 0x405885
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 0x405864
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405831
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405860
xor eax, eax
inc eax
jmp 0x4058a4
cmp edi, eax
jae 0x405868
xor eax, eax
jmp 0x4058a4
cmp eax, esi
jae 0x40586f
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 [0x46c3c0]
jmp 0x405888
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 0x34776b01
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
sub esp, 0x228
mov eax, dword [0x347765c8]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x244]
push edi
push 0xa
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x248]
push ecx
push eax
mov dword [esp + 0x1c], 0
call fcn.34777236
test eax, eax
mov ebp, 0xffffb15a
jge 0x34776b54
mov dword [esp + 0x10], ebp
push 5
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.34777236
test eax, eax
jge 0x34776b69
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x2c]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x34776c80
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ecx, [esp + 0x2c]
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x34776b90
sub ecx, esi
mov ebx, ecx
lea ecx, [esp + 0x20]
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x34776ba4
sub ecx, esi
mov esi, ecx
lea ecx, [esp + 0x18]
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x34776bb8
sub ecx, edi
add ecx, esi
lea ecx, [ecx + ebx + 0xb]
cmp ecx, 0x104
ja 0x34776c80
mov ebp, dword [sym.imp.kernel32.dll_CreateFileA]
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x347715c4
lea edx, [esp + 0x144]
push 0x104
push edx
call fcn.34776aa4
add esp, 0x1c
push 0
push 0x10110080
push 1
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x148]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x34776c86
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ecx, [esp + 0x2c]
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x34776c33
sub ecx, esi
mov ebx, ecx
lea ecx, [esp + 0x20]
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x34776c4a
sub ecx, esi
mov esi, ecx
lea ecx, [esp + 0x18]
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x34776c5e
sub ecx, edi
add ecx, esi
lea ecx, [ecx + ebx + 0xb]
cmp ecx, 0x104
jbe 0x34776bdb
mov ebp, 0xffffb15a
mov dword [esp + 0x10], ebp
jmp 0x34776cc8
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x34776ca2
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
je 0x34776ca2
mov eax, 0xffffb15a
jmp 0x34776ccc
mov edx, dword [esp + 0x240]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x138]
push ecx
call fcn.347770e8
test eax, eax
jge 0x34776cc8
mov dword [esp + 0x10], 0xffffb15a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.347ea89f
add esp, 0x228
ret 0x10
Function at 0x347773d6
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 0x210
mov eax, dword [0x347765c8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push esi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x3477743f
push 0x105
lea eax, [esp + 8]
push eax
push 0
push 0x347715d0
push esi
call fcn.347e7560
test eax, eax
je 0x3477743f
lea ecx, [esp + 4]
push ecx
call sub.kernel32.dll_DeleteFileW
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.347ea89f
add esp, 0x210
ret 4
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor eax, eax
call fcn.347ea89f
add esp, 0x210
ret 4

Function at 0x347774ea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4
Function at 0x3477f676
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x8ec
mov eax, dword [0x347765c8]
xor eax, esp
mov dword [esp + 0x8e8], eax
mov eax, dword [esp + 0x8f0]
test eax, eax
push esi
mov esi, dword [esp + 0x8f8]
mov byte [esp + 4], 0
mov word [esi], 0
jne 0x3477f6c1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x8e8]
xor ecx, esp
call fcn.347ea89f
add esp, 0x8ec
ret 0xc
push 0x474
lea ecx, [esp + 0x47c]
push ecx
push eax
call fcn.34777236
test eax, eax
jl 0x3477f70c
push 0x474
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x480]
push eax
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x3477f6a7
mov ecx, dword [esp + 0x8fc]
push ecx
push esi
lea edx, [esp + 0xc]
push edx
mov byte [esp + eax + 0x10], 0
call fcn.347770e8
mov ecx, dword [esp + 0x8ec]
pop esi
xor ecx, esp
call fcn.347ea89f
add esp, 0x8ec
ret 0xc
Function at 0x34780395
Capabilities:
Get file size

Disassembly:
mov eax, 0x1040
call fcn.347eae3e
mov eax, dword [0x347765c8]
xor eax, esp
mov dword [esp + 0x103c], eax
mov eax, dword [esp + 0x1048]
push ebx
push ebp
mov ebp, dword [esp + 0x104c]
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1060]
push 2
xor edi, edi
push eax
mov dword [esp + 0x1c], 0xffffffff
xor ebx, ebx
mov dword [esp + 0x20], edi
call fcn.347c04d4
mov esi, eax
cmp esi, ebx
jl 0x347804d7
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push eax
push 0x3477180c
push ebp
call fcn.34780110
mov esi, eax
cmp esi, ebx
jl 0x347804d3
mov ecx, dword [esp + 0x10]
push ebx
push ecx
mov dword [esp + 0x28], 0x28
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
push edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call dword [0x347ed2a8]
test eax, eax
jne 0x34780468
call fcn.3477f551
mov esi, eax
jmp 0x347804d7
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.347c0633
mov esi, eax
cmp esi, ebx
jl 0x347804d7
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x347804ab
push ebx
lea ecx, [esp + 0x4c]
push ecx
push eax
lea edx, [esp + 0x58]
push edx
push edi
call fcn.3477f983
mov esi, eax
cmp esi, ebx
jl 0x347804d7
mov eax, dword [esp + 0x18]
cmp eax, 0x1000
jb 0x34780513
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.347c0633
mov esi, eax
cmp esi, ebx
jge 0x34780487
jmp 0x347804d7
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x347804e6
push eax
call fcn.347c0706
cmp edi, ebx
je 0x3478050f
push ebx
push ebx
push ebx
push edi
call dword [0x347ed2ac]
test eax, eax
jne 0x347804fd
call fcn.3477f551
push edi
call dword [0x347ed29c]
mov eax, dword [esp + 0x1c]
push eax
push ebp
call fcn.347801d7
mov eax, esi
jmp 0x3478052f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.347c0706
push edi
call fcn.347801b5
lea edx, [esp + 0x14]
push edx
call fcn.3477fa89
xor eax, eax
mov ecx, dword [esp + 0x104c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.347ea89f
add esp, 0x1040
ret 0xc