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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00423da0
mov eax, dword [0x44d180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0042f717
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x431ce6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x431e5d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043b370
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x44f848]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00432a88
mov ecx, dword [esi*4 + 0x44f848]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x431e56
cmp eax, dword [edi + ecx + 0x24]
jne 0x431e56
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x431e56
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00432a88
add esp, 0x14
cmp edx, esi
jl 0x431e56
jg 0x431db1
cmp eax, esi
jb 0x431e56
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x431e56
jl 0x431dd3
cmp dword [ebp - 0x1008], eax
ja 0x431e56
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x431df8
cmp ebx, esi
je 0x431e3d
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x431e3d
mov al, byte [ecx]
cmp al, 0xd
jne 0x431e1e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x431e2a
cmp byte [ecx + 1], 0xa
jne 0x431e2a
inc ecx
jmp 0x431e2a
movzx eax, al
movsx eax, byte [eax + 0x44d440]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x431e04
cmp edx, ebx
jne 0x431e04
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x431e5b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00422fc7
leave
ret
Function at 0x431f14
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x44f848]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x431f56
cmp byte [ebx], 0xa
jne 0x431f56
or byte [edi + eax + 0x28], 4
jmp 0x431f5b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43205e
mov cl, byte [eax]
cmp cl, 0x1a
je 0x432039
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x431f8a
mov eax, dword [ebp - 8]
jmp 0x431faa
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x431fc6
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x431fa4
add eax, 2
mov cl, 0xa
jmp 0x431fa7
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x431f6c
jmp 0x43205e
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432034
cmp dword [ebp - 0x10], 0
je 0x432034
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x44f848]
test byte [eax + edi + 0x28], 0x48
je 0x432013
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x432003
mov byte [esi], 0xa
jmp 0x43205d
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x44f848]
mov byte [eax + edi + 0x2a], cl
jmp 0x43205d
cmp byte [ebp - 1], 0xa
jne 0x43201d
cmp esi, ebx
je 0x431ffe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00432aa6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43205e
mov byte [esi], 0xd
jmp 0x43205d
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x44f848]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x43205b
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x43205e
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x432067
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x44f848]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4320ab
push 0xa
pop esi
cmp word [ebx], si
jne 0x4320ab
or byte [eax + edi + 0x28], 4
jmp 0x4320b0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x43221b
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4321f3
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4320fd
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x432127
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x432146
push 0xa
pop ebx
cmp word [edx], bx
jne 0x432114
push ebx
add eax, 4
pop edx
jmp 0x43211c
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4320c2
jmp 0x43221b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4321ee
cmp dword [ebp - 0x14], 0
je 0x4321ee
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x44f848]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4321ca
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x432192
mov word [esi], ax
jmp 0x432218
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x44f848]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x44f848]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x44f848]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x432218
cmp word [ebp - 4], ax
jne 0x4321d4
cmp esi, ebx
je 0x43218a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00432aa6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43221b
push 0xd
pop eax
jmp 0x43218a
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x44f848]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x432215
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x43221b
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434f77
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x435014
push ebx
push esi
call fcn.00434f40
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00433d68
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x434fc1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x435013
push edi
push eax
call fcn.0042f380
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x434fe1
call fcn.0042dca0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x435012
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00433d68
add esp, 0x20
test eax, eax
jne 0x435000
push edi
call fcn.0042dca0
jmp 0x435008
push ebx
call fcn.0042dca0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x437886
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042db28
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4378f5
cmp esi, dword [ebp - 4]
je 0x4378f0
cmp dword [ebp + 0xc], 0
je 0x4378f0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4378cd
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004373db
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4378f7
xor eax, eax
inc eax
jmp 0x4378f7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x437962
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44d180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042db28
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042db28
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4379d9
cmp word [ecx], dx
je 0x4379d9
mov eax, dword [0x44343c]
push edi
dec eax
push eax
push 0x443328
call fcn.004378fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x437a4c
cmp word [eax], dx
je 0x437a4c
mov eax, dword [edi]
test eax, eax
je 0x4379fd
cmp word [eax], dx
je 0x4379fd
lea eax, [ebp - 0x10]
push eax
call fcn.004372e1
jmp 0x437a06
lea eax, [ebp - 0x10]
push eax
call fcn.0043737c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x437a76
mov eax, dword [0x443324]
push dword [ebp - 0x14]
dec eax
push eax
push 0x443018
call fcn.004378fb
add esp, 0xc
test al, al
je 0x437a76
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x437a41
cmp word [eax], di
je 0x437a41
lea eax, [ebp - 0x10]
push eax
call fcn.004372e1
pop ecx
jmp 0x437a78
lea eax, [ebp - 0x10]
push eax
call fcn.0043737c
jmp 0x437a3e
mov eax, dword [edi]
test eax, eax
je 0x437a63
cmp word [eax], dx
je 0x437a63
lea eax, [ebp - 0x10]
push eax
call fcn.00437296
pop ecx
jmp 0x437a76
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x437b41
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00437780
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x437b41
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x437b41
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x437b41
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x437ace
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042f1e4
test ebx, ebx
je 0x437b3c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042f1e4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x437b41
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x437b41
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043963f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x437b43
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422fc7
leave
ret
Function at 0x43b330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b35d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b35d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408d1c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408d5a
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408d61
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40c660
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x408efc
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x43fd64], 0
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
jne 0x408f39
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x408f24
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408f16
mov dword [ecx*4 + 0x43fd60], eax
inc ecx
cmp ecx, 0x100
jne 0x408f0f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408f5b
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x43fd60]
jmp 0x408f43
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x2931094e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x7c6d027d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x439c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x134], ax
mov dword [ebp - 0x130], 0
push 0x118
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0041ca90
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4010fa
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 8], ecx
mov dx, word [ebp - 0x1c]
mov word [ebp - 0x134], dx
cmp dword [ebp - 0xc], 5
jne 0x4010ac
cmp dword [ebp - 8], 0
jne 0x4010ac
movzx eax, word [ebp - 0x134]
cmp eax, 4
jl 0x4010ac
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 5
jne 0x4010bf
cmp dword [ebp - 8], 2
jne 0x4010bf
mov dword [ebp - 4], 2
cmp dword [ebp - 0xc], 5
jne 0x4010d8
cmp dword [ebp - 8], 2
jae 0x4010d1
cmp dword [ebp - 8], 1
jne 0x4010d8
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc], 6
jne 0x4010fa
cmp dword [ebp - 8], 0
jne 0x4010ed
mov dword [ebp - 4], 4
jmp 0x4010fa
cmp dword [ebp - 8], 1
jne 0x4010fa
mov dword [ebp - 4], 5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041a6ad
mov esp, ebp
pop ebp
ret
Function at 0x402350
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x439c20]
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.0041ca90
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40239f
cmp dword [ebp + 0xc], 0
jne 0x4023a9
jmp 0x40247a
cmp dword [ebp + 0x10], 0
je 0x4023fe
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 0x4023c7
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x402402
jmp 0x40247a
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.0041a6bc
add esp, 0xc
push 0x434b34
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0041ac0b
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x40244e
jmp 0x40247a
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.0041aefe
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.0041af92
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041a6ad
mov esp, ebp
pop ebp
ret
Function at 0x402490
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x439c20]
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.0041ca90
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4024df
cmp dword [ebp + 0xc], 0
jne 0x4024e9
jmp 0x4025f6
cmp dword [ebp + 0x10], 0
je 0x40253e
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 0x402507
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x21c]
sar eax, 1
mov dword [ebp - 0x224], eax
jne 0x402548
jmp 0x4025f6
cmp dword [0x43afbc], 3
jne 0x40257e
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x434b3c
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.0041a6bc
add esp, 0xc
jmp 0x402590
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.0041a6bc
add esp, 0xc
push 0x434b40
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.0041ac0b
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4025ca
jmp 0x4025f6
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.0041aefe
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.0041af92
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041a6ad
mov esp, ebp
pop ebp
ret

Function at 0x402610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x439c20]
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.0041ca90
add esp, 0xc
cmp dword [0x43afbc], 3
jne 0x402678
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x434b48
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0041a6bc
add esp, 0xc
jmp 0x40268a
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x434b4c
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a6ad
mov esp, ebp
pop ebp
ret
Function at 0x402940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x439c20]
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.0041ca90
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.00402c10
add esp, 8
mov eax, dword [ebp - 0x21c]
push eax
call fcn.00402d30
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x4029ea
xor eax, eax
jmp 0x4029fd
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call fcn.00402790
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a6ad
mov esp, ebp
pop ebp
ret
Function at 0x402a10
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 0x402a5f
jmp 0x402b47
mov dword [ebp - 8], 0xb69
mov eax, dword [ebp - 8]
push eax
call fcn.0041027b
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 0x402aaa
jmp 0x402b47
mov dword [ebp - 4], 0
jmp 0x402abc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x402b2a
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x89
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 + 0x34]
cmp edx, dword [ebp - 0xc]
jl 0x402b28
jg 0x402af4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 0x30]
cmp edx, dword [ebp - 0x10]
jbe 0x402b28
mov eax, dword [ebp - 4]
imul eax, eax, 0x89
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax + 0x30]
mov dword [ebp - 0x10], edx
mov eax, dword [ecx + eax + 0x34]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x89
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx + 0x38]
mov dword [ebp - 0x20], eax
mov ecx, dword [edx + ecx + 0x3c]
mov dword [ebp - 0x1c], ecx
jmp 0x402ab3
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.0041e8a0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x402b66
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00410270
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