joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429608
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c838
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b6070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0x10
lea ebx, [esi + 0x19cc]
jmp 0x42965e
mov eax, dword [esi + 0x19d0]
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x429657
push ecx
call fcn.00416c7f
add dword [esi + 0x19d0], 0xfffffffc
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
test eax, 0xfffffffc
jne 0x429644
lea edi, [esi + 0x19c0]
jmp 0x4296a3
mov eax, dword [esi + 0x19c4]
mov eax, dword [eax - 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
test eax, eax
je 0x42969c
mov byte [ebp - 4], 0x10
mov ecx, eax
call fcn.00407241
push 0x20
push dword [ebp - 0x10]
call fcn.004502d2
pop ecx
pop ecx
add dword [esi + 0x19c4], 0xfffffffc
mov eax, dword [edi + 4]
sub eax, dword [edi]
test eax, 0xfffffffc
jne 0x429672
mov byte [ebp - 4], 0xf
mov ecx, ebx
call fcn.0040ed12
mov byte [ebp - 4], 0xe
mov ecx, edi
call fcn.0040ed12
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x1984]
call fcn.00407241
mov byte [ebp - 4], 0xc
lea eax, [esi + 0x184]
push fcn.00407241
push 0x100
push 0x18
push eax
call fcn.00450b20
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x164]
call fcn.00407241
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x148]
call fcn.00407241
mov byte [ebp - 4], 9
lea ecx, [esi + 0x130]
call fcn.00407241
mov byte [ebp - 4], 8
lea ecx, [esi + 0x110]
call fcn.00407241
mov byte [ebp - 4], 7
lea ecx, [esi + 0xf8]
call fcn.00407241
mov byte [ebp - 4], 6
lea ecx, [esi + 0xa8]
call fcn.00407241
mov byte [ebp - 4], 5
lea ecx, [esi + 0x90]
call fcn.00407241
mov byte [ebp - 4], 4
lea ecx, [esi + 0x78]
call fcn.00407241
mov byte [ebp - 4], 3
lea ecx, [esi + 0x60]
call fcn.00407241
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00407241
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00407241
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00407241
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ce2b
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d244
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push esi
mov eax, dword [0x4b6070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.updtDispDevEnumClass.0
mov dword [ebp - 4], 4
call fcn.0042cebb
mov byte [ebp - 4], 3
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea ecx, [esi + 0x34]
call fcn.00407241
mov byte [ebp - 4], 2
lea ecx, [esi + 0x24]
call fcn.004327ba
mov byte [ebp - 4], 1
lea ecx, [esi + 0x18]
call fcn.0040ed12
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.0040ed12
or dword [ebp - 4], 0xffffffff
mov dword [esi], vtable.updtDeviceEnumClass.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430dd1
Capabilities:
Get file version info

Disassembly:
push 0xd8
mov eax, 0x47da1f
call fcn.00450819
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push edi
mov dword [ebp - 0x30], 1
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x430e28
push str.updtDispDevEnumClass::GetBasicFileVersion_failed
push 2
call fcn.00406d9c
pop ecx
pop ecx
xor al, al
jmp 0x430f79
push esi
call fcn.00450c07
pop ecx
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x430eba
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xe4]
mov esi, eax
call fcn.00408d76
mov edi, eax
and dword [ebp - 4], 0
push str.GetBasicFileVersion::GetFileVersionInfo_failedError_code_
push edi
call fcn.0040b812
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040a427
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00408d5d
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x2c]
push eax
push 2
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.0040878b
test ebx, ebx
je 0x430e21
push ebx
call fcn.00450b1b
jmp 0x430e20
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x4914c0
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x430eff
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov ax, word [ecx + 0xa]
mov word [edx], ax
mov ax, word [ecx + 8]
mov edx, dword [ebp - 0x3c]
mov word [edx], ax
mov ax, word [ecx + 0xe]
mov edx, dword [ebp - 0x40]
mov word [edx], ax
mov ax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x44]
mov word [ecx], ax
jmp 0x430f6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xe4]
mov esi, eax
call fcn.00408d76
mov edi, eax
mov dword [ebp - 4], 2
push str.GetBasicFileVersion::VerQueryValue_failedError_code__0x_x_n
push edi
call fcn.0040b812
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040a427
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
push 2
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
call fcn.0040878b
mov byte [ebp - 0x30], 0
test ebx, ebx
je 0x430f76
push ebx
call fcn.00450b1b
pop ecx
mov eax, dword [ebp - 0x30]
call fcn.004507c3
ret 0x14
Function at 0x43a627
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x360
mov eax, 0x47f514
call fcn.00450819
mov ebx, ecx
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 0x2d4], esi
cmp dword [ebx], ecx
jne 0x43a65c
mov ecx, 0x1e1
call fcn.0040e97f
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2c4], ecx
push eax
push ecx
push ecx
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
je 0x43a70a
push 1
push 2
pop esi
push esi
lea ecx, [ebp - 0x36c]
call fcn.00409bf5
lea eax, [ebp - 0x36c]
mov dword [ebp - 4], esi
push str.RegQueryInfoKey_failed_with
push eax
call fcn.0040b812
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0x36c]
call fcn.0040a503
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x36c]
call fcn.00408d5d
push ecx
movzx eax, di
or eax, 0x80070000
mov byte [ebp - 4], 3
push 0x1f7
test edi, edi
push str.srcwindows_registry.cpp
cmovle eax, edi
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.0040e55c
push 0x4b4724
lea eax, [ebp - 0x2c0]
push eax
call fcn.00452ffc
xor edx, edx
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
mov eax, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2cc], 1
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c4], eax
jbe 0x43a839
push edx
push edx
push edx
xor ecx, ecx
mov dword [ebp - 0x2d0], 0x100
push edx
mov word [ebp - 0x210], cx
lea ecx, [ebp - 0x2d0]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, 0x103
je 0x43a839
test edi, edi
jne 0x43a843
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x214], 7
mov dword [ebp - 4], edx
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov dword [ebp - 0x218], edx
cmovae eax, dword [ebp - 0x228]
mov dword [ebp - 4], 0x2e
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], dl
cmp word [ebp - 0x210], cx
jne 0x43a7d0
mov eax, edx
jmp 0x43a7dd
lea eax, [ebp - 0x210]
push eax
call fcn.00459e88
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00407411
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0x2f
push eax
mov ecx, esi
call fcn.0040e399
push 0
push 1
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0x30
call fcn.0040732e
mov eax, dword [ebp - 0x2c8]
xor edx, edx
inc eax
mov byte [ebp - 4], dl
mov dword [ebp - 0x2c8], eax
cmp eax, dword [ebp - 0x2c4]
jb 0x43a735
mov eax, esi
call fcn.004507c3
ret 4
push 1
push 2
lea ecx, [ebp - 0x36c]
call fcn.00409bf5
lea eax, [ebp - 0x36c]
mov dword [ebp - 4], 0xb
push str.RegEnumKeyEx_failed_with
push eax
call fcn.0040b812
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0x36c]
call fcn.0040a503
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x36c]
call fcn.00408d5d
push ecx
movzx eax, di
or eax, 0x80070000
mov byte [ebp - 4], 0xc
push 0x21a
test edi, edi
push str.srcwindows_registry.cpp
cmovle eax, edi
push eax
lea eax, [ebp - 0x240]
jmp 0x43a6ed
Function at 0x43dd0e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, edx
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
test eax, eax
jle 0x43de23
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push esi
push edi
mov esi, dword [ebx + 8]
add eax, esi
mov edx, dword [ebx + 0xc]
adc ecx, edx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
xor eax, eax
mov ecx, edx
shld edx, esi, 0xd
shr ecx, 0x13
or eax, edx
shl esi, 0xd
mov edx, dword [ebx]
or ecx, esi
mov esi, dword [ebx + 0x18]
mov dword [ebx + 8], ecx
xor dword [ebx + 8], edx
mov ecx, dword [ebx + 4]
mov dword [ebx + 0xc], eax
xor eax, eax
xor dword [ebx + 0xc], ecx
or eax, edx
add dword [ebx + 0x10], esi
mov edx, dword [ebx + 0x1c]
adc dword [ebx + 0x14], edx
mov dword [ebx], ecx
mov ecx, edx
shld edx, esi, 0x10
mov dword [ebx + 4], eax
xor eax, eax
or eax, edx
shr ecx, 0x10
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 4]
shl esi, 0x10
or ecx, esi
mov dword [ebx + 0x18], ecx
mov edi, dword [eax + 0x14]
xor dword [eax + 0x1c], edi
mov edx, dword [eax + 0x1c]
mov ecx, edx
mov ebx, dword [ebx + 0x10]
xor dword [eax + 0x18], ebx
mov esi, dword [eax + 0x18]
add dword [eax], esi
adc dword [eax + 4], edx
xor eax, eax
shld edx, esi, 0x15
shr ecx, 0xb
or eax, edx
shl esi, 0x15
mov edx, dword [ebp - 4]
or ecx, esi
mov dword [edx + 0x18], ecx
mov ecx, edx
mov edx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov dword [ecx + 0x1c], eax
xor dword [ecx + 0x1c], edx
mov eax, dword [ecx]
xor dword [ecx + 0x18], eax
add ebx, esi
mov dword [ecx + 0x10], ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 0xc]
adc edi, edx
mov ecx, edx
mov dword [ebp - 0xc], eax
shld edx, esi, 0x11
shr ecx, 0xf
xor eax, eax
shl esi, 0x11
or eax, edx
mov edx, dword [ebx + 0x10]
or ecx, esi
mov dword [ebx + 8], ecx
mov ecx, edi
xor dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
xor dword [ebx + 0xc], ecx
xor eax, eax
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp - 0x10]
or eax, edx
sub dword [ebp - 8], 1
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xc]
jne 0x43dd2e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43e0b6
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push str.ADVAPI32.DLL
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43e106
push str.SystemFunction036
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43e0f1
push 4
lea ecx, [ebp - 4]
push ecx
call eax
xor ecx, ecx
inc ecx
cmp al, cl
cmove esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x43e106
mov edx, dword [ebp - 4]
mov ecx, str.RtlGenRandom
jmp 0x43e12c
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 0xc]
xor esi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, esi
mov ecx, str.fallback_4_
mov dword [ebp - 4], eax
imul edx, eax, 0x7fffffff
call fcn.0043e073
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45cbd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
clc
div ecx
test edx, edx
je 0x45cbde
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0045c8f0
push ss
outsd dx, dword [esi]
cmp al, 0x8d
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x45cd3c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0045c900
push eax
push esi
push dword [ebp + 8]
call fcn.0045c8b5
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0045c8f0
pop edi
leave
in al, 0x1f
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0045c8f0
mov ecx, 0x8dc9108a
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x46ed22
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046e690

Function at 0x46ed2d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046e8cb
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4440eb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44412a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44412a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44412a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44412a
cmp dword [ecx + 0x74], 0xe
jbe 0x44412a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x449ca8
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 0x449d45
push ebx
push esi
call fcn.00449c71
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.00449c05
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x449cf2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x449d44
push edi
push eax
call fcn.0044860b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x449d12
call fcn.00448659
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x449d43
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00449c05
add esp, 0x20
test eax, eax
jne 0x449d31
push edi
call fcn.00448659
jmp 0x449d39
push ebx
call fcn.00448659
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 0x44af54
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4530c8
push 0x4530c0
push str.FlsAlloc
push 0x1f
call fcn.0044ae13
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44af88
push dword [ebp + 8]
mov ecx, esi
call dword [0x451130]
call esi
jmp 0x44af8e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44afd4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4530d8
push 0x4530d0
push str.FlsGetValue
push 0x21
call fcn.0044ae13
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b00b
push dword [ebp + 8]
mov ecx, esi
call dword [0x451130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44b013
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4530e0
push 0x4530d8
push str.FlsSetValue
push 0x22
call fcn.0044ae13
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b04d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x451130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x450410
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45043d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45043d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40164e
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d3854c]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d384a4]
test esi, esi
je 0x401694
push ebx
xor ebx, ebx
cmp eax, 0x959
jne 0x40167f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.004014f2
add edi, 8
dec esi
je 0x401693
mov eax, dword [0x2d3854c]
jmp 0x401667
pop ebx
pop edi
pop esi
ret 4
Function at 0x40d05c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404ec5
mov dword [ebp - 0x14], eax
cmp dword [0x43ec00], esi
jne 0x40d14f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d0dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d22f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d22f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d22f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ec00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ec04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43ec08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ec10], eax
test eax, eax
je 0x40d14c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ec0c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d174
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d167
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d189
push 4
pop eax
jmp 0x40d231
cmp dword [ebp - 0x14], esi
je 0x40d189
push dword [0x43ec00]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d16e
mov eax, dword [0x43ec0c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d1e7
cmp dword [0x43ec10], edi
je 0x40d1e7
push eax
call ebx
push dword [0x43ec10]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d1e7
test eax, eax
je 0x40d1e7
call ecx
test eax, eax
je 0x40d1dc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d1dc
test byte [ebp - 8], 1
jne 0x40d1e7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d217
mov eax, dword [0x43ec04]
cmp eax, edi
je 0x40d214
push eax
call ebx
test eax, eax
je 0x40d214
call eax
mov esi, eax
test esi, esi
je 0x40d214
mov eax, dword [0x43ec08]
cmp eax, edi
je 0x40d214
push eax
call ebx
test eax, eax
je 0x40d214
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ec00]
call ebx
test eax, eax
je 0x40d22f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d231
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041ab
mov esp, ebp
pop ebp
ret
Function at 0x414ddc
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], ebx
add esi, edx
add edx, edi
inc edi
add eax, 4
add edx, 1
sub esi, edi
sub edx, esi
cmp eax, ecx
jne fcn.00414ddc
add edx, 0x52c677fc
mov edi, esi
ret