joyce8/EMBER2024-capa huggingface dataset:
Function at 0x74b9a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x212000]
mov dword [edi + 0x328804], 0xb4a2dff1
push edi
jmp 0x74b9ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x74b9d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74b9c0
mov eax, 1
add ebx, ebx
jne 0x74b9e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x74b9f4
jne 0x74ba13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74ba13
dec eax
add ebx, ebx
jne 0x74ba00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x74b9d8
add ebx, ebx
jne 0x74ba0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x74ba65
xor ecx, ecx
sub eax, 3
jb 0x74ba2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x74ba9a
sar eax, 1
mov ebp, eax
jmp 0x74ba36
add ebx, ebx
jne 0x74ba36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74ba04
inc ecx
add ebx, ebx
jne 0x74ba44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x74ba04
add ebx, ebx
jne 0x74ba51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x74ba46
jne 0x74ba62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x74ba46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x74ba84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x74ba76
jmp 0x74b9c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x74ba84
add edi, ecx
jmp 0x74b9c6
pop esi
mov edi, esi
mov ecx, 0xb929
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x74baa2
cmp byte [edi], 0x3f
jne 0x74baa2
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 0x74baa7
lea edi, [esi + 0x33f000]
mov eax, dword [edi]
or eax, eax
je 0x74bb1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x34b754]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x34b82c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x74bad4
mov ecx, edi
jns 0x74bb03
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 + 0x34b834]
or eax, eax
je 0x74bb19
mov dword [ebx], eax
add ebx, 4
jmp 0x74baf1
call dword [esi + 0x34b830]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x74bb50
cmp al, 0xef
ja 0x74bb43
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x74bb25
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x74bb32
mov ebp, dword [esi + 0x34b838]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x74bb84
sub esp, 0xffffff80
jmp 0x559863
Function at 0x100084b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a4610
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100ca1c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100084f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.10008380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100092e0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a4756
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x100ca1c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 4], 0
cmp dword [ecx + 0x2c], eax
lea ecx, [ebp - 0x230]
push 0x2001f
setne al
push str.SoftwareMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
push eax
call fcn.1000c840
mov edi, dword [ebp - 0x230]
test eax, eax
jne 0x10009477
call fcn.1000c350
mov ecx, eax
test ecx, ecx
je 0x100094a4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push dword [esi + 8]
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push dword [esi]
push str.__s___s
push eax
call fcn.1000c260
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10080c30
add esp, 0x1c
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10009406
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x100093f4
cmp eax, 2
jne 0x10009406
cmp dword [ebp - 0x21c], 0
jne 0x10009406
xor eax, eax
mov word [ebp - 0x218], ax
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10084486
add esp, 8
test eax, eax
je 0x10009454
test esi, esi
je 0x10009454
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009430
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10009470
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x10009479
xor esi, esi
test edi, edi
je 0x10009484
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100665d9
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1000ba30
int3
Function at 0x1000c430
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a4c68
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100ca1c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x100f2168], 0
jne 0x1000c474
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push eax
push 0x100f2168
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.1000c350
mov ecx, eax
test ecx, ecx
je 0x1000c4e0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x100f2168
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.1000ba50
test al, al
jne 0x1000c4cc
mov ecx, 0x100f2168
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c4b0
sub ecx, edx
sar ecx, 1
push ecx
push 0x100f2168
mov ecx, esi
call fcn.1000cd50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.1000ba30
int3
Function at 0x1000c580
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a4cb1
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x100ca1c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str.YxhGametray
push dword [ebx]
call fcn.10084486
add esp, 8
test eax, eax
je 0x1000c5f1
push str.LeyouGametray
push dword [ebx]
call fcn.10084486
add esp, 8
test eax, eax
je 0x1000c5f1
push dword [ebx + 0x14]
push 0xffffffffffffffff
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
inc eax
jmp 0x1000c760
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10080c30
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebx + 0x14]
push 0x104
push eax
push str.true
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.false
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x24c], ecx
test eax, eax
je 0x1000c75e
call fcn.10065110
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1000c758
push 0x58
push str.d:jenkins.jenkinsworkspacehalo_helperyingyanhelper_autorunmanger_autorunmanager.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.1000e690
push 3
push 0x100aba2c
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1000e690
mov byte [ebp - 4], 1
call fcn.10065110
mov edi, eax
lea ecx, [ebp - 0x2e4]
push 0x32c
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.100076b0
mov esi, eax
push str.IsDisable_
push esi
mov byte [ebp - 4], 2
call fcn.10008d00
mov ecx, dword [ebx + 0x14]
mov edx, 0x100ab988
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.100066b0
push 0x100ac014
push esi
call fcn.10008d00
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.100066b0
mov edx, dword [edi]
add esp, 0x20
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2e4]
call fcn.10008e30
lea ecx, [ebp - 0x230]
call fcn.100080e0
lea ecx, [ebp - 0x248]
call fcn.100080e0
mov ecx, dword [ebp - 0x24c]
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100665d9
mov esp, ebp
pop ebp
ret
Function at 0x1000d080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000d0d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000d0d9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000d0ca
cmp esi, edx
jae 0x1000d0d9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000d0b8
cmp esi, edx
jae 0x1000d0d9
cmp word [esi], 0
je 0x1000d0d9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x100133b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x100ca1c4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x6c], 0x490044
push ebx
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x6c]
mov eax, 0x100f2638
mov dword [ebp - 0x68], 0x410044
push edi
mov dword [ebp - 0x64], 0x410057
mov edx, 0x33
mov dword [ebp - 0x60], 0x4c004c
sub esi, eax
mov dword [ebp - 0x5c], 0x410050
mov dword [ebp - 0x58], 0x450050
mov dword [ebp - 0x54], 0x5f0052
mov dword [ebp - 0x50], 0x430042
mov dword [ebp - 0x4c], 0x300042
mov dword [ebp - 0x48], 0x390041
mov dword [ebp - 0x44], 0x330035
mov dword [ebp - 0x40], 0x37002d
mov dword [ebp - 0x3c], 0x370035
mov dword [ebp - 0x38], 0x2d0039
mov dword [ebp - 0x34], 0x380034
mov dword [ebp - 0x30], 0x330062
mov dword [ebp - 0x2c], 0x38002d
mov dword [ebp - 0x28], 0x440034
mov dword [ebp - 0x24], 0x2d0043
mov dword [ebp - 0x20], 0x390037
mov dword [ebp - 0x1c], 0x390041
mov dword [ebp - 0x18], 0x330034
mov dword [ebp - 0x14], 0x460038
mov dword [ebp - 0x10], 0x440033
mov dword [ebp - 0xc], 0x390037
nop word [eax + eax]
lea ecx, [edx + 0x7fffffcb]
test ecx, ecx
je 0x100134ae
movzx ecx, word [esi + eax]
test cx, cx
je 0x100134ae
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10013490
test edx, edx
lea ecx, [eax - 2]
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100665d9
mov esp, ebp
pop ebp
ret
Function at 0x10015460
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100ca1c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.10080c30
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.10080c30
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100154c3
cmp dword [ebp - 0x114], 6
mov eax, 0x30
jae 0x100154c8
mov eax, 0x2c
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x100154e6
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, edi
jmp 0x100154e8
mov eax, edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x100154fc
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [0x100f5750]
mov eax, esi
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100665d9
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10018350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a55c6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100ca1c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100183fc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x100183fc
call fcn.10016380
mov esi, eax
jmp 0x100184ec
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1001841f
call fcn.10016380
jmp 0x100184df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1001843d
call fcn.10016380
jmp 0x100184df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001845e
mov esi, 0x8007000e
jmp 0x100184e1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10016180
jmp 0x10018488
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1001849f
mov esi, 0x8007000e
jmp 0x100184e1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x100184bf
call fcn.10016380
jmp 0x100184df
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.100181b0
mov esi, eax
test edi, edi
je 0x100184ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10018510
lea ecx, [ebp - 0x418]
call fcn.10016a00
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100665d9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001d120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a5878
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100ca1c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x1001d1ac
lea ecx, [ebp - 0xd]
call fcn.1001d040
mov edx, eax
test edx, edx
jne 0x1001d17c
xor ecx, ecx
push ecx
push edx
lea ecx, [edi + 0x10]
call fcn.1000cd50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d181
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x10]
call fcn.1000cd50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.1000bb90
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001d210
lea ecx, [ebp - 0xd]
call fcn.1001ce80
mov edx, eax
lea ebx, [edi + 0x10]
test edx, edx
jne 0x1001d1f1
xor ecx, ecx
push ecx
push edx
mov ecx, ebx
call fcn.1000cd50
jmp 0x1001d230
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d1f6
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.1000cd50
jmp 0x1001d230
push esi
call fcn.1005a710
add esp, 4
test eax, eax
je 0x1001d230
mov eax, dword [edi]
push 0
push 0
push esi
push 1
push eax
push eax
call fcn.1001d530
add esp, 0x18
or eax, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001d24b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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 0x1001d640
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x1001d69e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x1001d660
mov eax, dword [edi]
jmp 0x1001d789
cmp eax, 0x4e0
jb 0x1001d789
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x1001d6c0
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x1001d710
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001da80
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
push esi
and eax, 0x8000000f
jns 0x1001da9b
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x1001dbfa
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001dbfa
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1001dbf3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1001dbf3
cmp dword [ebp - 0x10], 0
jg 0x1001dbf3
jl 0x1001db04
cmp eax, 0x1000000
ja 0x1001dbf3
push edi
push 0x1000000
call fcn.1006682d
add esp, 4
mov dword [ebp + 0x14], 0
mov edi, eax
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001dbd7
cmp dword [ebp + 0x14], 0
je 0x1001dbd7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.1001d820
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001dba9
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x1001dbbf
call ebx
push 1
push esi
call fcn.10066268
add esp, 8
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call ebx
push 1
push esi
call fcn.10066268
add esp, 8
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 1
push edi
call fcn.10066268
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1001dd30
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001dd50
push 9
push str.svc_other
lea ecx, [esi + 0xc]
call fcn.1000cd50
pop esi
ret
call fcn.100441b0
test eax, eax
je 0x1001dd6a
push 6
push str.svc_hr
lea ecx, [esi + 0xc]
call fcn.1000cd50
pop esi
ret
push dword [esi]
call fcn.1005a710
add esp, 4
test eax, eax
je 0x1001dd9b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1001dd9b
push 0x100acf30
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001dd9b
push 0x100aa65c
call eax
pop esi
ret