joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485394
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004058dc
xor eax, eax
push ebp
push 0x48540a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00485304
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004852bc
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00485264
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4853d4
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485411
lea eax, [ebp - 4]
call fcn.0040545c
ret
Function at 0x4860a4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48628a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x486246
mov eax, dword [ebp - 4]
call fcn.00487a4c
cmp ebx, eax
jge 0x486246
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.0047c848
mov edx, dword [0x47e204]
call fcn.0040470c
mov esi, eax
mov eax, esi
call fcn.0047f0c8
test al, al
je 0x48623c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x486230
xor eax, eax
push ebp
push 0x486229
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048665c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041ee8c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00405b7c
mov eax, dword [ebp - 8]
call fcn.0040594c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00486420
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486274
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x486228
mov eax, dword [ebp - 4]
call fcn.004866e0
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040b46c
jmp 0x486274
mov eax, dword [ebp - 8]
call fcn.0040545c
jmp 0x486274
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040a858
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x419b50]
call fcn.0040eccc
call fcn.00404dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486291
lea eax, [ebp - 0x54]
call fcn.0040545c
ret
Function at 0x48b338
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4086c0]
call fcn.00405fa4
xor eax, eax
push ebp
push 0x48b4d9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c7fb0], 0
jne 0x48b393
mov ecx, dword [0x4c90dc]
mov dl, 1
mov eax, dword [0x408d2c]
call fcn.0040ed4c
call fcn.00404dd0
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403b50
mov eax, ebx
call fcn.00405df4
mov dword [ebp - 0x24], eax
mov esi, 0x48b4e8
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.004071f8
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405e04
test eax, eax
jle 0x48b47c
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x48b468
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004056cc
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x48b40e
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004056e4
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x48b424
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.004056e4
mov eax, dword [ebp - 0x54]
call fcn.004058ec
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004056cc
mov eax, dword [ebp - 0x58]
call fcn.004058ec
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x48b46a
xor eax, eax
test al, al
je 0x48b475
mov ebx, 0x15
jmp 0x48b481
mov ebx, 0x10
jmp 0x48b481
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4c7fb0]
call fcn.0048b1b8
mov eax, dword [ebp - 4]
call fcn.0048b1b8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00407210
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b4e0
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405480
lea eax, [ebp - 0xc]
mov edx, dword [0x4086c0]
call fcn.00406074
ret

Function at 0x4b0a54
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4b0aae
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b0a44
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004ae69c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004ae1b4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0ab5
lea eax, [ebp - 4]
call fcn.0040545c
ret
Function at 0x4b8d3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
xor edx, edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3f4], edx
mov dword [ebp - 0x3f8], eax
xor eax, eax
push ebp
push 0x4b8f00
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3f4]
mov eax, 0x4b8f14
call fcn.004b8ba4
lea eax, [ebp - 0x3f0]
call fcn.0040545c
lea eax, [ebp - 0x3fc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x3f4]
call fcn.004058ec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4b8ec1
xor eax, eax
push ebp
push 0x4b8eba
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x3e9
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 7
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
push 0x4b8f4c
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4b8e16
push ebp
mov eax, 0x4b8f68
call fcn.004b8c94
pop ecx
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x408]
mov eax, 0x4b8f74
call fcn.004b8ba4
mov eax, dword [ebp - 0x408]
call fcn.004058ec
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4b8ea0
push dword [ebp - 0x3f0]
push 0x4b8f98
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.004056cc
push dword [ebp - 0x40c]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.004057f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8ec1
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x3f8]
mov edx, dword [ebp - 0x3f0]
call fcn.004054b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8f07
lea eax, [ebp - 0x40c]
mov edx, 2
call fcn.00405480
lea eax, [ebp - 0x3f4]
mov edx, 2
call fcn.00405480
ret
Function at 0x4b9728
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058dc
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4b9890
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.00493180
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004931a0
mov ebx, eax
jmp 0x4b9862
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004056cc
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040b010
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409b3c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00409b3c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00405884
je 0x4b9842
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004056cc
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00409b3c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00409b3c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00405884
jne 0x4b9857
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.004931c0
mov ebx, eax
test ebx, ebx
jne 0x4b97a3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9897
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00405480
lea eax, [ebp - 4]
call fcn.0040545c
ret
Function at 0x4be088
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058dc
xor eax, eax
push ebp
push 0x4be11d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4be134
mov edx, dword [ebp - 4]
call fcn.00405774
push 0xff
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xff
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 8]
call fcn.004058ec
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.0040a474
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be124
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405480
ret

Function at 0x4be204
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058dc
xor eax, eax
push ebp
push 0x4be2de
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4be2f4
mov edx, dword [ebp - 4]
call fcn.00405774
mov eax, dword [ebp - 8]
call fcn.004058ec
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4be24e.0
jmp dword [eax*4 + 0x4be255]
mov eax, ebx
mov edx, 0x4be300
call fcn.004054b0
jmp 0x4be2c3
mov eax, ebx
mov edx, 0x4be310
call fcn.004054b0
jmp 0x4be2c3
mov eax, ebx
mov edx, 0x4be320
call fcn.004054b0
jmp 0x4be2c3
mov eax, ebx
mov edx, 0x4be330
call fcn.004054b0
jmp 0x4be2c3
mov eax, ebx
mov edx, 0x4be340
call fcn.004054b0
jmp 0x4be2c3
mov eax, ebx
mov edx, 0x4be350
call fcn.004054b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be2e5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405480
ret
Function at 0x4c0a0c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058dc
xor eax, eax
push ebp
push 0x4c0b4d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4c0b1d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004058ec
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040aa7c
test al, al
jne 0x4c0a8d
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.004038ac
lea eax, [ebp - 0x1d0]
call fcn.00403648
call fcn.004030e4
push dword [0x4cfe90]
push 0x4c0b64
push dword [0x4cfe94]
push 0x4c0b64
push dword [0x4cfe98]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.004057f0
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004bb7d4
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405c0c
call fcn.00403fa4
call fcn.004030e4
lea eax, [ebp - 0x1d0]
call fcn.00403974
call fcn.004030e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0b27
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0b54
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.00405480
lea eax, [ebp - 4]
call fcn.0040545c
ret
Function at 0x409881
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x40988b
repz ret
jmp fcn.0040e3ac

Function at 0x4125dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c1a2
and dword [ebp - 0x14], 0
cmp dword [0x46b4ac], 0
mov dword [ebp - 0x18], eax
jne 0x41268f
push 0x403764
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412737
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403758
push ebx
call edi
test eax, eax
je 0x412737
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403748
push ebx
mov dword [0x46b4ac], eax
call edi
push eax
call esi
push 0x403734
push ebx
mov dword [0x46b4b0], eax
call edi
push eax
call esi
push 0x403718
push ebx
mov dword [0x46b4b4], eax
call edi
push eax
call esi
mov dword [0x46b4bc], eax
test eax, eax
je 0x41268f
push 0x403700
push ebx
call edi
push eax
call esi
mov dword [0x46b4b8], eax
mov eax, dword [0x46b4b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4126e8
cmp dword [0x46b4bc], ecx
je 0x4126e8
push eax
call esi
push dword [0x46b4bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4126e8
test ebx, ebx
je 0x4126e8
call edi
test eax, eax
je 0x4126df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4126df
test byte [ebp - 8], 1
jne 0x4126e8
or dword [ebp + 0x10], 0x200000
jmp 0x41271b
mov eax, dword [0x46b4b0]
cmp eax, dword [ebp - 0x18]
je 0x41271b
push eax
call esi
test eax, eax
je 0x41271b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41271b
mov eax, dword [0x46b4b4]
cmp eax, dword [ebp - 0x18]
je 0x41271b
push eax
call esi
test eax, eax
je 0x41271b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b4ac]
call esi
test eax, eax
je 0x412737
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412739
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409881
leave
ret
Function at 0x414590
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413bb0
cmp dword [0x80b604], 0x37
jne 0x414621
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x403f68
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40402c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x80c1e8]
mov edx, dword [0x808664]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x40d7f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d8c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405424
lea eax, [ebp - 4]
call fcn.00405874
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040581c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d8b0
mov eax, ebx
call fcn.00402ec8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d8a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040581c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d893
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d8d8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d893
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d8b0
mov eax, dword [ebp - 0x10]
call fcn.00402ee4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d8cd
lea eax, [ebp - 4]
call fcn.0040538c
ret
Function at 0x41f720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5a49ec
cmp dword [edi], 0
jne 0x41f79c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5a49e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x488b0c
mov ecx, 2
call fcn.00403168
mov edx, 0x41f6f8
lea eax, [esi + 5]
call fcn.0041f718
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f718
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41f771
mov dword [0x5a49e8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4245b8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x424642
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edx
mov edx, 0x80000301
call fcn.00425114
mov esi, eax
cmp esi, 0xffffffff
setne bl
test bl, bl
je 0x42462c
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
lea eax, [ebp - 4]
mov ecx, edi
xor edx, edx
call fcn.0040547c
lea eax, [ebp - 4]
call fcn.0040587c
mov edx, eax
mov ecx, edi
mov eax, esi
call fcn.00422b9c
mov eax, esi
call fcn.0042515c
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004242a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424649
lea eax, [ebp - 4]
call fcn.0040538c
ret

Function at 0x424da8
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x1c], 0
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x424dc3
mov byte [ebx + 0x1c], 1
pop ebx
ret
cmp word [ebx + 0x3a], 0
je 0x424dd2
mov edx, ebx
mov eax, dword [ebx + 0x3c]
call dword [ebx + 0x38]
pop ebx
ret

Function at 0x427b44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040581c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x427b9c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x59f0b4]
mov dl, 1
mov eax, dword [0x427650]
call fcn.0040d040
call fcn.00404cf8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00427758
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4289f8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4289fe
ret