joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0xfffffffffffffffa
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xf0
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x478cf6
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x478cee
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp word [esi], 0
je 0x478cee
nop dword [eax + eax]
movzx eax, word [esi + 2]
lea edi, [esi + 8]
cmp eax, 0x401
jne 0x478cb5
mov eax, 0x180
jmp 0x478cd1
cmp eax, 0x403
jne 0x478cc3
mov eax, 0x143
jmp 0x478cd1
cmp eax, 0x180
je 0x478cd1
cmp eax, 0x143
jne 0x478ce0
push edi
push 0
push eax
movzx eax, word [esi]
push eax
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov esi, dword [esi + 4]
add esi, edi
cmp word [esi], 0
jne 0x478ca0
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x479580
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4795dc
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
je 0x4795d4
mov eax, dword [ebp + 0xc]
xor ecx, ecx
inc eax
mov edx, 2
add eax, ebx
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d5a7
mov edi, eax
add esp, 4
test edi, edi
je 0x4795cd
lea eax, [ebx + 1]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 8
pop ebx
xor eax, eax
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x4796b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x100
test eax, eax
jne 0x4796e8
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4796fc
lea ecx, [ebp - 0x204]
push ecx
push eax
push dword [0x4b3a24]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x2000
call fcn.0047d5a7
mov edi, eax
add esp, 4
test edi, edi
je 0x47975d
push esi
lea eax, [ebp - 0x204]
push eax
push 0
push 0
lea eax, [ebp - 0x208]
push eax
push 0x1000
push edi
call fcn.0041d7a0
mov esi, dword [ebp - 0x208]
push edi
sub esi, edi
push ebx
sar esi, 1
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.00457d90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47b340
Capabilities:
Create process on windows
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.0047b5c0
mov edi, eax
lea eax, [ebp - 0x204]
push 0x80
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x204]
push 0x40
push eax
call fcn.0047e88d
add esp, 8
test eax, eax
je 0x47b3e7
lea ecx, [ebp - 0x104]
mov esi, str.mailto:
mov eax, ecx
mov edx, 0x80
sub esi, eax
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x47b3c2
movzx eax, word [esi + ecx]
test ax, ax
je 0x47b3c2
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x47b3a4
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x204]
push eax
push 0x80
lea eax, [ebp - 0x104]
push eax
call fcn.00404f80
lea eax, [ebp - 0x104]
push 7
push dword [0x4aef08]
lea esi, [ebp - 0x204]
sub esi, eax
lea eax, [ebp - 0x204]
push eax
call fcn.00486a24
add esp, 0xc
test eax, eax
jne 0x47b44b
mov edx, 0x80
lea ecx, [ebp - 0x104]
nop dword [eax + eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x47b43e
movzx eax, word [esi + ecx]
test ax, ax
je 0x47b43e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x47b420
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push 8
push dword [0x4aef0c]
lea eax, [ebp - 0x204]
push eax
call fcn.00486a24
add esp, 0xc
test eax, eax
jne 0x47b49c
mov edx, 0x80
lea ecx, [ebp - 0x104]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x47b48f
movzx eax, word [esi + ecx]
test ax, ax
je 0x47b48f
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x47b471
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push 4
lea eax, [ebp - 0x204]
push str.www.
push eax
call fcn.00486a24
add esp, 0xc
test eax, eax
jne 0x47b513
mov esi, dword [str.http:__]
lea ecx, [ebp - 0x104]
mov eax, ecx
mov edx, 0x80
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x47b4ee
movzx eax, word [esi + ecx]
test ax, ax
je 0x47b4ee
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x47b4d0
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x204]
push eax
push 0x80
lea eax, [ebp - 0x104]
push eax
call fcn.00404f80
cmp word [ebp - 0x104], 0
je 0x47b55c
push edi
mov edi, dword [sym.imp.USER32.dll_SetCursor]
call edi
push 1
push 0
push 0
mov esi, eax
lea eax, [ebp - 0x104]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
call edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0047d33b
mov esp, ebp
pop ebp
ret 4
Function at 0x47bfd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
test ebx, ebx
je 0x47c175
cmp word [ebx], si
je 0x47c175
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47bff1
sub ecx, edx
mov edx, 2
sar ecx, 1
push edi
lea eax, [ecx + 5]
xor ecx, ecx
mov dword [ebp - 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d5a7
mov edi, eax
add esp, 4
test edi, edi
jne 0x47c032
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push dword [ebp - 4]
push edi
call fcn.00403240
push 4
push 0x4a6c80
push edi
call fcn.00487d58
add esp, 0xc
test eax, eax
jne 0x47c058
lea eax, [edi + 0xc]
jmp 0x47c0e1
push 4
push 0x4a6c74
push edi
call fcn.00487d58
add esp, 0xc
test eax, eax
jne 0x47c071
lea eax, [edi + 0xc]
jmp 0x47c0e1
movzx eax, word [edi]
cmp eax, 0x5c
jne 0x47c09a
cmp word [edi + 2], ax
jne 0x47c09a
push edi
call fcn.0047c470
add esp, 4
test eax, eax
jne 0x47c0e1
pop edi
pop esi
mov eax, 0x4be
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [edi + 2], 0x3a
lea ecx, [edi + 2]
jne 0x47c0cf
cmp word [edi + 4], 0x5c
jne 0x47c0cf
push 0x4a6c80
push dword [ebp - 4]
push edi
call fcn.00403240
mov eax, dword [ebp - 4]
push ebx
add eax, 0xfffffffc
push eax
lea eax, [edi + 8]
push eax
call fcn.00403240
lea eax, [edi + 0xc]
jmp 0x47c0e1
cmp eax, 0x2e
jne 0x47c0df
push ecx
call fcn.0047c440
add esp, 4
jmp 0x47c0e1
mov eax, edi
add eax, 2
push 0x49f054
push eax
call fcn.00487d92
mov ecx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x47c136
xor esi, esi
xor eax, eax
push esi
push edi
mov word [ebx], ax
call ecx
test eax, eax
jne 0x47c11f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x47c12c
xor esi, esi
mov eax, 0x5c
mov word [ebx], ax
lea eax, [ebx + 2]
jmp 0x47c0e4
test esi, esi
jne 0x47c161
mov ecx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp + 0xc], 0
je 0x47c161
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x47c161
push 0
push edi
call ecx
test eax, eax
jne 0x47c161
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0xb7
cmove esi, eax
push edi
call fcn.00457d90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47c1e0
Capabilities:
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov ebx, 0x80000001
mov dword [ebp - 4], esi
push edi
mov edi, dword [str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders]
lea ecx, [esi + 0x57]
cmp eax, 0x28
ja case.0x47c20b.1
movzx eax, byte [eax + 0x47c2e0]
jmp dword [eax*4 + 0x47c2c4]
mov esi, str.AppData
jmp case.0x47c20b.1
mov esi, str.Programs
jmp case.0x47c20b.1
mov esi, str.Desktop
jmp case.0x47c20b.1
mov esi, str.Personal
jmp case.0x47c20b.1
push 0x104
push dword [ebp + 0xc]
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x47c249
xor ecx, ecx
jmp case.0x47c20b.1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp case.0x47c20b.1
mov edi, dword [str.SoftwareMicrosoftWindowsCurrentVersion]
mov esi, str.ProgramFilesDir
mov ebx, 0x80000002
test edi, edi
je 0x47c2b8
test esi, esi
je 0x47c2b8
lea eax, [ebp - 4]
mov dword [ebp + 8], 0x208
push eax
push 1
push 0
push edi
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47c2ba
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47df10
Capabilities:
Parse pe header

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

Function at 0x48b4db
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a1408
push 0x4a1400
push str.FlsAlloc
push 0x1f
call fcn.0048b3d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b50f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4965a8]
call esi
jmp 0x48b515
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48b559
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a1418
push 0x4a1410
push str.FlsGetValue
push 0x21
call fcn.0048b3d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b590
push dword [ebp + 8]
mov ecx, esi
call dword [0x4965a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x48b598
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a1420
push 0x4a1418
push str.FlsSetValue
push 0x22
call fcn.0048b3d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b5d2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4965a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x48c5c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4b4130]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48c605
cmp byte [ebx], 0xa
jne 0x48c605
or byte [edi + eax + 0x28], 4
jmp 0x48c60a
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x48c709
mov dl, byte [eax]
cmp dl, 0x1a
je 0x48c6ec
inc eax
cmp dl, 0xd
je 0x48c636
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48c65c
cmp eax, ecx
jae 0x48c66a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x48c61e
jmp 0x48c709
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48c6e7
cmp dword [ebp - 0x10], 0
je 0x48c6e7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b4130]
test byte [eax + edi + 0x28], 0x48
je 0x48c6c1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48c6ac
mov byte [esi], dl
jmp 0x48c6bd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b4130]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48c709
cmp byte [ebp - 1], 0xa
jne 0x48c6d0
cmp esi, ebx
jne 0x48c6d0
mov byte [esi], 0xa
jmp 0x48c708
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00491e0a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48c709
mov byte [esi], 0xd
jmp 0x48c708
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b4130]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48c706
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48c709
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48c712
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4b4130]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48c758
cmp word [ebx], dx
jne 0x48c758
or byte [eax + edi + 0x28], 4
jmp 0x48c75d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x48c8c0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x48c8a0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48c79e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48c7d4
cmp eax, edx
jae 0x48c7e2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x48c779
jmp 0x48c8c0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48c89b
cmp dword [ebp - 0x18], 0
je 0x48c89b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4b4130]
test byte [eax + edi + 0x28], 0x48
je 0x48c871
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x48c835
mov word [esi], cx
jmp 0x48c86c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4b4130]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4b4130]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4b4130]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x48c8c0
pop eax
cmp word [ebp - 4], ax
jne 0x48c881
cmp esi, ebx
jne 0x48c881
mov word [esi], ax
jmp 0x48c8bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00491e0a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x48c8c0
push 0xd
pop eax
jmp 0x48c87c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4b4130]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x48c8ba
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x48c8c0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48d7ae
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x48d7f9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0048d949
test al, al
jne 0x48d7f3
sub edx, 2
cmp edx, edi
jne 0x48d7d9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48d81b
lea eax, [edi + 2]
cmp edx, eax
je 0x48d81b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048d6fa
add esp, 0x10
jmp 0x48d915
push esi
lea ecx, [ebp - 0x255]
call fcn.0048d949
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48d85e
push dword [ebp - 0x25c]
jmp 0x48d80b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x48d89b
cmp word [ebp - 0x226], 0
je 0x48d8bc
cmp word [ebp - 0x226], ax
jne 0x48d89b
cmp word [ebp - 0x224], 0
je 0x48d8bc
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048d6fa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x48d908
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48d875
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48d8f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x48d915
push 0x48d52a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004853e0
add esp, 0x10
jmp 0x48d8e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d33b
leave
ret
Function at 0x492b24
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00492aa0
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x492c93
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x492c93
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x492c48
jg 0x492b80
test eax, eax
je 0x492c3e
push 1
push 0x1000
call fcn.0048b27a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x492ba3
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x492c35
push 0x8000
push ebx
call fcn.00487a6f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x492bcc
jg 0x492bc7
cmp ecx, 0x1000
jb 0x492bcc
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048c3a9
add esp, 0x10
cmp eax, 0xffffffff
je 0x492c11
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x492bc7
jl 0x492bf8
test ecx, ecx
jne 0x492bb9
push dword [ebp - 0xc]
push ebx
call fcn.00487a6f
push esi
call fcn.004895c9
add esp, 0xc
xor ebx, ebx
jmp 0x492ca1
cmp byte [edi + 0x24], 0
je 0x492c28
cmp dword [edi + 0x20], 5
jne 0x492c28
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x492c33
mov ebx, dword [edi + 0x18]
jmp 0x492c35
xor ebx, ebx
push esi
call fcn.004895c9
pop ecx
jmp 0x492ca1
test ecx, ecx
jg 0x492c0a
jl 0x492c48
test eax, eax
jae 0x492c0a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00491e0a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x492c68
cmp byte [edi + 0x1c], 0
je 0x492c0a
jmp 0x492c99
push ebx
call fcn.0048d4aa
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x492c0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x492ca1
cmp byte [edi + 0x1c], 0
je 0x492c9e
mov ebx, dword [edi + 0x18]
jmp 0x492ca1
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00491e0a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x494650
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49467d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49467d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x402e54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00422d4c
push 0x5a6a1c
mov edi, dword [eax + 0xc]
movzx eax, si
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402f0e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402f0e
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0054a280
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp - 4]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x402ef2
lea ecx, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
and dword [ecx], 0
push ecx
push ebx
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x402ef4
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
jmp 0x402f10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret