joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4508b0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4927f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x158]
lea edi, [ecx + 0x158]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x450906
cmp ecx, dword [esi]
jne 0x450906
lock inc dword [eax]
jmp 0x450932
mov eax, dword [ecx]
lea ebx, [esi + 4]
push 2
push dword [ebx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x4509f7
mov eax, dword [ebx]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
mov edx, dword [ebx]
inc edx
push edx
push dword [ebp - 0x10]
call fcn.004023d0
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 5
push str..part
call fcn.00402280
lea ecx, [ebp - 0x10]
call fcn.0040a190
mov esi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test al, al
je 0x450966
push esi
call ebx
mov ecx, edi
call fcn.0040a190
test al, al
je 0x450975
push dword [edi]
call ebx
push 0x5c
push dword [edi]
call fcn.0046df08
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x4509c7
sub eax, dword [edi]
sar eax, 1
cmp eax, ebx
je 0x4509c7
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00405890
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4509c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4509e3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004023c0
int3
Function at 0x452a50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492c30
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xe4], 4
je 0x452a97
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x452b96
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x452ba0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 0x4a4fb8
call fcn.004038d0
test al, al
jne 0x452af6
push 0
push 0x4a4fb8
lea ecx, [ebp - 0x10]
call fcn.00403ae0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x100]
push eax
lea eax, [esi + 0xfc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x10c]
push eax
lea edx, [esi + 0xf8]
lea ecx, [esi + 0xf4]
call fcn.0041a350
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov ecx, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x452b4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
mov esi, dword [ebp - 0x14]
jne 0x452b64
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x452b64
mov bl, 1
jmp 0x452b66
xor bl, bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x452b82
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004023a0
push 0x80004005
call fcn.004023a0
int3
Function at 0x454bd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493580
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00454da0
mov edx, dword [esi + 0x10]
mov edi, eax
cmp dword [edx - 0xc], 0
je 0x454c74
mov ecx, dword [esi + 4]
cmp ecx, 6
je 0x454c26
cmp ecx, 7
je 0x454c26
cmp ecx, 8
je 0x454c26
cmp ecx, 9
je 0x454c26
cmp ecx, 0x12
jne 0x454c74
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x50]
movlpd qword [ebp - 0x3c], xmm0
push eax
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x8400
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call fcn.0041e1d0
mov al, byte [eax + 0x1c]
test al, al
je 0x454d68
call fcn.0041e1d0
test byte [eax + 0x20], 8
je 0x454d68
call fcn.0041e1d0
mov ebx, eax
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x454d7c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x18
push str.Updater_finished._Mode:
call fcn.00402280
push dword [esi + 4]
lea ecx, [ebp - 0x14]
call fcn.0041ddf0
mov esi, eax
push 0xf
push str.._Return_code:
mov ecx, esi
call fcn.00402280
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x454d86
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
push 0
push 0x4a4fb8
call fcn.00402280
push ecx
push edi
mov ecx, esi
call fcn.0041ddf0
push eax
push ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0041e320
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x454d49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x454d68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004023a0
push 0x80004005
call fcn.004023a0
int3
Function at 0x45edd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x494e90
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c0074]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x45ee78
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x45ee78
call fcn.0045d4c0
mov edi, eax
jmp 0x45ef80
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45ee95
call fcn.0045d4c0
jmp 0x45ef73
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x45eeb0
call fcn.0045d4c0
jmp 0x45ef73
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x45eece
mov edi, 0x8007000e
jmp 0x45ef75
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x45efc2
jb 0x45eef2
cmp eax, 0xffffffff
ja 0x45efc2
cmp eax, 0x400
jbe 0x45ef0b
push eax
lea ecx, [ebp]
call fcn.004063e0
mov dword [ebp - 4], 1
jmp 0x45ef30
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x45ef30
mov eax, dword [ebp]
test eax, eax
jne 0x45ef3e
mov edi, 0x8007000e
jmp 0x45ef75
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x45ef59
call fcn.0045d4c0
jmp 0x45ef73
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.0045ec70
mov edi, eax
test esi, esi
je 0x45ef80
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x45ef94
lea ecx, [ebp]
call fcn.00406350
mov dword [ebp - 4], 0xffffffff
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 + 0x404]
xor ecx, ebp
call fcn.0046c8db
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.004023a0
int3
Function at 0x462340
Capabilities:
Create directory
Hash data with md5

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x495a18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4c0074]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x14]
call fcn.00409b10
mov dword [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [eax]
mov esi, dword [edi]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4623e1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4623d3
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4623d3
call fcn.00402480
mov dword [ebp - 0x10], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4623cc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [edi], eax
jmp 0x4623de
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00403ae0
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462402
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x462411
xor al, al
jmp 0x4624f0
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x462513
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push 0
mov ecx, dword [ecx]
call fcn.00408af0
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 4], 1
jle 0x46245b
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00409420
mov esi, dword [ebp - 0x10]
xor eax, eax
mov byte [ebp + 0x68], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
cmp byte [esi], al
je 0x462497
nop
inc eax
cmp byte [eax + esi], 0
jne 0x462490
push eax
push esi
lea ecx, [ebp]
call fcn.0040b1f0
lea ecx, [ebp]
call fcn.0040b2c0
lea ecx, [ebp]
call fcn.0040b2c0
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp]
call fcn.0040b390
lea eax, [ebp + 0x6c]
mov ecx, edi
push eax
call fcn.00408330
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4624ee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.0046c8db
lea esp, [ebp + 0x94]
pop ebp
ret
push 0x80004005
call fcn.004023a0
int3
Function at 0x462e20
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push 0x4644d0
mov dword [esp + 0x1c], 0
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x462e69
push 0x64
call edi
inc esi
cmp esi, 0x14
jl 0x462e37
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x463b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495e80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
push 0x22
push 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x20], 0x4a4ec0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x463c29
push 0xa
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x463c29
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x463c5b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x463c0d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x463c0d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x463c0d
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.00425480
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041aaa0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x463c0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or ebx, 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x463c29
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4a4ec0
test edi, edi
je 0x463c49
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004023a0
int3
Function at 0x465ca0
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x465cdc
push 0xe801
push dword [edi - 0x64]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x465ccd
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x465ce1
test esi, esi
jne 0x465cdc
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x465ce1
cmp esi, 1
je 0x465cf7
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, edi
push eax
call fcn.00466230
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x10
Function at 0x4691f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496810
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.0042f3b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
cmp byte [esi + 0x10], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
je 0x4692ff
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push dword [ebp - 0x20]
mov dword [ebp - 0x14], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], 0x4a4fc8
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
jne 0x469293
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x1c], 0x4a4fc8
push esi
jmp 0x4692c9
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4692df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x1c], 0x4a4fc8
test esi, esi
je 0x4692d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
test edi, edi
je 0x4692fc
jmp 0x46937e
mov byte [ebp - 4], 0
mov dword [ebp - 0x1c], 0x4a4fc8
test esi, esi
je 0x4692fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 4]
xor edi, edi
mov dword [ebp + 8], 0
test edx, edx
jle 0x46937c
xor ebx, ebx
test ebx, ebx
js 0x4693c3
cmp edi, edx
jge 0x4693c3
mov esi, dword [esi]
mov ecx, edx
add esi, ebx
cmp byte [esi + 0x154], 0
je 0x469359
cmp byte [ebp + 0xc], 0
je 0x46933f
test byte [esi + 0x90], 1
je 0x469359
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0044eab0
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
inc eax
mov dword [ebp + 8], eax
mov ecx, dword [esi + 4]
jmp 0x46935f
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
inc edi
add ebx, 0x164
mov edx, ecx
cmp edi, ecx
jl 0x469311
test eax, eax
jle 0x46937c
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x2c]
push eax
call fcn.00431140
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x20]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4693ad
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0xc000008c
call fcn.004036b0
int3
Function at 0x40129f
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401298
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b5c8]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xb75d04]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132c
push 0x418300
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xb75d04]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xb75d00]
cmove eax, edx
xor edx, edx
mov dword [0xb75d00], eax
cmp ecx, 0x3eb
mov eax, dword [0xb75c58]
cmove eax, edx
mov dword [0xb75c58], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xb75cfc], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x4012fa
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d328
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405145
mov dword [ebp - 0x14], eax
cmp dword [0x4d14b8], esi
jne 0x40d41b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4fb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4fb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4fb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4d14b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4d14bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4d14c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d14c8], eax
test eax, eax
je 0x40d418
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d14c4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d440
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d433
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d455
push 4
pop eax
jmp 0x40d4fd
cmp dword [ebp - 0x14], esi
je 0x40d455
push dword [0x4d14b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d43a
mov eax, dword [0x4d14c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4b3
cmp dword [0x4d14c8], edi
je 0x40d4b3
push eax
call ebx
push dword [0x4d14c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4b3
test eax, eax
je 0x40d4b3
call ecx
test eax, eax
je 0x40d4a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d4a8
test byte [ebp - 8], 1
jne 0x40d4b3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4e3
mov eax, dword [0x4d14bc]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
call eax
mov esi, eax
test esi, esi
je 0x40d4e0
mov eax, dword [0x4d14c0]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4d14b8]
call ebx
test eax, eax
je 0x40d4fb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404457
mov esp, ebp
pop ebp
ret