joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454240
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040523c
mov ebx, dword [0x458f4c]
xor eax, eax
push ebp
push 0x454395
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 8]
call fcn.00405098
mov eax, dword [ebp - 8]
call fcn.00409100
test al, al
jne 0x45429f
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x10]
call fcn.00405098
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00442f8c
mov eax, dword [0x4592b4]
cmp dword [eax], 1
jne 0x4542d7
mov eax, dword [0x45904c]
mov eax, dword [eax]
push eax
mov eax, dword [0x458f74]
mov eax, dword [eax]
push eax
push 0
push 0
mov eax, dword [0x459174]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_UnlockFile
mov eax, dword [0x459174]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x18]
call fcn.00405098
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00441154
push 0x1e
call sub.KERNEL32.DLL_Sleep
push 0
push 4
push 3
push 0
push 0
push 0x80000000
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
lea eax, [ebp - 0x1c]
call fcn.00405098
mov eax, dword [ebp - 0x1c]
call fcn.0040524c
push eax
call sub.KERNEL32.DLL_CreateFileA
mov edx, dword [0x459174]
mov dword [edx], eax
mov eax, dword [0x459174]
cmp dword [eax], 0xffffffff
je 0x45437a
push 0
mov eax, dword [0x459174]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov edx, dword [0x458f74]
mov dword [edx], eax
mov eax, dword [0x45904c]
mov eax, dword [eax]
push eax
mov eax, dword [0x458f74]
mov eax, dword [eax]
push eax
push 0
push 0
mov eax, dword [0x459174]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_LockFile
mov eax, dword [0x4592b4]
mov dword [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45439c
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404db0
ret
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x402c12
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 4]
push ebx
push edi
push eax
mov eax, dword [0x42f1b0]
xor edi, edi
or eax, 8
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402ca4
mov ebx, 0x105
jmp 0x402c5d
cmp dword [ebp + 0x10], edi
jne 0x402c98
push edi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00402c12
test eax, eax
jne 0x402c73
push ebx
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x402c44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00405ea2
test eax, eax
je 0x402cac
push edi
push dword [0x42f1b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ca4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x42f1b0], edi
jne 0x402ca1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ca1
mov eax, edi
jmp 0x402ca4
Function at 0x402fab
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x402fca
mov eax, dword [0x40b530]
test eax, eax
je 0x402fc2
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40b530], 0
ret
cmp dword [0x40b530], 0
je 0x402fdb
push 0
call fcn.0040591e
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x42f0c0]
jbe 0x40300e
push 0
push 0x403277
push 0
push 0x6f
push dword [0x42e8b4]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x40b530], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405987
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push 0x408654
push 0x42c580
call ebp
mov esi, dword [esp + 0x1c]
mov ebx, 0x400
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x4059db
push 1
push 0
push esi
call fcn.00405ed8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x42c580
push esi
call edi
test eax, eax
je 0x405acb
cmp eax, ebx
jg 0x405acb
push ebx
mov esi, 0x42c180
push esi
push dword [esp + 0x20]
call edi
test eax, eax
je 0x405acb
cmp eax, ebx
jg 0x405acb
push esi
push 0x42c580
push str._s_s_r_n
push 0x42bd80
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x42f0d0]
add esp, 0x10
mov edi, eax
mov dword [esp + 0x1c], edi
push dword [ecx + 0x128]
push esi
call fcn.004056ab
push 4
push 0xc0000000
push esi
call fcn.00405ed8
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405acb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [edi + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x405ac4
push esi
push edi
push ebx
call fcn.00405f05
test eax, eax
je 0x405ac4
push str._Rename__r_n
push edi
call fcn.004060a1
test eax, eax
jne 0x405ad1
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call ebp
add esi, 0xa
mov ecx, esi
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + edi]
push ebp
push 0x42bd80
push eax
call fcn.00405c57
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esi + ebp]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x408660
add eax, 0xa
push eax
call fcn.004060a1
mov ecx, eax
test ecx, ecx
je 0x405a89
mov ebp, dword [esp + 0x1c]
lea edx, [edi + esi]
add ebp, edx
cmp edx, ecx
jbe 0x405afe
sub ebp, edx
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x405af4
sub ecx, edi
inc ecx
jmp 0x405a8b

Function at 0x405b30
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004060f4
mov edi, eax
cmp edi, 0xffffffff
je 0x405b73
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x405b5b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x405b63
xor eax, eax
inc eax
jmp 0x405b75
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x405b52
test byte [ebp + 0xc], 4
jne 0x405b73
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 8
Function at 0x405bde
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x42b980
push ebx
call fcn.00406085
push ebx
call fcn.0040611c
mov esi, eax
test esi, esi
jne 0x405bff
xor eax, eax
jmp 0x405c52
push esi
call fcn.00406216
test byte [0x42f0cc], 0x80
je 0x405c18
mov al, byte [esi]
test al, al
je 0x405bfb
cmp al, 0x5c
je 0x405bfb
sub esi, ebx
jmp 0x405c30
call fcn.00405b7a
test eax, eax
je 0x405c2a
test byte [eax], 0x10
je 0x405bfb
push ebx
call fcn.004061eb
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
cmp eax, esi
jg 0x405c1c
call fcn.00405b03
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
ret 4

Function at 0x405c77
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x42b538], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x42b538
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405cb2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x405cb8
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00405bde
mov dword [esp + 0x10], eax
test bl, 8
je 0x405cfa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f188], eax
jmp 0x405e96
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x1c], ebp
je 0x405d17
test eax, eax
je 0x405e47
test bl, 2
je 0x405e47
push esi
push 0x42b580
call fcn.00406085
test ebp, ebp
je 0x405d38
push str..
push 0x42b580
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x405d3e
push esi
call fcn.004061eb
cmp byte [esi], 0
jne 0x405d4c
cmp byte [0x42b580], 0x5c
jne 0x405d58
push 0x4082a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push eax
push 0x42b580
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x405e37
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.00405ba1
cmp byte [eax], 0
je 0x405da9
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x405dc0
mov al, byte [ebp + 1]
test al, al
je 0x405e14
cmp al, 0x2e
jne 0x405dc0
cmp byte [ebp + 2], 0
je 0x405e14
push ebp
push dword [esp + 0x14]
call fcn.00406085
test byte [esp + 0x20], 0x10
je 0x405de3
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x405e14
push ebx
push esi
call fcn.00405cb8
jmp 0x405e14
push edi
push esi
call fcn.00405b30
test eax, eax
jne 0x405e0c
test edi, edi
je 0x405e04
push esi
push 0xfffffffffffffff1
call fcn.004055c6
push 0
push esi
call fcn.0040594e
jmp 0x405e14
inc dword [0x42f188]
jmp 0x405e14
push esi
push 0xfffffffffffffff2
call fcn.004055c6
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405d82
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x405e43
mov eax, dword [esp + 0x10]
mov byte [eax - 1], 0
mov eax, dword [esp + 0x14]
test ebp, ebp
pop ebp
je 0x405e96
test eax, eax
je 0x405e86
push esi
call fcn.00405b7a
test eax, eax
je 0x405e96
push esi
call fcn.00405b03
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00405b30
test eax, eax
jne 0x405e8e
test edi, edi
je 0x405e86
push esi
push 0xfffffffffffffff1
call fcn.004055c6
push 0
push esi
call fcn.0040594e
jmp 0x405e96
inc dword [0x42f188]
jmp 0x405e96
push esi
push 0xffffffffffffffe5
call fcn.004055c6
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8

Function at 0x405ed8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc
Function at 0x405f36
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
mov byte [esi], bl
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405fa8
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0x400
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405f97
cmp dword [ebp + 0x14], 1
je 0x405f99
cmp dword [ebp + 0x14], 2
je 0x405f99
mov byte [esi], bl
push dword [ebp - 4]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x405fcc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add byte [ebp + 0xa], dl
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40600b
test edi, edi
jne 0x405fd7
mov byte [esi], al
jmp 0x40600d
mov eax, esi
pop edi
pop esi
pop ebp
ret 8

Function at 0x4060f4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406116
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x4062dc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42cac4], 0
push esi
jne 0x406314
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
dec esi
jne 0x4062ed
mov dword [ecx*4 + 0x42cac0], edx
inc ecx
cmp ecx, 0x100
jl 0x4062e8
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x40633e
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x42cac0]
inc esi
dec edx
jne 0x406326
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x40105b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409004]
jne 0x401065
repz ret
jmp fcn.0040120a

Function at 0x4030fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409004]
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.0040205c
and dword [ebp - 0x14], 0
cmp dword [0x40a744], 0
mov dword [ebp - 0x18], eax
jne 0x4031ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403256
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403256
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40a744], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40a748], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40a74c], eax
call edi
push eax
call esi
mov dword [0x40a754], eax
test eax, eax
je 0x4031ae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40a750], eax
mov eax, dword [0x40a750]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403207
cmp dword [0x40a754], ecx
je 0x403207
push eax
call esi
push dword [0x40a754]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403207
test ebx, ebx
je 0x403207
call edi
test eax, eax
je 0x4031fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4031fe
test byte [ebp - 8], 1
jne 0x403207
or dword [ebp + 0x10], 0x200000
jmp 0x40323a
mov eax, dword [0x40a748]
cmp eax, dword [ebp - 0x18]
je 0x40323a
push eax
call esi
test eax, eax
je 0x40323a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40323a
mov eax, dword [0x40a74c]
cmp eax, dword [ebp - 0x18]
je 0x40323a
push eax
call esi
test eax, eax
je 0x40323a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40a744]
call esi
test eax, eax
je 0x403256
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403258
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040105b
leave
ret
Function at 0x100061bb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100061fa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100061fa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100061fa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100061fa
cmp dword [ecx + 0x74], 0xe
jbe 0x100061fa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000930f
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 0x100093ac
push ebx
push esi
call fcn.100092d8
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.1000926c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10009359
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100093ab
push edi
push eax
call fcn.10006f5c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10009379
call fcn.10006f22
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100093aa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000926c
add esp, 0x20
test eax, eax
jne 0x10009398
push edi
call fcn.10006f22
jmp 0x100093a0
push ebx
call fcn.10006f22
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 0x10009619
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100119e8
push 0x100119e0
push str.FlsAlloc
push 0x1f
call fcn.10009535
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000964d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001012c]
call esi
jmp 0x10009653
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10009697
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100119f8
push 0x100119f0
push str.FlsGetValue
push 0x21
call fcn.10009535
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100096ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001012c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100096d6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011a00
push 0x100119f8
push str.FlsSetValue
push 0x22
call fcn.10009535
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009710
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001012c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000f1b0
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x43e268]
jne 0x406dca
repz ret
jmp fcn.0040b6e2

Function at 0x415f6e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040c48b
and dword [ebp - 4], 0
cmp dword [0x43fc18], 0
mov ebx, eax
jne 0x41601f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4160d0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4160d0
push eax
call fcn.0040c419
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43fc18], eax
call esi
push eax
call fcn.0040c419
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43fc1c], eax
call esi
push eax
call fcn.0040c419
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43fc20], eax
call esi
push eax
call fcn.0040c419
pop ecx
mov dword [0x43fc28], eax
test eax, eax
je 0x41601f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c419
pop ecx
mov dword [0x43fc24], eax
mov eax, dword [0x43fc24]
cmp eax, ebx
je 0x416077
cmp dword [0x43fc28], ebx
je 0x416077
push eax
call fcn.0040c494
push dword [0x43fc28]
mov esi, eax
call fcn.0040c494
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416077
test edi, edi
je 0x416077
call esi
test eax, eax
je 0x41606e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41606e
test byte [ebp - 0xc], 1
jne 0x416077
or dword [ebp + 0x10], 0x200000
jmp 0x4160b0
mov eax, dword [0x43fc1c]
cmp eax, ebx
je 0x4160b0
push eax
call fcn.0040c494
pop ecx
test eax, eax
je 0x4160b0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4160b0
mov eax, dword [0x43fc20]
cmp eax, ebx
je 0x4160b0
push eax
call fcn.0040c494
pop ecx
test eax, eax
je 0x4160b0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43fc18]
call fcn.0040c494
pop ecx
test eax, eax
je 0x4160d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4160d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4281b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433b59
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x43e268]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4281eb
cmp dword [ebp + 0x10], 0
jne 0x4281f0
jmp 0x42874a
mov dword [ebp - 0x120], 0
lea ecx, [ebp - 0x14]
call fcn.004022c0
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x4284df
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.004198c0
add esp, 8
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x240]
call fcn.00401590
mov dword [ebp - 4], 0
lea eax, [ebp - 0x240]
push eax
lea edx, [ebp - 0x75]
push ebp
mov ebp, esp
jnp 0x45c598e5
invalid
cmp byte [eax], bl
mov dword [ebp - 0x44], esi
call fcn.004282d8
jge 0x428499
invalid
xor byte [ecx - 0xb77b], cl
invalid