joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b36c8
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b37ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, ebx
and di, 0xff
movzx eax, di
cmp eax, 0x20
jge 0x4b3709
add eax, 0xfffffff8
sub eax, 2
jb 0x4b3743
sub eax, 3
je 0x4b3743
sub eax, 0xe
je 0x4b3743
jmp 0x4b3757
add eax, 0xffffffe0
sub eax, 9
jb 0x4b3723
add eax, 0xfffffffc
sub eax, 2
jb 0x4b3723
add eax, 0xffffffbf
sub eax, 0x18
jb 0x4b3743
jmp 0x4b3757
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyW
add eax, 0x100
jae 0x4b373a
call fcn.00403b80
mov edx, esi
call fcn.004b3534
jmp 0x4b3760
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyW
mov edx, esi
call fcn.004b3534
jmp 0x4b3760
mov edx, esi
mov eax, edi
call fcn.004b3438
test bh, 0x20
je 0x4b378c
push 0
push 0x10
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 4]
call fcn.004b3534
push dword [ebp - 4]
push 0x4b3814
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.00405700
test bh, 0x80
je 0x4b37b8
push 0
push 0x12
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 8]
call fcn.004b3534
push dword [ebp - 8]
push 0x4b3814
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.00405700
test bh, 0x40
je 0x4b37e4
push 0
push 0x11
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 0xc]
call fcn.004b3534
push dword [ebp - 0xc]
push 0x4b3814
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.00405700
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b3806
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405444
ret
Function at 0x4b4340
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4b44d2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 8]
mov dword [edx + 0xbc], eax
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x64]
test esi, esi
jne 0x4b4381
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4b439e
mov edi, dword [esi + 0x6c]
test edi, edi
je 0x4b4394
mov eax, edi
call fcn.0043ea80
mov dword [ebp - 4], eax
jmp 0x4b439e
mov eax, esi
call fcn.0043ea80
mov dword [ebp - 4], eax
mov eax, dword [0x4e6d7c]
cmp byte [eax], 0
je 0x4b44b7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x64], 0
je 0x4b44b7
test ebx, ebx
je 0x4b44b7
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x1c]
and ax, word [0x4b44e0]
movzx edx, word [0x4b44e4]
cmp dx, ax
jne 0x4b44b7
mov eax, dword [ebp - 8]
cmp byte [eax + 0x3e], 0
je 0x4b44b7
push ebp
call fcn.004b4130
pop ecx
test al, al
je 0x4b44b7
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004b3f44
mov eax, dword [ebp - 8]
call fcn.004415cc
test eax, eax
jne 0x4b4465
mov eax, dword [ebp - 8]
cmp word [eax + 0x60], 0
je 0x4b4465
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x64]
test esi, esi
je 0x4b443e
cmp dword [esi + 0x64], 0
jne 0x4b443e
mov eax, dword [esi + 4]
mov edx, dword [0x43d398]
call fcn.00403e3c
test al, al
jne 0x4b4465
push dword [ebp - 0xc]
push 0x4b44ec
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x60]
call fcn.004b36c8
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405700
push ebp
lea eax, [ebp - 0x14]
call fcn.004b418c
pop ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00405748
je 0x4b44b7
push ebp
mov eax, dword [ebp - 0xc]
call fcn.004b42a8
pop ecx
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x64]
cmp esi, dword [ebx + 0x34]
je 0x4b4497
cmp dword [esi + 0x6c], 0
je 0x4b44b7
mov eax, ebx
mov edx, dword [0x43d398]
call fcn.00403e3c
test al, al
je 0x4b44b7
cmp dword [ebx + 0x38], 0
je 0x4b44b7
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_DrawMenuBar
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b44d9
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405444
ret
Function at 0x4b5688
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b57fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e6d7c]
cmp byte [eax], 0
je 0x4b56de
mov eax, ebx
mov edx, dword [0x4462b0]
call fcn.00403e3c
test al, al
je 0x4b56f7
mov eax, ebx
call fcn.00452e9c
test al, al
je 0x4b56f7
mov eax, ebx
call fcn.00452afc
push eax
call sub.user32.dll_IsWindowUnicode
test eax, eax
jne 0x4b56f7
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0044aa4c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00405604
jmp 0x4b57d3
mov eax, ebx
mov edx, dword [0x4462b0]
call fcn.00403e3c
test al, al
jne 0x4b574c
xor edx, edx
mov eax, ebx
call fcn.004b55a8
mov edi, eax
test edi, edi
jne 0x4b5730
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0044aa4c
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00405604
jmp 0x4b57d3
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0044aa4c
mov edx, dword [ebp - 0xc]
mov ecx, esi
lea eax, [edi + 0x38]
call fcn.0048d568
jmp 0x4b57d3
mov edi, ebx
mov eax, edi
call fcn.00452e9c
test al, al
jne 0x4b577c
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0044aa4c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00405604
mov edx, dword [ebp - 0x10]
mov ecx, esi
mov eax, ebx
call fcn.004b55f4
jmp 0x4b57d3
mov eax, edi
call fcn.00452afc
push eax
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
add edx, 1
jno 0x4b5795
call fcn.00403b80
mov eax, esi
call fcn.00405994
mov eax, dword [esi]
call fcn.00405624
push eax
mov eax, dword [esi]
call fcn.00405614
push eax
mov eax, edi
call fcn.00452afc
push eax
call sub.user32.dll_GetWindowTextW
mov eax, dword [esi]
call fcn.00405624
mov edx, eax
sub edx, 1
jno 0x4b57cc
call fcn.00403b80
mov eax, esi
call fcn.00405994
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5805
lea eax, [ebp - 0x14]
call fcn.00404c30
lea eax, [ebp - 0x10]
call fcn.0040542c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c54
ret
Function at 0x4dd6c8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x4dd6e4
cmp dword [esi + 4], 0
je 0x4dd711
test byte [ebx + 0x55], 1
jne 0x4dd703
mov eax, ebx
call fcn.0044ea68
test eax, eax
jne 0x4dd703
mov edx, esi
mov eax, ebx
call fcn.00454b84
jmp 0x4dd802
mov edx, esi
mov eax, ebx
call fcn.0045022c
jmp 0x4dd802
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.0044a364
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x54]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4dd7fb
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00452afc
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, eax
mov edx, 0x14
mov eax, ebx
call fcn.0044bd3c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004dd6c8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x54]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00452afc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd802
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4de058
Capabilities:
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4de254
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x21
mov ecx, 0x4de264
mov edx, 0x4de26c
mov eax, dword [0x4e703c]
mov eax, dword [eax]
call fcn.0046a4c8
dec eax
jne 0x4de22c
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x36c]
call fcn.004c0e6c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00404ed4
xor edx, edx
mov eax, ebx
call fcn.004de3bc
mov eax, dword [0x4eda64]
mov edx, dword [eax]
call dword [edx + 0x8c]
call fcn.004a7098
push 0x4de298
call sub.kernel32.dll_OutputDebugStringA
xor edx, edx
xor eax, eax
call fcn.004a7fd8
push 0x4de2bc
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebx + 0x36c]
call fcn.004c13b8
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
cmp esi, 0
jl 0x4de1cd
mov eax, dword [ebx + 0x36c]
call fcn.004c13b8
lea ecx, [ebp - 0x14]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.00404ed4
mov eax, dword [ebp - 8]
call fcn.004050dc
push eax
call sub.kernel32.dll_OutputDebugStringA
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x36c]
call fcn.004c0e6c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00405604
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.00405630
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.00404ed4
mov eax, dword [ebp - 4]
call fcn.0040a21c
test al, al
je 0x4de179
mov eax, dword [ebp - 4]
call fcn.004a7db4
jmp 0x4de1c3
push 0x4de2e0
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
call fcn.004a7864
push 0x4de300
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
call fcn.004050dc
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4de1b9
push 0x4de32c
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4de1c3
push 0x4de350
call sub.kernel32.dll_OutputDebugStringA
dec esi
cmp esi, 0xffffffff
jne 0x4de104
push 0x4de374
call sub.kernel32.dll_OutputDebugStringA
xor edx, edx
mov al, 1
call fcn.004a7fd8
push 0x4de398
call sub.kernel32.dll_OutputDebugStringA
call fcn.004a70ac
mov dl, 1
mov eax, ebx
call fcn.004de3bc
mov eax, dword [0x4eda64]
mov edx, dword [eax]
call dword [edx + 0x8c]
mov eax, dword [ebx + 0x36c]
mov edx, dword [eax]
call dword [edx + 0xe8]
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00405604
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x36c]
call fcn.004c0db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de25b
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00405444
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c54
ret
Function at 0x4e0268
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004050cc
mov eax, dword [ebp - 8]
call fcn.004050cc
xor eax, eax
push ebp
push 0x4e0328
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00452afc
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], 2
lea eax, [ebp - 0x2c]
mov ecx, 0x4e0340
mov edx, dword [ebp - 4]
call fcn.00404f64
mov eax, dword [ebp - 0x2c]
call fcn.004050dc
mov dword [ebp - 0x1e], eax
lea eax, [ebp - 0x30]
mov ecx, 0x4e0340
mov edx, dword [ebp - 8]
call fcn.00404f64
mov eax, dword [ebp - 0x30]
call fcn.004050dc
mov dword [ebp - 0x1a], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e032f
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404c54
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c54
ret
Function at 0x4e30f8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x4e0d58
call fcn.00407088
xor eax, eax
push ebp
push 0x4e324d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e703c]
mov eax, dword [eax]
call fcn.0046a170
call fcn.0040327c
dec eax
jne 0x4e3226
lea edx, [ebp - 0x18]
mov eax, 1
call fcn.004032dc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004093d0
mov eax, dword [ebp - 0x14]
call fcn.004a730c
test al, al
je 0x4e3226
push 0x4e325c
push 0
call sub.user32.dll_FindWindowA
mov ebx, eax
xor eax, eax
mov dword [0x4eda6c], eax
push 0x4eda6c
call sub.aratekrw.dll_GetDeviceNum
test eax, eax
jne 0x4e31a7
cmp dword [0x4eda6c], 1
jle 0x4e31a7
mov eax, 0x4e3278
call fcn.004a6fc0
mov eax, dword [0x4e703c]
mov eax, dword [eax]
call fcn.0046a3c8
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00409dac
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4e32b0
call fcn.00404f64
mov eax, dword [ebp - 0x1c]
call fcn.004050dc
push eax
call sub.kernel32.dll_OutputDebugStringA
test ebx, ebx
jne 0x4e3232
mov eax, dword [0x4e703c]
mov eax, dword [eax]
mov edx, 0x4e32bc
call fcn.00469c28
mov ecx, dword [0x4e71c8]
mov eax, dword [0x4e703c]
mov eax, dword [eax]
mov edx, dword [0x4de4b8]
call fcn.0046a188
mov ecx, dword [0x4e7170]
mov eax, dword [0x4e703c]
mov eax, dword [eax]
mov edx, dword [0x4ddadc]
call fcn.0046a188
mov eax, dword [0x4e703c]
mov eax, dword [eax]
call fcn.0046a2c0
jmp 0x4e3232
mov eax, dword [0x4e703c]
mov eax, dword [eax]
call fcn.0046a3c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3254
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404c54
ret
Function at 0x4117bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x48ab18
cmp edx, dword [eax]
je 0x4117df
add eax, 8
inc ecx
cmp eax, 0x48aba8
jl 0x4117d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x48ab18]
jne 0x41190d
mov eax, dword [0x48aecc]
cmp eax, 1
je 0x4118e7
test eax, eax
jne 0x411810
cmp dword [0x48aa68], 1
je 0x4118e7
cmp edx, 0xfc
je 0x41190d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411847
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411e70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411fe0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41188a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411fe0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414458
push edi
call fcn.00413380
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411e70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411e80
lea eax, [ebp - 0xa0]
push 0x414438
push eax
call fcn.00411e80
push dword [esi + 0x48ab1c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411e80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004132f1
add esp, 0x2c
pop edi
jmp 0x41190d
lea eax, [ebp + 8]
lea esi, [esi + 0x48ab1c]
push 0
push eax
push dword [esi]
call fcn.00411fe0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40bf80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426900]
jne 0x40bf8a
repz ret
jmp fcn.004114d0
Function at 0x41b6d5
Capabilities:
Create directory
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x136c
call fcn.0040e160
cmp dword [0x43a9cc], 0x37
jne 0x41b7c8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
lea eax, [ebp - 0x924]
push eax
lea eax, [ebp - 0x1248]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x423d5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x1368]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push 0
push 0x423d70
push 0
push 0x423da8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x920]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
push 0
lea eax, [ebp - 0xa48]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0
push 0x423e08
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x423e48
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
push 0x423ec8
push 0
push 0x423f20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
and dword [ebp - 4], 0
mov eax, dword [0x43b0c8]
add dword [ebp - 4], eax
mov eax, 0x8c456
add dword [ebp - 4], eax
mov eax, dword [0x438a3c]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 8]
mov cl, byte [ecx]
mov byte [eax], cl
leave
ret 4
Function at 0x41bd56
Capabilities:
Allocate thread local storage
Delete file
Get disk information
Manipulate console buffer
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc68
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x43a9cc], 0x516
jne 0x41bdfc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shr eax, 3
mov dword [ebp - 0xc], eax
and dword [ebp - 8], 0
jmp 0x41be18
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jae 0x41be9f
cmp dword [0x43a9cc], 0x29
jne 0x41be34
push 0x423cfc
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shl eax, 1
mov dword [ebp - 0x10], eax
cmp dword [0x43a9cc], 0x1c
jne 0x41be88
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0
lea eax, [ebp - 0xc68]
push eax
push 0x423d10
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
and dword [ebp - 0x464], 0
xor eax, eax
lea edi, [ebp - 0x460]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*4]
push eax
call fcn.0041ba52
jmp 0x41be11
pop edi
leave
ret 0xc
Function at 0x402f5e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f8b
mov ecx, dword [0x42f4b8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x420c6c], eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403089
cmp eax, edi
jl 0x403082
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409024]
call ebx
test eax, eax
je 0x40307f
cmp dword [ebp - 4], esi
jne 0x40307f
push dword [ebp + 8]
add dword [0x420c6c], esi
call fcn.00403089
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403082
cmp dword [ebp + 0x10], edi
jne 0x40304e
cmp dword [ebp + 8], edi
jle 0x40307a
mov esi, 0x41cc28
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402ffe
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409024]
call ebx
test eax, eax
je 0x40307f
cmp edi, dword [ebp - 4]
jne 0x40307f
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40304a
cmp dword [ebp + 0x14], edi
jne 0x40304a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x420c6c], eax
cmp dword [ebp + 8], 0
jg 0x402ff1
jmp 0x40307a
push 0xfffffffffffffffe
jmp 0x403081
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403059
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409024]
call ebx
test eax, eax
je 0x40307f
mov eax, dword [ebp - 4]
add dword [0x420c6c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403082
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403089
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x420c6c]
mov edi, eax
sub esi, dword [0x40b064]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x40325f
push dword [0x428c7c]
call fcn.0040329c
push ebp
push ebp
push dword [0x40b064]
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x428c78], esi
mov dword [0x420c68], ebp
mov eax, dword [0x420c70]
mov ebx, 0x4000
sub eax, dword [0x428c7c]
cmp eax, ebx
jg 0x4030fc
mov ebx, eax
mov esi, 0x41cc28
push ebx
push esi
call fcn.0040326a
test eax, eax
je 0x40322a
add dword [0x428c7c], ebx
mov dword [0x40b068], esi
mov dword [0x40b06c], ebx
cmp dword [0x42f468], ebp
je 0x40318d
cmp dword [0x42f500], ebp
jne 0x40318d
cmp dword [esp + 0x10], ebp
je 0x40315a
mov eax, dword [0x428c78]
push ebp
sub eax, dword [0x420c6c]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b064]
mov dword [0x420c68], eax
call fcn.00405eab
jmp 0x40318d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x40318d
mov eax, dword [0x42f464]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402ba5
push ebp
push 0x6f
push dword [0x42f460]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40b068
mov dword [0x40b070], 0x414c28
mov dword [0x40b074], 0x8000
call fcn.00405f4c
test eax, eax
jl 0x403233
mov esi, dword [0x40b070]
mov eax, 0x414c28
sub esi, eax
je 0x4031f4
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40322f
cmp esi, dword [esp + 0x14]
jne 0x40322f
add dword [0x40b064], esi
cmp dword [0x40b06c], ebp
jne 0x403122
jmp 0x403200
cmp dword [0x40b06c], ebp
jne 0x403233
cmp ebx, ebp
je 0x403233
mov eax, dword [0x420c6c]
mov ecx, eax
sub ecx, dword [0x40b064]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030e6
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403238
or eax, 0xffffffff
jmp 0x403261
push 0xfffffffffffffffe
jmp 0x403235
push 0xfffffffffffffffd
pop eax
jmp 0x403261
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x40325f
mov eax, dword [0x428c78]
push ebp
push ebp
push 0x113
push esi
mov dword [0x420c68], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4053ff
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42c8d0], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405423
test al, 0x10
jne 0x405426
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42c8d0
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405451
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8