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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x417ea9
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x417eb0
cmp ebx, dword [eax + 4]
jae 0x417eb0
xor eax, eax
jmp 0x4180a0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x417ec1
xor eax, eax
inc eax
jmp 0x41809f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x417ed7
cmp ecx, edx
jae 0x41801c
cmp dword [eax + 4], 0
je 0x417ee0
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x417ec8
cmp dword [ebp + 8], 0
je 0x417f02
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41801c
cmp eax, esi
jae 0x41801c
mov eax, dword [0x42b148]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x417f27
cmp dword [esi*4 + 0x42b150], edi
je 0x418020
inc esi
cmp esi, eax
jl 0x417f15
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41809c
cmp dword [ebp - 8], 0x1000000
jne 0x41809c
test byte [ebp - 0xc], 0xcc
je 0x417fa5
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41809c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41809c
cmp word [eax + 0x18], 0x10b
jne 0x41809c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41809c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417fa5
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417fa5
test byte [ecx + 0x27], 0x80
jne 0x41801c
push 1
push 0x42b190
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x417eb9
mov ecx, dword [0x42b148]
test ecx, ecx
mov edx, ecx
jle 0x417fd9
lea eax, [ecx*4 + 0x42b14c]
cmp dword [eax], edi
je 0x417fd9
dec edx
sub eax, 4
test edx, edx
jg 0x417fcd
test edx, edx
jne 0x41800a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x417fe6
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x417ffe
lea eax, [edx*4 + 0x42b150]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x417fec
cmp ecx, 0x10
jge 0x41800a
inc ecx
mov dword [0x42b148], ecx
push 0
push 0x42b190
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x417eb9
xor eax, eax
jmp 0x41809f
test esi, esi
jle 0x417eb9
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42b190
call ebx
test eax, eax
jne 0x417eb9
cmp dword [esi*4 + 0x42b150], edi
je 0x418076
mov eax, dword [0x42b148]
lea esi, [eax - 1]
test esi, esi
jl 0x418064
cmp dword [esi*4 + 0x42b150], edi
je 0x418060
dec esi
jns 0x418054
test esi, esi
jge 0x418074
cmp eax, 0x10
jge 0x41806f
inc eax
mov dword [0x42b148], eax
lea esi, [eax - 1]
jmp 0x418076
je 0x41808e
xor ecx, ecx
test esi, esi
jl 0x41808e
lea eax, [ecx*4 + 0x42b150]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41807c
push 0
push 0x42b190
call ebx
jmp 0x417eb9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41952d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42b1e0], ebx
push esi
push edi
jne 0x4195ad
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4195e8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4230d4
push edi
call esi
test eax, eax
mov dword [0x42b1e0], eax
je 0x4195e8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42b1e4], eax
call esi
cmp dword [0x42ae84], 2
mov dword [0x42b1e8], eax
jne 0x4195ad
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42b1f0], eax
je 0x4195ad
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42b1ec], eax
mov eax, dword [0x42b1ec]
test eax, eax
je 0x4195f2
call eax
test eax, eax
je 0x4195d9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42b1f0]
test eax, eax
je 0x4195d9
test byte [ebp - 8], 1
jne 0x4195f2
cmp dword [0x42ae90], 4
jb 0x4195ec
or byte [ebp + 0x12], 0x20
jmp 0x419611
xor eax, eax
jmp 0x419621
or byte [ebp + 0x12], 4
jmp 0x419611
mov eax, dword [0x42b1e4]
test eax, eax
je 0x419611
call eax
mov ebx, eax
test ebx, ebx
je 0x419611
mov eax, dword [0x42b1e8]
test eax, eax
je 0x419611
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42b1e0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41af06
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00412aa0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41afa1
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42ae84]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41afa1
cmp eax, 1
je 0x41afc2
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41afa1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41af6e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41af9d
xor eax, eax
inc eax
jmp 0x41afe1
cmp edi, eax
jae 0x41afa5
xor eax, eax
jmp 0x41afe1
cmp eax, esi
jae 0x41afac
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42ae84]
jmp 0x41afc5
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b1b2
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00412aa0
mov eax, dword [0x4285e0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004125b8
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41b2e7
push 2
push esi
push dword [ebp + 8]
call fcn.004125b8
add esp, 0xc
cmp eax, ebx
je 0x41b2e7
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41b287
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004178e0
push 0x8000
push dword [ebp + 8]
call fcn.0041c587
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x41b23d
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00412351
add esp, 0xc
cmp eax, 0xffffffff
je 0x41b25d
sub edi, eax
test edi, edi
jg 0x41b235
jmp 0x41b275
call fcn.0041201b
cmp dword [eax], 5
jne 0x41b272
call fcn.00412012
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041c587
pop ecx
pop ecx
jmp 0x41b2cf
jge 0x41b2cf
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004125b8
push dword [ebp + 8]
call fcn.00417bfc
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x41b2cf
call fcn.00412012
mov dword [eax], 0xd
call fcn.0041201b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004125b8
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41b2e9
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00410a75
leave
ret
Function at 0x41c3b1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41c3ca
or eax, 0xffffffff
jmp 0x41c42b
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x41c427
push 0x3d
push esi
call fcn.0041c94c
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41c427
cmp esi, eax
je 0x41c427
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x42aea4]
sete cl
cmp eax, dword [0x42aea8]
mov dword [ebp - 4], ecx
jne 0x41c40d
mov edi, eax
call fcn.0041c350
mov dword [0x42aea4], eax
cmp eax, ebx
jne 0x41c466
cmp dword [ebp + 0xc], ebx
je 0x41c42f
cmp dword [0x42aeac], ebx
je 0x41c42f
call fcn.0041b122
test eax, eax
je 0x41c466
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x41c438
xor eax, eax
jmp 0x41c42a
push 4
call fcn.0041213e
cmp eax, ebx
pop ecx
mov dword [0x42aea4], eax
je 0x41c427
mov dword [eax], ebx
cmp dword [0x42aeac], ebx
jne 0x41c466
push 4
call fcn.0041213e
cmp eax, ebx
pop ecx
mov dword [0x42aeac], eax
je 0x41c427
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x42aea4]
sub edi, esi
push esi
call fcn.0041c303
mov edi, eax
test edi, edi
pop ecx
jl 0x41c4cd
cmp dword [ebx], 0
je 0x41c4cd
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00411fa1
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41c4ad
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x41c50e
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x41c4a4
mov eax, edi
shl eax, 2
push eax
push dword [0x42aea4]
call fcn.004161ff
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x41c50e
jmp 0x41c509
cmp dword [ebp - 4], 0
jne 0x41c575
test edi, edi
jge 0x41c4dd
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x42aea4]
call fcn.004161ff
test eax, eax
pop ecx
pop ecx
je 0x41c427
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x42aea4], eax
cmp dword [ebp + 0xc], 0
je 0x41c560
push esi
call fcn.00415ff0
inc eax
inc eax
push eax
call fcn.0041213e
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41c560
push esi
push edi
call fcn.00415ef0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41c559
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00411fa1
pop ecx
cmp dword [ebp - 4], 0
je 0x41c56d
push esi
call fcn.00411fa1
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41c42a
push esi
call fcn.00411fa1
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x41c434
Function at 0x404de5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404e07
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404df8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f35
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404f0f
test eax, eax
jne 0x404e38
cmp dword [0x4085d4], 1
je 0x404f0f
cmp edx, 0xfc
je 0x404f35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404eb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.00405720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403300
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.00403300
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403300
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405697
add esp, 0x2c
pop edi
jmp 0x404f35
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033f0
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 0xa7418c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushfd
mov esp, esi
pushfd
mov word [esp], 0xccd5
push edx
push 0x73232772
lea esp, [esp + 0xc]
jmp fcn.008f0c28
dec esp
call fcn.008f0dcb
pushal
lea esp, [esp + 0x20]
jl 0x8efd2f
loopne 0x97bc8d
inc eax
idiv edi
push esp
pushfd
mov esp, esi
pushfd
mov word [esp], sp
lea esp, [esp + 4]
jmp fcn.008f0c28
lea esp, [esp + 0x2c]
je fcn.008f0c20
lea esi, [esi + 0x57f4d000]
xor dh, 0x93
rcr edx, 0x11
bsf dx, dx
mov esi, dword [eax + 0x3c]
or dl, bh
add esi, eax
and dh, 0x1c
btc dx, 7
and dh, 0x5b
mov edx, dword [esi + 0x78]
test bp, 0x7270
cmp ebp, edx
clc
jb 0x97bccf
aad 0xf8
bt ax, 7
test edx, edx
push esi
call fcn.00920361
sub eax, 0x2fad3ba5
popfd
xlatb
popal
xchg edi, eax
and eax, 0xcd33d99b
jae 0x97bc3e
fisttp word [ecx - 0x11]
sub al, 0x89
loop 0x97bc4b
jnp 0x97bc4c
lodsb al, byte [esi]
salc
stosd dword es:[edi], eax
push ebx
div byte [0x18069855]
xlatb
sbb bh, dl
xchg esi, eax
je 0x97bcc7
loop 0x97bc94
mov bl, 0xf6
mov bl, 0xf6
and cl, cl
outsb dx, byte [esi]
push esp
push edx
or esi, dword [ebx + 0x1a]
push ds
stc
stosd dword es:[edi], eax
imul esp, dword [edi], 0xb2fceaee
inc esp
mov eax, 0xbbf857c6
ret
push dword [esp + 8]
test eax, eax
push 0xd3d5d95
jmp 0x97bc61
Function at 0x402010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403388
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x4021a2
cmp byte [ebx + 0x49], 0
je 0x4021a2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x402196
lea esi, [ebp - 0x2c]
call fcn.00401eb0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x402083
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x4020bb
dec eax
je 0x4020bf
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x40219d
call fcn.004012c0
xor al, al
jmp 0x4021a4
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4020cf
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4020fd
cmp edi, 0x10
jae 0x4020de
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40218e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40219a
test esi, esi
jne 0x402077
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4021bf
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4021bf
cmp edi, esi
jae 0x402177
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.004022d0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x402077
mov ecx, eax
cmp edi, 0x10
jae 0x402153
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40216e
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x402071
test esi, esi
jne 0x402149
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x402186
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x402071
lea esi, [ebp - 0x2c]
call fcn.004012c0
xor al, al
jmp 0x4021a4
lea esi, [ebp - 0x2c]
call fcn.004012c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004028a0
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x4028a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406018]
jne 0x4028aa
repz ret
jmp fcn.00402cbd
Function at 0x405ec5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232fc], 0
push esi
jne 0x405efc
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ed6
mov dword [ecx*4 + 0x4232f8], eax
inc ecx
cmp ecx, 0x100
jl 0x405ed1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f2d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232f8]
xor eax, esi
inc ecx
dec edx
jne 0x405f0f
pop edi
not eax
pop esi
ret 0xc

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x403450
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x50f590], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jne 0x403495
push 0x402b50
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402b70
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x45ed28]
mov edi, dword [0x45ed2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.00403449
mov eax, dword [str.sfXr]
add dword [ebp - 0x14], 0x23f
mov ebx, dword [0x45ed34]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x50f590], 0xc
mov dword [ebp - 4], ecx
jne 0x403532
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x444]
push eax
push esi
push 0x402b94
push 0x402b9c
push 0x402ba4
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x50f590]
cmp ecx, 0xfa9
jne 0x403550
mov dword [0x50eb2c], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x40355e
mov dword [0x50e4dc], esi
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x10]
shr eax, cl
mov dword [0x50eb28], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x50f590], 0x213
mov dword [ebp - 0x18], ecx
jne 0x40359d
push esi
push 0x402bc8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x50f590], 0xc
jne 0x4035e6
lea eax, [ebp - 0x18]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402c40
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x10]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
call fcn.00403442
dec dword [ebp - 0x1c]
jne 0x4034ca
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403636
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x50f590]
mov ecx, dword [0x50e4e0]
sub esp, 0xc34
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40372f
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x50f590], 0x959
jne 0x40371d
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push esi
push esi
lea eax, [ebp - 0xc30]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402c04
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0x402cec
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d08
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00403450
add ebx, 8
dec dword [ebp - 4]
jne 0x40365f
pop edi
pop esi
pop ebx
leave
ret