joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ba4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x401b84
mov esi, 0x403030
mov edi, 0x403018
xor eax, eax
push ebp
push 0x401dfa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x401e14
call fcn.00401aec
mov eax, 0x401e44
call fcn.00401aec
mov eax, 0x401e68
call fcn.00401aec
call fcn.00401b48
mov eax, edi
xor ecx, ecx
mov edx, 0x12
call fcn.004010c0
mov byte [edi + 2], 2
mov byte [edi + 0x10], 0x20
mov byte [edi + 0x11], 0x20
mov eax, esi
xor ecx, ecx
mov edx, 0x140
call fcn.004010c0
push esi
push 0x401e80
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401ddf
test byte [esi], 0x10
jne 0x401dc4
lea eax, [esi + 0x2c]
and eax, 0xffff
cmp eax, 0x2e
je 0x401dc4
lea eax, [esi + 0x2c]
and eax, 0xffffff
cmp eax, 0x2e2e
je 0x401dc4
lea eax, [ebp - 0x14]
lea edx, [esi + 0x2c]
mov ecx, 0x104
call fcn.004011e8
mov eax, dword [ebp - 0x14]
call fcn.00401ad4
lea eax, [ebp - 0x18]
lea edx, [esi + 0x2c]
mov ecx, 0x104
call fcn.004011e8
mov edx, dword [ebp - 0x18]
mov eax, 0x40300c
call fcn.00401910
mov eax, 0x40300c
mov dx, 1
call fcn.00401a08
mov edx, 0x403008
mov eax, 0x40300c
mov ecx, 4
call fcn.00401a60
mov ax, word [0x403008]
mov word [edi + 0xc], ax
mov edx, 0x403008
mov eax, 0x40300c
mov ecx, 4
call fcn.00401a60
mov ax, word [0x403008]
mov word [edi + 0xe], ax
movzx edx, word [edi + 0xc]
movzx eax, ax
imul edx, eax
mov dword [0x403008], edx
mov eax, dword [0x403008]
push eax
mov eax, 0x40302c
mov ecx, 1
mov edx, dword [0x401b60]
call fcn.00401750
add esp, 4
mov ecx, dword [0x403008]
shl ecx, 2
mov edx, dword [0x40302c]
mov eax, 0x40300c
call fcn.00401a60
mov eax, 0x40300c
call fcn.00401a18
lea eax, [ebp - 0x20]
lea edx, [esi + 0x2c]
mov ecx, 0x104
call fcn.004011e8
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov edx, 0x401e90
call fcn.0040189c
mov edx, dword [ebp - 0x1c]
mov eax, 0x40300c
call fcn.00401910
mov eax, 0x40300c
mov dx, 1
call fcn.00401a10
mov edx, edi
mov eax, 0x40300c
mov ecx, 0x12
call fcn.00401ab4
mov ecx, dword [0x403008]
shl ecx, 2
mov edx, dword [0x40302c]
mov eax, 0x40300c
call fcn.00401ab4
mov eax, 0x40300c
call fcn.00401a18
push 0
mov eax, 0x40302c
mov ecx, 1
mov edx, dword [0x401b60]
call fcn.00401750
add esp, 4
call fcn.00401b48
push esi
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x401c39
push ebx
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401e01
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00401108
ret
Function at 0x44d580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x6ddc7c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp dword [edx + 0x14], 8
push edi
jb 0x44d5a3
mov edx, dword [edx]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44d5d9
or esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x10]
call fcn.0044cf80
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0x28]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x24]
test eax, eax
jne 0x44d64c
lea esi, [eax - 2]
cmp edx, 0x10
jb 0x44d642
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x44d638
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44d6a6
push edx
push ecx
call fcn.005ff7fe
add esp, 8
mov dword [esp + 0x20], 0
jmp 0x44d67e
cmp edx, 0x10
jb 0x44d67a
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x44d670
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44d6a6
push edx
push ecx
call fcn.005ff7fe
add esp, 8
mov dword [esp + 0x20], esi
push edi
mov byte [esp + 0x14], 0
mov dword [esp + 0x28], 0xf
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret
call fcn.0061f5be
int3

Function at 0x44fc10
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x6ddc7c]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44fc62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x6eb97c]
cmp ecx, dword [edx + 4]
jg 0x44fc75
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x6eb958
test edi, edi
jne 0x44fcbb
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret
push 0x6eb97c
call fcn.005ffe54
add esp, 4
cmp dword [0x6eb97c], 0xffffffff
jne 0x44fc52
push 0x650420
mov dword [0x6eb95c], 0x6eb958
mov dword [0x6eb958], 0x6ac23c
call fcn.005ffc91
add esp, 4
push 0x6eb97c
call fcn.005ffe0a
add esp, 4
jmp 0x44fc52
mov edx, 0x6b2efc
lea ecx, [esp + 0xc]
call fcn.0044fae0
int3
Function at 0x4501d0
Capabilities:
Check mutex on windows
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x6ddc7c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
push str.3EE7019F_B11E_4720_B111_F74A2AC68308
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45022c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 0x10
push ecx
call fcn.0046d120
mov ecx, eax
call fcn.0046d1a0
call fcn.0045b0e0
push 0x20a
mov edi, eax
lea eax, [esp + 0x74]
push 0
push eax
call fcn.00617280
add esp, 0xc
lea eax, [esp + 0x70]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x6b3d04
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x70]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x450294
sub eax, edx
lea ecx, [edi + 8]
sar eax, 1
push eax
lea eax, [esp + 0x74]
push eax
call fcn.0044e410
push ecx
push str.MainUI
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0x6b3070
mov dword [esp + 0x6c], vtable.nbase::SupportWeakCallback.0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call fcn.00504480
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CMarchApp.0
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x20], vtable.CMarchApp.1.0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x28], 1
mov byte [esp + 0x24], 1
mov dword [esp + 0x38], 0
call dword [eax + 4]
lea ecx, [esp + 0x10]
call fcn.00450160
call fcn.0045b0e0
mov ebx, eax
mov ecx, ebx
call fcn.0045bd50
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45035d
push eax
call edi
mov dword [ebx + 4], 0
call fcn.0046d120
test esi, esi
je 0x450369
push esi
call edi
mov ecx, dword [esp + 0x284]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x450460
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x6ddc7c]
xor eax, esp
mov dword [esp + 0x19c], eax
push esi
push edi
push 0x6eb964
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4504a7
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x6eb968
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 8], 0
je 0x4504d9
push 0
push 0x6eb968
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov esi, eax
test esi, esi
je 0x4504d9
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx]
mov ecx, dword [0x6eb97c]
cmp ecx, dword [edx + 4]
jle 0x450537
jmp 0x4504f1
mov ecx, dword [esp + 0x1a4]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 4
push 0x6eb97c
call fcn.005ffe54
add esp, 4
cmp dword [0x6eb97c], 0xffffffff
jne 0x450537
push 0x650420
mov dword [0x6eb95c], 0x6eb958
mov dword [0x6eb958], 0x6ac23c
call fcn.005ffc91
add esp, 4
push 0x6eb97c
call fcn.005ffe0a
add esp, 4
jmp 0x450537
mov edx, str.winsock
mov dword [esp + 8], esi
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0x6eb958
call fcn.0044fae0
int3

Function at 0x450dd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6419c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6ddc7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx + 0x48]
mov dword [ebp - 0x10], edi
call fcn.00504ef0
test edi, edi
js 0x450e83
call fcn.00504c70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x450e83
call fcn.00504ef0
mov esi, eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
call fcn.00504ef0
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x18]
call fcn.00505240
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x18]
call fcn.00505260
cmp byte [ebp - 0x18], 0
jne 0x450e6f
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebx]
jne 0x450e78
mov eax, dword [ebp - 0x10]
inc dword [ebx + 8]
mov dword [ebx + 0xc], eax
test esi, esi
je 0x450e83
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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 0x450ea0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6419f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6ddc7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00504ef0
call fcn.00504c70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x450f4d
mov ecx, dword [edi + 8]
cmp ecx, 1
jl 0x450f4d
add ecx, 0xffffffff
mov dword [edi + 8], ecx
jne 0x450f4d
call fcn.00504ef0
mov esi, eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [edi + 0xc]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00504ef0
lea ecx, [eax + 0x18]
call fcn.004bf0c0
call fcn.00504ef0
mov edi, dword [ebp - 0x10]
cmp edi, dword [eax + 0x18]
je 0x450f3c
call fcn.00504ef0
push edi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [eax + 0x18]
call fcn.00505190
mov dword [ebx], 0xffffffff
test esi, esi
je 0x450f4d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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 0x451fa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6419f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6ddc7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x48]
call fcn.005046e0
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x48], 0
test ecx, ecx
je 0x451fe6
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x4c]
call fcn.005046e0
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x4c], 0
test ecx, ecx
je 0x452002
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.00504c70
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call esi
test eax, eax
je 0x452019
mov byte [eax + 4], 1
call fcn.00504ef0
call fcn.00504c70
push dword [eax]
call esi
mov edi, eax
test edi, edi
je 0x4520a1
mov ecx, dword [edi + 8]
cmp ecx, 1
jl 0x4520a1
add ecx, 0xffffffff
mov dword [edi + 8], ecx
jne 0x4520a1
call fcn.00504ef0
mov esi, eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [edi + 0xc]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00504ef0
lea ecx, [eax + 0x18]
call fcn.004bf0c0
call fcn.00504ef0
mov edi, dword [ebp - 0x10]
cmp edi, dword [eax + 0x18]
je 0x452089
call fcn.00504ef0
push edi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [eax + 0x18]
call fcn.00505190
mov dword [ebx], 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4520a1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x6eb944], 0
je 0x4520b9
call fcn.004f0010
mov dword [0x6eb944], 0
mov eax, dword [0x6eb8cc]
mov dword [0x6eb8cc], 0
test eax, eax
je 0x4520d7
push 4
push eax
call fcn.005ff7fe
add esp, 8
call fcn.004c3170
push dword [0x6eb940]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
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 0x456070
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0x7b
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
cmp eax, vtable.CMarchDiscountDlg.1.0
jne 0x4560c3
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4560a2
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x10
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_PostMessageW]
push 1
push dword [esi + 0x260]
call dword [sym.imp.USER32.dll_EnableWindow]
pop esi
ret 4
push 1
push 0
mov ecx, esi
call edx
jmp 0x4560a2

Function at 0x4571b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cf520
Function at 0x45b140
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642578
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6ddc7c]
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 edi, ecx
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004561f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x640041
lea edx, [eax + 2]
mov dword [ebp - 0x40], 0x62006f
mov dword [ebp - 0x3c], 0x540065
mov dword [ebp - 0x38], 0x6f006f
mov dword [ebp - 0x34], 0x73006c
mov dword [ebp - 0x30], 0x73002e
mov dword [ebp - 0x2c], 0x6f0074
mov dword [ebp - 0x28], 0x610072
mov dword [ebp - 0x24], 0x650067
mov dword [ebp - 0x20], 0x6c002e
mov dword [ebp - 0x1c], 0x2e0031
mov dword [ebp - 0x18], 0x6c0064
mov dword [ebp - 0x14], 0x6c
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b1e1
sub eax, edx
lea ecx, [ebp - 0x5c]
sar eax, 1
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0044e880
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
test eax, eax
lea eax, [ebp - 0x5c]
push 0x80
je 0x45b293
cmp dword [ebp - 0x48], 8
push 3
cmovae eax, dword [ebp - 0x5c]
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push eax
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x2d0
jae 0x45b251
xor esi, esi
jmp 0x45b2bb
lea esi, [ebx + 1]
push esi
call fcn.005ffca6
push esi
push 0
push eax
mov dword [ebp - 0x64], eax
call fcn.00617280
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
add esp, 0x10
mov dword [ebp - 0x60], 0
push 0
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45b2b6
push ebx
push esi
mov ecx, edi
call fcn.0045b320
jmp 0x45b2b6
cmp dword [ebp - 0x48], 8
push 2
cmovae eax, dword [ebp - 0x5c]
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
mov dword [edi], 1
mov esi, 1
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x45b2f1
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b2e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45b30f
push edx
push ecx
call fcn.005ff7fe
add esp, 8
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.005ff7bd
mov esp, ebp
pop ebp
ret
call fcn.0061f5be
int3
Function at 0x460f80
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6ddc7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6b426c
push 0xb4
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x461019
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x461011
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x461011
cmp dword [esi + 0x14], 8
jb 0x460fd4
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x461011
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 4
Function at 0x461030
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642e90
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6ddc7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
call fcn.0045b0e0
add eax, 8
lea ecx, [ebp - 0x44]
push eax
call fcn.004561f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x2c], 0x720061
mov dword [ebp - 0x28], 0x610069
lea edx, [ecx + 2]
mov dword [ebp - 0x24], 0x630032
mov dword [ebp - 0x20], 0x65002e
mov dword [ebp - 0x1c], 0x650078
mov word [ebp - 0x18], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4610a6
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0044e880
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4610fe
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
call fcn.004b67e0
test eax, eax
lea eax, [ebp - 0x44]
jne 0x461134
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x44]
push eax
call fcn.00460f80
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x461152
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
call fcn.004b67e0
test eax, eax
je 0x461152
lea eax, [ebp - 0x44]
cmp esi, eax
je 0x46114e
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
mov ecx, esi
push eax
call fcn.0044e410
mov bl, 1
jmp 0x4611c4
push 0x10
xor eax, eax
mov dword [ebp - 0x1c], 0
push 0x6b4278
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0044e410
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push dword [ebx + 0x10]
mov edx, 0xbb8
call fcn.004b6a70
mov edx, dword [ebp - 0x18]
add esp, 4
cmp edx, 8
jb 0x4611c2
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4611b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461219
push edx
push ecx
call fcn.005ff7fe
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4611fa
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4611f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46121e
push edx
push ecx
call fcn.005ff7fe
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 4
call fcn.0061f5be
call fcn.0061f5be
int3
Function at 0x461970
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642fec
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4a0
mov eax, dword [0x6ddc7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x434], 0
jmp dword [eax*4 + 0x462060]

Function at 0x462590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6ddc7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.0046d120
cmp dword [eax], 5
jle 0x462615
push 0x38
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 0x3c
push 0
push eax
call fcn.00617280
add esp, 0xc
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x34], str.runas
mov dword [ebp - 0x30], esi
call fcn.0046d120
add eax, 0x28
cmp dword [eax + 0x14], 8
jb 0x4625e6
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x462629
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 4
push 0xa
push esi
push 0
push 0
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 4