joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41daef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d791

Function at 0x41dafa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d920

Function at 0x41def4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c000
mov eax, dword [0x528e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041ac9c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41df36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e092
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427680
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x52b578]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ec93
mov ecx, dword [esi*4 + 0x52b578]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41e08b
cmp eax, dword [edi + ecx + 0x24]
jne 0x41e08b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e08b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ec93
add esp, 0x14
test edx, edx
jl 0x41e08b
jg 0x41e001
test eax, eax
jb 0x41e08b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e08b
jl 0x41e01b
cmp dword [ebp - 0x1008], eax
ja 0x41e08b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41e039
test ebx, ebx
je 0x41e072
cmp ecx, edi
jae 0x41e072
mov al, byte [ecx]
cmp al, 0xd
jne 0x41e053
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e05f
cmp byte [ecx + 1], 0xa
jne 0x41e05f
inc ecx
jmp 0x41e05f
movzx eax, al
movsx eax, byte [eax + 0x5290d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41e039
cmp edx, ebx
jne 0x41e039
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e090
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b417
leave
ret
Function at 0x41e131
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x52b578]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e171
cmp byte [ebx], 0xa
jne 0x41e171
or byte [eax + edi + 0x28], 4
jmp 0x41e176
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41e274
mov al, byte [edx]
cmp al, 0x1a
je 0x41e256
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41e1a5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41e1ca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41e1d4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41e187
jmp 0x41e274
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e251
cmp dword [ebp - 0xc], 0
je 0x41e251
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x52b578]
test byte [eax + edi + 0x28], 0x48
je 0x41e22b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e216
mov byte [esi], dl
jmp 0x41e227
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x52b578]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e274
cmp byte [ebp - 1], 0xa
jne 0x41e23a
cmp esi, ebx
jne 0x41e23a
mov byte [esi], 0xa
jmp 0x41e273
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ecb1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e274
mov byte [esi], 0xd
jmp 0x41e273
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x52b578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e270
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e274
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e27d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x52b578]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e2c0
cmp word [esi], dx
jne 0x41e2c0
or byte [edi + eax + 0x28], 4
jmp 0x41e2c5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41e418
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41e3f8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41e307
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41e33d
cmp eax, edx
jae 0x41e349
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41e2df
jmp 0x41e418
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e3f4
cmp dword [ebp - 0x14], 0
je 0x41e3f4
mov eax, dword [ebx*4 + 0x52b578]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41e3cc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41e395
mov word [esi], cx
jmp 0x41e3c8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x52b578]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x52b578]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x52b578]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41e418
pop ebx
cmp word [ebp - 4], bx
jne 0x41e3dd
cmp esi, dword [ebp + 0xc]
jne 0x41e3dd
mov word [esi], bx
jmp 0x41e415
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ecb1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41e418
push 0xd
jmp 0x41e411
mov ecx, dword [ebx*4 + 0x52b578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e40f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e418
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4200b3
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 0x420150
push ebx
push esi
call fcn.0042007c
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.0041ee5d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4200fd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42014f
push edi
push eax
call fcn.00419df6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42011d
call fcn.004198c6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42014e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ee5d
add esp, 0x20
test eax, eax
jne 0x42013c
push edi
call fcn.004198c6
jmp 0x420144
push ebx
call fcn.004198c6
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 0x427480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4274ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4274ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x429562
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
sub eax, dword [esp + 0x10]
sar eax, 2
push edi
mov edi, dword [esp + 0x20]
test eax, eax
je 0x42963a
push ebx
xor ebx, ebx
push esi
mov esi, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x429638
push ebp
mov dword [esp + 0x10], ebx
mov ebp, 0x52abd8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebp
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402624
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebp
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402624
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42a594
mov byte [edi + esi], al
call fcn.004108fe
add esp, 0x1c
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
push ebx
call fcn.00401ab6
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
xor byte [edi + esi], al
mov eax, dword [esp + 0x18]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00401996
inc esi
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp esi, dword [esp + 0x30]
jb 0x42959f
pop ebp
pop esi
pop ebx
lea ecx, [esp + 0x14]
call fcn.00405685
pop edi
add esp, 0xc
ret 0x14

Function at 0x42964a
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x429666
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x10001544
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x10001574
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
cmp ecx, 0x3c
mov word [ebp - 0x16], ax
mov dword [ebp - 0x10], ecx
je 0x1000168f
mov eax, dword [ebp - 0x10]
mov ecx, esp
mov dword [ecx], 0x39
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
mov dword [ebp - 0x14], eax
call ecx
sub esp, 4
xor ecx, ecx
mov word [ebp - 0x18], ax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, 0xaaaaaaab
mov dword [ebp - 0x20], eax
mul ecx
shr edx, 3
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x24], ecx
je 0x100015c2
jmp 0x100015b5
mov eax, dword [ebp - 0x24]
sub eax, 0xb
mov dword [ebp - 0x28], eax
jne 0x100015d7
jmp 0x100015c2
mov eax, esp
mov dword [eax], 0x97e
mov eax, dword [sym.imp.ADVAPI32.dll_NotifyBootConfigStatus]
call eax
sub esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x60
mov dword [ebp - 0x1c], eax
jne 0x10001596
mov dword [ebp - 4], 0xf17a94
mov dword [ebp - 8], 0x929
mov eax, esp
lea ecx, [ebp - 8]
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 4]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 0xdbb
mov dword [eax + 4], 0xee7
mov dword [eax], 0xee7
mov eax, dword [sym.imp.ole32.dll_CoWaitForMultipleHandles]
call eax
sub esp, 0x14
mov ecx, dword [ebp - 0x14]
sub ecx, 0x12
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
je 0x10001644
jmp 0x10001633
mov eax, dword [ebp - 0x14]
sub eax, 0x25
mov dword [ebp - 0x38], eax
jne 0x10001551
jmp 0x10001644
mov eax, 0xa04969
mov dword [ebp - 0xc], eax
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x18], 0xf5
mov dword [eax + 0x14], 0x1bf
mov dword [eax + 0x10], 0xb1
mov dword [eax + 8], 0xc9c998
mov dword [eax + 4], 0xf9c655
mov dword [eax], 0xc9c998
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
mov dword [ebp - 0x3c], eax
jmp 0x10001551
add esp, 0x58
pop ebp
ret

Function at 0x101318aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10180500]
jne 0x101318b4
repz ret
jmp fcn.1013459c
Function at 0x1013607f
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.101319ac
and dword [ebp - 4], 0
cmp dword [0x1018221c], 0
mov ebx, eax
jne 0x10136130
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101361e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101361e1
push eax
call fcn.1013193a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1018221c], eax
call esi
push eax
call fcn.1013193a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10182220], eax
call esi
push eax
call fcn.1013193a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10182224], eax
call esi
push eax
call fcn.1013193a
pop ecx
mov dword [0x1018222c], eax
test eax, eax
je 0x10136130
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1013193a
pop ecx
mov dword [0x10182228], eax
mov eax, dword [0x10182228]
cmp eax, ebx
je 0x10136188
cmp dword [0x1018222c], ebx
je 0x10136188
push eax
call fcn.101319b5
push dword [0x1018222c]
mov esi, eax
call fcn.101319b5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10136188
test edi, edi
je 0x10136188
call esi
test eax, eax
je 0x1013617f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1013617f
test byte [ebp - 0xc], 1
jne 0x10136188
or dword [ebp + 0x10], 0x200000
jmp 0x101361c1
mov eax, dword [0x10182220]
cmp eax, ebx
je 0x101361c1
push eax
call fcn.101319b5
pop ecx
test eax, eax
je 0x101361c1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101361c1
mov eax, dword [0x10182224]
cmp eax, ebx
je 0x101361c1
push eax
call fcn.101319b5
pop ecx
test eax, eax
je 0x101361c1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1018221c]
call fcn.101319b5
pop ecx
test eax, eax
je 0x101361e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101361e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10136f0d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x1017ff84], 0xaa5
mov ecx, dword [0x1017ff88]
add ecx, 0xffffd942
mov dword [0x1017ff88], ecx
mov dword [ebp - 0x10], eax
call fcn.10138330
xor ecx, ecx
mov dword [0x1017ff88], 0x1d70
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x1017ff84], 0x9d6
mov dword [0x1017ff88], 0x84a
mov esi, dword [eax + esi + 0x78]
mov dword [0x1017ff84], 0x13d1
mov dword [0x1017ff88], 0x1706
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x101370b1
jmp 0x10136ffc
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x1017ff84], 0x547
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x1017ff88], 0x1a0f
mov dword [ebp - 0x24], edx
jmp 0x101370b1
mov al, byte [ebp - 0x29]
test al, 1
jne 0x10136fa0
jmp 0x10137066
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edx
jmp 0x10137010
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
jmp 0x10136fe0
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
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 - 0x44], eax
mov byte [ebp - 0x45], bh
mov byte [ebp - 0x29], cl
je 0x10136fd4
mov eax, dword [ebp - 0x44]
add eax, 1
mov cl, byte [ebp - 0x45]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x29]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x40], eax
jne 0x10137010
jmp 0x10136fd4
mov dword [0x1017ff84], 0xd28
mov eax, dword [ebp - 0x28]
add eax, 2
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
setb bl
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x51], bl
xor eax, eax
mov cl, byte [ebp - 0x51]
test cl, 1
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x24], eax
jne 0x10136fe0
jmp 0x101370b1
mov eax, dword [ebp - 0x24]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101370bc
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1017ff84]
add eax, 0xfffffadd
mov dword [0x1017ff84], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [0x1017ff88], 0x15f7
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x1013712c
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x101370ff
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [0x1017ff84], 0x28a1
mov dword [0x1017ff88], 0x2cb8
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jne 0x1013722c
mov dword [0x1017ff84], 0x7d9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
sete dl
mov byte [ebp - 0x21], dl
xor eax, eax
mov cl, byte [ebp - 0x21]
test cl, 1
mov dword [ebp - 0x20], eax
jne 0x1013718a
jmp 0x1013722c
xor eax, eax
mov dword [0x1017ff84], 0x3dce
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
jne 0x1013722c
xor eax, eax
mov dword [0x1017ff84], 0x20ef
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
jne 0x1013722c
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff7
mov dword [ebp - 0x28], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2], 0x64
mov dword [ebp - 0x20], eax
jne 0x1013722c
mov dword [0x1017ff84], 0x1c90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1013722c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1013722c
mov eax, 1
mov dword [0x1017ff84], 0x8a6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x28
pop ebp
ret
Function at 0x10137771
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1017ff90], 0
mov byte [0x1017ff94], 0
mov dword [0x1017ff88], 0x2272
mov edi, dword [0x1017ff84]
add edi, 0xffffe432
mov dword [0x1017ff84], edi
mov dword [0x1017ff8c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101377ea
xor eax, eax
mov dword [0x1017ff8c], 0
mov ecx, dword [0x1017ff84]
add ecx, 0xfffff4ce
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x1013781c
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1017ff88], 0xde5
mov eax, dword [0x1017ff8c]
add eax, 1
mov dword [0x1017ff8c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101377ea
jmp 0x101377ca
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x1831
mov esi, 0x100
mov dword [0x1017ff98], 0
mov edi, dword [0x1017ff90]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x1017ff98], ebx
mov dword [0x1017ff88], 0x1119
mov eax, ebx
cdq
idiv esi
mov dword [0x1017ff90], edx
mov dword [0x1017ff84], ecx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov cl, byte [ecx + esi]
mov byte [0x1017ff94], cl
mov dword [0x1017ff88], 0x249d
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x1017ff88], 0x1076
mov cl, byte [0x1017ff94]
mov edx, dword [0x1017ff90]
mov byte [ebx + edx], cl
mov dword [0x1017ff84], 0x2363
mov edx, dword [0x1017ff8c]
add edx, 1
mov dword [0x1017ff8c], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jl 0x1013781c
mov dword [0x1017ff84], 0x3cc4
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10137a1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [fcn.10137a1c]
mov dword [0x1017ff84], 0x12cc
mov ecx, dword [0x1017ff88]
add ecx, 0xfffff509
mov dword [0x1017ff88], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x10137a5d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x10137a7d
jmp 0x10137a8d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, ecx
add edx, 0x5c2
cmp word [eax], 0x5a4d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
je 0x10137a4c
jmp 0x10137a8d
mov eax, dword [ebp - 0x14]
mov dword [0x1017ff88], eax
mov eax, dword [ebp - 0xc]
add esp, 0x14
pop ebp
ret
mov eax, dword [ebp - 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [ebp - 0x10]
add ecx, 0x164a
mov dword [0x1017ff84], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x10137a5d