joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5941f0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ecx + 8]
push esi
push ebx
mov ebx, ecx
lea esi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], 0x7075a0
mov dword [ecx + 4], 0x7075d4
mov ecx, edi
mov dword [esp], 0x40
call fcn.00587720
mov eax, 0x100
mov dword [ebx + 0x28], 8
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov word [ebx + 0x24], ax
mov dword [ebx], 0x708d74
mov dword [ebx + 4], 0x708dac
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.0047c9e0
mov dword [ebx + 0x38], eax
mov ecx, esi
mov dword [esp], 0x14
call fcn.00586d90
sub esp, 4
mov dword [ebx + 0x3c], 0
lea eax, [ebx + 0x3c]
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [esp], 1
mov dword [ebp - 0x1c], eax
call fcn.0047c9e0
mov dword [ebx + 0x48], eax
lea ecx, [ebx + 0x3c]
mov dword [esp], 5
call fcn.00586d90
mov eax, dword [ebx + 0xc]
sub esp, 4
test eax, eax
jne 0x594320
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
test eax, eax
jne 0x594340
mov eax, dword [ebx + 0x3c]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call fcn.005642b0
jmp 0x5942d7
mov edx, dword [ebx + 0x2c]
shl eax, 2
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], edx
call fcn.005642b0
jmp 0x5942f3
Function at 0x594690
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ecx + 8]
push esi
push ebx
mov ebx, ecx
lea esi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], 0x7075a0
mov dword [ecx + 4], 0x7075d4
mov ecx, edi
mov dword [esp], 0x40
call fcn.00587720
mov eax, 0x101
mov dword [ebx + 0x28], 8
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov word [ebx + 0x24], ax
mov dword [ebx], 0x708df8
mov dword [ebx + 4], 0x708e30
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.0047c9e0
mov dword [ebx + 0x38], eax
mov ecx, esi
mov dword [esp], 5
call fcn.00586d90
sub esp, 4
mov dword [ebx + 0x3c], 0
lea eax, [ebx + 0x3c]
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [esp], 1
mov dword [ebp - 0x1c], eax
call fcn.0047c9e0
mov dword [ebx + 0x48], eax
lea ecx, [ebx + 0x3c]
mov dword [esp], 0x50
call fcn.00586d90
mov eax, dword [ebx + 0xc]
sub esp, 4
test eax, eax
jne 0x5947c0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
test eax, eax
jne 0x5947e0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call fcn.005642b0
jmp 0x594777
mov edx, dword [ebx + 0x3c]
shl eax, 2
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], edx
call fcn.005642b0
jmp 0x594793

Function at 0x594a90
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ecx + 8]
push ebx
mov ebx, ecx
lea edi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], 0x7075a0
mov dword [ecx + 4], 0x7075d4
mov ecx, esi
mov dword [esp], 0x40
call fcn.00587720
mov eax, 0x101
mov dword [ebx + 0x28], 8
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov word [ebx + 0x24], ax
mov dword [ebx], 0x708e98
mov dword [ebx + 4], 0x708ed0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.0047c9e0
mov dword [ebx + 0x38], eax
mov ecx, edi
mov dword [esp], 8
call fcn.00586d90
mov eax, dword [ebx + 0xc]
sub esp, 4
test eax, eax
jne 0x594b90
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call fcn.005642b0
jmp 0x594b34
Function at 0x594ce0
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ecx + 8]
push ebx
mov ebx, ecx
sub esp, 0x2c
mov dword [ecx], 0x7075a0
mov dword [ecx + 4], 0x7075d4
mov ecx, esi
mov dword [esp], pe_nt_image_headers32
call fcn.00587720
mov eax, 0x101
mov dword [ebx + 0x28], 0x10
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov word [ebx + 0x24], ax
mov dword [ebx], 0x708ee8
mov dword [ebx + 4], 0x708f20
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.0047c9e0
mov edx, dword [ebx + 0x34]
mov dword [ebx + 0x38], eax
cmp edx, 7
jbe 0x594e30
cmp dword [ebx + 0x30], 8
mov eax, 8
cmovbe eax, dword [ebx + 0x30]
sub edx, eax
jne 0x594ec0
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x30], 8
test eax, eax
jne 0x594ea4
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [eax]
mov ecx, eax
mov dword [esp], 0x40
call dword [edx]
mov edi, eax
mov eax, dword [ebx + 0x30]
sub esp, 4
mov dword [esp], edi
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
call fcn.005642b8
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x594e88
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x594e88
test eax, eax
je 0x594e88
shl eax, 3
mov edx, dword [ecx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x30], 8
mov dword [ebx + 0x34], 8
test eax, eax
je 0x594d9c
mov edx, dword [ebx + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call fcn.005642b0
jmp 0x594d9c
mov ecx, dword [ebx + 0x2c]
shl edx, 3
mov dword [esp + 4], 0
mov dword [esp + 8], edx
lea eax, [ecx + eax*8]
mov dword [esp], eax
call fcn.005642b0
jmp 0x594d8a
Function at 0x595010
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ecx + 8]
push ebx
mov ebx, ecx
sub esp, 0x2c
mov dword [ecx], 0x7075a0
mov dword [ecx + 4], 0x7075d4
mov ecx, esi
mov dword [esp], pe_nt_image_headers32
call fcn.00587720
mov eax, 0x101
mov dword [ebx + 0x28], 0x10
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov word [ebx + 0x24], ax
mov dword [ebx], 0x708f38
mov dword [ebx + 4], 0x708f70
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.0047c9e0
mov edx, dword [ebx + 0x34]
mov dword [ebx + 0x38], eax
cmp edx, 7
jbe 0x595160
cmp dword [ebx + 0x30], 8
mov eax, 8
cmovbe eax, dword [ebx + 0x30]
sub edx, eax
jne 0x5951f0
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x30], 8
test eax, eax
jne 0x5951d4
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [eax]
mov ecx, eax
mov dword [esp], 0x40
call dword [edx]
mov edi, eax
mov eax, dword [ebx + 0x30]
sub esp, 4
mov dword [esp], edi
shl eax, 3
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
call fcn.005642b8
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x5951b8
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x5951b8
test eax, eax
je 0x5951b8
shl eax, 3
mov edx, dword [ecx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x30], 8
mov dword [ebx + 0x34], 8
test eax, eax
je 0x5950cc
mov edx, dword [ebx + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call fcn.005642b0
jmp 0x5950cc
mov ecx, dword [ebx + 0x2c]
shl edx, 3
mov dword [esp + 4], 0
mov dword [esp + 8], edx
lea eax, [ecx + eax*8]
mov dword [esp], eax
call fcn.005642b0
jmp 0x5950ba
Function at 0x407fb0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x407fbd
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x407fcf
pop esi
ret
cmp ecx, 1
jne 0x407fdd
cmp byte [esi], 0x5c
jne 0x407fdd
xor eax, eax
pop esi
ret
push esi
call fcn.00407d60
add esp, 4
test eax, eax
je 0x407ff1
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
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 0x402ccb
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
setne al
leave
ret

Function at 0x402e5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x40c]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push eax
push 0x80000002
mov dword [ebp - 0x408], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402ef6
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402eea
mov esi, ebx
cmp dword [ebp + 0x18], ebx
jle 0x402eea
push dword [edi + esi*4]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x402ee8
inc esi
cmp esi, dword [ebp + 0x18]
jl 0x402ecc
jmp 0x402eea
mov bl, 1
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040d205
leave
ret 0x14

Function at 0x40300a
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp byte [esi], 0
mov edi, dword [ebp + 0xc]
jne 0x403061
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x40303f
xor eax, eax
jmp 0x4030eb
xor eax, eax
push eax
push eax
push eax
push 3
push eax
push eax
push eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x40305e
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x403038
mov byte [esi], 1
lea eax, [ebp - 8]
push eax
push 0x42d2d8
push 0x17
xor esi, esi
push esi
push 0x4274c4
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x403038
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push esi
push esi
push 0x80
push esi
push esi
push esi
mov dword [ebp - 0xc], esi
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x4030ab
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x403038
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push esi
push 0x20
push edi
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push 0x42cac0
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x4030d6
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
jmp 0x4030a3
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d205
leave
ret 8
Function at 0x4030fc
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425197
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x43386c]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x43386c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x42cb22
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebx
call fcn.0040273a
push 0x42d050
push 0x42d148
mov ecx, esi
mov dword [esp + 0x78], ebx
call fcn.0040300a
mov esi, eax
test esi, esi
je 0x403228
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0xffffffffffffffff
push esi
mov dword [esp + 0x2c], ebx
call dword [eax + 0x10]
cmp eax, 1
je 0x403222
test eax, eax
js 0x403222
mov eax, dword [esp + 0x18]
push ebx
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
push 0x42cac8
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ecx
push dword [esp + 0x28]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.0040222f
mov byte [esp + 0x70], 1
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4031e8
cmp dword [esi + 4], ebx
jne 0x4031e3
push dword [esi]
call fcn.0040ce80
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x4031ea
mov eax, ebx
push eax
lea ecx, [esp + 0x4c]
call fcn.0040273a
lea eax, [esp + 0x48]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov byte [edi], bl
call fcn.004022e3
lea ecx, [esp + 0x48]
call fcn.00402331
test esi, esi
je 0x403240
mov ecx, esi
call fcn.004021d7
jmp 0x403240
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea eax, [esp + 0x30]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov byte [edi], bl
call fcn.004022e3
lea ecx, [esp + 0x30]
call fcn.00402331
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0040d205
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404ef1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x22c
push edi
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.0040fd40
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404f32
xor eax, eax
jmp 0x404f9f
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x404f53
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404f2e
push ebx
mov ebx, 0x42d334
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040fe58
pop ecx
pop ecx
test eax, eax
je 0x404fad
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x404f87
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040fe58
pop ecx
pop ecx
test eax, eax
je 0x404fad
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x404f74
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d205
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x404f9e

Function at 0x404fbc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x114
push esi
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0040fd40
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
pop esi
jb 0x405030
cmp dword [ebp - 0x110], 1
jb 0x405030
push 0x42d310
push 0x42d320
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40502c
call eax
jmp 0x405035
xor eax, eax
jmp 0x405035
call fcn.00404ef1
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x405052
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x405054
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d205
leave
ret
Function at 0x405060
Capabilities:
Encode data using xor

Disassembly:
push 0x10
mov eax, 0x425715
call fcn.00411584
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x24]
inc eax
push eax
call fcn.0040c956
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
cmovae ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x24]
inc ecx
push ecx
push eax
mov dword [ebp - 0x18], eax
call fcn.0040ffc4
mov eax, dword [ebp + 0x24]
inc eax
push ebx
mov dword [ebp - 0x10], eax
call fcn.00410019
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x1c], esi
test ebx, ebx
je 0x4050e4
mov ecx, dword [ebp + 8]
mov ebx, esi
sub ecx, esi
mov esi, dword [ebp - 0x14]
xor eax, eax
cmp edi, dword [ebp - 0x10]
cmove edi, eax
lea eax, [edi - 1]
cdq
idiv dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov al, byte [edx + eax + 1]
add al, byte [ebp + 0x2c]
xor al, byte [ecx + ebx]
inc edi
mov byte [ebx], al
inc ebx
dec esi
jne 0x4050be
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp + 0x14]
call fcn.00402331
mov eax, esi
call fcn.00411552
ret 0x28
Function at 0x405dbe
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x4254d2
call fcn.004115ed
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040175a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
jl 0x405e0e
push 0x42d430
push eax
call fcn.004101bc
pop ecx
pop ecx
test eax, eax
je 0x405e0e
mov ecx, dword [ebp - 0x14]
sub eax, ecx
sar eax, 1
js 0x405e0e
add ecx, 0xfffffff0
jmp 0x405e56
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov byte [ebp - 4], 2
call fcn.00402769
test al, al
je 0x405e31
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004021a3
or esi, 0xffffffff
jmp 0x405e70
call fcn.00404fbc
test al, al
jne 0x405e21
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401734
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x14]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.004021a3
jmp 0x405e70
lea ecx, [ebp + 8]
call fcn.00402331
mov eax, esi
call fcn.00411552
ret 0x18

Function at 0x405f62
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4257c3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x43386c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
add ecx, esi
push edi
mov edx, dword [ecx + 0xc]
and edx, 0xfffffffe
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], edi
cmove edx, eax
push edx
call fcn.00404939
push ecx
push esi
lea ecx, [esp + 0x14]
call fcn.00408770
mov dword [esp + 0x38], edi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test byte [ecx + esi + 0xc], 6
jne 0x40600f
mov ecx, dword [ecx + esi + 0x38]
push 1
push dword [ebp + 0x10]
mov eax, dword [ecx]
push edi
push edi
lea edx, [esp + 0x24]
push edx
call dword [eax + 0x28]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
adc ecx, dword [esp + 0x20]
cmp eax, dword [0x426320]
jne 0x40600f
cmp ecx, dword [0x426324]
jne 0x40600f
mov eax, dword [esi]
push edi
mov ecx, dword [eax + 4]
add ecx, esi
push 2
call fcn.004049cf
or dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov ecx, dword [eax + ecx + 0x38]
test ecx, ecx
je 0x40602a
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406cdd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4255d9
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x43386c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x43386c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x406e2a
cmp byte [esi + 0x45], bl
je 0x406e2a
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x406d41
xor al, al
jmp 0x406e2c
push ebx
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004086c6
lea eax, [esi + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x24]
cmovae edi, edx
lea esi, [esp + 0x24]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [esp + 0x24]
call dword [edx + 0x20]
sub eax, ebx
je 0x406dab
dec eax
jne 0x406e10
mov esi, dword [esp + 0x14]
jmp 0x406db2
mov esi, dword [esp + 0x14]
mov byte [esi + 0x45], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub edi, eax
je 0x406df1
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call fcn.00410821
add esp, 0x10
cmp edi, eax
jne 0x406e19
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp byte [esi + 0x45], 0
je 0x406e17
test edi, edi
jne 0x406d70
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00404069
jmp 0x406d68
dec eax
dec eax
jne 0x406e1d
inc eax
jmp 0x406e1b
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00402331
mov al, bl
jmp 0x406e2c
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040d205
mov esp, ebp
pop ebp
ret