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

Disassembly:
cmp dword [0x40622c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x402d2e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x406228], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x406224], bl
jne 0x402d88
cmp dword [0x407aec], 0
je 0x402d76
mov edi, dword [0x407ae8]
sub edi, 4
cmp edi, dword [0x407aec]
jb 0x402d76
mov eax, dword [edi]
test eax, eax
je 0x402d6b
call eax
sub edi, 4
cmp edi, dword [0x407aec]
jae 0x402d63
push 0x406014
push 0x406010
call fcn.00402dc0
add esp, 8
push 0x40601c
push 0x406018
call fcn.00402dc0
add esp, 8
test ebx, ebx
jne 0x402daf
mov dword [0x40622c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x402de0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x403d14
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 [0x4061f0], eax
xor eax, eax
mov al, byte [0x4061f1]
mov dword [0x4061fc], eax
mov eax, dword [0x4061f0]
shr dword [0x4061f0], 0x10
and eax, 0xff
mov dword [0x4061f8], eax
shl eax, 8
add eax, dword [0x4061fc]
mov dword [0x4061f4], eax
call fcn.00403cd0
test eax, eax
jne 0x402e54
push 0x1c
call fcn.00402f80
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403af0
call fcn.00403300
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407ae4], eax
call fcn.00403960
mov dword [0x406230], eax
test eax, eax
je 0x402e87
cmp dword [0x407ae4], 0
jne 0x402e91
push 0xffffffffffffffff
call fcn.00402cd0
add esp, 4
call fcn.004036e0
call fcn.004035f0
call fcn.00402ca0
mov esi, dword [0x407ae4]
mov al, byte [esi]
cmp al, 0x22
je 0x402eb8
cmp al, 0x20
jbe 0x402ee5
inc esi
cmp byte [esi], 0x20
ja 0x402eb0
jmp 0x402ee5
inc esi
cmp byte [esi], 0x22
je 0x402ee4
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x402edf
xor eax, eax
mov al, bl
push eax
call fcn.00403590
add esp, 4
test eax, eax
je 0x402ed9
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x402ec1
cmp byte [esi], 0x22
jne 0x402ee5
inc esi
cmp byte [esi], 0
je 0x402ef5
cmp byte [esi], 0x20
ja 0x402ef5
inc esi
cmp byte [esi], 0
jne 0x402eea
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 0x402f19
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.00402cd0
jmp 0x402f5a
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 0x403960
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x406500], ebx
jne 0x4039af
call esi
cmp eax, ebx
mov edi, eax
je 0x40398d
mov dword [0x406500], 1
jmp 0x4039af
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4039a5
mov dword [0x406500], 2
jmp 0x4039af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406500], 1
jne 0x403a5e
test edi, edi
jne 0x4039d2
call esi
mov edi, eax
test edi, edi
jne 0x4039d2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4039ec
add esi, 2
cmp word [esi], 0
jne 0x4039da
add esi, 2
cmp word [esi], 0
jne 0x4039da
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x403a4d
push ebp
call fcn.00404180
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x403a4d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403a3c
push ebx
call fcn.00404130
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406500], 2
jne 0x403ae2
test ebx, ebx
jne 0x403a81
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x403a81
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x403a96
inc ebp
cmp byte [ebp], 0
jne 0x403a88
inc ebp
cmp byte [ebp], 0
jne 0x403a88
sub ebp, ebx
inc ebp
push ebp
call fcn.00404180
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x403abb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x403e30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x406518
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x403e57
add eax, 8
inc ecx
cmp eax, 0x4065a8
jb 0x403e48
cmp dword [ecx*8 + 0x406518], edx
lea ebx, [ecx*8]
jne 0x40401b
cmp dword [0x40623c], 1
je 0x403fd7
cmp dword [0x40623c], 0
jne 0x403e8e
cmp dword [0x406240], 1
je 0x403fd7
cmp edx, 0xfc
je 0x40401b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x403ecb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x403f0f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4052e0
push ebp
call fcn.00404030
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4052c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x40651c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00404990
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x4079e0], 0
je 0x403fed
mov eax, dword [0x4079e0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403ff7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x40651c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x401170
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
sub esp, 0x15c
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 0x60]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push eax
push 0
call fcn.00401000
add esp, 0xc
test eax, eax
je 0x401298
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0x44
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push 0
mov eax, 1
push 4
push 0
mov dword [esp + 0x60], eax
mov word [esp + 0x64], ax
push 0
push 0
lea eax, [esp + 0x80]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov eax, dword [0x403020]
mov ecx, dword [esp + 0xc]
push 0
lea edx, [esp + 0xc]
push 4
push edx
push eax
push ecx
call fcn.00401090
mov edx, dword [esp + 0x1c]
mov eax, dword [0x4030e8]
add esp, 0x14
cmp edx, eax
je 0x401239
push 0x64
call edi
inc esi
cmp esi, 0x14
jb 0x4011f9
pop edi
xor eax, eax
pop esi
add esp, 0x15c
ret 0x10
mov eax, dword [0x40301c]
xor edi, edi
test eax, eax
jbe 0x401298
mov esi, 0x403020
mov ecx, dword [esi]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0xc]
push 4
push eax
push ecx
push edx
call fcn.00401090
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0xc8]
lea eax, [esi + 0x190]
add esp, 0x14
cmp ecx, edx
jne 0x40128b
mov edx, dword [esi]
push 0
push 4
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00401100
add esp, 0x14
mov eax, dword [0x40301c]
inc edi
add esi, 4
cmp edi, eax
jb 0x401249
pop edi
xor eax, eax
pop esi
add esp, 0x15c
ret 0x10
Function at 0x7d2f00
Capabilities:
Encrypt data using aes

Disassembly:
add byte [ecx + 0xff00e7], al
add byte [ecx - 0xffff1e], al
add byte [ebx], dh
xlatb
mov edi, dword [ebp - 0x14]
shr edi, 0x18
mov edi, dword [edi*4 + 0x7ddcb0]
and edi, 0xff000000
xor edx, edi
mov edi, dword [ebp - 0xc]
and edi, eax
movzx eax, byte [edi*4 + 0x7ddcb0]
xor edx, eax
xor edx, dword [ecx + 0xc]
mov eax, edx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [esi + 0xe], al
mov byte [esi + 0xf], dl
jmp 0x7d2efc
pop edi
pop ebx
leave
ret
call fcn.007d2967
jp 0x7d2ea0
pop ds
invalid

Function at 0x7d40b9
Capabilities:
Hash data with md5

Disassembly:
fst qword [ebx]
and edi, edx
outsd dx, dword [esi]
call fcn.007d404e
add dword [ecx - 0x73], esi
and al, 4
jmp 0x7f7c71
call fcn.007d40dd
jg 0x7d40ad
sub eax, 0xed83c4bd
add ch, bl
adc edx, eax
inc edx
sal byte [edi - 0xe8d0cbe], 1
popal
add bl, dh
inc ebx
invalid
jmp 0x7d40fa
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x7d6bf8
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
pushal
mov eax, ebp
popal
pushfd
lea esp, [esp]
push word [esp + 2]
mov byte [esp + 2], ch
push word [esp + 2]
lea esp, [esp + 8]
lea esp, [esp + 4]
push 0x22716
or byte [ebp + 0x68042464], cl
push ss
daa
add al, byte [eax]
call fcn.007e42f6
stc
js 0x7d6c11
mov dword [eax - 0x36], edi
mov bh, 0x10
or dword [ecx], eax
sahf
mov bh, byte [ecx + 0x37]
mov esi, 0x24d5b21c
push word [esp + 1]
mov byte [esp + 1], al
mov word [esp], sp
mov byte [esp + 2], bl
jmp 0x82270c
and al, 0x88
cmp al, 0x24
loope 0x82268b
cld
invalid
lea esp, [esp + 4]
call fcn.007e42f6
jno 0x8226fd
je 0x82272c
out dx, al
pop esi
iretd
mov word [esp], sp
mov byte [esp + 2], bl
lea esp, [esp + 4]
jmp 0x822710

Function at 0x7f8bc2
Capabilities:
Encode data using xor

Disassembly:
ret
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x7f8a51
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
push sp
pushal
mov dword [esp + 0x1a], edi
lea esp, [esp + 6]
mov word [esp + 9], cx
pop word [esp + 2]
mov byte [esp + 0xe], al
lea esp, [esp + 2]
rol eax, 7
push edx
push word [esp + 3]
mov dword [esp], ebp
mov byte [esp], ch
lea esp, [esp + 2]
lea esp, [esp + 0x1c]
xor eax, edx
inc ecx
cmp ecx, dword [esp + 8]
jb 0x7f8a86
jae 0x7f8a51
lodsd eax, dword es:[esi]
cmp eax, 0xc000b744
dec esi
fdivr qword [ebx - 0x2ea317aa]
inc ecx
and bl, dl
adc eax, 0x3a5fcf45
leave
mov si, 0xa131
sal byte [ebx], 0xf4
movsb byte es:[edi], byte [esi]
movsb byte es:[edi], byte ss:[esi]
ret
lea esp, [esp + 4]
jmp 0x7f8a7e
Function at 0x84efa0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0x84efe0
mov edi, dword [esp + 0x14]
cmp edi, 2
jl 0x84efe0
xor ecx, ecx
test edi, edi
jle 0x84efdb
mov dl, byte [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, ecx
and eax, 3
mov al, byte [eax + ebx]
xor al, byte [ecx + esi]
inc ecx
xor al, dl
cmp ecx, edi
mov byte [ecx + esi - 1], al
mov dl, al
jl 0x84efc2
pop ebx
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x84f040
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor al, al
test esi, esi
je 0x84f06c
mov edx, dword [esp + 0xc]
cmp edx, 2
jl 0x84f06c
xor ecx, ecx
test edx, edx
jle 0x84f068
lea ebx, [ebx]
xor al, byte [ecx + esi]
inc ecx
cmp ecx, edx
jl 0x84f060
not al
pop esi
ret
xor al, al
pop esi
ret

Function at 0x89f910
Capabilities:
Encode data using base64
Parse pe header

Disassembly:
call fcn.0089f927
push ebx
push 0x646c6569
outsb dx, byte gs:[esi]
and byte [esi + 0x32], dh
xor byte cs:[esi], ch
xor ch, byte [esi]
xor byte [eax], al
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x403afb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov edx, dword [0x406070]
mov ebx, eax
add edx, eax
mov eax, 0x406074
call fcn.00403a51
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x405ba4
push eax
sub edi, fcn.00405332
push edi
push fcn.00405332
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x403b6a
mov eax, fcn.00405332
mov ebx, esi
mov edx, edi
call fcn.00403a51
mov edx, 0x1c000
mov eax, 0x406074
mov ebx, esi
call fcn.00402219
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 1
call fcn.0040474d
mov eax, 0x406074
lea edi, [esi + 0x1c000]
xor edx, edx
or edi, esi
inc esi
div esi
lea ebx, [ebp - 2]
mov edx, edi
call fcn.00405332
lea esp, [ebp + 0x82]
jmp 0x403bc3
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x4054a0
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x445c48], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4054e0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x43b508]
mov dword [ebp - 0x28], eax
mov eax, dword [0x43b50c]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00405499
mov eax, dword [0x43b510]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x43b514]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x445c48], 0xc
mov dword [ebp - 4], eax
jne 0x405576
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x834]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x445c48]
cmp eax, 0xfa9
jne 0x405592
mov dword [0x4451e4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40559f
mov dword [0x444b90], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x4451e0], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x445c48], 0x213
mov dword [ebp - 0x14], edx
jne 0x4055d9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00405493
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x40551c
cmp dword [0x445c48], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x405642
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x40564b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x445c48]
mov ecx, dword [0x444b98]
sub esp, 0x944
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4056bb
mov edi, ecx
mov ebx, eax
cmp dword [0x445c48], 0x959
jne 0x4056af
push esi
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
call fcn.004054a0
add edi, 8
dec ebx
jne 0x40566f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4059af
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x445c48], 0x400
push edi
jne 0x405a16
push esi
push esi
call fcn.00405ee5
push esi
push esi
call fcn.00405ee5
push esi
push esi
call fcn.00406148
push esi
push esi
push esi
call fcn.00406569
add esp, 0x20
mov dword [esp], esi
call fcn.00405417
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004053f4
fstp st(0)
push esi
call fcn.0040661f
pop ecx
push esi
push esi
call fcn.00405dd9
pop ecx
pop ecx
mov eax, dword [0x43bb94]
mov dword [0x445c48], eax
mov eax, dword [0x43bb6c]
mov dword [0x445c4c], eax
call fcn.004056da
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x405a7d
cmp dword [esp + 0x18], 0x785074d5
jne 0x405a8b
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x405a38
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x405174
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x405abc
cmp dword [esp + 0x18], 0x785074d5
jne 0x405ac5
inc edi
cmp edi, 0x11915
jl 0x405a8d
mov eax, dword [0x444b98]
mov dword [0x4451dc], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406f90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a118]
jne 0x406f9a
repz ret
jmp fcn.0040b5d2