joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d150
Capabilities:
Get file version info

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x14]
push edi
push ecx
mov dword [ebp], 0
push ebx
mov dword [eax], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x40d185
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call fcn.00414f90
mov esi, eax
add esp, 4
test esi, esi
jne 0x40d19a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40d1b9
push esi
call fcn.00414ef0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0x4250bc
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40d1e3
push esi
call fcn.00414ef0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x20]
push esi
mov ecx, dword [eax + 0xc]
mov dword [ebp], ecx
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x20]
mov dword [eax], edx
call fcn.00414ef0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40d210
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
xor eax, eax
push ebx
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x40d284
mov edi, 0x4250bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ole32.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
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 + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0040d150
add esp, 0xc
test eax, eax
je 0x40d2fc
mov eax, dword [esp + 0x10]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 4
jb 0x40d2fc
cmp ax, 0x47
jb 0x40d2fc
mov edx, dword [esp + 0xc]
shr edx, 0x10
cmp edx, 0x9d0
jb 0x40d2fc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10c
ret
Function at 0x40ee10
Capabilities:
Get file version info

Disassembly:
mov eax, 0x140c
call fcn.00416430
push esi
push edi
mov edi, dword [esp + 0x1418]
lea eax, [esp + 0x10]
push eax
push edi
mov esi, 0x1400
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x40ee40
pop edi
pop esi
add esp, 0x140c
ret
cmp eax, 0x1400
jae 0x40ee49
mov esi, eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40ee67
pop edi
pop esi
add esp, 0x140c
ret
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.VarFileInfoTranslation
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40ee8d
pop edi
pop esi
add esp, 0x140c
ret
mov eax, dword [esp + 8]
test eax, eax
jbe 0x40eea6
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x141c]
mov cx, word [eax]
mov word [edx], cx
pop edi
mov eax, 1
pop esi
add esp, 0x140c
ret
Function at 0x40fbe0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x98
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
test ebx, ebx
push edi
je 0x40fe1f
mov al, byte [ebx + 0x7f]
test al, al
jne 0x40fe1f
mov al, byte [ebx + 0x94]
test al, al
jne 0x40fe1f
mov edi, dword [esp + 0xb0]
test edi, edi
je 0x40fe1f
mov ebp, dword [esp + 0xb4]
test ebp, ebp
je 0x40fe1f
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x40fe1f
mov ecx, 0x7f
mov eax, ecx
mov dl, byte [ecx + ebx]
add ecx, 0x11
mov byte [esp + eax + 0x10], dl
dec eax
and ecx, 0x7f
test eax, eax
jge 0x40fc46
mov eax, 0x7d
mov cl, byte [esp + eax + 0x10]
mov dl, byte [esp + eax + 0x11]
xor dl, cl
mov byte [esp + eax + 0x11], dl
mov edx, eax
dec eax
test edx, edx
jg 0x40fc5d
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x40fc89
mov cl, byte [esp + 0x10]
and cl, 0x1f
add cl, 0x40
mov byte [eax], cl
movsx edx, byte [esp + 0x12]
movsx eax, byte [esp + 0x11]
shl edx, 4
lea ecx, [esp + 0x1f]
lea eax, [edx + eax - 0x6b5]
test eax, eax
je 0x40fe0f
cmp eax, 0x34
jg 0x40fe0f
xor edx, edx
lea esi, [eax - 1]
test eax, eax
jle 0x40fcd5
mov al, byte [ecx]
mov byte [edi], al
inc edi
inc ecx
cmp al, 0x20
jl 0x40fe2f
movsx eax, al
add edx, eax
mov eax, esi
dec esi
test eax, eax
jg 0x40fcbb
movsx eax, byte [esp + 0x16]
movsx esi, byte [esp + 0x15]
shl eax, 4
and edx, 0xff
mov byte [edi], 0
lea eax, [eax + esi - 0x6b5]
cmp eax, edx
je 0x40fd06
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
movsx edx, byte [esp + 0x14]
movsx eax, byte [esp + 0x13]
shl edx, 4
lea eax, [edx + eax - 0x6b5]
test eax, eax
je 0x40fdff
cmp eax, 0x34
jg 0x40fdff
xor edx, edx
lea esi, [eax - 1]
test eax, eax
jle 0x40fd5d
mov al, byte [ecx]
mov byte [ebp], al
inc ebp
inc ecx
cmp al, 0x20
jl 0x40fd4d
movsx eax, al
add edx, eax
mov eax, esi
dec esi
test eax, eax
jg 0x40fd34
jmp 0x40fd5d
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
movsx eax, byte [esp + 0x18]
movsx esi, byte [esp + 0x17]
shl eax, 4
and edx, 0xff
mov byte [ebp], 0
lea eax, [eax + esi - 0x6b5]
cmp eax, edx
je 0x40fd8f
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
lea edx, [esp + 0x8f]
mov esi, str.LtRrBceHabCT_AhlenN
cmp ecx, edx
jae 0x40fdbe
cmp byte [esi], 0
jne 0x40fda9
mov esi, str.LtRrBceHabCT_AhlenN
mov dl, byte [esi]
mov al, byte [ecx]
inc esi
inc ecx
cmp al, dl
jne 0x40fdef
lea eax, [esp + 0x8f]
cmp ecx, eax
jb 0x40fd9f
mov ecx, dword [esp + 0xb8]
lea esi, [ebx + 0x80]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 0x14
neg eax
sbb eax, eax
and eax, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x98
ret
Function at 0x411ec0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x425e90
push eax
or esi, 0xffffffff
call fcn.004166d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x411ee3
or eax, 0xffffffff
pop edi
pop esi
ret
mov al, byte [edi + 0xc]
push ebx
mov bl, 0x10
test bl, al
jne 0x411f36
push ebp
push edi
push 0x400
push 1
push 0x42c278
call fcn.00416510
add esp, 0x10
xor ecx, ecx
test eax, eax
jbe 0x411f30
mov dl, byte [ecx + 0x42c278]
mov ebp, esi
and edx, 0xff
and ebp, 0xff
xor edx, ebp
shr esi, 8
mov edx, dword [edx*4 + 0x425f68]
xor esi, edx
inc ecx
cmp ecx, eax
jb 0x411f09
test byte [edi + 0xc], bl
je 0x411eee
pop ebp
push edi
call fcn.00416460
add esp, 4
mov eax, esi
not eax
pop ebx
pop edi
pop esi
ret

Function at 0x4123b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42163c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00408990
xor ebx, ebx
lea ecx, [esi + 0x264]
mov dword [esp + 0x118], ebx
call fcn.0041d8a0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x42a420
lea eax, [esp + 0x14]
push 0xff
push eax
push 0x429d58
push 0x426648
push str.vsku
mov byte [esp + 0x130], 1
mov dword [esi + 0x260], ebx
mov dword [esi + 0x25c], ebx
mov dword [esi + 0x258], ebx
mov dword [esi + 0x254], ebx
mov dword [esi + 0x250], ebx
mov dword [esi + 0x24c], ebx
mov dword [esi + 0x248], ebx
mov word [esi + 0x2a8], bx
mov byte [esi + 0x140], bl
mov byte [esi + 0x3c], bl
call edi
cmp byte [esp + 0x10], bl
je 0x412469
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, esi
call fcn.00412590
push 0x42a420
lea edx, [esp + 0x14]
push 0xff
push edx
push 0x429d58
push 0x42663c
push str.vsku
call edi
cmp byte [esp + 0x10], bl
je 0x41249d
lea eax, [esp + 0x10]
push 4
push eax
mov ecx, esi
call fcn.00412590
push 0x42a420
lea ecx, [esp + 0x14]
push 0xff
push ecx
push 0x429d58
push 0x426638
push str.vsku
call edi
cmp byte [esp + 0x10], bl
je 0x4124d1
lea edx, [esp + 0x10]
push 0x40
push edx
mov ecx, esi
call fcn.00412590
push 0x42a420
lea eax, [esp + 0x14]
push 0xff
push eax
push 0x429d58
push 0x426634
push str.vsku
call edi
cmp byte [esp + 0x10], bl
je 0x412505
lea ecx, [esp + 0x10]
push 0x10
push ecx
mov ecx, esi
call fcn.00412590
push 0x42a420
lea edx, [esp + 0x14]
push 0xff
push edx
push 0x429d58
push 0x426630
push str.vsku
call edi
cmp byte [esp + 0x10], bl
je 0x41253c
lea eax, [esp + 0x10]
push 0x100
push eax
mov ecx, esi
call fcn.00412590
push 0x42a420
lea ecx, [esp + 0x14]
push 0xff
push ecx
push 0x429d58
push 0x42662c
push str.vsku
call edi
cmp byte [esp + 0x10], bl
je 0x412573
lea edx, [esp + 0x10]
push 0x400
push edx
mov ecx, esi
call fcn.00412590
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x110
ret
Function at 0x414270
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x214
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x4250bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
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
mov ebx, dword [esp + 0x22c]
and ecx, 3
lea edx, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x4250bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
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
push eax
and ecx, 3
lea eax, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00414d10
add esp, 8
cmp eax, 0xffffffff
je 0x414371
lea ebx, [esp + 0x1c]
jmp 0x414393
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.00414d10
add esp, 8
cmp eax, 0xffffffff
je 0x41444e
lea ebx, [esp + 0x120]
mov ebp, dword [esp + 0x22c]
test ebp, ebp
jne 0x4143b9
mov eax, dword [esp + 0x230]
test eax, eax
jne 0x4143b9
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
lea edx, [esp + 0x18]
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x41441f
push esi
call fcn.00414f90
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x414408
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x4250bc
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x414408
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
jmp 0x414410
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x414427
push edi
call fcn.00414ef0
add esp, 4
jmp 0x414427
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
test esi, esi
jne 0x41442f
test ebx, ebx
je 0x41444e
cmp esi, ebp
jb 0x41444e
jne 0x41443e
cmp ebx, dword [esp + 0x230]
jb 0x41444e
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
Function at 0x414460
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x130]
push 0x104
push ecx
push str.Default_String
push edx
push eax
xor esi, esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x414593
mov al, byte [esp + 0x20]
cmp al, 0x30
je 0x414579
test al, al
lea ecx, [esp + 0x20]
je 0x4144c1
cmp al, 0x2e
jne 0x4144b9
inc esi
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4144b4
cmp esi, 3
jne 0x414593
lea esi, [esp + 0x20]
cmp dword [0x4268d4], 1
jle 0x4144e7
movsx ecx, byte [esi]
push 8
push ecx
call fcn.004169b0
add esp, 8
jmp 0x4144f5
movsx edx, byte [esi]
mov eax, dword [str.________________________________H]
mov al, byte [eax + edx*2]
and eax, 8
test eax, eax
je 0x4144fc
inc esi
jmp 0x4144ce
xor edi, edi
lea ebx, [esp + 0x10]
mov al, byte [esi]
mov ecx, esi
cmp al, 0x2e
je 0x414516
test al, al
je 0x414516
mov al, byte [esi + 1]
inc esi
cmp al, 0x2e
jne 0x41450a
mov byte [esi], 0
push ecx
inc esi
call fcn.00414640
add esp, 4
test edi, edi
je 0x41452c
cmp edi, 2
jne 0x414531
mov ebp, eax
shl ebp, 0x10
cmp edi, 1
je 0x41453b
cmp edi, 3
jne 0x41453d
mov ebp, eax
mov dword [ebx], ebp
inc edi
add ebx, 4
cmp edi, 3
jbe 0x414502
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x134]
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x138]
add ecx, edx
mov dword [eax], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x138]
mov dword [ecx], 0
mov dword [edx], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414d33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004184a0
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x414d58
test byte [esp + 8], 2
je 0x414d58
call fcn.00418520
mov dword [eax], 0xd
call fcn.00418530
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x415330
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x4153a5
push ebx
call fcn.00415460
add esp, 4
test eax, eax
jne 0x415373
call fcn.00418530
mov dword [eax], 0xf
call fcn.00418520
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4153b5
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41544f
inc eax
cmp eax, 0x104
ja 0x41544f
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x415407
cmp eax, ecx
jg 0x4153e1
mov eax, ecx
push eax
call fcn.00414f90
mov edx, eax
add esp, 4
test edx, edx
jne 0x415422
call fcn.00418520
mov dword [eax], 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, ecx
jle 0x415422
call fcn.00418520
mov dword [eax], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x415460
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x41546e
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41549d
cmp eax, 1
je 0x41549d
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4160b0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4160c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4160c9
xor eax, eax
test eax, eax
je 0x4160da
push eax
call fcn.004184a0
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x416330
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.004163f0
mov eax, dword [0x42cad4]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x416354
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x42cad0], 1
mov byte [0x42cacc], bl
jne 0x4163ae
mov ecx, dword [0x42f2dc]
test ecx, ecx
je 0x41639c
mov esi, dword [0x42f2d8]
sub esi, 4
cmp esi, ecx
jb 0x41639c
mov eax, dword [esi]
test eax, eax
je 0x416395
call eax
mov ecx, dword [0x42f2dc]
sub esi, 4
cmp esi, ecx
jae 0x416387
push 0x425038
push 0x425030
call fcn.00416410
add esp, 8
push 0x425044
push 0x42503c
call fcn.00416410
add esp, 8
test ebx, ebx
je 0x4163cd
call fcn.00416400
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x42cad4], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4167a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422398
push 0x415068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x42caa4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x42caa0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x42ca9c], ecx
shr eax, 0x10
mov dword [0x42ca98], eax
call fcn.00418610
test eax, eax
jne 0x41680a
push 0x1c
call fcn.00416980
add esp, 4
call fcn.004180c0
test eax, eax
jne 0x41681d
push 0x10
call fcn.00416980
add esp, 4
mov dword [ebp - 4], 0
call fcn.0041a930
call fcn.004195c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42f2d4], eax
call fcn.0041a7d0
mov dword [0x42cad8], eax
test eax, eax
je 0x416850
mov eax, dword [0x42f2d4]
test eax, eax
jne 0x41685a
push 0xffffffffffffffff
call fcn.004162f0
add esp, 4
call fcn.0041a520
call fcn.0041a430
call fcn.004162c0
mov esi, dword [0x42f2d4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x416939
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4168a1
test al, al
je 0x4168a1
and eax, 0xff
push eax
call fcn.0041a3d0
add esp, 4
test eax, eax
je 0x41687b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x41687b
cmp byte [esi], 0x22
jne 0x4168aa
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4168ba
cmp al, 0x20
ja 0x4168ba
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4168aa
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4168db
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4168e0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004162f0
jmp 0x41691e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4168aa
inc esi
mov dword [ebp - 0x64], esi
jmp 0x416939
Function at 0x416980
Capabilities:
Terminate process

Disassembly:
cmp dword [0x42cae0], 1
jne 0x41698e
call fcn.0041ab40
mov eax, dword [esp + 4]
push eax
call fcn.0041ab80
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4180c0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004182e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4268f0], eax
je 0x418118
push 0x74
push 1
call fcn.0041b710
mov esi, eax
add esp, 8
test esi, esi
je 0x418118
mov eax, dword [0x4268f0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x418118
push esi
call fcn.00418120
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x418140
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x4268f0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4181ae
push 0x74
push 1
call fcn.0041b710
mov esi, eax
add esp, 8
test esi, esi
je 0x4181a4
mov ecx, dword [0x4268f0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4181a4
push esi
call fcn.00418120
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00416950
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret