joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40102e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401070
lea eax, [esp + 0x10]
push 0x104
push eax
mov edi, 0x404028
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x10]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.PB.EXE
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x10]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push pe_nt_image_headers32
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
call ebp
test eax, eax
jne 0x4010e8
call esi
cmp eax, 2
je 0x4010e8
cmp eax, 3
je 0x4010e8
cmp eax, 0x13
je 0x4010e8
push 0x64
call ebx
jmp 0x4010ed
mov edi, 0x12c
inc edi
cmp edi, 0x12c
jl 0x4010c6
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret 0x10
Function at 0x401110
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4020f4
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x40404c], eax
xor eax, eax
mov al, byte [0x40404d]
mov dword [0x404058], eax
mov eax, dword [0x40404c]
shr dword [0x40404c], 0x10
and eax, 0xff
mov dword [0x404054], eax
shl eax, 8
add eax, dword [0x404058]
mov dword [0x404050], eax
call fcn.004020b0
test eax, eax
jne 0x401184
push 0x1c
call fcn.004012b0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00401ed0
call fcn.00401ec0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x405090], eax
call fcn.00401a70
mov dword [0x40402c], eax
test eax, eax
je 0x4011b7
cmp dword [0x405090], 0
jne 0x4011c1
push 0xffffffffffffffff
call fcn.00401310
add esp, 4
call fcn.004017f0
call fcn.00401700
call fcn.004012e0
mov esi, dword [0x405090]
mov al, byte [esi]
cmp al, 0x22
je 0x4011e8
cmp al, 0x20
jbe 0x401215
inc esi
cmp byte [esi], 0x20
ja 0x4011e0
jmp 0x401215
inc esi
cmp byte [esi], 0x22
je 0x401214
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x40120f
xor eax, eax
mov al, bl
push eax
call fcn.004016a0
add esp, 4
test eax, eax
je 0x401209
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4011f1
cmp byte [esi], 0x22
jne 0x401215
inc esi
cmp byte [esi], 0
je 0x401225
cmp byte [esi], 0x20
ja 0x401225
inc esi
cmp byte [esi], 0
jne 0x40121a
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x401249
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00401310
jmp 0x40128a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401350
Capabilities:
Terminate process

Disassembly:
cmp dword [0x404088], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40136e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x404084], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x404080], bl
jne 0x4013c8
cmp dword [0x405088], 0
je 0x4013b6
mov edi, dword [0x405084]
sub edi, 4
cmp edi, dword [0x405088]
jb 0x4013b6
mov eax, dword [edi]
test eax, eax
je 0x4013ab
call eax
sub edi, 4
cmp edi, dword [0x405088]
jae 0x4013a3
push 0x404014
push 0x404010
call fcn.00401400
add esp, 8
push 0x40401c
push 0x404018
call fcn.00401400
add esp, 8
test ebx, ebx
jne 0x4013ef
mov dword [0x404088], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x401a70
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x404130], ebx
jne 0x401abf
call esi
cmp eax, ebx
mov edi, eax
je 0x401a9d
mov dword [0x404130], 1
jmp 0x401abf
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x401ab5
mov dword [0x404130], 2
jmp 0x401abf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x404130], 1
jne 0x401b6e
test edi, edi
jne 0x401ae2
call esi
mov edi, eax
test edi, edi
jne 0x401ae2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x401afc
add esi, 2
cmp word [esi], 0
jne 0x401aea
add esi, 2
cmp word [esi], 0
jne 0x401aea
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x401b5d
push ebp
call fcn.00402460
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x401b5d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x401b4c
push ebx
call fcn.00402410
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x404130], 2
jne 0x401bf2
test ebx, ebx
jne 0x401b91
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x401b91
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x401ba6
inc ebp
cmp byte [ebp], 0
jne 0x401b98
inc ebp
cmp byte [ebp], 0
jne 0x401b98
sub ebp, ebx
inc ebp
push ebp
call fcn.00402460
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x401bcb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x402210
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x404360
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x402237
add eax, 8
inc ecx
cmp eax, 0x4043f0
jb 0x402228
cmp dword [ecx*8 + 0x404360], edx
lea ebx, [ecx*8]
jne 0x4023fb
cmp dword [0x404038], 1
je 0x4023b7
cmp dword [0x404038], 0
jne 0x40226e
cmp dword [0x40403c], 1
je 0x4023b7
cmp edx, 0xfc
je 0x4023fb
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4022ab
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4022ef
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4032e0
push ebp
call fcn.00402d10
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4032c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x404364]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00402c70
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x404f80], 0
je 0x4023cd
mov eax, dword [0x404f80]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4023d7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x404364]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x41a38e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x41a39d
pop dword [ebp - 0x2c]
mov eax, 0x93e9ef36
sub eax, 0x93a84b99
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3d70e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x4501
mov esi, eax
mov edx, 0x8f62cf35
add edx, 0x70e090cb
add edx, dword [ebp - 0x2c]
mov ebx, 0x63b2d7e
sub ebx, 0x230ca7eb
add dword [ebp - 0x14], 0xc31e3ce9
mov edi, dword [edx]
mov dword [ebp - 8], 0x956b3a9b
sub edi, ebx
xor dword [ebp - 0xc], edi
mov dword [esi], edi
sub dword [ebp - 0x24], 0xe91366be
add esi, 4
add edx, 4
loop 0x41a3f1
add eax, 0xc8f81aa2
add eax, 0x3708ec35
xor ebx, ebx
add ebx, eax
add eax, 0xa97ccec7
sub eax, 0xa97ccec2
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40118c
Capabilities:
Encode data using xor

Disassembly:
push 0x40122c
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], cl
pop ds
or byte [edi], bh
mov bl, 0xfb
sub byte [edx + edi*4 + 0x64], cl
out dx, al
pushal
dec eax
mov es, word [edi - 0x31]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
sub eax, 0x30303043
sub eax, 0x63616c65
jo 0x401239
outsb dx, byte [esi]
jne 0x401242
insb byte es:[di], dx
add byte [ebp + 0x23], bh
xor ch, byte [esi]
add byte [eax], al
add byte [eax], al
push eax
add byte [eax], al
add byte [edi - 0x4692f58d], bl
mov fs, word [ecx + 0x48]
mov bl, 0x79
xchg edi, eax
pop es
xchg ebp, eax
pushfd
lodsb al, byte [esi]
lodsd eax, dword [esi]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
sbb byte [ebx], 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add cl, dl
inc ecx
add al, byte [eax]
add byte [eax], al
add byte [eax], al
js 0x4011d1
inc eax
add byte [eax + eax], cl
add byte [esi + 0x42], dl
xor eax, 0x2a263621
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
or dword [eax + eax], eax
add byte [eax], al
add byte [eax], al
add al, dl
xor byte [eax], al
adc byte [eax + eax*2], 0
div eax
xor byte [eax], al
add bh, bh
invalid
Function at 0x408c70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push str.advapi32.dll
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x408c9b
push str.advapi32.dll
call fcn.00409360
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegOpenKeyExW
push edi
call ebx
push str.RegCreateKeyExW
push edi
mov dword [esi + 4], eax
call ebx
push str.RegQueryValueExW
push edi
mov dword [esi + 8], eax
call ebx
push str.RegSetValueExW
push edi
mov dword [esi + 0x10], eax
call ebx
push str.RegEnumKeyExW
push edi
mov dword [esi + 0x14], eax
call ebx
push str.RegEnumValueW
push edi
mov dword [esi + 0x18], eax
call ebx
push str.RegDeleteValueW
push edi
mov dword [esi + 0x1c], eax
call ebx
push str.RegCloseKey
push edi
mov dword [esi + 0x20], eax
call ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00408bf0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x409260
Capabilities:
Get file attributes

Disassembly:
push esi
xor esi, esi
push edi
cmp dword [0x460a88], esi
jne 0x40929b
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x409291
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x460a84], eax
mov dword [0x460a88], 1
mov eax, dword [0x460a84]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4092b4
push ebx
push eax
call edi
mov esi, eax
test esi, esi
jne 0x4092f2
mov eax, dword [0x460a8c]
test eax, eax
jne 0x4092eb
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4092d5
mov eax, dword [0x453a6c]
push eax
call dword [0x453a68]
jmp 0x4092e2
mov ecx, dword [str.Kernel32.dll]
push ecx
call dword [0x453a60]
test eax, eax
je 0x4092f2
mov dword [0x460a8c], eax
push ebx
push eax
call edi
pop edi
pop esi
ret
pop edi
mov eax, esi
pop esi
ret
Function at 0x40b3f0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
push str.Floppy
xor edi, edi
push eax
mov dword [ebp - 0x46c], edi
call fcn.0042fa18
add esp, 8
test eax, eax
setne al
test al, al
jne 0x40b62b
push esi
push 0x12
push 0
push 0
push 0x44fe50
call dword [0x461008]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b619
xor eax, eax
push ebx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x43c]
push eax
xor ebx, ebx
push ebx
push 0x44fe50
push ebx
mov edi, 0x1c
push esi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x464], edi
call dword [0x46100c]
test eax, eax
je 0x40b5fb
jmp 0x40b4a5
mov edi, 0x1c
lea ecx, [ebp - 0x464]
push ecx
push ebx
push 0x44fe50
push 0
push esi
call dword [0x46100c]
push 0
lea edx, [ebp - 0x468]
push edx
push 0
push 0
lea eax, [ebp - 0x464]
push eax
push esi
mov dword [ebp - 0x468], 0
call dword [0x461010]
mov ecx, dword [ebp - 0x468]
test ecx, ecx
je 0x40b5c0
cmp ecx, 0x400
ja 0x40b5c0
xor eax, eax
mov dword [ebp - 0x420], eax
lea edx, [ebp - 0x420]
push edx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x468]
push eax
push ecx
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x464]
push edx
push esi
mov dword [ebp - 0x404], 6
mov dword [ebp - 0x420], edi
call dword [0x461010]
test eax, eax
je 0x40b5c0
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b5c0
push 0
lea ecx, [ebp - 0x470]
push ecx
push 0xc
lea edx, [ebp - 0x448]
push edx
push 0
push 0
push 0x2d1080
push edi
mov dword [ebp - 0x470], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40b5b9
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x444]
je 0x40b5e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x43c]
push ecx
inc ebx
push ebx
push 0x44fe50
push 0
push esi
call dword [0x46100c]
test eax, eax
jne 0x40b4a0
jmp 0x40b5fb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [0x461014]
mov edx, dword [ebp - 0x40c]
mov dword [ebp - 0x46c], edx
push esi
call dword [0x461014]
mov eax, dword [ebp - 0x46c]
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret
pop esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0042bd88
mov esp, ebp
pop ebp
ret
Function at 0x40f8e0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push edi
mov ebx, ecx
mov edi, edx
test esi, esi
je 0x40f924
mov dword [0x461028], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0xffffffffffffffff
push 0
push edi
mov ecx, 0x45edb4
mov dword [0x461030], eax
call fcn.00409cf0
push 0
push 0
push 0
push 0x414f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.004234d0
test eax, eax
je 0x40f93b
mov edi, str.time.windows.com
call fcn.0040f990
test eax, eax
jne 0x40f956
call fcn.004234d0
test eax, eax
je 0x40f952
mov edi, str.time.nist.gov
call fcn.0040f990
test eax, eax
jne 0x40f956
xor edi, edi
jmp 0x40f95b
mov edi, 1
test esi, esi
je 0x40f97f
mov eax, dword [0x46102c]
mov dword [0x461028], 1
test eax, eax
je 0x40f97f
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x413270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x454e20
push eax
xor bl, bl
call fcn.0042cd1d
mov esi, eax
add esp, 8
test esi, esi
je 0x4132b8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x4132a9
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.0042cbe5
add esp, 0x10
push esi
call fcn.0042ca1a
add esp, 4
pop esi
mov al, 1
pop ebx
pop ebp
ret
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x414f90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
push esi
xor bl, bl
call fcn.0042f392
add esp, 8
test eax, eax
jne 0x415043
push 0x454e48
push esi
call fcn.0042cd1d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x415030
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x414fde
mov esi, dword [ebp - 0x24]
push esi
mov ecx, edi
call fcn.0040d950
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x414ff9
push 0
push eax
push ebx
call fcn.0042f87a
add esp, 0xc
test esi, esi
je 0x415014
mov eax, dword [edi]
push ebx
push esi
push 1
push eax
call fcn.0042f278
add esp, 0x10
push eax
mov ecx, edi
call fcn.0040d950
push ebx
call fcn.0042ca1a
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042bd88
mov esp, ebp
pop ebp
ret

Function at 0x415060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448618
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
lea ecx, [ebp - 0x44]
push ecx
push esi
mov dword [ebp - 4], ebx
call fcn.0042f392
add esp, 8
test eax, eax
jne 0x415139
push 0x454e48
push esi
call fcn.0042cd1d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x415139
mov edi, dword [ebp - 0x30]
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040d950
cmp edi, ebx
jbe 0x4150f3
mov edx, dword [ebp - 0x5c]
push esi
push edi
push 1
push edx
call fcn.0042f278
add esp, 0x10
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040d950
push esi
call fcn.0042ca1a
add esp, 4
lea eax, [ebp - 0x45]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x45], bl
call fcn.00413a80
mov esi, dword [ebp - 0x5c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415113
mov ecx, dword [ebp - 0x4c]
sub eax, edx
push eax
push esi
call fcn.00409840
mov al, 1
cmp esi, ebx
je 0x41513b
push esi
call fcn.0042b39e
add esp, 4
mov al, 1
jmp 0x41513b
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret