joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bc28
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.GlobalDBCA738F_A4CB_4da8_59D2_7BC90CB671EA
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000bc51
mov ecx, 0x10035b68
cmp eax, 5
jne 0x1000bc56
mov ecx, str.1010
push ecx
push 0xa
call sym.setuphlp.dll_SetVar
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x1000bc6c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x1000bd7e
Capabilities:
Move file

Disassembly:
mov eax, 0xa218
call fcn.1000eba0
mov eax, dword [0x10043040]
xor eax, esp
mov dword [esp + 0xa214], eax
push ebx
mov ebx, dword [esp + 0xa224]
xor eax, eax
push ebp
mov ebp, dword [esp + 0xa22c]
push esi
push edi
mov edi, dword [esp + 0xa22c]
push 0x208
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
call fcn.100111b0
push edi
mov esi, 0x104
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.1001c2d0
push 0x10035bb0
lea eax, [esp + 0x38]
push esi
push eax
call fcn.1001c334
push 0x10035bbc
lea eax, [esp + 0x38]
push edi
push eax
call fcn.1001c687
push 0x10035bc0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.1001c687
add esp, 0x3c
cmp dword [esp + 0x10], 0
je 0x1000bf4b
cmp dword [esp + 0x14], 0
je 0x1000bf4b
mov esi, 0x5000
xor eax, eax
push esi
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.100111b0
xor eax, eax
push esi
push eax
lea eax, [esp + 0x5238]
push eax
call fcn.100111b0
push dword [esp + 0x28]
call fcn.1001c823
add esp, 0x1c
jmp 0x1000bf21
push dword [esp + 0x10]
lea eax, [esp + 0x228]
push 0x2800
push eax
call fcn.1001c474
add esp, 0xc
test eax, eax
je 0x1000bf29
lea eax, [esp + 0x224]
push ebx
push eax
call fcn.1001156d
mov esi, eax
lea eax, [esp + 0x22c]
pop ecx
pop ecx
test esi, esi
je 0x1000bf0b
mov ecx, esi
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea eax, [esp + 0x522c]
push 0x2800
push eax
call fcn.1001c91d
push ebp
lea eax, [esp + 0x5238]
push 0x2800
push eax
call fcn.1001c334
mov ecx, ebx
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x1000bece
sub ecx, edx
sar ecx, 1
lea eax, [esi + ecx*2]
push eax
lea eax, [esp + 0x5228]
push 0x2800
push eax
call fcn.1001c334
push dword [esp + 0x20]
lea eax, [esp + 0x5234]
push eax
call fcn.1001c54d
add esp, 0x14
jmp 0x1000bf17
push dword [esp + 0x14]
push eax
call fcn.1001c54d
pop ecx
pop ecx
push dword [esp + 0x10]
call fcn.1001c823
pop ecx
test eax, eax
je 0x1000be5b
push dword [esp + 0x10]
call fcn.1001c7f3
push dword [esp + 0x18]
call fcn.1001c7f3
pop ecx
pop ecx
push 3
push edi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0xa224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000e62d
add esp, 0xa218
ret
Function at 0x1000bf64
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push 0xa
call sym.setuphlp.dll_GetVar
push 0xb
mov ebx, eax
call sym.setuphlp.dll_GetVar
push 0xc
mov edi, eax
call sym.setuphlp.dll_GetVar
push 0xd
mov esi, eax
call sym.setuphlp.dll_GetVar
push eax
push esi
push ebx
call fcn.1000bd7e
add esp, 0x1c
push 3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
pop ebx
ret

Function at 0x1000c2c9
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x10035d8c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000c306
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.VolatileTest
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor al, al
leave
ret
cmp eax, 0x3fd
sete al
leave
ret

Function at 0x1000c310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0xf003f
push 1
push esi
push esi
push 0x10035d30
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000c35e
push 0xa
push str.temp
push 1
push esi
push 0x10035d88
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x1000c380
Capabilities:
Check mutex on windows

Disassembly:
push 0xa
call sym.setuphlp.dll_GetVar
pop ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x10044458], eax
test eax, eax
jne 0x1000c3a3
mov ecx, 0x10035e6c
jmp 0x1000c3bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ecx, 0x10035e70
mov edx, 0x10035e74
cmovne ecx, edx
push ecx
push 0xb
call sym.setuphlp.dll_SetVar
pop ecx
pop ecx
ret

Function at 0x1000c4ea
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x40
mov ebx, 0x100446c8
mov esi, eax
push ebx
push 0x59
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x10035ecc
push 0x40
push ebx
call fcn.10018b16
mov edx, ebx
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1000c51a
push 0x3f
sub edx, ecx
pop ecx
sub ecx, edx
push ecx
lea ecx, [edx + 0x100446c8]
push ecx
push 0x5a
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x1000d354
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.100111b0
xor eax, eax
mov dword [ebp - 0x54], esi
lea edi, [ebp - 0x10]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000d3d5
push dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
call fcn.1000bbd8
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000d418
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
push str.SoftwareDisc_Soft_reWASDRebootFlag
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000d49c
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push edi
push edi
push edi
push 0x10035e14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000d48e
push dword [ebp - 4]
call fcn.1000c2c9
pop ecx
push dword [ebp - 4]
test al, al
je 0x1000d479
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x1000d49e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10035e18
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 4], edi
je 0x1000d49c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x1001d66b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001d6aa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001d6aa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001d6aa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001d6aa
cmp dword [ecx + 0x74], 0xe
jbe 0x1001d6aa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10024d9a
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 0x10024e37
push ebx
push esi
call fcn.10024d63
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.10024cf7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10024de4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10024e36
push edi
push eax
call fcn.10020dc6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10024e04
call fcn.10020d8c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10024e35
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10024cf7
add esp, 0x20
test eax, eax
jne 0x10024e23
push edi
call fcn.10020d8c
jmp 0x10024e2b
push ebx
call fcn.10020d8c
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 0x10025217
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003a148
push 0x1003a140
push str.FlsAlloc
push 0x1f
call fcn.100250df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002524b
push dword [ebp + 8]
mov ecx, esi
call dword [0x100332d0]
call esi
jmp 0x10025251
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10025295
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003a158
push 0x1003a150
push str.FlsGetValue
push 0x21
call fcn.100250df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100252cc
push dword [ebp + 8]
mov ecx, esi
call dword [0x100332d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100252d4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003a160
push 0x1003a158
push str.FlsSetValue
push 0x22
call fcn.100250df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002530e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100332d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x100287eb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001f3dc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002885a
cmp esi, dword [ebp - 4]
je 0x10028855
cmp dword [ebp + 0xc], 0
je 0x10028855
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10028832
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002833d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1002885c
xor eax, eax
inc eax
jmp 0x1002885c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100288c1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10043040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1001f3dc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1001f3dc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10028938
cmp word [ecx], dx
je 0x10028938
mov eax, dword [0x1003a584]
push edi
dec eax
push eax
push 0x1003a470
call fcn.10028860
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100289ab
cmp word [eax], dx
je 0x100289ab
mov eax, dword [edi]
test eax, eax
je 0x1002895c
cmp word [eax], dx
je 0x1002895c
lea eax, [ebp - 0x10]
push eax
call fcn.10028243
jmp 0x10028965
lea eax, [ebp - 0x10]
push eax
call fcn.100282de
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100289d5
mov eax, dword [0x1003a46c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1003a160
call fcn.10028860
add esp, 0xc
test al, al
je 0x100289d5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100289a0
cmp word [eax], di
je 0x100289a0
lea eax, [ebp - 0x10]
push eax
call fcn.10028243
pop ecx
jmp 0x100289d7
lea eax, [ebp - 0x10]
push eax
call fcn.100282de
jmp 0x1002899d
mov eax, dword [edi]
test eax, eax
je 0x100289c2
cmp word [eax], dx
je 0x100289c2
lea eax, [ebp - 0x10]
push eax
call fcn.100281f8
pop ecx
jmp 0x100289d5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10028aa0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100286e5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10028aa0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10028aa0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10028aa0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10028a2d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10025414
test ebx, ebx
je 0x10028a9b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10025414
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10028aa0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10028aa0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001caa4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10028aa2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e62d
leave
ret
Function at 0x1002e09c
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 + 0x10045038]
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 0x1002e0dc
cmp byte [ebx], 0xa
jne 0x1002e0dc
or byte [edi + eax + 0x28], 4
jmp 0x1002e0e1
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 0x1002e1e0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002e1c3
inc eax
cmp dl, 0xd
je 0x1002e10d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1002e133
cmp eax, ecx
jae 0x1002e141
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 0x1002e0f5
jmp 0x1002e1e0
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 0x1002e1be
cmp dword [ebp - 0x10], 0
je 0x1002e1be
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10045038]
test byte [eax + edi + 0x28], 0x48
je 0x1002e198
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002e183
mov byte [esi], dl
jmp 0x1002e194
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10045038]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002e1e0
cmp byte [ebp - 1], 0xa
jne 0x1002e1a7
cmp esi, ebx
jne 0x1002e1a7
mov byte [esi], 0xa
jmp 0x1002e1df
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002dfdc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002e1e0
mov byte [esi], 0xd
jmp 0x1002e1df
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10045038]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002e1dd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002e1e0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002e1e9
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 + 0x10045038]
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 0x1002e22f
cmp word [ebx], dx
jne 0x1002e22f
or byte [eax + edi + 0x28], 4
jmp 0x1002e234
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 0x1002e397
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 0x1002e377
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1002e275
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002e2ab
cmp eax, edx
jae 0x1002e2b9
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 0x1002e250
jmp 0x1002e397
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 0x1002e372
cmp dword [ebp - 0x18], 0
je 0x1002e372
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10045038]
test byte [eax + edi + 0x28], 0x48
je 0x1002e348
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 0x1002e30c
mov word [esi], cx
jmp 0x1002e343
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10045038]
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 + 0x10045038]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10045038]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1002e397
pop eax
cmp word [ebp - 4], ax
jne 0x1002e358
cmp esi, ebx
jne 0x1002e358
mov word [esi], ax
jmp 0x1002e394
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1002dfdc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1002e397
push 0xd
pop eax
jmp 0x1002e353
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10045038]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1002e391
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1002e397
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 0x1002ec01
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.1002eb7d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1002ed70
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1002ed70
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1002ed25
jg 0x1002ec5d
test eax, eax
je 0x1002ed1b
push 1
push 0x1000
call fcn.10022337
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1002ec80
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002ed12
push 0x8000
push ebx
call fcn.1002eaae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1002eca9
jg 0x1002eca4
cmp ecx, 0x1000
jb 0x1002eca9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1002cd03
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002ecee
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 0x1002eca4
jl 0x1002ecd5
test ecx, ecx
jne 0x1002ec96
push dword [ebp - 0xc]
push ebx
call fcn.1002eaae
push esi
call fcn.10020d8c
add esp, 0xc
xor ebx, ebx
jmp 0x1002ed7e
cmp byte [edi + 0x24], 0
je 0x1002ed05
cmp dword [edi + 0x20], 5
jne 0x1002ed05
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1002ed10
mov ebx, dword [edi + 0x18]
jmp 0x1002ed12
xor ebx, ebx
push esi
call fcn.10020d8c
pop ecx
jmp 0x1002ed7e
test ecx, ecx
jg 0x1002ece7
jl 0x1002ed25
test eax, eax
jae 0x1002ece7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002dfdc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002ed45
cmp byte [edi + 0x1c], 0
je 0x1002ece7
jmp 0x1002ed76
push ebx
call fcn.1002ad6e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1002ece7
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 0x1002ed7e
cmp byte [edi + 0x1c], 0
je 0x1002ed7b
mov ebx, dword [edi + 0x18]
jmp 0x1002ed7e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1002dfdc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100305a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100305cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100305cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x477bb8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4a50e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], 1
mov ebp, dword [eax - 8]
lea edi, [ebp + ebp + 2]
push edi
call fcn.0050d486
mov esi, eax
lea eax, [ebp*4]
mov dword [esp + 0x14], eax
add eax, 2
push eax
call fcn.0050d486
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov edi, ebx
push ebp
push 0
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x40]
call fcn.0050d492
push eax
push 0
push 0
call dword [fcn.004b4144]
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
call fcn.0050d48c
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
push ebx
push esi
call dword [fcn.004b4708]
add esp, 4
push eax
push esi
push 0
push 0xfde9
call dword [fcn.004b4168]
push ebx
lea ecx, [esp + 0x18]
call fcn.0050d630
push esi
mov byte [esp + 0x28], 2
call fcn.0050d474
push ebx
call fcn.0050d474
mov esi, dword [esp + 0x34]
add esp, 8
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0050d618
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.0050d468
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.0050d468
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret