joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7acbf0
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x208
call sub.MFC42.dll_operatornew
mov edi, dword [ebp + 8]
add esp, 4
test edi, edi
mov esi, eax
mov dword [ebp - 4], esi
je 0x4c7acc61
push 0x208
call sub.MFC42.dll_operatornew
add esp, 4
mov ebx, eax
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x4c782de0
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4c7acc58
push 0x1cf
push 0x4c782de8
push esi
push 0x4c7827d8
call fcn.4c7c02b0
add esp, 0x10
push ebx
call sub.MFC42.dll_operatordelete
add esp, 4
mov ebx, dword [sym.imp.msvcrt.dll__wfopen]
push 0x4c782ce8
push esi
call ebx
add esp, 8
test eax, eax
mov dword [0x4c7de444], eax
jne 0x4c7acca9
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
push 0x4c782c34
push 0x4c782d94
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fwprintf]
push esi
call sub.MFC42.dll_operatordelete
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x4c782cf0
push edi
call ebx
add esp, 8
test eax, eax
mov dword [0x4c7de440], eax
jne 0x4c7accd4
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push edi
push 0x4c782c34
push 0x4c782d94
add ecx, 0x40
push ecx
jmp 0x4c7acc8f
mov ebx, 1
call fcn.4c7ac750
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.msvcrt.dll_putc]
mov dword [ebp + 8], eax
jbe 0x4c7acd1e
push 0xfe
call fcn.4c7abea0
mov eax, dword [ebp + 0x10]
add eax, 2
call fcn.4c7abfe0
mov edx, dword [0x4c7de444]
movsx eax, byte [ebx]
push edx
push eax
call esi
add esp, 8
add ebx, 1
sub dword [ebp + 0x10], 1
jne 0x4c7acd05
mov ecx, dword [0x4c7de444]
push ecx
push 0xff
call esi
mov edx, dword [0x4c7de444]
mov eax, dword [ebp + 8]
push edx
push eax
call esi
add esp, 0x10
call fcn.4c7ac020
mov ecx, dword [0x4c7de440]
mov esi, dword [sym.imp.msvcrt.dll_fclose]
push ecx
call esi
mov edx, dword [0x4c7de444]
push edx
call esi
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4c7acd9b
call ebx
cmp eax, 2
je 0x4c7acdb3
push 0x20b
push 0x4c782de8
call ebx
push eax
push 0x4c78142c
call fcn.4c7c02b0
push edi
push 0x4c782788
call fcn.4c7c02b0
add esp, 0x18
jmp 0x4c7acdb3
push 0x213
push 0x4c782de8
push edi
push 0x4c782760
call fcn.4c7c02b0
add esp, 0x10
mov esi, dword [ebp - 4]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4c7acdf9
call ebx
cmp eax, 2
je 0x4c7ace11
push 0x21b
push 0x4c782de8
call ebx
push eax
push 0x4c78142c
call fcn.4c7c02b0
push esi
push 0x4c782788
call fcn.4c7c02b0
add esp, 0x18
jmp 0x4c7ace11
push 0x223
push 0x4c782de8
push esi
push 0x4c782760
call fcn.4c7c02b0
add esp, 0x10
push esi
call sub.MFC42.dll_operatordelete
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c7af400
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.4c7cfb60
push 0x54
push edi
mov dword [ebp - 4], eax
call fcn.4c7b0910
mov esi, eax
cmp esi, ebx
jne 0x4c7af443
push edi
call fcn.4c7b09a0
mov eax, dword [edi]
mov dword [eax + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
mov eax, dword [edx]
push edi
call eax
mov dword [esi], fcn.4c7ae8e0
mov dword [esi + 4], fcn.4c7aea30
mov dword [esi + 8], fcn.4c7aeaf0
mov dword [esi + 0xc], fcn.4c7aeba0
mov dword [esi + 0x10], 0x4c7aec60
mov dword [esi + 0x14], 0x4c7aecd0
mov dword [esi + 0x18], 0x4c7aed40
mov dword [esi + 0x1c], 0x4c7af030
mov dword [esi + 0x20], 0x4c7af170
mov dword [esi + 0x24], fcn.4c7af2b0
mov dword [esi + 0x28], 0x4c7af3c0
mov dword [esi + 0x30], 0x3b9aca00
mov ecx, dword [ebp - 4]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push 0x4c784bd0
mov dword [edi + 4], esi
call dword [sym.imp.msvcrt.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x4c7af51b
lea edx, [ebp + 0xb]
push edx
lea ecx, [ebp - 4]
push ecx
push 0x4c784bc8
push eax
mov byte [ebp + 0xb], 0x78
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x4c7af51b
mov al, byte [ebp + 0xb]
cmp al, 0x6d
je 0x4c7af4f4
cmp al, 0x4d
jne 0x4c7af50f
mov eax, dword [ebp - 4]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c7bf1f0
Capabilities:
Get common file path

Disassembly:
cmp word [0x4c7de450], 0
jne 0x4c7bf2b9
push 0x4c7de450
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x4c7bf218
xor eax, eax
ret
mov eax, 0x4c7de450
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7bf220
sub eax, edx
sar eax, 1
cmp word [eax*2 + 0x4c7de44e], 0x5c
je 0x4c7bf255
push 0x4c781d24
push 0x104
push 0x4c7de450
call fcn.4c78d8bf
add esp, 0xc
test eax, eax
jne 0x4c7bf215
push 0x4c784ef0
push 0x104
push 0x4c7de450
call fcn.4c78d8bf
add esp, 0xc
test eax, eax
jne 0x4c7bf215
mov eax, 0x4c7de450
lea edx, [eax + 2]
jmp 0x4c7bf280
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7bf280
sub eax, edx
sar eax, 1
cmp word [eax*2 + 0x4c7de44e], 0x5c
je 0x4c7bf2b9
push 0x4c781d24
push 0x104
push 0x4c7de450
call fcn.4c78d8bf
add esp, 0xc
test eax, eax
jne 0x4c7bf215
mov eax, 1
ret
Function at 0x4c7bf2d0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
push 0x206
lea eax, [ebp - 0x206]
push 0
push eax
mov word [ebp - 0x208], 0
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.4c7bf1f0
test eax, eax
je 0x4c7bf334
mov ecx, dword [ebp + 8]
push 0x4c784f44
push ecx
push 0x4c784f34
push 0x4c7de450
push 0x4c784f20
lea edx, [ebp - 0x208]
push 0x104
push edx
call fcn.4c78d89e
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4c7bf33c
xor eax, eax
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esp, ebp
pop ebp
ret 4
Function at 0x4c7bf700
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
test edi, edi
mov dword [ebp - 4], 0
mov esi, ecx
je 0x4c7bf73b
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, edi
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ecx
call ebx
test eax, eax
je 0x4c7bf749
mov eax, dword [ebp - 4]
add esi, eax
sub edi, eax
jne 0x4c7bf720
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c7c1de0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push edi
xor esi, esi
push 0x208
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call sub.msvcrt.dll_memset
push 0x208
lea ecx, [ebp - 0x416]
push esi
push ecx
mov word [ebp - 0x418], si
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 8]
add esp, 0x18
lea edx, [ebp - 0x20c]
push edx
push 0x76
push edi
call fcn.4c7c0750
test eax, eax
je 0x4c7c1e62
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c7c1e62
lea ecx, [ebp - 0x418]
push ecx
push 0x77
push edi
call fcn.4c7c0750
test eax, eax
lea eax, [esi + 1]
jne 0x4c7c1e64
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4c7c2030
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x208]
push ecx
push edi
push edi
push 0x23
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x4c781d24
lea edx, [ebp - 0x208]
push 0x104
push edx
call fcn.4c78d8bf
push 0x4c784ef0
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.4c78d8bf
lea eax, [ebp - 0x208]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4c7c20a5
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20a], 0x5c
je 0x4c7c20d8
push 0x4c781d24
lea ecx, [ebp - 0x208]
push 0x104
push ecx
call fcn.4c78d8bf
add esp, 0xc
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x4c7c2124
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
jmp 0x4c7c20f0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4c7c20f0
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
cmp ecx, eax
jbe 0x4c7c2124
lea edx, [ebp - 0x208]
push edx
push ecx
push esi
call fcn.4c78d941
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4c7c7c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4c7c7c37
pop edi
pop esi
pop ebp
ret 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4c7c7c4a
push 0x73
jmp 0x4c7c7c5b
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x4c7c7c7d
push 0x7c
push 0x4c785838
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4c7c7cbc
push 0x85
push 0x4c785838
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4c7c7cfc
push 0x8f
push 0x4c785838
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
push ebx
push eax
push edi
call fcn.4c7c03b0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c7c8ce0
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4c7c8cf4
xor eax, eax
pop ebx
pop ebp
ret 4
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x208
push 0x40
call edi
mov esi, eax
test esi, esi
jne 0x4c7c8d32
push 0xfc
push 0x4c785a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
push 0x208
push 0x40
call edi
mov edi, eax
test edi, edi
jne 0x4c7c8d4f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x104
jmp 0x4c7c8d10
mov edx, esi
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4c7c8d55
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7c8d70
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x4c7c8d95
cmp word [esi + 2], 0x3a
jne 0x4c7c8d95
mov word [esi + 4], 0x5c
mov word [esi + 6], cx
push edi
push 0
push 0x4c781bc4
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4c7c8de9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4c7c8dd1
push 0x11c
push 0x4c785a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x4c7c8e10
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
xor ebx, ebx
xor eax, eax
push 0x206
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x21e]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x220], bx
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
cmp esi, ebx
je 0x4c7c8fb9
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4c7c8fb9
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4c7c8e7f
push esi
call fcn.4c7c8ce0
test eax, eax
jne 0x4c7c8ecb
push ebx
push 0x23
lea ecx, [ebp - 0x220]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4c7c8ee2
push 0x4c785ab8
lea edx, [ebp - 0x220]
push edx
push 0x4c785aa4
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c7c8ed8
lea eax, [ebp - 0x220]
push eax
call fcn.4c7c8ae0
test eax, eax
je 0x4c7c8ee2
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.4c7c8ce0
test eax, eax
jne 0x4c7c8f56
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0x20002
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
je 0x4c7c8f63
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push 0x208
push esi
lea ecx, [ebp - 0x14]
push ecx
push 0x4c785a78
push edx
call sub.WINSPOOL.DRV_GetPrinterDataW
test eax, eax
jne 0x4c7c8f63
push esi
call fcn.4c7c8ce0
test eax, eax
je 0x4c7c8f63
mov eax, dword [ebp - 4]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
test eax, eax
jne 0x4c7c8f56
push 0x181
push 0x4c785a54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
push edi
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4c7c8f91
push 0x18b
push 0x4c785a54
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
push 0x190
push 0x4c785a54
mov word [esi], bx
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x146
push 0x4c785a54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c7c9820
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c785b54]
mov ecx, dword [0x4c785b58]
mov edx, dword [0x4c785b5c]
mov dword [ebp - 0x14], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
mov word [ebp - 0x16], ax
mov word [ebp - 4], ax
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov word [ebp - 0x24], 0x65b9
mov word [ebp - 0x22], 0x6b63
mov word [ebp - 0x20], 0x8d85
mov word [ebp - 0x1e], 0x5927
mov word [ebp - 0x1c], 0x5b57
mov word [ebp - 0x1a], 0x7b26
mov word [ebp - 0x18], 0x96c6
mov word [ebp - 8], 0x5b8b
mov word [ebp - 6], 0x4f53
call edi
add esp, 8
test eax, eax
je 0x4c7c98a8
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x24]
push ecx
push esi
call edi
add esp, 8
test eax, eax
jne 0x4c7c989b
call fcn.4c7c94e0
test eax, eax
je 0x4c7c98cd
lea edx, [ebp - 8]
push edx
push esi
call edi
add esp, 8
test eax, eax
jne 0x4c7c989b
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2f2f3df7
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x54736c53
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x1002cb6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push edi
push 0xd
call esi
movzx ecx, ah
mov ch, al
shr eax, 0x10
movzx eax, al
push 5
shl ecx, 8
or ecx, eax
mov edi, ecx
call esi
movzx ecx, ah
mov ch, al
shr eax, 0x10
movzx eax, al
push 2
shl ecx, 8
or ecx, eax
movzx eax, word [ebp + 8]
push eax
push dword [0x100c970]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [0x100c970]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
call esi
test eax, eax
je 0x1002d8c
mov ecx, dword [eax]
push 0x10
add ecx, eax
pop edx
mov eax, dword [ecx]
cmp eax, 0xff
jne 0x1002d36
mov eax, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x1002d3f
cmp eax, 0xff00ff
jne 0x1002d3f
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x1002d26
push ebx
call esi
mov esi, eax
mov cl, byte [esi + 0xe]
xor eax, eax
inc eax
shl eax, cl
push 0
lea edi, [esi + eax*4 + 0x28]
call dword [sym.imp.USER32.dll_GetDC]
push 0
push esi
push edi
push 4
push esi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push dword [ebp + 8]
mov esi, eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1003d92
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
push 5
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push 0x10014c8
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, 0x2bd
cmp eax, ecx
jne 0x1003df2
push ecx
call fcn.01002917
cmp dword [ebp + 8], eax
jl 0x1003de3
cmp dword [ebp + 8], 0xfffd
jle 0x1003df2
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.01003c3e
jmp 0x1003e19
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.01003c3e
push 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0100285a
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
pop esi
leave
ret 4
Function at 0x10084f5
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
push esi
push 1
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
je 0x1008679
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
push edi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x1008670
cmp edi, 0x10
jb 0x1008670
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x1008667
cmp dword [edi], 0x58454355
jne 0x1008660
mov eax, dword [edi + 4]
add eax, edi
push 0x10016b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_IsValidLanguageGroup]
jne 0x10085c4
call fcn.010079cc
test eax, eax
je 0x1008660
xor ebx, ebx
inc ebx
push ebx
push 7
call esi
test eax, eax
jne 0x10085c4
push ebx
push 0xa
call esi
test eax, eax
jne 0x10085c4
push ebx
push 8
call esi
test eax, eax
jne 0x10085c4
push ebx
push 9
call esi
test eax, eax
je 0x1008660
xor eax, eax
mov ax, word [edi + 8]
cmp ax, 0x4b0
mov dword [ebp - 8], eax
je 0x1008626
movzx ebx, ax
push ebx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1008660
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
je 0x1008660
cmp dword [ebp - 0x1c], 1
jbe 0x1008613
push 2
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x1008613
push dword [ebp - 0x3c]
call fcn.01007997
test eax, eax
je 0x1008660
mov eax, dword [ebp - 8]
cmp ax, 0x3a4
jne 0x100863c
push 1
push 7
call esi
test eax, eax
je 0x1008660
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
xor eax, eax
inc eax
jmp 0x100867b
cmp ax, 0x3a8
jne 0x1008648
push 1
push 0xa
jmp 0x1008620
cmp ax, 0x3b5
jne 0x1008654
push 1
push 8
jmp 0x1008620
cmp ax, 0x3b6
jne 0x1008626
push 1
push 9
jmp 0x1008620
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10088bf
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100890b
add eax, eax
cmp word [ebp + eax - 0x216], 0x5c
je 0x100890b
and word [ebp + eax - 0x212], 0
mov word [ebp + eax - 0x214], 0x5c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10016c4
lea eax, [ebp - 0x41c]
push eax
call edi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10089b2
test byte [ebp - 0x66c], 0x10
jne 0x1008999
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call esi
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x41c]
push eax
call edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.010084f5
test eax, eax
je 0x1008999
lea eax, [ebp - 0xc]
push eax
call fcn.0100872e
lea eax, [ebp - 0x66c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1008953
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x102cda8]
pop edi
pop esi
inc eax
pop ebx
leave
ret