joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d4c0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x44a1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
mov esi, ecx
mov edi, edx
mov bl, 1
call fcn.004212f0
push 0x3c
lea ecx, [ebp - 0x158]
push 0
push ecx
mov dword [ebp - 0x118], 0x114
call fcn.004212f0
add esp, 0x18
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 0x158], 0x3c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, 5
test eax, eax
je 0x41d535
cmp dword [ebp - 0x114], edx
sete bl
xor ecx, ecx
mov dword [ebp - 0x158], 0x3c
mov dword [ebp - 0x154], 0x40
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], str.open
test bl, bl
jne 0x41d569
mov dword [ebp - 0x14c], str.runas
mov eax, 8
cmp dword [esi + 0x14], eax
jb 0x41d575
mov esi, dword [esi]
mov dword [ebp - 0x148], esi
cmp dword [edi + 0x14], eax
jb 0x41d58a
mov eax, dword [edi]
mov dword [ebp - 0x144], eax
jmp 0x41d590
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x120], ecx
lea ecx, [ebp - 0x158]
push ecx
mov dword [ebp - 0x13c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41d61d
mov eax, dword [ebp - 0x120]
mov edi, eax
test eax, eax
je 0x41d5e5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41d5df
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 2
jmp 0x41d5ff
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 0x11c]
push edx
push eax
mov dword [ebp - 0x11c], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor esi, esi
test edi, edi
je 0x41d60a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e14a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041e14a
mov esp, ebp
pop ebp
ret

Function at 0x41e14a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a1b0]
jne 0x41e154
repz ret
jmp fcn.00420b7a
Function at 0x423cec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a1b0]
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.0042035a
and dword [ebp - 0x14], 0
cmp dword [0x44c070], 0
mov dword [ebp - 0x18], eax
jne 0x423d9f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x423e47
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x423e47
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44c070], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44c074], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44c078], eax
call edi
push eax
call esi
mov dword [0x44c080], eax
test eax, eax
je 0x423d9f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44c07c], eax
mov eax, dword [0x44c07c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x423df8
cmp dword [0x44c080], ecx
je 0x423df8
push eax
call esi
push dword [0x44c080]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x423df8
test ebx, ebx
je 0x423df8
call edi
test eax, eax
je 0x423def
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x423def
test byte [ebp - 8], 1
jne 0x423df8
or dword [ebp + 0x10], 0x200000
jmp 0x423e2b
mov eax, dword [0x44c074]
cmp eax, dword [ebp - 0x18]
je 0x423e2b
push eax
call esi
test eax, eax
je 0x423e2b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x423e2b
mov eax, dword [0x44c078]
cmp eax, dword [ebp - 0x18]
je 0x423e2b
push eax
call esi
test eax, eax
je 0x423e2b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c070]
call esi
test eax, eax
je 0x423e47
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x423e49
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e14a
leave
ret
Function at 0x40d650
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x40d66a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40d671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d660
mov eax, 1
add ebx, ebx
jne 0x40d683
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40d678
jne 0x40d694
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d678
xor ecx, ecx
sub eax, 3
jb 0x40d6a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40d71a
mov ebp, eax
add ebx, ebx
jne 0x40d6b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40d6c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40d6e4
inc ecx
add ebx, ebx
jne 0x40d6d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40d6c5
jne 0x40d6e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d6c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40d704
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40d6f5
jmp 0x40d666
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40d704
add edi, ecx
jmp 0x40d666
pop esi
mov edi, esi
mov ecx, 0x15b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40d722
cmp byte [edi], 5
jne 0x40d722
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 0x40d727
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40d796
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe110]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe160]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40d754
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe164]
or eax, eax
je 0x40d790
mov dword [ebx], eax
add ebx, 4
jmp 0x40d771
call dword [esi + 0xe174]
mov ebp, dword [esi + 0xe168]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x40d7ca
sub esp, 0xffffff80
jmp 0x40327f

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x402e91
pop dword [ebp - 0x34]
mov eax, 0x842f83a
add eax, 0xf7fd3657
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x19a1341a
add dword [ebp - 0x44], 0x34b11131
mov dword [ebp - 0x40], 0x391dd1d7
sub dword [ebp - 0x40], 0x6ea8592
mov dword [ebp - 0x3c], 0xe454a024
add dword [ebp - 0x3c], 0x67f7a40a
mov dword [ebp - 0x38], 0xac776831
add dword [ebp - 0x38], 0x538897cf
lea eax, [ebp - 0x44]
push eax
mov eax, 0xb85bf293
add eax, 0x47e48e71
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x4bbdbfe9
sub dword [ebp - 0x44], 0xd74b5693
mov dword [ebp - 0x40], 0x32fe8e08
add dword [ebp - 0x40], 0xe6dd36d
mov dword [ebp - 0x3c], 0xc8c7dfd7
add dword [ebp - 0x3c], 0x9aa78c95
mov dword [ebp - 0x38], 0x8be05243
add dword [ebp - 0x38], 0x741fadbd
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xbce108c3
add eax, 0x435f783d
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3958e
push 0
call eax
mov ecx, 0x5169
xor edi, edi
add edi, eax
mov ebx, 0xbfe8a642
add ebx, 0x405c9bbe
add ebx, dword [ebp - 0x34]
mov edx, 0x2bd5b061
sub edx, 0xa888eb7b
sub dword [ebp - 0xc], 0x9493e7e3
mov esi, dword [ebx]
add dword [ebp - 0x24], eax
xor esi, edx
sub dword [ebp - 0x2c], 0xbb1a30f9
mov dword [edi], esi
mov dword [ebp - 0x14], 0x98971838
add edi, 0xa725753c
sub edi, 0xa7257538
add ebx, 0xfdc0a9bd
add ebx, 0x23f5647
loop 0x402faf
add eax, 0xf4db8954
add eax, 0xb25af23
xor ebx, ebx
add ebx, eax
add eax, 0x50e77c87
sub eax, 0x50e77c82
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x4030bb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4030db
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4030ed
mov dword [ebp - 0xc], 0x41aa00
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403102
mov ecx, dword [0x434f38]
add ecx, eax
push ecx
call fcn.004032ec
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004032d6
test eax, eax
je 0x4032c4
test byte [ebp + 0x17], 0x80
je 0x40326f
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
call ebx
and dword [0x40d364], 0
and dword [0x40d360], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40e9e8
mov dword [0x40ce48], 8
mov dword [0x4169f0], eax
mov dword [0x4169ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4169e8], 0x4169e8
mov dword [ebp + 8], eax
jle 0x4032cc
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40317b
mov esi, dword [ebp + 0x14]
mov edi, 0x416a00
push esi
push edi
call fcn.004032d6
test eax, eax
je 0x4032c4
sub dword [ebp + 0x14], esi
mov dword [0x40ce38], edi
mov dword [0x40ce3c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce38
mov dword [0x40ce40], edi
mov dword [0x40ce44], eax
call fcn.00402e82
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403267
mov esi, dword [0x40ce40]
sub esi, edi
call ebx
test byte [0x434f94], 1
mov edi, eax
je 0x403222
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4031e9
cmp dword [ebp + 0x14], 0
jne 0x403222
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.kernel32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00402e82
mov dword [ebp - 0x10], edi
test esi, esi
je 0x40325b
cmp dword [ebp + 0x10], 0
jne 0x403241
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00402e82
test eax, eax
je 0x40326b
add dword [ebp - 4], esi
jmp 0x40324f
mov eax, dword [0x40ce40]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x40319e
jmp 0x4032cc
cmp dword [ebp + 0x14], 0
jg 0x40316e
jmp 0x4032cc
push 0xfffffffffffffffc
jmp 0x4032c6
push 0xfffffffffffffffe
jmp 0x4032c6
test edi, edi
jne 0x4032b1
cmp dword [ebp + 0x14], edi
jle 0x4032cc
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403285
mov esi, ebx
mov edi, 0x416a00
push esi
push edi
call fcn.004032d6
test eax, eax
je 0x4032c4
push esi
push edi
push dword [ebp + 0xc]
call fcn.00402e82
test eax, eax
je 0x40326b
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40327b
jmp 0x4032cc
cmp dword [ebp + 0x14], esi
jge 0x4032b9
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004032d6
test eax, eax
jne 0x4032c9
push 0xfffffffffffffffd
pop eax
jmp 0x4032cf
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40588d
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c94
mov edi, eax
cmp edi, 0xffffffff
je 0x4058ce
test byte [esp + 0x10], 1
push esi
je 0x4058b0
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x4058b6
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x4058bf
xor eax, eax
inc eax
jmp 0x4058d0
test byte [esp + 0x10], 4
jne 0x4058ce
push edi
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x405ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x434ef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cb3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405cb9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x405e13
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x4308e8
push 0x40a574
push ebx
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.kernel32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405e61
push 1
push 0
push esi
call fcn.00405cb9
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
mov esi, 0x4310e8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
push esi
push ebx
push str._ls_ls_r_n
push 0x4304e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434ef0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00402e82
push 4
push 0xc0000000
push esi
call fcn.00405cb9
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405f80
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f79
push edi
push esi
push ebp
call fcn.00402e82
test eax, eax
je 0x405f79
push str._Rename__r_n
push esi
call fcn.00402e82
test eax, eax
jne 0x405f17
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405f4c
add eax, 0xa
push 0x40a558
push eax
call fcn.00402e82
mov ebp, eax
test ebp, ebp
je 0x405f48
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405f39
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405f33
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405f4e
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4304e8
push eax
call fcn.00405c74
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00402e82
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405f85
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x405fa8
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405e13
pop ecx
pop ecx
inc dword [0x434f70]
ret 8
Function at 0x402634
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
call esi
cmp eax, 0xffffffff
je 0x402655
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
pop esi
jne 0x402682
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402682
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x402682
push 4
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
and dword [ebp - 4], 0
imul edx, edx, 0x9e3779b9
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
je 0x4026fe
mov esi, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, ecx
sub dword [ebp - 4], 0x61c88647
add ebx, eax
lea eax, [ebx + edi]
mov edi, eax
mov ebx, eax
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, eax
add ebx, ecx
cmp dword [ebp - 4], edx
lea ecx, [ebx + edi]
jne 0x4026ac
mov esi, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
leave
ret

Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453310
push 0x44f060
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x45a0e0], eax
xor eax, eax
mov al, byte [0x45a0e1]
mov dword [0x45a0ec], eax
mov eax, dword [0x45a0e0]
shr dword [0x45a0e0], 0x10
and eax, 0xff
mov dword [0x45a0e8], eax
shl eax, 8
add eax, dword [0x45a0ec]
mov dword [0x45a0e4], eax
call fcn.0044d770
test eax, eax
jne 0x44cdb4
push 0x1c
call fcn.005fb000
add esp, 4
mov dword [ebp - 4], 0
call fcn.0044ee80
call fcn.0044ee70
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4656c4], eax
call fcn.0044ea20
mov dword [0x4594d0], eax
test eax, eax
je 0x44cde7
cmp dword [0x4656c4], 0
jne 0x44cdf1
push 0xffffffffffffffff
call fcn.0044e630
add esp, 4
call fcn.00412640
call fcn.0044e930
call fcn.0044e600
mov esi, dword [0x4656c4]
mov al, byte [esi]
cmp al, 0x22
je 0x44ce18
cmp al, 0x20
jbe 0x44ce45
inc esi
cmp byte [esi], 0x20
ja 0x44ce10
jmp 0x44ce45
inc esi
cmp byte [esi], 0x22
je 0x44ce44
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x44ce3f
xor eax, eax
mov al, bl
push eax
call fcn.0044e8d0
add esp, 4
test eax, eax
je 0x44ce39
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x44ce21
cmp byte [esi], 0x22
jne 0x44ce45
inc esi
cmp byte [esi], 0
je 0x44ce55
cmp byte [esi], 0x20
ja 0x44ce55
inc esi
cmp byte [esi], 0
jne 0x44ce4a
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x44ce79
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0044e630
jmp 0x44ceba
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e670
Capabilities:
Terminate process

Disassembly:
cmp dword [0x45a11c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x44e68e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x45a118], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x45a114], bl
jne 0x44e6e8
cmp dword [0x4656b8], 0
je 0x44e6d6
mov edi, dword [0x4656b4]
sub edi, 4
cmp edi, dword [0x4656b8]
jb 0x44e6d6
mov eax, dword [edi]
test eax, eax
je 0x44e6cb
call eax
sub edi, 4
cmp edi, dword [0x4656b8]
jae 0x44e6c3
push 0x45401c
push 0x454014
call fcn.0044e720
add esp, 8
push 0x454024
push 0x454020
call fcn.0044e720
add esp, 8
test ebx, ebx
jne 0x44e70f
mov dword [0x45a11c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x401430
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x43601c
push 0x80000002
call dword [0x43610c]
test eax, eax
jne 0x40145c
mov eax, 0xd903
jmp 0x401506
mov dword [0x436104], 0x24e1
jmp loc.0045bbe5
mov esp, ebp
pop ebp
ret
Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x40d963
Capabilities:
Get number of processors

Disassembly:
call fcn.0040d9b8
cmp dword [ebp + 0x6730], 0x178
jle 0x40d948
mov ecx, edi
not ch
sub esi, dword [esp + 0x28]
jbe 0x40d948
xchg ecx, ecx
cld
nop
sub eax, dword [esp + 0x30]
lea ecx, [esp + 1]
sbb edx, dword [ecx + 0x2b]
idiv esi
sub eax, 0x1e3f0
sub eax, 0x986b72
sbb eax, eax
push 0xfffffffffffffff4
imul edx, eax, 0xcfa924b3
sbb byte [ebp + 0x6882], dh
pop edi
lea edi, [edi + 0x64]
push dword [ebp + 0x6761]
add edi, ebp
pop edx
ret
push 0x6b1ded10
call fcn.0040d838
push esi
mov edx, dword fs:[0x30]
test edx, edx
js 0x40d9a5
xchg ah, ch
inc edi
dec esi
push ebx
mov edx, dword [edx + 0xc]
mov ebx, dword [edx + 0x1c]
mov ebx, dword [ebx + 8]
push 1
push 0xbb862f1c
call fcn.0040d838
mov edx, esp
push 4
push edx
push 0x15
push 0xffffffffffffffff
call fcn.0040d834
add esp, 4
pop ebx
pop edi
call edi
jmp 0x40d901