joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402790
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80f0d8]
jne 0x40279a
repz ret
jmp fcn.00407b0e

Function at 0x407737
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403219
and dword [ebp - 4], 0
cmp dword [0x810f4c], 0
mov ebx, eax
jne 0x4077e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407899
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407899
push eax
call fcn.004031a7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x810f4c], eax
call esi
push eax
call fcn.004031a7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x810f50], eax
call esi
push eax
call fcn.004031a7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x810f54], eax
call esi
push eax
call fcn.004031a7
pop ecx
mov dword [0x810f5c], eax
test eax, eax
je 0x4077e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004031a7
pop ecx
mov dword [0x810f58], eax
mov eax, dword [0x810f58]
cmp eax, ebx
je 0x407840
cmp dword [0x810f5c], ebx
je 0x407840
push eax
call fcn.00403222
push dword [0x810f5c]
mov esi, eax
call fcn.00403222
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407840
test edi, edi
je 0x407840
call esi
test eax, eax
je 0x407837
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407837
test byte [ebp - 0xc], 1
jne 0x407840
or dword [ebp + 0x10], 0x200000
jmp 0x407879
mov eax, dword [0x810f50]
cmp eax, ebx
je 0x407879
push eax
call fcn.00403222
pop ecx
test eax, eax
je 0x407879
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407879
mov eax, dword [0x810f54]
cmp eax, ebx
je 0x407879
push eax
call fcn.00403222
pop ecx
test eax, eax
je 0x407879
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x810f4c]
call fcn.00403222
pop ecx
test eax, eax
je 0x407899
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40789b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
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.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1b4519d4
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x5aed0587
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40afe0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e704c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e7044]
sub esp, 4
test ebx, ebx
je 0x40b02b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40b024
test esi, esi
je 0x40b024
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b000
mov dword [esp], 0x4e704c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b210
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40b260
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40b338
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b29e
cmp eax, 4
jne 0x40b2c0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40b2ae
cmp edx, 4
je 0x40b2ae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b210

Function at 0x40b8b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b8e0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40b904
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41d2b0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a2abc], 0
jne 0x41d384
mov byte [0x4a2abc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41d41e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d37a
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a4169
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41d3b1
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41d34b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41d375
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41d419
Function at 0x41244f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004122ce

Function at 0x41682b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416199

Function at 0x416836
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004163d4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2c12325b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5a62660e
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x8721ff
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.0087230f
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call sub.gdiplus.dll_GdiplusStartup
mov dword [ebp - 0x48], 0x30
and dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x871ed4
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
mov eax, dword [section..data]
mov dword [ebp - 0x34], eax
push 0x74
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x30], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x20], str.MyClass
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [section..data]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Hello_World
push str.MyClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x8722ec
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x8722cc
push dword [ebp - 4]
call sub.gdiplus.dll_GdiplusShutdown
leave
ret

Function at 0x40a1e0
Capabilities:
Check mutex on windows

Disassembly:
int3
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x24
push edi
inc edi
jo 0x40a196
inc dword [edi]
mov esi, dword [ebp + 8]
mov cl, byte [ebp + 0xc]
mov dword [esi], eax
mov dword [eax], edi
mov eax, 0x4c0002
test ah, al
je 0x40a221
xchg esi, eax
push es
push 0
push 1
push 0
push 0
mov dword [eax - 0x39], 0x982a0035
call dword [0x70c0a0]
mov ecx, dword [esi]
mov edx, ebp
or bl, ch
cmp dword ss:[edi - 0x24], 8
cmp dword [edi - 0x24], 8
imul eax, dword [eax], 0x6d
jl 0x40a241
sbb eax, 0xcc283c2
push edx
adc eax, 0x40c087
dec esp
push es
mov dword [eax + 4], 0x21
jmp 0x40a257
mov ecx, dword [esi]
push 0
push ebx
add byte [edx - 0x7d], ch
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [esi]
mov dword [edx + 8], eax
mov esi, dword [ebp + 0x68]
loop 0x40a2b3
push edi
inc eax
add byte [eax - 0x80], ch
mov byte [0x8b560040], al
push es
push eax
call fcn.00405600
pop edi
xor eax, dword [ebx - 0x63da2a2]
jge 0x40a205
nop
pop ecx
nop
nop
nop
nop
nop
ret 0x9066
push ebp
rol byte [eax + 0x20], 0xff
salc
test eax, eax
jne 0x40a2c0
pop esi
aas
ret
call esi
add eax, 0xa3880
pop esi
pop ebp
jge 0x40a25b
nop
nop
nop
nop
nop
Function at 0x1000e115
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1000e124
pop dword [ebp - 0x10]
mov eax, 0xb15b81a7
add eax, 0x5ea55f7d
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x612fa69e
sub dword [ebp - 0x20], 0x12dd6153
mov dword [ebp - 0x1c], 0xe09c67b9
add dword [ebp - 0x1c], 0x5196e48c
mov dword [ebp - 0x18], 0x8d0c49f6
sub dword [ebp - 0x18], 0x40c005c8
mov dword [ebp - 0x14], 0x3535ce88
sub dword [ebp - 0x14], 0x3535ce88
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x89b00a0d
add dword [ebp - 0x20], 0xeac25f49
mov dword [ebp - 0x1c], 0x601a4be
sub dword [ebp - 0x1c], 0xc4954349
mov dword [ebp - 0x18], 0xe291fd9a
sub dword [ebp - 0x18], 0x7f22912e
mov dword [ebp - 0x14], 0xc942927b
sub dword [ebp - 0x14], 0xc942927b
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x5c25cdd4
sub eax, 0x4c200d94
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x5ac9d
push 0
call eax
mov ecx, 0x4b66
xor esi, esi
add esi, eax
mov edx, 0x73f5aea1
sub edx, 0x63eee4a1
add edx, dword [ebp - 0x10]
mov ebx, 0x251a60d8
add ebx, 0x3a94a80a
sub dword [ebp - 0xc], 0xbd15c303
mov edi, dword [edx]
add dword [ebp - 0xc], 0x680b480e
add edi, ebx
xor dword [ebp - 8], eax
mov dword [esi], edi
add dword [ebp - 8], 0x9f58584c
add esi, 4
add edx, 0xd831eb0a
add edx, 0x27ce14fa
loop 0x1000e23d
add eax, 0x11cc88b9
sub eax, 0x11cb684e
mov ebx, eax
add eax, 0x78001825
sub eax, 0x78001820
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

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

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, reloc.msvcrt.dll_setvbuf
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x417894
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213ec]
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.00410d87
and dword [ebp - 0x14], 0
cmp dword [0x81eb50], 0
mov dword [ebp - 0x18], eax
jne 0x417947
push 0x403f40
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4179ef
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f34
push ebx
call edi
test eax, eax
je 0x4179ef
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f24
push ebx
mov dword [0x81eb50], eax
call edi
push eax
call esi
push 0x403f10
push ebx
mov dword [0x81eb54], eax
call edi
push eax
call esi
push 0x403ef4
push ebx
mov dword [0x81eb58], eax
call edi
push eax
call esi
mov dword [0x81eb60], eax
test eax, eax
je 0x417947
push 0x403edc
push ebx
call edi
push eax
call esi
mov dword [0x81eb5c], eax
mov eax, dword [0x81eb5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4179a0
cmp dword [0x81eb60], ecx
je 0x4179a0
push eax
call esi
push dword [0x81eb60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4179a0
test ebx, ebx
je 0x4179a0
call edi
test eax, eax
je 0x417997
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x417997
test byte [ebp - 8], 1
jne 0x4179a0
or dword [ebp + 0x10], 0x200000
jmp 0x4179d3
mov eax, dword [0x81eb54]
cmp eax, dword [ebp - 0x18]
je 0x4179d3
push eax
call esi
test eax, eax
je 0x4179d3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4179d3
mov eax, dword [0x81eb58]
cmp eax, dword [ebp - 0x18]
je 0x4179d3
push eax
call esi
test eax, eax
je 0x4179d3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81eb50]
call esi
test eax, eax
je 0x4179ef
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4179f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b30b
leave
ret
Function at 0x4192b0
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x13a0
call fcn.00418150
cmp dword [0xcc8fa4], 0x37
push esi
jne 0x4193ca
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
lea ecx, [esp + 0xba4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov eax, dword [esp + 0xc]
push 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea ecx, [esp + 0x3a4]
push ecx
push 0x40404c
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x7a4]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x180]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x5c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
call esi
push 0x404064
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x2c], 0
call fcn.0040a630
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov edx, dword [0xccb708]
mov dword [esp + 8], edx
mov eax, 0x5d1
add dword [esp + 8], eax
mov eax, dword [esp + 8]
mov cl, byte [eax + edi]
mov edx, dword [0xcc779c]
mov byte [edx + edi], cl
pop esi
add esp, 0x13a0
ret
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x403134
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x40314a
sub ecx, 2
jne 0x40316c
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403173
cmp edx, dword [ebx + 8]
je 0x40317d
mov eax, 0x64
jmp 0x403178
mov eax, 0x67
jmp 0x403178
call sub.kernel32.dll_GetLastError
call fcn.00402914
pop ebx
ret

Function at 0x4034b4
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x4034d2
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
je 0x4034dc
jmp fcn.00402924
mov eax, 0x67
jmp fcn.00402914
ret

Function at 0x4035b4
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4035e7
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4035ee
cmp edx, dword [ebx + 8]
je 0x4035f8
mov eax, 0x65
jmp 0x4035f3
mov eax, 5
jmp 0x4035f3
call sub.kernel32.dll_GetLastError
call fcn.00402914
mov eax, ebx
pop ebx
ret

Function at 0x403af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ad020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b88
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b68
xor eax, eax
push ebp
push 0x403b61
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403ba4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b68
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ad020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ad020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404854
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b204c], 0
je 0x4048b5
cmp word [0x4b2220], 0xd7b2
jne 0x40487d
cmp dword [0x4b2228], 0
jbe 0x40487d
mov eax, 0x4b221c
call dword [0x4b2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ad090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4048dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ad030], 0
jne 0x4048d1
push 0
push 0x4ad088
push 0x4ad090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret