joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c57e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x60]
push edi
push eax
call fcn.004ada80
mov edi, eax
test edi, edi
je 0x4c5816
cmp byte [0x598e76], 0
jne 0x4c580a
cmp byte [0x58b62b], 0
jne 0x4c5816
mov ecx, dword [esi + 0x60]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x2c8], 0
je 0x4c5827
mov eax, dword [esi + 0x2c4]
jmp 0x4c5830
mov edx, dword [esi + 0x60]
push edx
call fcn.004ada30
test eax, eax
jne 0x4c588d
test edi, edi
jne 0x4c588d
cmp dword [esi + 0x2c8], edi
jne 0x4c588d
mov ecx, dword [esi + 0x60]
mov edi, dword [esi + 0x2ac]
sub edi, dword [esi + 0x2a4]
push ebx
mov ebx, dword [esi + 0x2b0]
sub ebx, dword [esi + 0x2a8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x2a4], eax
add eax, edi
mov dword [esi + 0x2a8], ecx
add ecx, ebx
mov dword [esi + 0x2ac], eax
mov dword [esi + 0x2b0], ecx
pop ebx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x549230
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x597fa8]
mov dword [ebp - 4], eax
mov eax, dword [0x58eee0]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x54925f
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x5493ec
push dword [0x597f10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x5493ec
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x549297
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x5492af
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x5492d0
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x5492ed
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00549193
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x549310
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x549324
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00549193
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x549359
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x54936b
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.005490c4
test eax, eax
pop esi
jne 0x5493ac
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.005490c4
test eax, eax
jne 0x5493da
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.005490c4
test eax, eax
jne 0x5493ec
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.005490c4
test eax, eax
je 0x5493ec
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.005498fd
leave
ret

Function at 0x5498fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x597fa8]
jne 0x549907
repz ret
jmp fcn.0054ab5e
Function at 0x4065c2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
cmp eax, 8
ja case.0x4065d2.1
jmp dword [eax*4 + 0x4066ba]
push dword [ebp + 0xc]
call fcn.004066de
and dword [0x42a198], 0
jmp case.0x4065d2.1
mov eax, dword [0x42a198]
xor ecx, ecx
cmp ecx, dword [ebp + 0x14]
ja case.0x4065d2.1
mov esi, dword [ebp + 0x10]
jb 0x40660a
cmp eax, esi
jae case.0x4065d2.1
call fcn.00406a79
add dword [0x42a198], 0x100000
xor eax, eax
cmp eax, dword [ebp + 0x14]
jb 0x40660a
ja case.0x4065d2.1
cmp dword [0x42a198], esi
jb 0x40660a
jmp case.0x4065d2.1
push dword [ebp + 0xc]
call fcn.004066de
call fcn.00406a79
jmp case.0x4065d2.1
call fcn.00406a79
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0xc]
call fcn.0040678c
mov esi, eax
test esi, esi
jns case.0x4065d2.1
push 0x403a2c
jmp 0x4066a8
mov eax, dword [0x42a198]
xor ecx, ecx
cmp ecx, dword [ebp + 0x14]
ja case.0x4065d2.1
mov esi, dword [ebp + 0x10]
jb 0x406678
cmp eax, esi
jae case.0x4065d2.1
call fcn.00406a79
add dword [0x42a198], 0x80000
xor eax, eax
cmp eax, dword [ebp + 0x14]
jb 0x406678
ja case.0x4065d2.1
cmp dword [0x42a198], esi
jb 0x406678
call fcn.00406aa7
mov esi, eax
test esi, esi
jns 0x4066b0
push 0x4039b4
push esi
call fcn.0040895c
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebp
ret 0x14
Function at 0x406846
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [0x42a130], esi
je 0x406862
mov eax, 0x8000ffff
jmp 0x4069c6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
push ebx
xor ebx, ebx
inc ebx
push edi
mov dword [0x42a13c], eax
cmp eax, esi
jne 0x406970
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1f4
mov dword [0x42a118], eax
push eax
mov eax, 0x42a12c
call fcn.004094e5
push 0x429f30
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
push esi
push esi
push esi
mov dword [0x42a124], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x42a128], eax
cmp eax, esi
jne 0x4068e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, esi
jle 0x4068d4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jl 0x4068e0
mov dword [ebp - 4], 0x80004005
push 0x403acc
jmp 0x40692b
push esi
push esi
push esi
push 0x406ad8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42a11c], eax
cmp eax, esi
jne 0x406937
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, esi
jle 0x40691a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jl 0x406926
mov dword [ebp - 4], 0x80004005
push 0x403b08
push dword [ebp - 4]
call fcn.0040895c
pop ecx
pop ecx
jmp 0x406976
push 0xffffffffffffffff
push dword [0x42a128]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, word [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
shl eax, 0x10
push eax
push esi
push 0x401
push dword [0x42a120]
call edi
push esi
push ebx
push 0x404
push dword [0x42a120]
call edi
mov dword [0x42a130], ebx
cmp dword [ebp - 4], esi
jge 0x4069c1
cmp dword [0x42a124], esi
je 0x406994
push 0x429f30
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x42a124], esi
mov eax, dword [0x42a12c]
cmp eax, esi
je 0x4069a3
push eax
call fcn.0040921f
mov eax, dword [0x42a11c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
je 0x4069b5
push eax
call edi
mov eax, dword [0x42a128]
cmp eax, esi
je 0x4069c1
push eax
call edi
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x407991
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xf0000000
xor ebx, ebx
stosd dword es:[edi], eax
push 1
push ebx
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x20]
push eax
xor esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4079ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x4079ee
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x4079f5
mov esi, 0x80004005
push 0x40428c
jmp 0x407ac1
lea eax, [ebp - 0x14]
push eax
push 0x10
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x407a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x407a2c
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x407a33
mov esi, 0x80004005
push 0x4042b0
jmp 0x407ac1
mov bl, byte [ebp - 0x14]
mov edi, dword [ebp - 0x24]
and bl, 7
add bl, 9
add bl, bl
mov dword [edi], esi
mov byte [ebp - 0x15], 0
je 0x407ac9
movzx eax, byte [ebp - 0x15]
and dword [ebp - 0x1c], 0
shr eax, 1
movzx eax, byte [ebp + eax - 0x14]
push eax
lea eax, [ebp - 0x1c]
push 0x4042d4
push eax
call fcn.00408f51
mov esi, eax
add esp, 0xc
test esi, esi
js 0x407ab5
cmp dword [edi], 0
jne 0x407a86
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
jmp 0x407aa6
push 0
push dword [ebp - 0x1c]
mov eax, edi
call fcn.00408e95
mov esi, eax
test esi, esi
js 0x407abc
cmp dword [ebp - 0x1c], 0
je 0x407aa6
push dword [ebp - 0x1c]
call fcn.0040921f
add byte [ebp - 0x15], 2
and dword [ebp - 0x1c], 0
cmp byte [ebp - 0x15], bl
jb 0x407a53
jmp 0x407ac9
push 0x4042e0
jmp 0x407ac1
push 0x404320
push esi
call fcn.0040895c
pop ecx
pop ecx
xor edi, edi
cmp dword [ebp - 0x20], edi
je 0x407ada
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x1c], edi
je 0x407ae7
push dword [ebp - 0x1c]
call fcn.0040921f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418bf8
leave
ret 4
Function at 0x407afa
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
mov ax, word [ecx]
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 8], ax
mov word [ebp - 0x80c], ax
lea eax, [ebp - 0x80a]
push eax
call fcn.0041d610
add esp, 0xc
mov esi, 0x400
push esi
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x407b64
xor al, al
jmp 0x407ba2
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.00418f18
lea eax, [ebp - 0x80c]
push 0x404360
push eax
call fcn.00418f2f
add esp, 0x10
test eax, eax
jne 0x407ba0
lea eax, [ebp - 0x80c]
push 0x404374
push eax
call fcn.00418f2f
pop ecx
pop ecx
test eax, eax
je 0x407b60
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00418bf8
leave
ret
Function at 0x407e69
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, 0x404680
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 0x38], eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 6
mov dword [ebx], eax
pop ecx
xor eax, eax
xor esi, esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
mov dword [ebp - 0x40], esi
call edi
mov dword [ebp - 0x3c], eax
or eax, 1
push eax
call edi
mov eax, dword [ebx]
dec eax
dec eax
je 0x407ece
dec eax
je 0x407f28
sub eax, 3
jne 0x407ef6
mov dword [ebx], 3
jmp 0x407f28
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
push esi
push esi
push 3
push esi
push 3
mov word [ebp - 0x10], ax
push SysReAllocString
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x407efa
mov dword [ebx], esi
jmp 0x407f28
push esi
lea ecx, [ebp - 0x40]
push ecx
push 0x18
lea ecx, [ebp - 0x34]
push ecx
push esi
push esi
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407f1d
cmp dword [ebp - 0x2c], 0xb
je 0x407f28
push dword [ebp - 0x38]
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3c]
call edi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00418bf8
leave
ret 4
Function at 0x407f3f
Capabilities:
Create directory
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call edi
mov dword [ebp - 0x14], eax
or eax, 1
push eax
call edi
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 4]
push eax
call fcn.004078e5
mov esi, eax
cmp esi, ebx
jl 0x408042
push dword [ebp - 4]
lea eax, [ebp - 8]
push dword [ebp + 8]
push 0x4046b0
push eax
call fcn.00408f51
mov esi, eax
add esp, 0x10
cmp esi, ebx
jl 0x408049
push dword [ebp - 8]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00409b77
mov esi, eax
cmp esi, ebx
jl 0x408050
mov esi, dword [ebp - 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x407fd8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x407fd8
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp esi, ebx
je 0x407fe2
push esi
call fcn.0040921f
cmp dword [ebp - 4], ebx
je 0x407fef
push dword [ebp - 4]
call fcn.0040921f
cmp dword [ebp - 8], ebx
je 0x407ffc
push dword [ebp - 8]
call fcn.0040921f
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x10], ebx
jne 0x40805f
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x3e8
jl 0x407f65
xor esi, esi
inc esi
cmp dword [ebp - 4], ebx
je 0x408027
push dword [ebp - 4]
call fcn.0040921f
cmp dword [ebp - 8], ebx
je 0x408034
push dword [ebp - 8]
call fcn.0040921f
push dword [ebp - 0x14]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
push 0x404690
jmp 0x408055
push 0x4046bc
jmp 0x408055
push 0x4046e8
push esi
call fcn.0040895c
pop ecx
pop ecx
jmp 0x40801a
xor esi, esi
jmp 0x408034
Function at 0x408496
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push edi
mov edi, dword [0x42915c]
cmp edi, 1
jne 0x408662
push ebx
push esi
mov ebx, 0x104
mov eax, ebx
lea esi, [ebp - 4]
call fcn.00408be8
mov edi, eax
test edi, edi
jns 0x4084d5
push 0x404aac
jmp 0x408658
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40850e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4084fd
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x408504
mov edi, 0x80004005
push 0x404ad4
jmp 0x408658
cmp eax, ebx
jbe 0x408534
lea esi, [ebp - 4]
mov ebx, eax
call fcn.00408be8
mov edi, eax
test edi, edi
js 0x4084cb
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4084e3
cmp eax, ebx
ja 0x4084e3
push dword [ebp - 4]
lea eax, [ebp - 8]
push 0x404af8
push eax
call fcn.00408f51
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x408558
push 0x404b18
jmp 0x408658
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x408592
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x408581
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x408588
mov edi, 0x80004005
push 0x404b48
jmp 0x408658
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404b64
push ebx
call esi
mov dword [0x429f64], eax
test eax, eax
je 0x408632
push 0x404b70
push ebx
call esi
mov dword [0x429f60], eax
test eax, eax
je 0x408632
push 0x404b80
push ebx
call esi
mov dword [0x429f5c], eax
test eax, eax
je 0x408632
push 0x404b90
push ebx
call esi
mov dword [0x429f58], eax
test eax, eax
je 0x408632
push 0x404ba4
push ebx
call esi
mov dword [0x429f54], eax
test eax, eax
je 0x408632
push 0x404bb0
push ebx
call esi
mov dword [0x429f50], eax
test eax, eax
je 0x408632
push 0x404bc4
push ebx
call esi
mov dword [0x429f4c], eax
test eax, eax
je 0x408632
push 0x404bdc
push ebx
call esi
mov dword [0x429f48], eax
test eax, eax
je 0x408632
push 0x404c30
push 1
call fcn.004088e0
jmp 0x40865e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40864c
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x408653
mov edi, 0x80004005
push 0x404bf4
push edi
call fcn.0040895c
pop ecx
pop ecx
pop esi
pop ebx
cmp dword [ebp - 4], 0
mov dword [0x42915c], edi
je 0x408676
push dword [ebp - 4]
call fcn.0040921f
cmp dword [ebp - 8], 0
je 0x408684
push dword [ebp - 8]
call fcn.0040921f
mov eax, edi
pop edi
leave
ret
Function at 0x4089bd
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [0x429150], 0xffffffff
mov eax, 0x104
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], edi
je 0x408b0b
cmp dword [0x42a148], edi
je 0x408b0b
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x208
test eax, eax
jne 0x408a33
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041d610
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00409c93
test eax, eax
jns 0x408a56
xor ebx, ebx
jmp 0x408a62
mov edi, dword [ebp - 0x420]
mov ebx, dword [ebp - 0x41c]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x408a8b
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0041d610
add esp, 0xc
lea esi, [ebp - 0x418]
call fcn.00409245
mov esi, eax
test esi, esi
js 0x408ae5
push dword [ebp - 0x418]
push 0x404dcc
push 1
call fcn.004088e0
movzx eax, bx
push eax
movzx eax, di
shr ebx, 0x10
push ebx
push eax
shr edi, 0x10
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x404de8
push 1
call fcn.004088e0
push 0x404d78
push 0x404d84
push 1
call fcn.004088e0
add esp, 0x34
xor edi, edi
pop ebx
cmp dword [ebp - 0x418], edi
je 0x408afb
push dword [ebp - 0x418]
call fcn.0040921f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00418bf8
leave
ret
xor esi, esi
inc esi
jmp 0x408ae8

Function at 0x408b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
lea ebx, [ebp - 4]
mov dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 8], edi
call fcn.0040905f
mov dword [ebp + 0xc], eax
cmp eax, edi
jl 0x408ba9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp + 8], eax
cmp eax, edi
jbe 0x408b72
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
push dword [0x429150]
call ebx
test eax, eax
je 0x408bc0
add esi, dword [ebp - 8]
cmp esi, dword [ebp + 8]
jb 0x408b4d
cmp dword [ebp + 0x10], edi
je 0x408ba9
push edi
lea eax, [ebp - 8]
push eax
push 2
push 0x404d74
push dword [0x429150]
call ebx
test eax, eax
jne 0x408ba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp eax, edi
jle 0x408ba9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
cmp dword [ebp - 4], edi
pop edi
pop esi
pop ebx
je 0x408bb9
push dword [ebp - 4]
call fcn.0040921f
mov eax, dword [ebp + 0xc]
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp eax, edi
jle 0x408bda
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], edi
jl 0x408ba9
mov dword [ebp + 0xc], 0x80004005
jmp 0x408ba9
Function at 0x40954b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 4]
call fcn.00409b77
mov ebx, dword [ebp - 4]
mov edi, eax
test edi, edi
js 0x409619
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409582
test al, 0x10
jne 0x409619
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409619
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409617
movzx eax, word [ebx]
xor esi, esi
mov ecx, ebx
test ax, ax
je 0x4095c4
cmp ax, 0x5c
jne 0x4095b5
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4095ad
test esi, esi
jne 0x4095cb
mov edi, 0x80070003
jmp 0x409619
push dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.0040954b
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x409619
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409617
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409605
xor edi, edi
inc edi
jmp 0x409619
test eax, eax
jle 0x409613
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x409619
xor edi, edi
test ebx, ebx
je 0x409623
push ebx
call fcn.0040921f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409c93
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
lea esi, [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.00409b77
mov esi, eax
cmp esi, ebx
jl 0x409d7e
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
jne 0x409cfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x409cec
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x409d7d
mov esi, 0x80004005
jmp 0x409d7d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x409d12
mov esi, 0x8007000e
jmp 0x409d7d
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x409d3e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40507c
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x409d61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x409d58
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x409d74
mov esi, 0x80004005
jmp 0x409d74
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
cmp dword [ebp - 4], ebx
je 0x409d8b
push dword [ebp - 4]
call fcn.0040921f
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x409dd2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], esi
jbe 0x409e2e
and dword [ebp - 4], edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409e0d
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x409de1
jmp 0x409e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x409e27
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x409e2e
mov edi, 0x80004005
test ebx, ebx
je 0x409e34
mov dword [ebx], esi
mov eax, edi
pop edi
pop esi
leave
ret 0xc