joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023436
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002345a
xor eax, eax
jmp 0x10023596
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10023478
xor eax, eax
jmp 0x10023596
push 0x939
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.10022de8
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x1002349b
xor eax, eax
jmp 0x10023596
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1907
push 0x9bf
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x11c4
call fcn.100232ea
add esp, 0x24
push 0xc33
push 0x4342
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x723
push 0x736a
push 0x6ad5
push 1
lea eax, [ebp - 4]
push eax
call fcn.100232ea
add esp, 0x24
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x10023515
push 0
push dword [ebp - 4]
push dword [ebp - 0x14]
call fcn.1001e428
add esp, 0xc
push dword [ebp - 4]
call fcn.10022c9a
pop ecx
test eax, eax
jne 0x10023526
xor eax, eax
jmp 0x10023596
push 1
lea eax, [ebp - 4]
push eax
push 0x1b7b
call fcn.100233ad
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002357e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10023558
xor eax, eax
jmp 0x10023596
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10023571
xor eax, eax
jmp 0x10023596
push 1
lea eax, [ebp - 4]
push eax
call fcn.100233f8
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002358f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10023593
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10079f27
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10084348]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006acec
mov dword [ebp - 0x14], eax
cmp dword [0x111810ec], esi
jne 0x1007a01a
push 0x800
push esi
push 0x10007a34
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10079fa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007a0fa
push esi
push esi
push 0x10007a34
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007a0fa
push 0x10007a4c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007a0fa
push eax
call ebx
push 0x10007a58
push edi
mov dword [0x111810ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007a68
push edi
mov dword [0x111810f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007a7c
push edi
mov dword [0x111810f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x111810fc], eax
test eax, eax
je 0x1007a017
push 0x10007a98
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x111810f8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007a03f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007a032
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007a054
push 4
pop eax
jmp 0x1007a0fc
cmp dword [ebp - 0x14], esi
je 0x1007a054
push dword [0x111810ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007a039
mov eax, dword [0x111810f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007a0b2
cmp dword [0x111810fc], edi
je 0x1007a0b2
push eax
call ebx
push dword [0x111810fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007a0b2
test eax, eax
je 0x1007a0b2
call ecx
test eax, eax
je 0x1007a0a7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007a0a7
test byte [ebp - 8], 1
jne 0x1007a0b2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007a0e2
mov eax, dword [0x111810f0]
cmp eax, edi
je 0x1007a0df
push eax
call ebx
test eax, eax
je 0x1007a0df
call eax
mov esi, eax
test esi, esi
je 0x1007a0df
mov eax, dword [0x111810f4]
cmp eax, edi
je 0x1007a0df
push eax
call ebx
test eax, eax
je 0x1007a0df
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x111810ec]
call ebx
test eax, eax
je 0x1007a0fa
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007a0fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Create tcp socket
Get hostname
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x154
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
push 0x40
push eax
or ebx, 0xffffffff
call sub.WSOCK32.dll_gethostname
push 0x406050
call sub.libwpwr.dll_wpwrGetEnv
mov esi, eax
add esp, 4
test esi, esi
jne 0x40104f
mov ecx, dword [0x406044]
mov edx, dword [0x406048]
mov ax, word [0x40604c]
lea esi, [esp + 0x64]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov word [esp + 0x6c], ax
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x40106e
push 2
lea ecx, [esp + 0x14]
push 4
push ecx
call sub.WSOCK32.dll_gethostbyaddr
jmp 0x401074
push esi
call sub.WSOCK32.dll_gethostbyname
mov edx, eax
test edx, edx
je 0x40109a
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [edx]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
mov ebp, dword [esp + 0x168]
test ebp, ebp
je 0x4010bb
push 1
push 0x22000000
mov edi, 6
call sub.WINRPC32.dll_Ordinal_100
add esp, 8
jmp 0x4010bd
xor edi, edi
push 0
push 0
push 0xffffffffffffffff
call sub.WINRPC32.dll_Ordinal_84
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40115e
test ebp, ebp
jne 0x401144
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov ebx, eax
test ebx, ebx
jl 0x40115e
xor ecx, ecx
mov dword [esi], ebx
mov word [esi + 4], 0x924
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push 0x924
mov dword [esp + 0x20], ecx
mov word [esp + 0x18], 2
mov dword [esp + 0x24], ecx
call sub.WSOCK32.dll_htons
mov word [esp + 0x16], ax
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0x10
push edx
push eax
call sub.WSOCK32.dll_bind
test eax, eax
jl 0x40115e
mov ecx, dword [esi]
push 2
push ecx
call sub.WSOCK32.dll_listen
test eax, eax
jne 0x40115e
push esi
call sub.WINRPC32.dll_Ordinal_36
add esp, 4
push edi
push 0x4011e0
push 1
push 0x22000000
push esi
call sub.WINRPC32.dll_Ordinal_73
add esp, 0x14
test eax, eax
jne 0x401195
cmp ebx, 0xffffffff
je 0x401169
push ebx
call sub.WSOCK32.dll_closesocket
test esi, esi
je 0x401176
push esi
call sub.WINRPC32.dll_Ordinal_70
add esp, 4
push 0x406010
call sub.libwpwr.dll_wpwrLogErr
add esp, 4
call sub.libwpwr.dll_wpwrShutdown
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x154
ret
push 0
push ebp
push 0x4011e0
push 6
push 1
push 0x22000000
call sub.wtxapi.dll_wtxRpcKey
add esp, 0x18
push eax
call sub.libwpwr.dll_wpwrSvcKeySet
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x154
ret
Function at 0x401cd0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 0xffffffff
jne 0x401ce4
push 0
call sub.libwpwr.dll_wpwrLogAck
add esp, 4
mov eax, dword [0x4069e4]
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [0x4069e0]
add esp, 4
test eax, eax
je 0x401d01
call fcn.00402a10
push esi
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x402a10
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x406bf8
push 0x406af8
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 1
call fcn.00402b70
add esp, 8
test eax, eax
je 0x402a3f
mov dword [esp + 0x10], ebp
push 0x406634
push 0x406634
push 0x406634
call fcn.00402550
add esp, 0xc
mov edi, eax
mov dword [esp + 0x18], edi
push 0x4066b4
push 0x406af8
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
jne 0x402ad8
cmp dword [0x4069ec], ebp
jne 0x402a94
push 1
call sub.libwpwr.dll_wpwrVerboseModeSet
add esp, 4
push 0x40669c
call sub.libwpwr.dll_wpwrLogMsg
add esp, 4
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_strerror]
add esp, 4
cmp eax, ebp
jne 0x402ab1
mov eax, 0x406688
push eax
push 0x406af8
push 0x406658
push 3
call sub.libwpwr.dll_wpwrLog
add esp, 0x10
call esi
mov dword [eax], 0x10022
mov dword [esp + 0x14], 0xffffffff
jmp 0x402b3f
cmp edi, ebp
je 0x402b35
mov ebp, dword [edi + 4]
mov esi, 0x406448
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402b0a
test cl, cl
je 0x402b06
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402b0a
add eax, 2
add esi, 2
test cl, cl
jne 0x402ae6
xor eax, eax
jmp 0x402b0f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402b2a
mov eax, dword [edi + 8]
mov ecx, dword [edi]
push eax
push ebp
push ecx
push 0x40664c
push ebx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x14
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x402adc
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push edi
call fcn.00402770
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x402b5e
push 0x406bf8
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x403990
Capabilities:
Create directory

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_strchr]
push esi
push edi
push 0x3a
push ebx
mov edi, ebx
call ebp
add esp, 8
test eax, eax
je 0x4039b2
lea edi, [eax + 1]
cmp byte [edi], 0x2f
jne 0x4039bb
mov byte [edi], 0x5c
inc edi
push 0x2f
push edi
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x4039cc
mov byte [esi], 0
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
test eax, eax
je 0x4039fa
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 2
jne 0x403a1c
push ebx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
test eax, eax
jne 0x403a1c
jmp 0x403a0c
mov ecx, dword [esp + 0x16]
and ecx, 0x4000
cmp ecx, 0x4000
jne 0x403a1c
test esi, esi
je 0x403a33
test esi, esi
mov byte [esi], 0x5c
lea edi, [esi + 1]
je 0x403a33
jmp 0x4039bb
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x10021
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push ebx
call sub.libwpwr.dll_wpwrBackslashToSlash
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x404110
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x108
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4068e8
push 0
mov dword [0x406e18], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x406e18]
push eax
lea ecx, [esp + 0x10]
push 0x406968
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x11c]
add esp, 0xc
lea edx, [esp + 0xc]
mov dword [esp + 8], eax
test esi, esi
mov dword [esp + 4], edx
je 0x404182
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov edx, dword [0x406dfc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
add esp, 0x108
ret
Function at 0x404370
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405218
push 0x404510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x406e80], 0xffffffff
mov dword [0x406e84], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x406e14]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x406e10]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x406e88], ecx
call fcn.00404500
mov eax, dword [0x406980]
test eax, eax
jne 0x404401
push 0x4044f0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.004044d0
push 0x40600c
push 0x406008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x406e0c]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x406e08]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x406004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00403ea0
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4044a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48d710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x51000]
push edi
or ebp, 0xffffffff
jmp 0x48d732
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48d739
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48d728
mov eax, 1
add ebx, ebx
jne 0x48d74b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48d75c
jne 0x48d77b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48d77b
dec eax
add ebx, ebx
jne 0x48d768
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48d740
add ebx, ebx
jne 0x48d777
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48d7cd
xor ecx, ecx
sub eax, 3
jb 0x48d793
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48d802
sar eax, 1
mov ebp, eax
jmp 0x48d79e
add ebx, ebx
jne 0x48d79e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48d76c
inc ecx
add ebx, ebx
jne 0x48d7ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48d76c
add ebx, ebx
jne 0x48d7b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48d7ae
jne 0x48d7ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48d7ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48d7ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48d7de
jmp 0x48d72e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48d7ec
add edi, ecx
jmp 0x48d72e
pop esi
mov edi, esi
mov ecx, 0x14a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48d80a
cmp byte [edi], 9
jne 0x48d80a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48d80f
lea edi, [esi + 0x8a000]
mov eax, dword [edi]
or eax, eax
je 0x48d887
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f154]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f228]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48d83c
mov ecx, edi
jns 0x48d86b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8f230]
or eax, eax
je 0x48d881
mov dword [ebx], eax
add ebx, 4
jmp 0x48d859
call dword [esi + 0x8f22c]
mov ebp, dword [esi + 0x8f234]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48d8bb
sub esp, 0xffffff80
jmp 0x442b2b
Function at 0x410d80
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push 0x474d5c
push 0x485530
call fcn.0045ad80
add esp, 8
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x410ea9
push 2
mov edx, dword [ebp + 8]
push edx
push 0x485530
call fcn.0045ae80
add esp, 0xc
push 0x474d58
push 0x485532
call fcn.0045ad80
add esp, 8
cmp dword [0x48555c], 0
je 0x410e44
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x485530
call dword [0x48555c]
test eax, eax
je 0x410e30
push 0xa
push 0x485530
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0045d7ba
add esp, 0x10
push 0x485530
call fcn.0045d738
add esp, 4
fstp qword [ebp - 0x20]
push 0x485530
sub esp, 8
fld qword [ebp - 0x20]
fstp qword [esp]
call fcn.0043d6b0
add esp, 0xc
jmp 0x410e42
push 0x474d5c
push 0x485530
call fcn.0045ad80
add esp, 8
jmp 0x410ea9
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x485530
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp eax, 1
jne 0x410e97
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0
fild qword [ebp - 0x44]
fstp qword [ebp - 0x20]
push 0x485530
sub esp, 8
fld qword [ebp - 0x20]
fstp qword [esp]
call fcn.0043d6b0
add esp, 0xc
jmp 0x410ea9
push 0x474d5c
push 0x485530
call fcn.0045ad80
add esp, 8
mov eax, 0x485530
mov esp, ebp
pop ebp
ret
Function at 0x422ec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x486254], eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4862b8], eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x48626c], eax
mov dword [0x4862bc], 0
mov dword [0x4886ec], 0
mov dword [0x488700], 0
mov dword [ebp - 8], 0
jmp 0x422f29
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x422f67
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x423660
push 0
push 0
call fcn.0045eccc
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx*4 + 0x486244], eax
mov edx, dword [ebp - 8]
cmp dword [edx*4 + 0x486244], 0
jne 0x422f65
xor eax, eax
jmp 0x422f6c
jmp 0x422f20
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x430910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
mov eax, dword [0x48ab64]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret
Function at 0x434d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1480
call fcn.0045d5a0
mov eax, dword [0x481a58]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x818]
push eax
call fcn.00459040
add esp, 8
cmp dword [ebp + 0xc], 0xffffffff
jne 0x434db1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043d3b0
add esp, 4
push eax
call fcn.0043d4a0
add esp, 4
push eax
call fcn.0045acf0
add esp, 4
test eax, eax
jbe 0x434db1
lea edx, [ebp - 0x410]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00439a60
add esp, 0xc
cmp eax, 0x20
jbe 0x434db1
mov ecx, dword [ebp + 8]
push ecx
push str.ShellExecute____s
call fcn.00456e80
add esp, 8
push 5
lea edx, [ebp - 0x818]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
push str.open
push 0
call fcn.00439b40
add esp, 0x18
jmp 0x434f79
cmp dword [ebp + 0xc], 0xffffffff
jne 0x434e0f
mov ecx, dword [ebp + 8]
push ecx
call fcn.004387f0
add esp, 4
and eax, 0x10
je 0x434e0f
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1480]
push eax
call fcn.0043ecf0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push str.ShellExecute____s
call fcn.00456e80
add esp, 8
push 5
mov edx, dword [ebp + 8]
push edx
push 0
lea eax, [ebp - 0x1480]
push eax
push str.open
push 0
call fcn.00439b40
add esp, 0x18
jmp 0x434f79
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call fcn.0043ea00
add esp, 8
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x401
add edx, str.notepad
push edx
lea eax, [ebp - 0x410]
push eax
call fcn.0045ad80
add esp, 8
push 0x20
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045b9f0
add esp, 8
test eax, eax
jne 0x434e72
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x410]
push eax
push str._s__s
lea ecx, [ebp - 0x1480]
push ecx
call fcn.0045b942
add esp, 0x10
jmp 0x434e91
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x410]
push eax
push str._s___s_
lea ecx, [ebp - 0x1480]
push ecx
call fcn.0045b942
add esp, 0x10
lea edx, [ebp - 0x1480]
push edx
push str.FindExecutable____s
call fcn.00456e80
add esp, 8
push 0x44
push 0
lea eax, [ebp - 0x860]
push eax
call fcn.0045b070
add esp, 0xc
mov dword [ebp - 0x860], 0x44
mov ecx, 5
mov word [ebp - 0x830], cx
lea edx, [ebp - 0x818]
push edx
push 0x400
call fcn.004386a0
add esp, 8
test eax, eax
jbe 0x434f79
push 0x400
lea eax, [ebp - 0xc68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x434f79
lea ecx, [ebp - 0xc68]
push ecx
call fcn.00438720
add esp, 4
test eax, eax
je 0x434f79
lea edx, [ebp - 0xc78]
push edx
lea eax, [ebp - 0x860]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1480]
push ecx
push 0
call fcn.00439860
add esp, 0x28
test eax, eax
jne 0x434f6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str..__ERROR_d_
call fcn.00456c30
add esp, 8
lea edx, [ebp - 0x1480]
push edx
push str.___s
call fcn.00456c30
add esp, 8
lea eax, [ebp - 0x818]
push eax
call fcn.00438720
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a968
mov esp, ebp
pop ebp
ret