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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004f37c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10031850
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10031880
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10031880
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1003197a
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100318a9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100318dd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1003197a
cmp eax, 1
jle 0x1003193b
cmp eax, 3
jne 0x1003197a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10035270
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10031959
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1003197a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1003197a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
Function at 0x10035270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1003527f
pop dword [ebp - 0xc]
mov eax, 0x629f38ec
add eax, 0xad641993
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xf9379351
sub dword [ebp - 0x1c], 0xaae54e06
mov dword [ebp - 0x18], 0x1ba75a8
sub dword [ebp - 0x18], 0xcf872963
mov dword [ebp - 0x14], 0xc94254f1
sub dword [ebp - 0x14], 0x7cf610c3
mov dword [ebp - 0x10], 0x930edf43
sub dword [ebp - 0x10], 0x930edf43
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x905132cd
add eax, 0x7fb2cd6f
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x78c3d49d
add dword [ebp - 0x1c], 0xfbae94b9
mov dword [ebp - 0x18], 0x4f828811
sub dword [ebp - 0x18], 0xe16269c
mov dword [ebp - 0x14], 0x1f64813c
add dword [ebp - 0x14], 0x440aeb30
mov dword [ebp - 0x10], 0xfd995a56
sub dword [ebp - 0x10], 0xfd995a56
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x15000c65
sub eax, 0x4fc0c35
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x45924
push 0
call eax
mov ecx, 0xd3950450
add ecx, 0x2c6b40d4
mov edi, eax
mov ebx, 0x190f8d94
add ebx, 0xf6f5e06c
add ebx, dword [ebp - 0xc]
mov edx, 0x59e14a34
add edx, 0x688c2768
xor dword [ebp - 8], eax
mov esi, dword [ebx]
xor esi, edx
xor dword [ebp - 8], esi
mov dword [edi], esi
xor dword [ebp - 4], 0x92004477
add edi, 0xec979bdb
add edi, 0x13686429
add ebx, 4
loop 0x100353a1
add eax, 0x62b842f4
add eax, 0x9d48c46f
mov ebx, eax
add eax, 0xe420c4c6
add eax, 0x1bdf3b3f
mov ecx, 0xf995c8ab
add ecx, 0x166a3755
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x10036f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ecf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004f338]
cmp eax, 0xffffffff
jne 0x10036fb6
xor ebx, ebx
jmp 0x10036fbf
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10036fff
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003703e
test esi, esi
jne 0x10037042
push 0x10035760
push 0x10050e58
call fcn.10035270
mov eax, dword [0x1004f338]
add esp, 8
cmp eax, 0xffffffff
je 0x10036fff
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003702c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003702c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10037084
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003706d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10037042
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036fd0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100370a9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100370a9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10035270
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10037090
jmp 0x10036fd0

Function at 0x100370d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10037130
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100370fa
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x10037118
cmp eax, 0xffffffff
je 0x10037118
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x401631
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x144, 0
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
mov dword [ebp - 0x24], 6
xor eax, eax
push 0x7f00
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], eax
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.DLL_LoadCursorA]
push 0x7f00
push 0
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.DLL_RegisterClassW]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.DLL_LoadAcceleratorsA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 4], 0x14
mov byte [ebp - 0x144], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringW]
movzx ebx, word [ebp - 0x18]
call dword [sym.imp.OLE32.DLL_CoUninitialize]
lea eax, [ebx - 0x41]
leave
pop edx
pop ecx
pop ebx
ret

Function at 0x4016e2
Capabilities:
Encode data using base64 via winapi

Disassembly:
xor eax, 0x7289c7
inc ebp
lea esi, [ecx]
dec esp
invalid
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x403203
pop dword [ebp - 0x3c]
mov eax, 0x403203
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xd3bb339b
add dword [ebp - 0x4c], 0x7a9711b0
mov dword [ebp - 0x48], 0xe55da480
add dword [ebp - 0x48], 0x4cd5a7c5
mov dword [ebp - 0x44], 0xb2d30aff
sub dword [ebp - 0x44], 0x6686c6d1
mov dword [ebp - 0x40], 0x149fc05c
add dword [ebp - 0x40], 0xeb603fa4
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x8ee4a869
sub dword [ebp - 0x4c], 0x1a723f13
mov dword [ebp - 0x48], 0x5120969
sub dword [ebp - 0x48], 0xc3a5a7f4
mov dword [ebp - 0x44], 0x1bc6194c
add dword [ebp - 0x44], 0x47a95320
mov dword [ebp - 0x40], 0x1795686c
add dword [ebp - 0x40], 0xe86a9794
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x5366d946
add eax, 0xacd9a78e
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3736d
push 0
call eax
mov ecx, 0xe566f43
sub ecx, 0xe5624c8
mov esi, eax
mov edx, 0x411000
add edx, dword [ebp - 0x3c]
mov edi, 0x408d858
add edi, 0xb22973d6
add dword [ebp - 0x2c], 0x39b04629
mov ebx, dword [edx]
sub dword [ebp - 0x1c], 0xb4a57bfc
sub ebx, edi
xor dword [ebp - 0x14], edi
mov dword [esi], ebx
add dword [ebp - 0xc], edx
add esi, 0xb8eb5fff
sub esi, 0xb8eb5ffb
add edx, 4
loop 0x403315
add eax, 0xab42bd1c
add eax, 0x54be5fa3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb6cf3985
sub ecx, 0xb68f3985
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x402e54
Capabilities:
Set environment variable
Set file attributes

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404fdc
test esi, esi
jne 0x402e8a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_SetFileAttributesA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004050cc
jmp 0x402ea8
call sub.KERNEL32.DLL_SetEnvironmentVariableW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402d08
mov edi, eax
test esi, esi
je 0x402ea8
cmp dword [ebx], 0
je 0x402ea8
dec esi
jmp 0x402e91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4035c4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4b7008], 0x8088405
inc edx
mov dword [ebx + 0x4b7008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403608
Capabilities:
Extract resource via kernel32 functions
Move file

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor edx, edx
mov ebx, eax
mov dx, word [eax + 4]
sub edx, 0xd7b0
je 0x403634
cmp edx, 3
ja 0x4036ca
call dword [ebx + 0x24]
test eax, eax
je 0x403634
call fcn.00402c48
mov word [ebx + 4], 0xd7b3
mov dword [ebx + 8], esi
mov dword [ebx + 0x24], 0x4035e0
mov dword [ebx + 0x1c], 0x40301c
cmp byte [ebx + 0x48], 0
je 0x4036b1
mov eax, 0xc0000000
mov dl, byte [0x4b700c]
and edx, 0x70
shr edx, 2
mov edx, dword [edx + 0x4b7058]
mov ecx, 2
sub edi, 3
je 0x403693
mov ecx, 3
inc edi
je 0x403693
mov eax, 0x40000000
inc edi
mov word [ebx + 4], 0xd7b2
je 0x403693
mov eax, 0x80000000
mov word [ebx + 4], 0xd7b1
push 0
push 0x80
push ecx
push 0
push edx
push eax
lea eax, [ebx + 0x48]
push eax
call sub.KERNEL32.DLL_LoadResource
cmp eax, 0xffffffff
je 0x4036d1
mov dword [ebx], eax
jmp 0x4036e1
mov dword [ebx + 0x24], 0x40301c
cmp edi, 3
je 0x4036c1
push 0xfffffffffffffff6
jmp 0x4036c3
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_MoveFileW
jmp 0x4036a8
mov eax, 0x66
jmp 0x4036dc
mov word [ebx + 4], 0xd7b0
call sub.KERNEL32.DLL_SetErrorMode
call fcn.00402c48
pop edi
pop esi
pop ebx
ret

Function at 0x404ddc
Capabilities:
Move file

Disassembly:
push ecx
cmp byte [0x4bc04c], 0
je 0x404e3d
cmp word [0x4bc220], 0xd7b2
jne 0x404e05
cmp dword [0x4bc228], 0
jbe 0x404e05
mov eax, 0x4bc21c
call dword [0x4bc238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b70a4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_MoveFileW
push eax
call sub.KERNEL32.DLL_ReleaseMutex
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404e64
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_MoveFileW
push eax
call sub.KERNEL32.DLL_ReleaseMutex
pop edx
ret
cmp byte [0x4b7020], 0
jne 0x404e59
push 0
push 0x4b70c4
push 0x4b70a4
push 0
call sub.user32.dll_WaitMessage
pop edx
ret
Function at 0x404e68
Capabilities:
Set environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x4bc634
mov esi, section.DATA
mov edi, 0x4bc048
cmp byte [ebx + 0x28], 0
jne 0x404e97
cmp dword [edi], 0
je 0x404e97
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x404e86
cmp dword [0x4b7004], 0
je 0x404eb1
call fcn.00404d50
call fcn.00404ddc
xor eax, eax
mov dword [0x4b7004], eax
cmp byte [ebx + 0x28], 2
jne 0x404ec1
cmp dword [esi], 0
jne 0x404ec1
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.00404c04
cmp byte [ebx + 0x28], 1
jbe 0x404ed1
cmp dword [esi], 0
je 0x404ef2
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x404ef2
call fcn.004070c0
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + 0x10]
cmp eax, dword [edx + 4]
je 0x404ef2
test eax, eax
je 0x404ef2
push eax
call sub.KERNEL32.DLL_SetEnvironmentVariableA
call fcn.00404bdc
cmp byte [ebx + 0x28], 1
jne 0x404f00
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x404f0b
call fcn.00404dac
cmp dword [ebx], 0
jne 0x404f27
cmp dword [0x4bc028], 0
je 0x404f1f
call dword [0x4bc028]
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_ResetEvent
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x404eb1

Function at 0x406b18
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov ebx, eax
cmp dword [ebx + 0x10], 0
jne 0x406b53
push 0x105
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, esp
mov dl, 1
call fcn.00406d54
mov esi, eax
mov dword [ebx + 0x10], esi
test esi, esi
jne 0x406b53
mov eax, dword [ebx + 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x10]
add esp, 0x108
pop esi
pop ebx
ret
Function at 0x406b9c
Capabilities:
Resume thread
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x406d30
call sub.KERNEL32.DLL_SetFileAttributesW
mov esi, eax
test esi, esi
je 0x406c04
push 0x406d40
push esi
call sub.KERNEL32.DLL_SetFilePointer
mov ebx, eax
test ebx, ebx
je 0x406c04
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x406c04
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x406d26
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x406c44
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x406d26
mov eax, dword [ebp - 4]
add eax, 2
call fcn.00406b88
mov esi, eax
cmp byte [esi], 0
je 0x406d26
lea eax, [esi + 1]
call fcn.00406b88
mov esi, eax
cmp byte [esi], 0
je 0x406d26
jmp 0x406c4a
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x406d09
lea eax, [esi + 1]
call fcn.00406b88
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x406d26
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_TerminateProcess
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
mov esi, eax
cmp esi, 0xffffffff
je 0x406d26
push esi
call sub.KERNEL32.DLL_ResumeThread
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x406d26
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_TerminateProcess
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x406c68
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_TerminateProcess
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406d54
Capabilities:
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_SetFileAttributesA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f84
push 0x80000001
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
je 0x406dd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f84
push 0x80000002
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
je 0x406dd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406fa0
push 0x80000001
call sub.user32.dll_UnhookWindowsHookEx
test eax, eax
jne 0x406e60
xor eax, eax
push ebp
push 0x406e59
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406b9c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_UnregisterClassA
test eax, eax
je 0x406e3e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406fc0
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_UnregisterClassA
test eax, eax
je 0x406e3e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e60
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_TranslateMessage
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_TerminateProcess
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_SetThreadLocale
push eax
call sub.KERNEL32.DLL_SetEvent
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406f7a
cmp byte [ebp - 0xd], 0
jne 0x406ea7
cmp byte [ebp - 0x12], 0
je 0x406f7a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406ec0
dec ebx
cmp byte [ebx], 0x2e
je 0x406ecf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406ebf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406f7a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406f0c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov esi, eax
test esi, esi
jne 0x406f7a
cmp byte [ebp - 0xd], 0
je 0x406f7a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov esi, eax
test esi, esi
jne 0x406f7a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427824
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42782a
ret