joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44522c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0043a94a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0043a94a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4452a3
cmp word [ecx], dx
je 0x4452a3
mov eax, dword [0x44e134]
push edi
dec eax
push eax
push 0x44e020
call fcn.004451cb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x445316
cmp word [eax], dx
je 0x445316
mov eax, dword [edi]
test eax, eax
je 0x4452c7
cmp word [eax], dx
je 0x4452c7
lea eax, [ebp - 0x10]
push eax
call fcn.00444bae
jmp 0x4452d0
lea eax, [ebp - 0x10]
push eax
call fcn.00444c49
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x445340
mov eax, dword [0x44e01c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44dd10
call fcn.004451cb
add esp, 0xc
test al, al
je 0x445340
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44530b
cmp word [eax], di
je 0x44530b
lea eax, [ebp - 0x10]
push eax
call fcn.00444bae
pop ecx
jmp 0x445342
lea eax, [ebp - 0x10]
push eax
call fcn.00444c49
jmp 0x445308
mov eax, dword [edi]
test eax, eax
je 0x44532d
cmp word [eax], dx
je 0x44532d
lea eax, [ebp - 0x10]
push eax
call fcn.00444b63
pop ecx
jmp 0x445340
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x44540b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00445050
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44540b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x44540b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44540b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x445398
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043b391
test ebx, ebx
je 0x445406
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043b391
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44540b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44540b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00434601
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44540d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f23c
leave
ret
Function at 0x447bc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x447bed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x447bed
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
Function at 0x401040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x1e4dc
mov dword [ebp - 0xc], 0x3000
mov dword [ebp - 4], 0x40
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esp, ebp
pop ebp
ret

Function at 0x401160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], 0x11cb
mov dword [ebp - 0x10], 0
jmp 0x40117f
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jae 0x401246
mov dword [ebp - 8], 0x4189
cmp dword [ebp - 0x10], 0
jne 0x4011e8
push 0x104
push 0x4021a4
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._system32cabinet.dll
push 0x4021a4
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
push 1
push 0x4021a4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4011e1
cmp dword [ebp - 4], 0
jne 0x4011e8
mov eax, 0x42
jmp 0x401246
mov edx, dword [ebp - 0x10]
add edx, 0x563
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
xor edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [eax], edx
jmp 0x401176
mov esp, ebp
pop ebp
ret
Function at 0x1022ade7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10262650]
jne 0x1022adf1
repz ret
jmp fcn.1022c5bc

Function at 0x1022d71b
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.10229264
and dword [ebp - 4], 0
cmp dword [0x10263d08], 0
mov ebx, eax
jne 0x1022d7cc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1022d87d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1022d87d
push eax
call fcn.102291f2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10263d08], eax
call esi
push eax
call fcn.102291f2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10263d0c], eax
call esi
push eax
call fcn.102291f2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10263d10], eax
call esi
push eax
call fcn.102291f2
pop ecx
mov dword [0x10263d18], eax
test eax, eax
je 0x1022d7cc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.102291f2
pop ecx
mov dword [0x10263d14], eax
mov eax, dword [0x10263d14]
cmp eax, ebx
je 0x1022d824
cmp dword [0x10263d18], ebx
je 0x1022d824
push eax
call fcn.1022926d
push dword [0x10263d18]
mov esi, eax
call fcn.1022926d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1022d824
test edi, edi
je 0x1022d824
call esi
test eax, eax
je 0x1022d81b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1022d81b
test byte [ebp - 0xc], 1
jne 0x1022d824
or dword [ebp + 0x10], 0x200000
jmp 0x1022d85d
mov eax, dword [0x10263d0c]
cmp eax, ebx
je 0x1022d85d
push eax
call fcn.1022926d
pop ecx
test eax, eax
je 0x1022d85d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1022d85d
mov eax, dword [0x10263d10]
cmp eax, ebx
je 0x1022d85d
push eax
call fcn.1022926d
pop ecx
test eax, eax
je 0x1022d85d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10263d08]
call fcn.1022926d
pop ecx
test eax, eax
je 0x1022d87d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1022d87f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1022e969
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x10261c14]
add eax, 0xffffda07
mov dword [0x10261c14], eax
call fcn.10001070
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x1022ea7a
jmp 0x1022eaf0
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 0x1c]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x84], esi
mov dword [0x10261c14], 0x111c
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1022ee62
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x10261c14]
add ecx, 0xfffff0fe
mov dword [0x10261c14], ecx
mov dword [esp + 0x18], eax
jmp 0x1022eae8
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.1022eb9f
lea ecx, [0x1022fefc]
mov dword [0x10261c18], 0xb1d
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], 0x127800
mov edx, dword [0x10261c00]
mov dword [esp + 0x48], edx
mov edx, dword [0x10261c04]
mov dword [esp + 0x80], edx
mov edx, dword [0x10261c08]
mov dword [esp + 0x7c], edx
mov edx, dword [0x10261c0c]
mov dword [esp + 0x74], edx
mov dword [0x10261c14], 0x135a
mov edx, dword [0x10261c10]
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp 0x1022eaad
lea eax, [esp + 0x38]
mov dword [0x10261c14], 0xbdc
mov dword [esp + 0xc], eax
call fcn.1022fc70
mov dword [esp + 8], eax
xor eax, eax
mov ecx, dword [esp + 8]
cmp ecx, 0
mov dword [esp + 0x18], eax
je 0x1022ea05
jmp 0x1022eae8
mov eax, dword [esp + 0x10]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
jne 0x1022ead4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x1c], ecx
je 0x1022e9a0
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x10], eax
jmp 0x1022eaad
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x1022ee62
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x102306e9]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x10261c14], 0x90d
mov dword [0x10261c18], 0xb59
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.1022f599
mov eax, dword [0x10261c14]
add eax, 0x1da2
mov dword [0x10261c18], eax
call fcn.1022f10e
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1022f37e
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x1022efa6
mov dword [0x10261c18], 0xc01
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x10261c14], 0x1a95
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1022f1b7
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
mov dword [0x10261c18], 0x539
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x50], ecx
mov ecx, dword [0x10261c18]
add ecx, 0xffffeed3
mov dword [0x10261c18], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x24], ecx
mov dword [0x10261c14], 0x147
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x1022efa6
mov eax, dword [ebp - 0x44]
add eax, 0x11b2
mov dword [0x10261c18], 0x1479
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x1022f6fb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10261c1c], 0
mov dword [0x10261c20], 0
mov dword [0x10261c2c], 0
mov ebx, dword [0x10261c14]
add ebx, 0x5f1
mov dword [0x10261c14], ebx
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
je 0x1022f898
jmp 0x1022f79f
mov eax, dword [0x10261c1c]
mov ecx, dword [0x10261c14]
mov edx, dword [0x10261c20]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], esi
jmp 0x1022f79f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
add eax, 0x214e
add edx, 1
mov ebx, esi
add ebx, 1
mov dword [0x10261c14], eax
mov eax, edx
cdq
idiv edi
mov dword [0x10261c1c], edx
mov dword [0x10261c18], 0xe94
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x40]
add ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [0x10261c20], edx
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x44]
mov cl, byte [ecx + edi]
mov byte [0x10261c24], cl
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x24]
mov byte [edx + edi], cl
mov dword [0x10261c14], 0x20fe
mov cl, byte [0x10261c24]
mov edx, dword [0x10261c20]
mov edi, dword [ebp - 0x24]
mov byte [edi + edx], cl
mov edx, dword [0x10261c1c]
movzx edx, byte [edi + edx]
mov ecx, dword [0x10261c20]
movzx ecx, byte [edi + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10261c2c], ecx
mov dword [0x10261c14], 0x211
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x1c]
mov ch, byte [edx + esi]
mov byte [0x10261c31], ch
mov byte [0x10261c32], cl
mov dword [0x10261c14], 0x1106
xor ch, cl
mov byte [0x10261c30], ch
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov esi, dword [ebp - 0x10]
cmp ebx, esi
mov dword [ebp - 0x3c], ebx
jne 0x1022f76b
mov eax, dword [0x10261c18]
add eax, 0x221
mov dword [0x10261c18], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022f956
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10261c20], 0
mov byte [0x10261c24], 0
mov dword [0x10261c14], 0x9b7
mov dword [0x10261c1c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1022f9ae
xor eax, eax
mov dword [0x10261c1c], 0
mov dword [ebp - 0x20], eax
jmp 0x1022f9e0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10261c14], 0x1a34
mov eax, dword [0x10261c1c]
add eax, 1
mov dword [0x10261c1c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1022f9ae
jmp 0x1022f99d
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10261c28], 0
mov dword [0x10261c18], 0xa70
mov edi, dword [0x10261c20]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10261c28], esi
mov dword [0x10261c14], 0x2605
mov eax, esi
cdq
idiv ecx
mov dword [0x10261c20], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x10261c24], cl
mov dword [0x10261c18], 0x1d7f
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov dword [0x10261c14], 0x14bd
mov cl, byte [0x10261c24]
mov esi, dword [0x10261c20]
mov byte [ebx + esi], cl
mov esi, dword [0x10261c1c]
add esi, 1
mov dword [0x10261c1c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1022f9e0
mov dword [0x10261c14], 0x20f6
mov dword [0x10261c18], 0xbda
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022fab1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [0x10261c14]
add ecx, 0x89f
mov dword [0x10261c14], ecx
mov dword [0x10261c18], 0x1fa4
mov dword [ebp - 0x10], eax
call fcn.1022e818
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1022fb09
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x10261c14], 0xfffff354
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x10261c18], 0x1e93
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x1022fb69
mov eax, 0xfffff354
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
add edx, esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
jmp 0x1022fb74
mov eax, dword [ebp - 0x34]
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
xor esi, esi
mov edi, dword [ebp - 0x28]
mov ebx, dword [edi + eax*4]
add edx, 0x89f
mov dword [0x10261c14], edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x54]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x59], bh
mov byte [ebp - 0x5a], cl
je 0x1022fbf1
mov eax, dword [ebp - 0x58]
add eax, 1
mov cl, byte [ebp - 0x59]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x5a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x54], eax
jne 0x1022fba0
mov al, byte [ebp - 0x5a]
test al, 1
jne 0x1022fc38
jmp 0x1022fbfa
mov eax, dword [ebp - 0x48]
add eax, 2
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
xor eax, eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x30]
cmp ecx, edx
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
jb 0x1022fb74
jmp 0x1022fb69
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x10261c14], 0x5ea
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x10261c18], 0x19e
mov dword [ebp - 0x68], edi
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x34], eax
jmp 0x1022fb69
Function at 0x1022fc70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x10261c14]
add eax, 0xfffff2a7
mov dword [0x10261c14], eax
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [0x10261c18], 0x1944
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10261c14], 0x2173
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
jmp 0x1022fd35
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x25], cl
mov al, byte [ebp - 0x25]
test al, 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], edx
jne 0x1022fd35
jmp 0x1022fced
mov eax, dword [ebp - 0x2c]
mov dword [0x10261c18], 0x1341
mov dword [0x10261c14], 0x356f
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x30], eax
jne 0x1022fdec
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x32], dx
mov ax, word [ebp - 0x32]
cmp ax, 0x6f
je 0x1022fd50
jmp 0x1022fdec
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], edx
je 0x1022fced
jmp 0x1022fcc2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1022fdec
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1022fdec
mov dword [0x10261c14], 0x8c1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1022fdec
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1022fdec
mov eax, 0xb8a
mov ecx, 0x23bc
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov di, word [edx + esi*2 - 0xe]
cmp di, 0x6c
sete bl
cmp di, 0x6c
mov byte [ebp - 0x33], bl
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
je 0x1022fdcd
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [0x10261c14], eax
mov cl, byte [ebp - 0x33]
and cl, 1
movzx eax, cl
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret