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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x1001398d
call fcn.10005513
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001398d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x100139a9
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10013446
mov esi, eax
test edi, edi
je 0x100139a7
test ebx, ebx
je 0x100139a7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10013d88
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10110ade
call fcn.100f52df
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x10013dad
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10013dff
call fcn.10008cdd
push eax
lea ecx, [ebp - 0x10]
call fcn.10001fb0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100f7af8
push eax
call fcn.10001385
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001860
mov eax, esi
call fcn.100f53b7
ret 8

Function at 0x1003e460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.10005513
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003e499
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.1003e09d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1003e4f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x1003e51b
cmp dword [edi + 0x74], 0
jne 0x1003e51b
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.10005513
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1003e4b8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100404f2
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.10040196
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1004053c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10008bde
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10003dc2
jmp 0x10040547
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10007ece
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1004054d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.10013a52
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1004058a
call fcn.10040196
mov dword [esi + 0xc], 1
jmp 0x1004058f
call fcn.10040196
cmp dword [esi], 0
je 0x100405d8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x100405b0
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10008bde
jmp 0x100405c2
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.1000214e
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10003dc2
jmp 0x100405fc
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100405fc
push dword [esi]
push dword [ebp + 8]
call fcn.10007ece
pop esi
pop ebp
ret 0xc

Function at 0x1006fcb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x1006fcca
call fcn.10005513
mov esi, dword [eax + 0xc]
push dword [0x10164620]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1006fce8
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1006fce0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1006fd15
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x1006fce2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.1006fbde
mov esi, eax
jmp 0x1006fd07

Function at 0x100baad4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100ef11f
call fcn.10004f44
cmp dword [eax + 0x14], 0
jne 0x100baaf1
mov ecx, esi
pop esi
jmp fcn.100ba5d9
pop esi
ret
Function at 0x100bdc5c
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100d917e
call fcn.10004f44
cmp dword [eax + 0x14], 0
jne 0x100bdc79
mov ecx, esi
pop esi
jmp fcn.100bd62f
pop esi
ret

Function at 0x100d027c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100d0294
mov edi, dword [esi + 0xc]
jmp 0x100d02d4
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100d02ad
call fcn.10006be5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100d02c2
call fcn.10006be5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100d02d4
call fcn.10006be5
call fcn.10005513
cmp dword [eax + 0x3c], 0
je 0x100d02e9
push edi
mov ecx, ebx
call fcn.100cf0a6
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100d0196
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100d0307
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100d0313
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100f4a16
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1015f670]
jne 0x100f4a20
repz ret
jmp fcn.100fa764
Function at 0x1010604a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1015f670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100faa98
and dword [ebp - 0x14], 0
cmp dword [0x10166de8], 0
mov dword [ebp - 0x18], eax
jne 0x101060fd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x101061a5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1014180c
push ebx
call edi
test eax, eax
je 0x101061a5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x101417fc
push ebx
mov dword [0x10166de8], eax
call edi
push eax
call esi
push 0x101417e8
push ebx
mov dword [0x10166dec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10166df0], eax
call edi
push eax
call esi
mov dword [0x10166df8], eax
test eax, eax
je 0x101060fd
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10166df4], eax
mov eax, dword [0x10166df4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10106156
cmp dword [0x10166df8], ecx
je 0x10106156
push eax
call esi
push dword [0x10166df8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10106156
test ebx, ebx
je 0x10106156
call edi
test eax, eax
je 0x1010614d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1010614d
test byte [ebp - 8], 1
jne 0x10106156
or dword [ebp + 0x10], 0x200000
jmp 0x10106189
mov eax, dword [0x10166dec]
cmp eax, dword [ebp - 0x18]
je 0x10106189
push eax
call esi
test eax, eax
je 0x10106189
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10106189
mov eax, dword [0x10166df0]
cmp eax, dword [ebp - 0x18]
je 0x10106189
push eax
call esi
test eax, eax
je 0x10106189
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10166de8]
call esi
test eax, eax
je 0x101061a5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x101061a7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f4a16
leave
ret
Function at 0x1010bb50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1015f670]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
mov dword [ebp - 0x110], 0x2e58505c
mov dword [ebp - 0x10c], 0x747874
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x110]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1010bba0
push esi
push edi
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1010bbb4
mov ecx, eax
shr ecx, 2
push 0
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push 0
push 1
mov ecx, eax
push SysReAllocString
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1010bc2e
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.1000123d
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x10c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop ebx
test edi, edi
je 0x1010bc2e
push edi
call fcn.1010b3e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.100f4a16
mov esp, ebp
pop ebp
ret
Function at 0x10057750
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret

Function at 0x10057770
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x1020e670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1020e69d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1020e69d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1020eac4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1021cb40
push 0x1021cb38
push str.FlsAlloc
push 0x1e
call fcn.1020eda7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1020eaf8
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1020eafe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1020eb42
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1021cb50
push 0x1021cb48
push str.FlsGetValue
push 0x20
call fcn.1020eda7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1020eb79
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10212748
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 0x102127e5
push ebx
push esi
call fcn.102127e8
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.10212691
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10212792
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x102127e4
push edi
push eax
call fcn.1021094d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x102127b2
call fcn.1020fffa
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x102127e3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10212691
add esp, 0x20
test eax, eax
jne 0x102127d1
push edi
call fcn.1020fffa
jmp 0x102127d9
push ebx
call fcn.1020fffa
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 0x10217734
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1021773f
Function at 0x10218da0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x1022dcc0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10218de0
cmp byte [ebx], 0xa
jne 0x10218de0
or byte [eax + edi + 0x28], 4
jmp 0x10218de5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10218ee3
mov al, byte [edx]
cmp al, 0x1a
je 0x10218ec5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10218e14
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10218e39
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10218e43
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10218df6
jmp 0x10218ee3
push 0
lea eax, [ebp - 0xc]
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 0x10218ec0
cmp dword [ebp - 0xc], 0
je 0x10218ec0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1022dcc0]
test byte [eax + edi + 0x28], 0x48
je 0x10218e9a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10218e85
mov byte [esi], dl
jmp 0x10218e96
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1022dcc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10218ee3
cmp byte [ebp - 1], 0xa
jne 0x10218ea9
cmp esi, ebx
jne 0x10218ea9
mov byte [esi], 0xa
jmp 0x10218ee2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.102184a8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10218ee3
mov byte [esi], 0xd
jmp 0x10218ee2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1022dcc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10218edf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10218ee3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10218eec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1022dcc0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10218f2f
cmp word [esi], dx
jne 0x10218f2f
or byte [edi + eax + 0x28], 4
jmp 0x10218f34
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10219087
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10219067
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10218f76
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10218fac
cmp eax, edx
jae 0x10218fb8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10218f4e
jmp 0x10219087
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10219063
cmp dword [ebp - 0x14], 0
je 0x10219063
mov eax, dword [ebx*4 + 0x1022dcc0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1021903b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x10219004
mov word [esi], cx
jmp 0x10219037
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1022dcc0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1022dcc0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1022dcc0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10219087
pop ebx
cmp word [ebp - 4], bx
jne 0x1021904c
cmp esi, dword [ebp + 0xc]
jne 0x1021904c
mov word [esi], bx
jmp 0x10219084
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.102184a8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10219087
push 0xd
jmp 0x10219080
mov ecx, dword [ebx*4 + 0x1022dcc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1021907e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10219087
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10219de4
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]
push dword [ebp + 0xc]
push ebx
call fcn.10219f87
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10219f5c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10219f5c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10219f0b
jg 0x10219e3d
test eax, eax
je 0x10219f01
push 1
push 0x1000
call fcn.10210805
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10219e63
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10219ef8
push 0x8000
push ebx
call fcn.10219cde
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10219e8f
jg 0x10219e8a
cmp ecx, 0x1000
jb 0x10219e8f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.102140e1
add esp, 0x10
cmp eax, 0xffffffff
je 0x10219ed4
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 0x10219e8a
jl 0x10219ebb
test ecx, ecx
jne 0x10219e7c
push dword [ebp - 0xc]
push ebx
call fcn.10219cde
push esi
call fcn.1020fffa
add esp, 0xc
xor edi, edi
jmp 0x10219f6d
cmp byte [edi + 0x24], 0
je 0x10219eeb
cmp dword [edi + 0x20], 5
jne 0x10219eeb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10219ef6
mov edi, dword [edi + 0x18]
jmp 0x10219ef8
xor edi, edi
push esi
call fcn.1020fffa
pop ecx
jmp 0x10219f6d
test ecx, ecx
jg 0x10219ecd
jl 0x10219f0b
test eax, eax
jae 0x10219ecd
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.102184a8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10219f2e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10219ecd
jmp 0x10219f65
push ebx
call fcn.102137e8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10219ecd
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x10219f6d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10219f6a
mov edi, dword [edi + 0x18]
jmp 0x10219f6d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.102184a8
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x71076fce
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..pdata
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x48f66efa
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219