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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
call fcn.00403720
cmp dword [0x413540], 0xffffffff
je 0x40383f
mov eax, dword [0x413540]
push eax
call fcn.00403b41
add esp, 4
mov dword [0x413a5c], 0
cmp dword [0x4130d8], 0
jne 0x403ac2
cmp dword [ebp + 8], 0
jne 0x403879
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x100]
mov dword [ebp + 8], edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x413540], eax
mov ecx, dword [0x413a5c]
add ecx, 1
mov dword [0x413a5c], ecx
cmp dword [0x413540], 0xffffffff
je 0x403aaa
mov dword [ebp - 0x110], 0
cmp dword [0x4130e0], 0
je 0x4038d7
mov edx, dword [0x4130e0]
mov dword [ebp - 0x120], edx
jmp 0x4038eb
push 0
mov eax, dword [0x413540]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x10c], ecx
mov dword [0x4130e0], 0
mov eax, dword [ebp - 0x10c]
xor edx, edx
mov ecx, 0x28
div ecx
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x20
jle 0x403929
mov dword [ebp - 0x11c], 0x20
mov edx, dword [ebp - 0x11c]
imul edx, edx, 0x28
mov dword [ebp - 0x108], edx
push 0
push 0
mov eax, dword [ebp - 0x10c]
sub eax, dword [ebp - 0x108]
push eax
mov ecx, dword [0x413540]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x413a48], 0
push 0
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x108]
push eax
mov ecx, 0x413a4c
mov edx, dword [ebp - 0x11c]
imul edx, edx, 0x28
sub ecx, edx
push ecx
mov eax, dword [0x413540]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x413a5c]
add ecx, 1
mov dword [0x413a5c], ecx
mov edx, dword [ebp - 0x114]
cmp edx, dword [ebp - 0x108]
jne 0x403a8a
mov eax, dword [0x413a5c]
add eax, 1
mov dword [0x413a5c], eax
mov dword [ebp - 0x118], 0
jmp 0x4039d6
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x118]
cmp edx, dword [ebp - 0x11c]
jge 0x403a8a
mov eax, 0x1f
sub eax, dword [ebp - 0x118]
imul eax, eax, 0x28
add eax, 0x41354c
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
imul ecx, ecx, 0x28
mov dword [ebp - 0x108], ecx
push 0x40a3b8
call section..text
add esp, 4
push 0
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x104]
push eax
call fcn.00401207
add esp, 0xc
cmp dword [0x413a48], 0x474c5545
jne 0x403a60
mov dword [ebp - 0x110], 1
movsx ecx, byte [0x413a24]
and ecx, 0x1f
mov dword [0x413544], ecx
jmp 0x403a8a
push 0x40a3c0
call section..text
add esp, 4
push 1
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x104]
push eax
call fcn.00401207
add esp, 0xc
jmp 0x4039c7
cmp dword [ebp - 0x110], 0
jne 0x403aaa
mov ecx, dword [0x413540]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x413540], 0xffffffff
xor edx, edx
cmp dword [0x413540], 0xffffffff
sete dl
and edx, dword [0x4130dc]
mov dword [0x4130d8], edx
mov eax, dword [0x413540]
mov esp, ebp
pop ebp
ret
Function at 0x403b41
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00403720
cmp dword [ebp + 8], 0xffffffff
je 0x403bf5
mov eax, dword [ebp + 8]
cmp eax, dword [0x413540]
jne 0x403b77
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x413540], 0xffffffff
jmp 0x403bf5
mov edx, dword [ebp + 8]
cmp edx, dword [0x413a60]
jne 0x403bf5
cmp dword [0x413a64], 0
je 0x403be1
mov eax, 0x413f6c
mov ecx, dword [0x413a64]
imul ecx, ecx, 0x28
sub eax, ecx
mov dword [ebp - 4], eax
mov edx, dword [0x413a64]
imul edx, edx, 0x28
mov dword [ebp - 0xc], edx
push str.GLUE
call section..text
add esp, 4
push 1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401207
add esp, 0xc
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x413a60], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x403f25
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov edx, dword [0x4130d0]
and edx, 0x1000
neg edx
sbb edx, edx
inc edx
mov dword [0x413f74], edx
mov dword [0x418384], 0
cmp dword [ebp - 0xc], 0
je 0x404108
cmp dword [ebp - 0xc], 0x4000
jbe 0x403f8c
mov dword [ebp - 0x20], 0x4000
jmp 0x403f92
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x14]
and eax, 0x2000000
test eax, eax
je 0x403fd3
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0x413f80
call fcn.00406810
add esp, 0xc
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
jmp 0x403fec
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x413f80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 8]
je 0x404000
mov dword [ebp - 0x14], 0
jmp 0x404108
mov eax, dword [ebp + 0x14]
and eax, 0x8002000
test eax, eax
je 0x404027
mov ecx, dword [ebp + 0x14]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0x413f80
call fcn.004061d0
add esp, 0xc
cmp dword [0x4130c4], 0
je 0x404065
mov eax, dword [ebp - 0x18]
push eax
push 0x413f80
call dword [0x4130c4]
add esp, 8
test eax, eax
jne 0x404065
mov dword [0x4130d0], 0
cmp dword [0x418384], 0
je 0x404065
mov dword [ebp - 0x14], 0
jmp 0x404108
mov ecx, dword [ebp + 0x14]
and ecx, 0xff
test ecx, ecx
je 0x404099
mov edx, dword [ebp + 0x14]
and edx, 0x2000
test edx, edx
jne 0x404099
mov eax, dword [ebp + 0x14]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0x413f80
call fcn.004061d0
add esp, 0xc
mov edx, dword [ebp + 0x14]
and edx, 0x1000000
test edx, edx
je 0x4040cc
mov eax, dword [ebp - 8]
push eax
push 0x413f80
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00406810
add esp, 0xc
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x4040e5
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0x413f80
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
add edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
je 0x404103
mov dword [ebp - 0x14], 0
jmp 0x404108
jmp 0x403f70
mov dword [0x4130d4], 0
cmp dword [0x413f74], 0
jne 0x404122
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x404604
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
call fcn.00403720
cmp dword [0x4130d8], 0
jne 0x40479c
cmp dword [0x413540], 0xffffffff
je 0x40477d
push 0x33
mov eax, dword [ebp + 8]
push eax
call fcn.00403caf
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40477d
mov dword [ebp - 0xc], 0xffffffff
cmp dword [0x40a3b4], 0xffffffff
je 0x404666
mov ecx, dword [0x40a3b4]
mov dword [ebp - 0xc], ecx
jmp 0x40467b
cmp dword [ebp + 0xc], 0
je 0x40467b
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040378a
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40477d
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 1]
cmp ecx, 0xffffffff
jne 0x4046d6
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404506
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4046d4
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp eax, dword [ebp - 0x14]
sete cl
mov dword [ebp - 4], ecx
jmp 0x40474e
push 0
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x13]
push eax
mov ecx, dword [0x413540]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x17]
mov dword [ebp - 0x10], eax
cmp dword [0x418388], 0
je 0x404711
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x418388]
add esp, 8
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 1]
test ecx, ecx
je 0x404725
mov dword [ebp - 0x2c], 0x200
jmp 0x404730
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx + 2]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [0x413540]
push ecx
call fcn.00404129
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [0x40a3b4], 0xffffffff
jne 0x40477d
cmp dword [0x413528], 0
je 0x404773
cmp dword [ebp - 4], 0
je 0x404773
mov edx, dword [ebp - 0xc]
push edx
call dword [0x413528]
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4130d4], 0
xor ecx, ecx
cmp dword [ebp - 4], 0
sete cl
and ecx, dword [0x4130dc]
mov dword [0x4130d8], ecx
mov dword [0x418388], 0
mov dword [0x413528], 0
mov dword [0x41352c], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40514a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 1
push str.3U3Gh
call fcn.00404eb7
add esp, 4
call fcn.00405b55
test eax, eax
je 0x40518a
push 0
push 0x4133c0
push 0x40a5b0
push 0
call fcn.00405c71
add esp, 0x10
xor eax, eax
jmp 0x4053b0
push 0x40a3f0
push 0x4133c0
call fcn.00406200
add esp, 8
push 0x4133c0
call fcn.00406450
add esp, 4
mov byte [eax + 0x4133bc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x40a6d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x405201
push str.Version
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4051f7
call dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
cmp dword [ebp - 0x10], 2
setl dl
mov dword [0x413520], edx
movsx eax, byte [0x40a4f0]
test eax, eax
je 0x405272
push 0x40a778
push 0x40a630
call fcn.00406b80
add esp, 8
test eax, eax
jne 0x405247
push 0x40a77c
push 0x40a650
call fcn.00406b80
add esp, 8
test eax, eax
je 0x405251
call fcn.0040543d
mov dword [ebp - 8], eax
jmp 0x405272
push 4
push 0x4133c0
push 0x40a4f0
push 0
call fcn.00405c71
add esp, 0x10
xor ecx, ecx
cmp eax, 6
sete cl
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x405301
movsx edx, byte [0x40a680]
test edx, edx
je 0x4052f4
movsx eax, byte [0x40a5f0]
test eax, eax
je 0x4052f4
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4052d3
push str.InitCommonControlsEx
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4052d3
mov dword [ebp - 0x24], 8
mov dword [ebp - 0x20], 0x20
lea edx, [ebp - 0x24]
push edx
call dword [ebp - 0x1c]
push 0
push 0x405529
mov eax, dword [0x413400]
push eax
push 0x3f2
mov ecx, dword [0x413524]
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x405301
call fcn.00402d30
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 1
cmp dword [0x40a748], 0
je 0x405319
call fcn.00405792
mov dword [ebp - 4], eax
cmp dword [0x413404], 0
je 0x40539c
cmp dword [0x40a748], 0
je 0x40539c
movsx edx, byte [0x40a684]
test edx, edx
jne 0x40539c
push 1
push 0x4133c0
push str.Ready_to_test_screensaver._nPress_OK__then_stop_moving_the_mouse.
push 0
call fcn.00405c71
add esp, 0x10
cmp eax, 1
jne 0x405388
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40a3f0
call fcn.004034cd
add esp, 4
mov dword [ebp - 0x28], eax
push 0x40a7ec
mov eax, dword [ebp - 0x28]
push eax
call fcn.00406210
add esp, 8
push 1
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40539a
cmp dword [ebp - 4], 0
je 0x40539a
push 0
push 0
call fcn.00403640
add esp, 8
jmp 0x4053ae
cmp dword [ebp - 4], 0
je 0x4053ae
push 0
push 0
call fcn.00403640
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405792
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov al, byte [0x40a684]
mov byte [ebp - 8], al
cmp byte [ebp - 8], 1
je 0x4057b4
cmp byte [ebp - 8], 2
je 0x4057cc
cmp byte [ebp - 8], 3
je 0x4057fb
jmp 0x405828
call fcn.0040339c
test eax, eax
jne 0x4057ca
push 1
push 0x40a6dc
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x405828
push 0x40a3f0
call fcn.004034cd
add esp, 4
mov dword [ebp - 4], eax
push 0x40a7f0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00406210
add esp, 8
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x405828
push 0x413420
call fcn.00405eaa
add esp, 4
test eax, eax
jne 0x405819
push 0x413420
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x405828
push 0x40a7f4
push 0x413420
call fcn.00405838
movsx eax, byte [0x40a684]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x405cf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov dword [ebp - 0x18c], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0x80000000
call fcn.00405f46
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405ea0
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x188]
push edx
call fcn.00406200
add esp, 8
push str._shellOpenCommand
lea eax, [ebp - 0x188]
push eax
call fcn.00406210
add esp, 8
push 0
lea ecx, [ebp - 0x188]
push ecx
push 0x80000000
call fcn.00405f46
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [0x413200], 0
je 0x405da5
xor edx, edx
cmp dword [ebp - 8], 0
setne dl
mov dword [ebp - 0x18c], edx
cmp dword [0x413204], 0
je 0x405da0
cmp dword [ebp - 0x18c], 0
je 0x405da0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x413204]
push ecx
call fcn.00406200
add esp, 8
jmp 0x405ea0
cmp dword [ebp - 8], 0
je 0x405ea0
push 0x40a83c
mov edx, dword [ebp - 8]
push edx
call fcn.00406ce0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405dd1
mov eax, dword [ebp - 4]
mov word [eax], 0x2020
push 0x40a840
mov ecx, dword [ebp - 8]
push ecx
call fcn.00406ce0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405e48
mov edx, dword [ebp - 4]
mov byte [edx + 1], 0x73
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x405e2e
mov edx, dword [ebp - 4]
movsx eax, byte [edx - 1]
cmp eax, 0x22
jne 0x405e11
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx - 1]
cmp eax, 0x20
jne 0x405e28
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x405e11
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x405e82
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x188]
push ecx
call fcn.00406200
add esp, 8
push 0x40a844
lea edx, [ebp - 0x188]
push edx
call fcn.00406210
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x188]
push ecx
call fcn.00406210
add esp, 8
push 1
lea edx, [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x405ea0
mov dword [ebp - 0x18c], 1
mov eax, dword [ebp - 0x18c]
mov esp, ebp
pop ebp
ret
Function at 0x405f46
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], 0
cmp dword [ebp - 8], 0
je 0x405fea
mov dword [ebp - 0xc], 0x100
lea eax, [ebp - 0xc]
push eax
push 0x413100
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x405fea
cmp dword [ebp - 4], 2
jne 0x405fe3
push 0x100
lea edx, [ebp - 0x110]
push edx
push 0x413100
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x110]
push eax
push 0x413100
call fcn.00406200
add esp, 8
mov dword [ebp + 0xc], 0x413100
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x406153
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x406185
xor eax, eax
jmp 0x4061c9
mov eax, dword [ebp + 0x10]
push eax
call fcn.00406450
add esp, 4
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4061ba
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4061c9
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4079a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a970
cmp edx, dword [eax]
je 0x4079c7
add eax, 8
inc ecx
cmp eax, 0x40aa00
jl 0x4079b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a970]
jne 0x407af5
mov eax, dword [0x413210]
cmp eax, 1
je 0x407acf
test eax, eax
jne 0x4079f8
cmp dword [0x40a8c4], 1
je 0x407acf
cmp edx, 0xfc
je 0x407af5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407a2f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406200
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407a72
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409478
push edi
call fcn.00406350
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406200
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406210
lea eax, [ebp - 0xa0]
push 0x409458
push eax
call fcn.00406210
push dword [esi + 0x40a974]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406210
push 0x12010
lea eax, [ebp - 0xa0]
push 0x409430
push eax
call fcn.00408806
add esp, 0x2c
pop edi
jmp 0x407af5
lea eax, [ebp + 8]
lea esi, [esi + 0x40a974]
push 0
push eax
push dword [esi]
call fcn.00406450
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 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40197d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401990
push esp
mov dword [ebp - 0x24], 0x4016f4
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a2f
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a10
pop ebp
ret 0x10
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x4085a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x4085b5
pop dword [ebp - 0xc]
mov eax, 0x4085b5
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x7e7a06c0
add dword [ebp - 0x1c], 0xcfd83e8b
mov dword [ebp - 0x18], 0x4f788d2d
add dword [ebp - 0x18], 0xe2babf18
mov dword [ebp - 0x14], 0xa4db6d10
add dword [ebp - 0x14], 0xa770d71e
mov dword [ebp - 0x10], 0x35c324a6
sub dword [ebp - 0x10], 0x35c324a6
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xbf30ccb1
add dword [ebp - 0x1c], 0xb5419ca5
mov dword [ebp - 0x18], 0xfee8cc56
add dword [ebp - 0x18], 0x4283951f
mov dword [ebp - 0x14], 0xb7e2ceba
add dword [ebp - 0x14], 0xab8c9db2
mov dword [ebp - 0x10], 0x12ba1d27
add dword [ebp - 0x10], 0xed45e2d9
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x4e1d0f9f
add eax, 0xb2252185
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x38cbc
push 0
call eax
mov ecx, 0x9f4c7da6
add ecx, 0x60b3b6ae
mov ebx, eax
mov edi, 0x2c6515dd
add edi, 0xd3de2e23
add edi, dword [ebp - 0xc]
mov edx, 0xe37dfbbb
add dword [ebp - 4], ebx
mov esi, dword [edi]
add dword [ebp - 4], 0x4b107aee
add esi, edx
add dword [ebp - 8], 0x8a623bc
mov dword [ebx], esi
xor dword [ebp - 4], 0xd83dcc20
add ebx, 0xe4c1075e
sub ebx, 0xe4c1075a
add edi, 0x79ca63e6
sub edi, 0x79ca63e2
loop 0x4086c7
add eax, 0xc423
xor ebx, ebx
add ebx, eax
add eax, 0x6cc21202
add eax, 0x933dee03
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret