joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e70
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ecx, ecx
push esi
cmp ebp, ecx
push edi
je 0x405e81
mov dword [ebp], ecx
mov esi, dword [esp + 0x18]
cmp esi, ecx
je 0x40602c
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x13c4], ecx
cmp eax, ecx
je 0x40602c
mov edi, dword [esp + 0x20]
cmp edi, ecx
jl 0x40602c
mov dl, byte [esi + 0x1390]
test dl, dl
je 0x405ed3
cmp ebp, ecx
je 0x405ec0
mov dword [ebp], 0xffffffff
mov dword [esi + 0x13c4], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
cmp edi, ecx
jne 0x405eed
cmp ebp, ecx
je 0x405ede
mov dword [ebp], ecx
mov dword [esi + 0x13c4], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov dword [esi + 0x13a8], edi
mov dword [esi + 0x13a4], eax
mov eax, dword [esi]
test byte [eax + 0xc], 0x20
jne 0x405fbc
mov ecx, dword [esi + 0x1398]
test ecx, ecx
jne 0x405f53
push eax
call fcn.00406050
add esp, 4
test al, al
jne 0x405f53
mov eax, dword [esi]
lea edi, [esi + 4]
push eax
push 0x1388
push 1
push edi
call ebx
mov ecx, dword [esi]
add esp, 0x10
test byte [ecx + 0xc], 0x20
jne 0x405fbc
mov dword [esi + 0x1394], edi
mov edi, dword [esp + 0x20]
mov dword [esi + 0x138c], eax
mov dword [esi + 0x1398], eax
lea edx, [esi + 0x1394]
push edx
call fcn.00404960
test eax, eax
jne 0x405f95
mov eax, dword [esi]
push eax
call fcn.00406050
add esp, 4
test al, al
je 0x405f86
mov eax, dword [esi + 0x1398]
test eax, eax
jne 0x405f86
mov eax, dword [esi + 0x13a8]
test eax, eax
ja 0x405ff0
mov eax, dword [esi + 0x13a8]
test eax, eax
je 0x40600e
jmp 0x405eff
cmp eax, 4
jne 0x405fda
test ebp, ebp
je 0x405fa1
mov dword [ebp], eax
mov ecx, dword [esi + 0x13a8]
mov eax, edi
mov dword [esi + 0x13c4], 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 0x10
test ebp, ebp
je 0x405fc7
mov dword [ebp], 0xfffffffa
mov dword [esi + 0x13c4], 0xfffffffa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
test ebp, ebp
je 0x405fe1
mov dword [ebp], eax
mov dword [esi + 0x13c4], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
test ebp, ebp
je 0x405ffb
mov dword [ebp], 0xfffffff9
mov dword [esi + 0x13c4], 0xfffffff9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
test ebp, ebp
je 0x406019
mov dword [ebp], 0
mov eax, edi
mov dword [esi + 0x13c4], 0
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp ebp, ecx
je 0x406037
mov dword [ebp], 0xfffffffe
cmp esi, ecx
je 0x406045
mov dword [esi + 0x13c4], 0xfffffffe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x40cf6a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e0d8
push 0x40d09c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x413628], 0xffffffff
or dword [0x41362c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x412578]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x412574]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x413630], eax
call fcn.00403ea0
cmp dword [0x412550], 0
jne 0x40cfed
push 0x40d098
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040d086
push 0x40f00c
push 0x40f008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x412570]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41256c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40f004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403250
push 0x402140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x404184], 0xffffffff
mov dword [0x404188], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404180]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40417c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40418c], ecx
call fcn.00402130
mov eax, dword [0x404130]
test eax, eax
jne 0x401fd1
push 0x402120
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402100
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x404178]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x404174]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4020df
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x402045
cmp al, 0x22
jne 0x402037
cmp byte [esi], 0x22
jne 0x40204e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40205e
cmp al, 0x20
ja 0x40205e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40204e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40207f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402084
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4020c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40204e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4020df

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 0x441922
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x477a30], eax
push edi
mov edx, esi
mov eax, 0x477a30
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4783ec
jl 0x441933
pop edi
mov dword [0x4672d0], esi
mov dword [0x47840c], esi
pop esi
ret

Function at 0x441961
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x47840c], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x477a30
jne 0x441981
push 0
call fcn.0044b9d2
pop ecx
call fcn.00441922
mov dword [0x4672d0], 0x270
mov dword [0x477a28], esi
mov edx, 0xe3
mov ecx, SysReAllocString
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x4419a0
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x4419d6
mov edx, dword [0x477a30]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x441a30
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4672d0]
jne 0x441a3d
call fcn.00441961
mov eax, dword [0x477a28]
mov ecx, dword [eax]
add dword [0x477a28], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x441a74
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4672d0]
jne 0x441a86
call fcn.00441961
mov eax, dword [0x477a28]
mov eax, dword [eax]
add dword [0x477a28], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
jge 0x441acc
fadd qword [0x462788]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x462778]
leave
ret

Function at 0x442146
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00449660
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x442abd
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
push edi
xor edi, edi
inc edi
mov dword [eax], ecx
mov esi, edi
mov ecx, eax
mov edx, dword [ecx]
mov ebx, edx
shr ebx, 0x1e
xor ebx, edx
imul ebx, ebx, 0x6c078965
add ebx, esi
mov dword [ecx + 4], ebx
inc esi
add ecx, 4
cmp esi, 0x270
jl 0x442ac9
mov dword [eax + 0x9c0], edi
mov dword [eax + 0x9c4], edi
pop edi
pop esi
pop ebx
ret

Function at 0x442af9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebx, eax
cmp dword [ebx + 0x9c4], 0
push esi
push edi
mov esi, ebx
jne 0x442b1d
push 0
call fcn.0044b9d2
pop ecx
mov ecx, eax
mov eax, ebx
call fcn.00442abd
mov dword [ebx + 0x9c0], 0x270
mov dword [ebx + 0x9c8], ebx
mov dword [esp + 0x10], 0xe3
mov ecx, SysReAllocString
mov eax, 0x9908b0df
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi + 0x634]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x442b3f
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor edx, ebp
and edx, ecx
xor edx, dword [esi]
mov dword [esp + 0x14], ecx
mov ecx, ebp
and cl, 1
shr edx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor edx, ecx
xor edx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov esi, edi
jne 0x442b7b
mov ebx, dword [ebx]
mov edx, dword [esi]
xor edx, ebx
and edx, ecx
xor edx, dword [esi]
and bl, 1
shr edx, 1
neg bl
pop edi
sbb ebx, ebx
and ebx, eax
xor edx, ebx
xor edx, dword [esi - 0x38c]
mov dword [esi], edx
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x442bd5
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [esi + 0x9c0]
jne 0x442be4
mov eax, esi
call fcn.00442af9
lea eax, [esi + 0x9c8]
mov edx, dword [eax]
mov ecx, dword [edx]
add edx, 4
mov dword [eax], edx
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x442e08
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9cc
push ebx
xor ebx, ebx
lea eax, [ebp - 0x9cc]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
call fcn.00442abd
cmp dword [ebp + 0xc], ebx
jbe 0x442e4b
push esi
push edi
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x9cc]
lea edi, [ebx + eax]
call fcn.00442bd5
xor byte [edi], al
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x442e30
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44be98
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x45b1b8
call fcn.0044d788
mov edi, 0x94
mov eax, edi
call fcn.0044c070
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x459260]
mov ecx, dword [esi + 0x10]
mov dword [0x4673cc], ecx
mov eax, dword [esi + 4]
mov dword [0x4673d8], eax
mov edx, dword [esi + 8]
mov dword [0x4673dc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4673d0], esi
cmp ecx, 2
je 0x44bef8
or esi, 0x8000
mov dword [0x4673d0], esi
shl eax, 8
add eax, edx
mov dword [0x4673d4], eax
xor esi, esi
push esi
mov edi, dword [0x45924c]
call edi
cmp word [eax], 0x5a4d
jne 0x44bf33
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44bf33
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44bf4b
cmp eax, 0x20b
je 0x44bf38
mov dword [ebp - 0x1c], esi
jmp 0x44bf5f
cmp dword [ecx + 0x84], 0xe
jbe 0x44bf33
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x44bf59
cmp dword [ecx + 0x74], 0xe
jbe 0x44bf33
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0044e07d
pop ecx
test eax, eax
jne 0x44bf73
push 0x1c
call fcn.0044be74
pop ecx
call fcn.0044c499
test eax, eax
jne 0x44bf84
push 0x10
call fcn.0044be74
pop ecx
call fcn.004502e3
mov dword [ebp - 4], esi
call fcn.004505a6
test eax, eax
jge 0x44bf9d
push 0x1b
call fcn.0044be4f
pop ecx
call fcn.004536f2
mov dword [0x480b84], eax
call fcn.00453588
mov dword [0x467418], eax
call fcn.004534f2
test eax, eax
jge 0x44bfc2
push 8
call fcn.0044be4f
pop ecx
call fcn.004532bf
test eax, eax
jge 0x44bfd3
push 9
call fcn.0044be4f
pop ecx
push 1
call fcn.0044ae57
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x44bfe9
push eax
call fcn.0044be4f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x45925c]
call fcn.00453279
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x44c00a
movzx eax, word [ebp - 0x40]
jmp 0x44c00d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401852
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x44c02b
push edi
call fcn.0044af84
call fcn.0044afa6
jmp 0x44c05d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0044d7c3
ret
Function at 0x454a84
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x454ab2
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x454ab9
cmp ebx, dword [eax + 4]
jae 0x454ab9
xor eax, eax
jmp 0x454ca9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x454aca
xor eax, eax
inc eax
jmp 0x454ca8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x454ae0
cmp ecx, edx
jae 0x454c25
cmp dword [eax + 4], 0
je 0x454ae9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x454ad1
cmp dword [ebp + 8], 0
je 0x454b0b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x454c25
cmp eax, esi
jae 0x454c25
mov eax, dword [0x467928]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x454b30
cmp dword [esi*4 + 0x467930], edi
je 0x454c29
inc esi
cmp esi, eax
jl 0x454b1e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x459288]
test eax, eax
je 0x454ca5
cmp dword [ebp - 8], 0x1000000
jne 0x454ca5
test byte [ebp - 0xc], 0xcc
je 0x454bae
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x454ca5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x454ca5
cmp word [eax + 0x18], 0x10b
jne 0x454ca5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x454ca5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x454bae
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x454bae
test byte [ecx + 0x27], 0x80
jne 0x454c25
push 1
push 0x467970
call dword [0x459374]
test eax, eax
jne 0x454ac2
mov ecx, dword [0x467928]
test ecx, ecx
mov edx, ecx
jle 0x454be2
lea eax, [ecx*4 + 0x46792c]
cmp dword [eax], edi
je 0x454be2
dec edx
sub eax, 4
test edx, edx
jg 0x454bd6
test edx, edx
jne 0x454c13
push 0xf
pop ebx
cmp ecx, ebx
jg 0x454bef
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x454c07
lea eax, [edx*4 + 0x467930]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x454bf5
cmp ecx, 0x10
jge 0x454c13
inc ecx
mov dword [0x467928], ecx
push 0
push 0x467970
call dword [0x459374]
jmp 0x454ac2
xor eax, eax
jmp 0x454ca8
test esi, esi
jle 0x454ac2
mov ebx, dword [0x459374]
push 1
push 0x467970
call ebx
test eax, eax
jne 0x454ac2
cmp dword [esi*4 + 0x467930], edi
je 0x454c7f
mov eax, dword [0x467928]
lea esi, [eax - 1]
test esi, esi
jl 0x454c6d
cmp dword [esi*4 + 0x467930], edi
je 0x454c69
dec esi
jns 0x454c5d
test esi, esi
jge 0x454c7d
cmp eax, 0x10
jge 0x454c78
inc eax
mov dword [0x467928], eax
lea esi, [eax - 1]
jmp 0x454c7f
je 0x454c97
xor ecx, ecx
test esi, esi
jl 0x454c97
lea eax, [ecx*4 + 0x467930]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x454c85
push 0
push 0x467970
call ebx
jmp 0x454ac2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ecx, ecx
mov al, 1
push edi
lea ebx, [ebx]
movzx edx, al
mov byte [ebp + edx - 0x104], cl
mov dl, al
and dl, 0x80
mov byte [ebp + ecx - 0x204], al
inc ecx
neg dl
sbb dl, dl
mov bl, al
and dl, 0x1b
add bl, bl
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x401020
mov al, 1
mov ecx, 0x476540
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
and dl, 0x1b
add al, al
xor al, dl
cmp ecx, 0x476568
jl 0x401055
mov dword [0x475940], 0x63
mov dword [0x478af4], 0
mov edx, 1
jmp 0x4010a0
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x475940], eax
mov dword [eax*4 + 0x478968], edx
inc edx
cmp edx, 0x100
jl 0x4010a0
xor ecx, ecx
mov dl, byte [ecx + 0x475940]
mov al, dl
and al, 0x80
neg al
sbb al, al
and al, 0x1b
mov bl, dl
add bl, bl
xor al, bl
movzx esi, al
movzx edx, dl
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x478568], eax
ror eax, 8
mov dword [ecx + 0x478168], eax
ror eax, 8
mov dword [ecx + 0x477d68], eax
ror eax, 8
mov dword [ecx + 0x477968], eax
mov al, byte [ecx + 0x478968]
test al, al
je 0x4011af
movzx edx, al
movzx esi, byte [ebp + edx - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp - 0xf7]
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp - 0xfb]
add eax, esi
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv edi
movzx eax, byte [ebp - 0xf6]
add eax, esi
mov esi, 0xff
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv esi
movzx eax, byte [ebp + edx - 0x204]
mov edx, dword [ebp - 0x208]
jmp 0x4011b7
xor edx, edx
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edx
mov dword [ecx + 0x477568], eax
ror eax, 8
mov dword [ecx + 0x477168], eax
ror eax, 8
mov dword [ecx + 0x476140], eax
ror eax, 8
mov dword [ecx + 0x475d40], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4010e2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret
Function at 0x4026c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00458360
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.01C0AF7D_E17F_4D5E_9ED3_497FCE7F737F
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
je 0x40271d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1004]
push 0x1000
push edx
call fcn.0044f082
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret

Function at 0x402730
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00458360
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.01C0AF7D_E17F_4D5E_9ED3_497FCE7F737F
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
je 0x40278d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x2004]
push 0x2000
push edx
call fcn.0044f170
add esp, 0x10
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret
Function at 0x406290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00454990
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
push str.SYSTEMCurrentControlSetServicesEyooClientSVC
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4062ec
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push str.ImagePath
push edx
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x210]
cmp word [ebp + eax*2 - 0x20c], 0x5c
lea eax, [ebp + eax*2 - 0x20c]
je 0x406359
nop
lea ecx, [ebp - 0x20c]
cmp eax, ecx
je 0x406359
dec dword [ebp - 0x210]
sub eax, 2
cmp word [eax], 0x5c
jne 0x406340
xor edx, edx
mov word [eax], dx
cmp dword [ebp - 0x210], 0x104
ja 0x4062dc
lea eax, [ebp - 0x20c]
mov edx, esi
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x406380
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret