joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013f50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x10013f57
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x10014034
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10032440]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x10032440]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x10032440]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10032440]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10032440]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10032440]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10032440]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10032440]
inc ecx
sub edx, 8
sub esi, 1
jne 0x10013f70
pop edi
test edx, edx
je 0x1001405b
jmp 0x10014040
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x10032440]
inc ecx
sub edx, 1
jne 0x10014040
not eax
pop esi
ret

Function at 0x10014060
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x10032440]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10032440]
mov dword [edx + 8], ecx
ret

Function at 0x100140b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x10032440]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x10032440]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x10014800
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x10014832
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10014828
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x10014845
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.1001c130
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x10014860
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x10014893
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001488d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x100148bf
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x100148a5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.1001c130
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x100148d6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x100148d0
cmp byte [esi + 8], 0
je 0x100148d0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x100149c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x10014a05
cmp byte [esi + 1], 0
je 0x10014a0d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x10014a22
cmp byte [esi + 1], 0
je 0x10014a14
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x10014a2b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x100149de
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x10014a2b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x10014a3f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.10018790
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10014a5d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x10014b71
jmp 0x10014a80
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x10014a91
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x10014aaa
mov ebp, 0x404
cmp byte [esi], 0
je 0x10014acf
cmp byte [esi + 1], 0
je 0x10014b71
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x10014ad2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x10014afa
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10014af4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x10014b20
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x10014b0b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.1001c130
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x10014b71
lea eax, [ebp - 3]
test eax, eax
jl 0x10014b5c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x10014b4c
cmp byte [eax + ebx + 1], 0x4b
jne 0x10014b4c
cmp byte [eax + ebx + 2], 5
jne 0x10014b4c
cmp byte [eax + ebx + 3], 6
je 0x10014b52
test eax, eax
jge 0x10014b30
jmp 0x10014b5c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x10014b71
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x10014a74
push ebx
call fcn.100186b3
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x100154a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x100154be
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x100154b2
cmp dword [edi + 0x7c], ebx
je 0x100154cd
call fcn.10015890
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.10015210
add esp, 0xc
test eax, eax
je 0x100154f4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.10018790
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10015535
push 0x4000
call fcn.10018790
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x10015542
push esi
call fcn.100186b3
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x1001558a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.10014370
test eax, eax
jne 0x1001558a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x100155b4
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x100155bd
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x100155f7
mov cl, byte [ebp]
cmp cl, bl
je 0x100155f7
call fcn.10014060
add ebp, 1
jne 0x100155e6
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x100159f0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x10015a98
cmp dword [ebx + 4], 0xffffffff
jne 0x10015a98
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10015a20
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x10015a59
cmp ax, 0x2f
je 0x10015a59
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10015a46
mov eax, dword [0x10037750]
mov dword [edi], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea esi, [esp + 0x1c]
call fcn.100147c0
add esp, 8
test eax, eax
jne 0x10015a7d
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ecx
ret 8
call fcn.10014b90
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop esi
pop ecx
ret 8
pop edi
mov eax, 0x1000000
pop esi
pop ecx
ret 8
Function at 0x10016e00
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x10016e80
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x1003c490]
or ecx, dword [ebx*4 + 0x1003c690]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x1003c890]
and eax, 0x3f
or ecx, dword [eax*4 + 0x1003ca90]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1003c590]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x1003c790]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x1003c990]
and eax, 0x3f
or ebx, dword [eax*4 + 0x1003cb90]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x1003c490]
or ecx, dword [ebx*4 + 0x1003c690]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x1003c890]
and eax, 0x3f
or ecx, dword [eax*4 + 0x1003ca90]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1003c590]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x1003c790]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x1003c990]
and eax, 0x3f
or ebx, dword [eax*4 + 0x1003cb90]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x10016e80
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret
Function at 0x10017d70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10029171
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003b030]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
xor esi, esi
mov dword [esp + 0x18], esi
mov edi, 1
mov dword [esp + 0x24], edi
mov eax, dword [0x1004130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1004130c
call edx
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebp, eax
cmp ebp, esi
je 0x10017e62
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], esi
call sub.IPHLPAPI.DLL_GetIpNetTable
cmp eax, 0x7a
jne 0x10017e62
mov edx, dword [esp + 0x14]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push edi
lea eax, [esp + 0x18]
push eax
push esi
call sub.IPHLPAPI.DLL_GetIpNetTable
test eax, eax
jne 0x10017e5b
test esi, esi
je 0x10017e62
mov edx, dword [esi]
test edx, edx
jbe 0x10017e5b
lea ecx, [esi + 0x14]
cmp ebp, dword [ecx]
je 0x10017e27
add eax, edi
add ecx, 0x18
cmp eax, edx
jb 0x10017e18
jmp 0x10017e5b
lea ecx, [eax + eax*2]
movzx edx, byte [esi + ecx*8 + 0x11]
lea eax, [esi + ecx*8]
movzx ecx, byte [eax + 0x10]
push edx
movzx edx, byte [eax + 0xf]
push ecx
movzx ecx, byte [eax + 0xe]
push edx
movzx edx, byte [eax + 0xd]
movzx eax, byte [eax + 0xc]
push ecx
push edx
push eax
push 0x10037ad0
mov edi, ebx
call fcn.10004410
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10017e87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x100181c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
push edi
lea eax, [esp + 0x10]
push eax
call ebp
call fcn.10019bf7
add eax, dword [esp + 0x10]
push eax
call fcn.10019be5
add esp, 4
call fcn.10019bf7
cdq
mov ecx, 5
idiv ecx
xor esi, esi
mov edi, edx
add edi, 0x14
test edi, edi
jle 0x10018253
lea ecx, [ecx]
lea edx, [esp + 0x10]
push edx
call ebp
call fcn.10019bf7
add eax, dword [esp + 0x10]
push eax
call fcn.10019be5
add esp, 4
call fcn.10019bf7
cdq
mov ecx, 0x3e
idiv ecx
cmp edx, 0xa
jge 0x10018230
add edx, 0x30
jmp 0x1001823d
cmp edx, 0x24
jge 0x1001823a
add edx, 0x37
jmp 0x1001823d
add edx, 0x3d
mov word [ebx + esi*2], dx
inc esi
cmp esi, edi
jl 0x10018200
xor edx, edx
mov word [ebx + edi*2], dx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
xor eax, eax
mov word [ebx + edi*2], ax
pop edi
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x100186a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003b030]
jne 0x100186ae
repz ret
jmp fcn.1001ad55
Function at 0x10024831
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.1001dfb6
and dword [ebp - 4], 0
cmp dword [0x10041cfc], 0
mov ebx, eax
jne 0x100248e2
push 0x1002bcd4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10024993
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002bcc8
push edi
call esi
test eax, eax
je 0x10024993
push eax
call fcn.1001df44
mov dword [esp], 0x1002bcb8
push edi
mov dword [0x10041cfc], eax
call esi
push eax
call fcn.1001df44
mov dword [esp], 0x1002bca4
push edi
mov dword [0x10041d00], eax
call esi
push eax
call fcn.1001df44
mov dword [esp], 0x1002bc88
push edi
mov dword [0x10041d04], eax
call esi
push eax
call fcn.1001df44
pop ecx
mov dword [0x10041d0c], eax
test eax, eax
je 0x100248e2
push 0x1002bc70
push edi
call esi
push eax
call fcn.1001df44
pop ecx
mov dword [0x10041d08], eax
mov eax, dword [0x10041d08]
cmp eax, ebx
je 0x1002493a
cmp dword [0x10041d0c], ebx
je 0x1002493a
push eax
call fcn.1001dfbf
push dword [0x10041d0c]
mov esi, eax
call fcn.1001dfbf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1002493a
test edi, edi
je 0x1002493a
call esi
test eax, eax
je 0x10024931
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10024931
test byte [ebp - 0xc], 1
jne 0x1002493a
or dword [ebp + 0x10], 0x200000
jmp 0x10024973
mov eax, dword [0x10041d00]
cmp eax, ebx
je 0x10024973
push eax
call fcn.1001dfbf
pop ecx
test eax, eax
je 0x10024973
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10024973
mov eax, dword [0x10041d04]
cmp eax, ebx
je 0x10024973
push eax
call fcn.1001dfbf
pop ecx
test eax, eax
je 0x10024973
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10041cfc]
call fcn.1001dfbf
pop ecx
test eax, eax
je 0x10024993
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10024995
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x40894a
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
add eax, 0x3fade268
call fcn.00408987
push 0x88e5d475
mov ebx, dword [esp]
add esp, 4
add ebx, ebx
xor dword [edi], edx
add ebx, 0xbb1bdce2
mov eax, eax
inc edi
sub ebx, eax
cmp edi, ecx
jne fcn.0040894a
dec ebx
push 0xf1540cd8
pop ebx
ret
Function at 0x403f8a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x418968], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x403fce
call ebx
test eax, eax
jns 0x403fc4
push 0x40166c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x401660
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x418964], eax
mov dword [0x418968], 1
mov eax, dword [0x418964]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x403fea
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x40401a
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x404010
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x404004
push dword [eax + 8]
call dword [eax]
jmp 0x40400a
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x404019
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x40408d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418974], 1
push ebx
push esi
push edi
jne 0x4040b0
or dword [0x418974], 1
call fcn.00404039
mov dword [0x418970], eax
push 4
pop eax
call fcn.00414370
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404145
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4188cc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x404145
cmp eax, 1
je 0x404166
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404145
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404112
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404141
xor eax, eax
inc eax
jmp 0x404185
cmp edi, eax
jae 0x404149
xor eax, eax
jmp 0x404185
cmp eax, esi
jae 0x404150
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4188cc]
jmp 0x404169
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40433a
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8