joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004ebb1
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.1004eb2d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1004ed20
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1004ed20
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1004ecd5
jg 0x1004ec0d
test eax, eax
je 0x1004eccb
push 1
push 0x1000
call fcn.10046e7a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1004ec30
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004ecc2
push 0x8000
push ebx
call fcn.1004ea5e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1004ec59
jg 0x1004ec54
cmp ecx, 0x1000
jb 0x1004ec59
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10046a06
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004ec9e
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 0x1004ec54
jl 0x1004ec85
test ecx, ecx
jne 0x1004ec46
push dword [ebp - 0xc]
push ebx
call fcn.1004ea5e
push esi
call fcn.1004366f
add esp, 0xc
xor ebx, ebx
jmp 0x1004ed2e
cmp byte [edi + 0x24], 0
je 0x1004ecb5
cmp dword [edi + 0x20], 5
jne 0x1004ecb5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1004ecc0
mov ebx, dword [edi + 0x18]
jmp 0x1004ecc2
xor ebx, ebx
push esi
call fcn.1004366f
pop ecx
jmp 0x1004ed2e
test ecx, ecx
jg 0x1004ec97
jl 0x1004ecd5
test eax, eax
jae 0x1004ec97
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100455a4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004ecf5
cmp byte [edi + 0x1c], 0
je 0x1004ec97
jmp 0x1004ed26
push ebx
call fcn.1004c368
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1004ec97
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 0x1004ed2e
cmp byte [edi + 0x1c], 0
je 0x1004ed2b
mov ebx, dword [edi + 0x18]
jmp 0x1004ed2e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100455a4
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100503b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100503dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100503dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403170
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d0ed
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42c004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004041e8
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040524c
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 8], esi
mov dword [ebx], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [esi + 0x14], 0x10
jb 0x40323f
mov eax, dword [esi]
mov dword [ebp + 8], eax
mov esi, dword [esi + 0x10]
xor eax, eax
cmp esi, 0x7fffffff
ja 0x4032e3
test esi, esi
je 0x4032c7
cmp esi, 0x1000
jb 0x40327f
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x4032e8
push eax
call fcn.004041e8
add esp, 4
test eax, eax
je 0x4032ed
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40328a
push esi
call fcn.004041e8
add esp, 4
mov edi, eax
push esi
push dword [ebp + 8]
push edi
call fcn.00406490
mov eax, dword [ebx + 0xc]
lea ecx, [edi + esi]
mov dword [ebx + 0x38], ecx
add esp, 0xc
mov dword [eax], edi
mov eax, dword [ebx + 0x1c]
mov dword [eax], edi
mov eax, dword [ebx + 0x2c]
mov dword [eax], esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x38]
sub ecx, edi
mov dword [eax], edi
mov eax, dword [ebx + 0x20]
mov dword [eax], edi
mov eax, dword [ebx + 0x30]
mov dword [eax], ecx
mov eax, 1
jmp 0x4032ca
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00404682
call fcn.00401160
call fcn.0040a204
int3
Function at 0x404c09
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x46e0a0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00404e93
mov ebx, eax
cmp ebx, esi
je 0x404c6b
cmp dword [esp + 0x10], esi
je 0x404c67
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404ce1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404c89
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00404c09
mov dword [esp + 0x24], eax
cmp eax, esi
jne 0x404cf8
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x100
call ebx
test eax, eax
je 0x404c73
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], esi
je 0x404cc4
push dword [esp + 0x10]
call ebx
mov dword [esp + 0x10], esi
push dword [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.00404b9b
mov edi, eax
cmp dword [esp + 0x10], esi
je 0x404cdf
push dword [esp + 0x10]
call ebx
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00422ca7
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x10], esi
je 0x404d08
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
jmp 0x404ce1
Function at 0x407513
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x45b2bb
call fcn.004565c5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x40756b
call fcn.004062d6
mov esi, eax
jmp 0x407675
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x407584
call fcn.004062d6
jmp 0x407667
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x40757a
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x4075c1
mov esi, 0x8007000e
jmp 0x407669
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x4075d6
cmp eax, 0xffffffff
jbe 0x4075e0
push 0x80070216
call fcn.004054c8
cmp eax, 0x400
jbe 0x40760d
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0040676e
jmp 0x407619
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x4075b7
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40757a
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.004073b3
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40768e
lea eax, [ebp - 0x418]
call fcn.004062cd
mov eax, esi
call fcn.00456621
ret 0xc
Function at 0x40a1fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a25f
cmp dword [ebp + 0xc], 1
je 0x40a237
cmp dword [ebp + 0xc], 2
je 0x40a237
push 0xd
pop eax
jmp 0x40a25f
mov eax, dword [ebp - 4]
test edi, edi
je 0x40a259
test eax, eax
je 0x40a254
test al, 1
jne 0x40a232
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40a259
jmp 0x40a232
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40f7d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push esi
test edi, edi
je 0x40f7fa
mov esi, ecx
sub esi, edx
mov ebx, eax
and ebx, 7
mov bl, byte [ebx + 0x46f890]
lea ecx, [eax + edx]
xor bl, byte [esi + ecx]
inc eax
mov byte [ecx], bl
cmp eax, edi
jb 0x40f7e2
fldz
fstp qword [ebp - 0x10]
mov dword [ebp - 4], 0x60eb
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
imul eax, ecx
lea eax, [eax + edx*2]
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fsub qword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x466118]
call fcn.004246d0
fstp qword [ebp - 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b680
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x41b68d
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x41b68a
mov eax, dword [eax + ecx + 0x98]
test eax, eax
je 0x41b68a
add eax, ecx
ret
Function at 0x41d2e1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
fld qword [0x45de38]
push ebx
fstp qword [ebp - 0x10]
push esi
fld qword [ebp - 0x10]
mov ebx, ecx
push edi
mov edi, eax
not ebx
call fcn.00426330
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
imul eax, eax, 0x1826
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x41d327
mov eax, dword [ebp - 8]
add eax, 0xdf6
mov dword [ebp - 8], eax
fild dword [ebp - 8]
jmp 0x41d335
mov eax, dword [ebp - 4]
sub eax, 0x141e
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x10]
push dword [ebp - 4]
fld qword [ebp - 0x10]
push ecx
push ecx
fstp qword [esp]
push 0x461808
call fcn.0042307d
mov eax, dword [ebp + 8]
add esp, 0x10
mov esi, 0xff
cmp eax, 8
jb 0x41d456
shr eax, 3
mov dword [ebp - 4], eax
movzx ecx, byte [edi]
fld qword [0x45de30]
xor ecx, ebx
and ecx, esi
mov eax, ebx
shr eax, 8
xor eax, dword [ecx*4 + 0x45c470]
movzx ecx, byte [edi + 1]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [ecx*4 + 0x45c470]
movzx ecx, byte [edi + 2]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [ecx*4 + 0x45c470]
movzx ecx, byte [edi + 3]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [ecx*4 + 0x45c470]
movzx ecx, byte [edi + 4]
xor ecx, eax
and ecx, esi
shr eax, 8
xor eax, dword [ecx*4 + 0x45c470]
movzx ecx, byte [edi + 5]
xor ecx, eax
shr eax, 8
and ecx, esi
xor eax, dword [ecx*4 + 0x45c470]
movzx ecx, byte [edi + 6]
xor ecx, eax
shr eax, 8
and ecx, esi
xor eax, dword [ecx*4 + 0x45c470]
movzx ecx, byte [edi + 7]
xor ecx, eax
shr eax, 8
and ecx, esi
xor eax, dword [ecx*4 + 0x45c470]
mov dword [ebp - 8], 0x7f8f
mov ebx, eax
fstp qword [ebp - 0x10]
mov eax, dword [ebp - 8]
imul eax, eax, 0x14ca
mov dword [ebp - 8], eax
add edi, 8
fild dword [ebp - 8]
fld qword [ebp - 0x10]
fadd st(0), st(0)
fsubp st(1)
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fcomp qword [0x466120]
fnstsw ax
test ah, 5
jp 0x41d43e
fld qword [ebp - 0x10]
fchs
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
call fcn.00426330
sub dword [ebp + 8], 8
dec dword [ebp - 4]
mov dword [ebp - 8], eax
jne 0x41d367
cmp dword [ebp + 8], 0
je 0x41d473
movzx eax, byte [edi]
xor eax, ebx
and eax, esi
shr ebx, 8
xor ebx, dword [eax*4 + 0x45c470]
inc edi
dec dword [ebp + 8]
jne 0x41d45c
pop edi
mov eax, ebx
pop esi
not eax
pop ebx
leave
ret
Function at 0x42297f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x46f8c0], 0
push esi
push edi
jne 0x4228f5
call fcn.00422861
test eax, eax
je 0x42293a
mov eax, dword [0x46f8c0]
cmp eax, 1
jne 0x422916
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42293a
jmp 0x42297c
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x42297c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42293e
xor eax, eax
jmp 0x42297c
mov eax, dword [esi]
push dword [0x46f8c0]
call edi
mov edi, eax
test edi, edi
je 0x422960
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42297c
lea edi, [esi + 0xff0]
push esi
push dword [0x46f8c0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x422966
mov eax, esi
pop edi
pop esi
ret
jmp 0x4228e1

Function at 0x422ca7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e0a0]
jne 0x422cb1
repz ret
jmp fcn.00426427
Function at 0x430b09
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46e0a0]
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.0042afc8
and dword [ebp - 0x14], 0
cmp dword [0x47070c], 0
mov dword [ebp - 0x18], eax
jne 0x430bbc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x430c64
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x430c64
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47070c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x470710], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x470714], eax
call edi
push eax
call esi
mov dword [0x47071c], eax
test eax, eax
je 0x430bbc
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x470718], eax
mov eax, dword [0x470718]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x430c15
cmp dword [0x47071c], ecx
je 0x430c15
push eax
call esi
push dword [0x47071c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x430c15
test ebx, ebx
je 0x430c15
call edi
test eax, eax
je 0x430c0c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x430c0c
test byte [ebp - 8], 1
jne 0x430c15
or dword [ebp + 0x10], 0x200000
jmp 0x430c48
mov eax, dword [0x470710]
cmp eax, dword [ebp - 0x18]
je 0x430c48
push eax
call esi
test eax, eax
je 0x430c48
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x430c48
mov eax, dword [0x470714]
cmp eax, dword [ebp - 0x18]
je 0x430c48
push eax
call esi
test eax, eax
je 0x430c48
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47070c]
call esi
test eax, eax
je 0x430c64
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x430c66
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422ca7
leave
ret
Function at 0x10008e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10089880]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0x8d4d14ec
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
sub eax, 0x8d4d14ec
je 0x10008ec2
jmp 0x10008eaa
mov eax, dword [ebp - 0x1c]
sub eax, 0x45ac4905
je 0x10008f0c
jmp 0x10008ebd
jmp 0x10008f1c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push eax
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [edx], eax
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0xc]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x63
sub byte [edi], 0x27
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x10008edf
mov dword [ebp - 0x10], 0x45ac4905
jmp 0x10008f1c
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100237d0
lea esp, [ebp - 4]
pop edi
pop ebp
ret
jmp 0x10008e94
Function at 0x100287fa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10028839
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10028839
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10028839
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10028839
cmp dword [ecx + 0x74], 0xe
jbe 0x10028839
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002b1c4
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 0x1002b261
push ebx
push esi
call fcn.1002b18d
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.1002b121
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002b20e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002b260
push edi
push eax
call fcn.10029ac2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002b22e
call fcn.10029b10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002b25f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002b121
add esp, 0x20
test eax, eax
jne 0x1002b24d
push edi
call fcn.10029b10
jmp 0x1002b255
push ebx
call fcn.10029b10
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 0x1002b4ce
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033440
push 0x10033438
push str.FlsAlloc
push 0x1f
call fcn.1002b3ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b502
push dword [ebp + 8]
mov ecx, esi
call dword [0x10031150]
call esi
jmp 0x1002b508
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002b54c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033450
push 0x10033448
push str.FlsGetValue
push 0x21
call fcn.1002b3ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b583
push dword [ebp + 8]
mov ecx, esi
call dword [0x10031150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002b58b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033458
push 0x10033450
push str.FlsSetValue
push 0x22
call fcn.1002b3ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b5c5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10031150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10030ad0
Capabilities:
Parse pe header

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

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130