joyce8/EMBER2024-capa huggingface dataset:
Function at 0x525a79
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58e700]
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.00511fb0
mov dword [ebp - 0x14], eax
cmp dword [0x595134], esi
jne 0x525b6c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x525af9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x525c4c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x525c4c
push 0x560ea0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x525c4c
push eax
call ebx
push 0x560eac
push edi
mov dword [0x595134], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x560ebc
push edi
mov dword [0x595138], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x59513c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x595144], eax
test eax, eax
je 0x525b69
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x595140], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x525b91
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x525b84
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x525ba6
push 4
pop eax
jmp 0x525c4e
cmp dword [ebp - 0x14], esi
je 0x525ba6
push dword [0x595134]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x525b8b
mov eax, dword [0x595140]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x525c04
cmp dword [0x595144], edi
je 0x525c04
push eax
call ebx
push dword [0x595144]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x525c04
test eax, eax
je 0x525c04
call ecx
test eax, eax
je 0x525bf9
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 0x525bf9
test byte [ebp - 8], 1
jne 0x525c04
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x525c34
mov eax, dword [0x595138]
cmp eax, edi
je 0x525c31
push eax
call ebx
test eax, eax
je 0x525c31
call eax
mov esi, eax
test esi, esi
je 0x525c31
mov eax, dword [0x59513c]
cmp eax, edi
je 0x525c31
push eax
call ebx
test eax, eax
je 0x525c31
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x595134]
call ebx
test eax, eax
je 0x525c4c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x525c4e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00502673
mov esp, ebp
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a004]
jne 0x401010
repz ret
jmp fcn.004013fc

Function at 0x40703b
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.004028fd
and dword [ebp - 4], 0
cmp dword [0x45e798], 0
mov ebx, eax
jne 0x4070ec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40719d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40719d
push eax
call fcn.0040288b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45e798], eax
call esi
push eax
call fcn.0040288b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45e79c], eax
call esi
push eax
call fcn.0040288b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45e7a0], eax
call esi
push eax
call fcn.0040288b
pop ecx
mov dword [0x45e7a8], eax
test eax, eax
je 0x4070ec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040288b
pop ecx
mov dword [0x45e7a4], eax
mov eax, dword [0x45e7a4]
cmp eax, ebx
je 0x407144
cmp dword [0x45e7a8], ebx
je 0x407144
push eax
call fcn.00402906
push dword [0x45e7a8]
mov esi, eax
call fcn.00402906
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407144
test edi, edi
je 0x407144
call esi
test eax, eax
je 0x40713b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40713b
test byte [ebp - 0xc], 1
jne 0x407144
or dword [ebp + 0x10], 0x200000
jmp 0x40717d
mov eax, dword [0x45e79c]
cmp eax, ebx
je 0x40717d
push eax
call fcn.00402906
pop ecx
test eax, eax
je 0x40717d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40717d
mov eax, dword [0x45e7a0]
cmp eax, ebx
je 0x40717d
push eax
call fcn.00402906
pop ecx
test eax, eax
je 0x40717d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e798]
call fcn.00402906
pop ecx
test eax, eax
je 0x40719d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40719f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452fe0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x414
mov eax, dword [0x45a004]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
mov ebp, dword [esp + 0x41c]
push edi
cmp ebx, 0x182
jne 0x45301f
push 0
push 0
push 0
push str.soveso
push str.zavonowakude
push 0
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
jmp 0x453049
cmp ebx, 0x19f
jne 0x453049
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
xor edi, edi
test ebx, ebx
jle 0x4530c3
push esi
lea esi, [esp + 0x14]
mov dword [esp + 0x10], 5
mov dword [esp + 0x14], 0
call fcn.00452fd0
mov eax, dword [esp + 0x14]
add eax, 0x46
mov dword [esp + 0x10], eax
sub dword [esp + 0x10], 0x46
movsx eax, byte [edi + ebp]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
xor dword [esp + 0xc], eax
mov cl, byte [esp + 0xc]
mov byte [edi + ebp], cl
cmp ebx, 0xf
jne 0x4530bd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
inc edi
cmp edi, ebx
jl 0x453050
pop esi
pop edi
pop ebp
cmp ebx, 0x2d
jne 0x4530de
mov dword [0x2b5c9c0], 0xa62e7790
mov dword [0x2b5c9c4], 0xffffffff
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00401006
add esp, 0x414
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x555008], 0x8088405
inc edx
mov dword [ebx + 0x555008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d1c0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d1f1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d1d9
add dl, dl
jne 0x41d1fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d24d
xor eax, eax
add dl, dl
jne 0x41d209
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2ea
add dl, dl
jne 0x41d218
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d223
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d22e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d239
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d243
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d1e8
mov eax, 1
add dl, dl
jne 0x41d25b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d266
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d252
sub eax, ebx
mov ebx, 1
jne 0x41d299
mov ecx, 1
add dl, dl
jne 0x41d27f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d28a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d276
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d2b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d2bb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2a7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d30b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d1e8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f31c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x53880a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f36b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
jmp 0x41f38a
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f3fc
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f3e5
test esi, esi
jbe 0x41f3fc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f3d7
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f3fc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f3b4
jmp 0x41f3fc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f3fc
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538811
ret
Function at 0x420568
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x539b83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4205a3
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4205bc
lea eax, [ebp - 0x10]
mov edx, dword [0x5575f0]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4205cf
lea eax, [ebp - 0x10]
mov edx, dword [0x5575f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4205db
adc edx, 0
mov edx, dword [edx*4 + 0x5563fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420755
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420748
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420748
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4206e6
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4206e6
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4206e6
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4206e6
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420748
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420748
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x42076d
inc ebx
cmp ebx, 0x19
jne 0x420595
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539b8a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x1033a290
Capabilities:
Encode data using xor

Disassembly:
add edi, 6
push 0xa3271d8b
push 0x2d35878d
mov byte ss:[ecx], dl
lea esp, [esp + 8]
jmp fcn.1012f77c
rol al, 1
dec al
mov dword [esp + edx - 0x1c10212a], edx
xor bl, al
xor edx, dword [esp + edx - 0x1c10212d]
lea eax, [esp + eax + 8]
shl edx, 0xc9
setp dl
call fcn.102d355d
add esi, 2
sub ebp, 1
call fcn.102b1f86
mov edx, 0xb981c82a
mov dl, byte [edi + 4]
jmp 0x10133875
and eax, 0xa9327e2a
xchg byte [esi - 0x73], ah
invalid
dec dx
add al, 5
add dx, dx
xor al, 0x3a
inc al
and edx, 0x5e10612e
jae 0x1014914a
popal
adc byte [esi + 0xf], bl
adc dword [esi + 0x7b], 0xffffffe6
call [edx - 0x72]
pop eax
jle 0x102e1582
pop edx
mov ds, word [eax + 0x7e]
mov dword [esi + 0x25df6dee], edx
mov esi, 0x68f4e197
and byte [ecx - 0x76], 0x96
xchg esi, eax
out dx, al
insd dword es:[edi], dx
fbld tbyte [0xf4e197be]
push 0x968a6180
jae 0x102e1668
mov dword [0x56097b46], eax
mov byte [eax - 0x1f], bh
salc
cmpsb byte [esi], byte es:[edi]
xor dword [edi + 0x11719671], eax
jle 0x102e15eb
retf 0xda31
sbb eax, dword [edx - 0x1e]
inc eax
sub eax, 0x5f498071
ljmp 0xfde8
neg dl
setl dl
not al
jg 0x102e15dc
lea esp, [esp + 8]
ja fcn.1026db0e
mov ecx, 0x2cbae3a5
mov eax, esp
shr cx, 0x23
jbe 0x1033f9a1
shl byte [0x97b4122a], 0xa2
pop edx
push ds
jle 0x1033a24b
sbb al, 0x53
inc ebx
in eax, 0xd6
ret
lea ecx, [ecx - 0x2cba1c30]
lea edx, [ebp - 0x80]
mov esi, 0x1dbda334
and edx, 0xfffffffc
add esi, 0xc104dcab
bswap esi
sbb esi, esi
sbb edx, ecx
push esi
push esi
call fcn.102b7ddb
mov ecx, 0x66bbf997
mov esi, dword [edi + ecx - 0x66bbf997]
sal cl, 1
movzx edx, cx
mov edx, dword [edi + ecx - 0x66bbf92a]
mov cl, byte [edi + ecx - 0x66bbf926]
add edi, 6
shrd esi, edx, cl
push 0x6a51a28
mov dword [edi], esi
lea esp, [esp + 4]
jmp fcn.1012f77c

Function at 0x1033a3ea
Capabilities:
Encode data using xor

Disassembly:
mov dword [edi], edx
call fcn.1031f475
xchg edx, eax
cmp bh, byte [edx + 0x6c5823ee]
out 0x82, al
xor eax, 0xa4511f62
shl esi, 1
xor byte [0xe60b1f15], 0x82
xor eax, 0xa2119fb2
or esi, ebp
pslld mm6, qword [eax - 0x55]
or al, dl
cmp ch, ah
push ecx
xchg esi, eax
cmp dword [eax - 0x62b336f9], edx
cmp al, 0x68
adc byte [ecx + edx*4 + 0x51ee87a], 0x1b
add al, bh
push 0x7a919482
call fcn.102f7270
clc
mov es, esp
mov bh, 0x5a
lea ebp, [ecx - 0x1962ab91]
xlatb
inc byte [eax - 0x58]
das
ficom dword [esi + ebp*8 - 0x61]
jl 0x10146d19
xchg ebx, eax
mov ebx, dword [edx + 0x28]
and byte es:[ebx + 0x12], dh
sub edi, dword [ebp + 0x41dc8610]
add al, 0xa8
imul edi, dword [edx], 0x5b
invalid
mov dword [esp + edi - 0x6f8ee736], 0x2d36f41a
mov edi, dword [esi + edi - 0x6f8ee732]
call fcn.10258f9d
mov ecx, 0x931523b3
shr ecx, cl
mov ecx, dword [ebp + ecx*2 - 0x24c4]
mov eax, dword [ebp + 4]
jnp 0x10146d48
mov edx, 0x8415088d
mov eax, dword [edi]
mov edx, dword fs:[eax]
jmp 0x1012865d

Function at 0xc3714d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c3714d
ret
Function at 0x401d50
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401d8f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401d8f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401d8f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401d8f
cmp dword [ecx + 0x74], 0xe
jbe 0x401d8f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407c56
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415618
push 0x415610
push str.FlsAlloc
push 0x1f
call fcn.00407b15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407c8a
push dword [ebp + 8]
mov ecx, esi
call dword [0x414134]
call esi
jmp 0x407c90
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407cd4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415628
push 0x415620
push str.FlsGetValue
push 0x21
call fcn.00407b15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407d0b
push dword [ebp + 8]
mov ecx, esi
call dword [0x414134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407d13
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415630
push 0x415628
push str.FlsSetValue
push 0x22
call fcn.00407b15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407d4d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b298
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 0x40b335
push ebx
push esi
call fcn.0040b261
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.0040b1f5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b2e2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b334
push edi
push eax
call fcn.00408405
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b302
call fcn.004079a8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b333
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b1f5
add esp, 0x20
test eax, eax
jne 0x40b321
push edi
call fcn.004079a8
jmp 0x40b329
push ebx
call fcn.004079a8
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 0x4133f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41341d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41341d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4028c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x11
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
jne 0x4028d8
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x4028e6
xor eax, eax
jmp 0x4028ff
call fcn.004027c0
test eax, eax
je 0x4028e2
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.004027e0
mov eax, dword [ebp - 8]
mov ecx, eax
shr ecx, 1
and ecx, eax
test ecx, 0x8000000
je 0x4028d2
xor ecx, ecx
xgetbv
mov eax, ecx
shr eax, 2
shr ecx, 1
and eax, ecx
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402a30
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402a6f
push str.SetDefaultDllDirectories
push 0x9ea6b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402a6f
push 0xc00
call eax
test eax, eax
jne 0x402b07
push 0x106
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402b07
cmp eax, 0x104
ja 0x402b07
cmp word [ebp + eax*2 - 0x2d2], 0x5c
je 0x402aa9
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d0], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402b06
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea ebx, [ebp + eax*2 - 0x2d0]
mov cl, byte [esi]
inc esi
mov eax, ebx
test cl, cl
je 0x402ae0
movzx edx, cl
mov cl, byte [esi]
mov word [eax], dx
add eax, 2
inc esi
test cl, cl
jne 0x402ad0
xor ecx, ecx
push 8
push ecx
lea edx, [ebp - 0x2d0]
push edx
mov dword [eax], 0x64002e
mov dword [eax + 4], 0x6c006c
mov word [eax + 8], cx
call edi
cmp byte [esi], 0
jne 0x402ac7
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret