joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a69e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4112c8], esi
push edi
jne 0x40a6be
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4112c4], esi
mov byte [0x4112c0], al
jne 0x40a724
mov ecx, dword [0x412968]
test ecx, ecx
je 0x40a705
mov eax, dword [0x412964]
sub eax, 4
cmp eax, ecx
jmp 0x40a6fe
mov eax, dword [eax]
test eax, eax
je 0x40a6f0
call eax
mov eax, dword [0x412964]
sub eax, 4
cmp eax, dword [0x412968]
mov dword [0x412964], eax
jae 0x40a6e8
mov eax, 0x40f01c
mov esi, 0x40f020
cmp eax, esi
mov edi, eax
jae 0x40a724
mov eax, dword [edi]
test eax, eax
je 0x40a71d
call eax
add edi, 4
cmp edi, esi
jb 0x40a715
mov eax, 0x40f024
mov esi, 0x40f028
cmp eax, esi
mov edi, eax
jae 0x40a743
mov eax, dword [edi]
test eax, eax
je 0x40a73c
call eax
add edi, 4
cmp edi, esi
jb 0x40a734
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40a75d
push dword [ebp + 8]
mov dword [0x4112c8], 1
call fcn.0040a604
pop ebp
ret

Function at 0x40ab73
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00408ca0
mov eax, dword [0x40f550]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x412858]
mov dword [ebp - 4], eax
jae 0x40acb6
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x412860]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40acb6
push 1
push esi
push ebx
call fcn.0040889d
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40acc0
push 2
push esi
push ebx
call fcn.0040889d
add esp, 0xc
cmp eax, 0xffffffff
je 0x40acc0
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40ac60
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004080e0
push 0x8000
push ebx
call fcn.0040c0d9
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40ac1f
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00408cdd
add esp, 0xc
cmp eax, 0xffffffff
je 0x40ac3d
sub edi, eax
test edi, edi
jg 0x40ac14
jmp 0x40ac53
cmp dword [0x411280], 5
jne 0x40ac50
mov dword [0x41127c], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040c0d9
pop ecx
pop ecx
jmp 0x40aca0
jge 0x40aca0
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040889d
push ebx
call fcn.0040ab37
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40aca0
mov dword [0x41127c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x411280], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0040889d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40acc3
mov dword [0x41127c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040ad9f
leave
ret
Function at 0x40adad
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40f550]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40f558]
je 0x40ade2
inc eax
cmp eax, 0x13
jb 0x40add3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40f558]
jne 0x40af08
mov eax, dword [0x411248]
cmp eax, 1
je 0x40aee0
cmp eax, edx
jne 0x40ae12
cmp dword [0x40f2c4], 1
je 0x40aee0
cmp ecx, 0xfc
je 0x40af08
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ae48
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00408140
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00408240
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40ae7c
mov eax, edi
push eax
call fcn.00408240
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40dc10
push edi
call fcn.0040bbb0
add esp, 0x10
push edi
call fcn.00408240
push dword [esi + 0x40f55c]
mov ebx, eax
call fcn.00408240
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00408ca0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00408140
push edi
push ebx
call fcn.00408150
push 0x40dbf0
push ebx
call fcn.00408150
push dword [esi + 0x40f55c]
push ebx
call fcn.00408150
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040c309
add esp, 0x2c
jmp 0x40af08
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40f55c]
push dword [esi]
call fcn.00408240
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040ad9f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40bac7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00408ca0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bb62
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x411288]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40bb62
cmp eax, 1
je 0x40bb83
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 0x40bb62
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40bb2f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40bb5e
xor eax, eax
inc eax
jmp 0x40bba2
cmp edi, eax
jae 0x40bb66
xor eax, eax
jmp 0x40bba2
cmp eax, esi
jae 0x40bb6d
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 [0x411288]
jmp 0x40bb86
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 0x40c309
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4113ec], ebx
push esi
push edi
jne 0x40c389
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c3c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40de74
push edi
call esi
test eax, eax
mov dword [0x4113ec], eax
je 0x40c3c4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4113f0], eax
call esi
cmp dword [0x411288], 2
mov dword [0x4113f4], eax
jne 0x40c389
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4113fc], eax
je 0x40c389
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4113f8], eax
mov eax, dword [0x4113f8]
test eax, eax
je 0x40c3ce
call eax
test eax, eax
je 0x40c3b5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4113fc]
test eax, eax
je 0x40c3b5
test byte [ebp - 8], 1
jne 0x40c3ce
cmp dword [0x411294], 4
jb 0x40c3c8
or byte [ebp + 0x12], 0x20
jmp 0x40c3ed
xor eax, eax
jmp 0x40c3fd
or byte [ebp + 0x12], 4
jmp 0x40c3ed
mov eax, dword [0x4113f0]
test eax, eax
je 0x40c3ed
call eax
mov ebx, eax
test ebx, ebx
je 0x40c3ed
mov eax, dword [0x4113f4]
test eax, eax
je 0x40c3ed
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4113ec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c87e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40c8ac
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40c8b3
cmp ebx, dword [eax + 4]
jae 0x40c8b3
xor eax, eax
jmp 0x40caa3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40c8c4
xor eax, eax
inc eax
jmp 0x40caa2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40c8da
cmp ecx, edx
jae 0x40ca1f
cmp dword [eax + 4], 0
je 0x40c8e3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40c8cb
cmp dword [ebp + 8], 0
je 0x40c905
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40ca1f
cmp eax, esi
jae 0x40ca1f
mov eax, dword [0x411400]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40c92a
cmp dword [esi*4 + 0x411408], edi
je 0x40ca23
inc esi
cmp esi, eax
jl 0x40c918
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ca9f
cmp dword [ebp - 8], 0x1000000
jne 0x40ca9f
test byte [ebp - 0xc], 0xcc
je 0x40c9a8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40ca9f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40ca9f
cmp word [eax + 0x18], 0x10b
jne 0x40ca9f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40ca9f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40c9a8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40c9a8
test byte [ecx + 0x27], 0x80
jne 0x40ca1f
push 1
push 0x411448
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40c8bc
mov ecx, dword [0x411400]
test ecx, ecx
mov edx, ecx
jle 0x40c9dc
lea eax, [ecx*4 + 0x411404]
cmp dword [eax], edi
je 0x40c9dc
dec edx
sub eax, 4
test edx, edx
jg 0x40c9d0
test edx, edx
jne 0x40ca0d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40c9e9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40ca01
lea eax, [edx*4 + 0x411408]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40c9ef
cmp ecx, 0x10
jge 0x40ca0d
inc ecx
mov dword [0x411400], ecx
push 0
push 0x411448
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40c8bc
xor eax, eax
jmp 0x40caa2
test esi, esi
jle 0x40c8bc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x411448
call ebx
test eax, eax
jne 0x40c8bc
cmp dword [esi*4 + 0x411408], edi
je 0x40ca79
mov eax, dword [0x411400]
lea esi, [eax - 1]
test esi, esi
jl 0x40ca67
cmp dword [esi*4 + 0x411408], edi
je 0x40ca63
dec esi
jns 0x40ca57
test esi, esi
jge 0x40ca77
cmp eax, 0x10
jge 0x40ca72
inc eax
mov dword [0x411400], eax
lea esi, [eax - 1]
jmp 0x40ca79
je 0x40ca91
xor ecx, ecx
test esi, esi
jl 0x40ca91
lea eax, [ecx*4 + 0x411408]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40ca7f
push 0
push 0x411448
call ebx
jmp 0x40c8bc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8de2e4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de2ea
pop ebp
sub ebp, 6
sub ebp, 0x4de2e4
jmp 0x8de348
jmp 0x8de351
mov eax, 0x4de2e4
add eax, ebp
add eax, 0x93
mov ecx, 0x637
mov edx, 0x787efe84
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de368
jmp 0x8de37b
out dx, al
invalid
Function at 0x40db80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4143d8], 0
jne 0x40dc01
cmp dword [0x4143f8], 0
jne 0x40dbb0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4143f8], eax
test eax, eax
jne 0x40dbb0
push str.GetEnvironmentStrings_failed
call fcn.0040cbf0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4143f8]
jmp 0x40dbc4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dbbc
lea edi, [ebp + 1]
push edi
call fcn.00405c3c
pop ecx
mov ebx, eax
mov dword [0x4143dc], ebx
test ebx, ebx
jne 0x40dbee
xor eax, eax
jmp 0x40dcc4
push edi
mov edx, dword [0x4143f8]
push edx
push ebx
call fcn.004069b8
add esp, 0xc
jmp 0x40dc21
xor esi, esi
mov ebx, dword [0x4143d8]
jmp 0x40dc1b
push eax
call fcn.00406b08
pop ecx
test eax, eax
jne 0x40dc17
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc0b
lea ebx, [esi + 4]
push 4
mov dword [0x4143e0], ebx
inc ebx
push ebx
call fcn.00405a3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dc44
xor eax, eax
jmp 0x40dcc4
cmp dword [0x4143d8], 0
jne 0x40dc75
xor esi, esi
mov ebx, dword [0x4143dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40dc66
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dc5c
jmp 0x40dca6
xor esi, esi
mov ebx, dword [0x4143d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40dca0
push eax
call fcn.00406b08
pop ecx
test eax, eax
je 0x40dc95
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40dc99
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc84
mov eax, dword [0x4143d8]
test eax, eax
je 0x40dcb6
push eax
call fcn.00405c4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4143d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x8de1cc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de1d2
pop ebp
sub ebp, 6
sub ebp, 0x4de1cc
jmp 0x8de230
jmp 0x8de239
inc edx
mov byte [0xccb821e3], al
loope 0x8de28a
mov eax, 0x4de1cc
add eax, ebp
add eax, 0x93
mov ecx, 0x63b
add byte [ebx], al
lds eax, [ecx + 0x93c0]
add byte [ecx + 0x63b], bh
mov edx, 0x690cd490
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de250
test esi, esi
invalid
jmp 0x8de263
cli
sar al, 1
nop
adc byte [eax + 0x5c90f890], 0xbc
nop
adc dword [eax - 0x18], esp
leave
scasd eax, dword es:[edi]
adc edx, dword [ecx]
pushal
call 0xa3a19245
push eax
shr byte [edi + 5], 0xac
mov cl, 0xd4
nop
rcr byte [ebx], 0x5d
sbb ebx, dword [ecx]
lodsb al, byte [esi]
nop
nop
nop
adc dword [ecx + 0x68], edx
nop
nop
nop
xchg ebx, eax
pop ebp
sub byte [esi + 0x2a909090], dl
mov eax, 0x67909090
jb 0x8de235
pop eax
sbb edx, dword [ecx]
pushfd
nop
nop
nop
xchg ebx, eax
push ebp
sar al, 0x55
cmpsd dword [esi], dword es:[edi]
cdq
nop
clc
xchg edi, eax
cmp dl, ah
nop
xchg ecx, eax
mov esp, 0x9090f8b4
nop
nop
js 0x8de255
nop
nop
nop
jns 0x8de27d
nop
nop
nop
invalid
Function at 0x100bf3d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100d84e0]
jne 0x100bf3e3
repz ret
jmp fcn.100c15da

Function at 0x100c2bbf
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.100bf4dc
and dword [ebp - 4], 0
cmp dword [0x100d9c28], 0
mov ebx, eax
jne 0x100c2c70
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100c2d21
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100c2d21
push eax
call fcn.100bf46a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100d9c28], eax
call esi
push eax
call fcn.100bf46a
mov dword [esp], 0x100c7bfc
push edi
mov dword [0x100d9c2c], eax
call esi
push eax
call fcn.100bf46a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100d9c30], eax
call esi
push eax
call fcn.100bf46a
pop ecx
mov dword [0x100d9c38], eax
test eax, eax
je 0x100c2c70
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100bf46a
pop ecx
mov dword [0x100d9c34], eax
mov eax, dword [0x100d9c34]
cmp eax, ebx
je 0x100c2cc8
cmp dword [0x100d9c38], ebx
je 0x100c2cc8
push eax
call fcn.100bf4e5
push dword [0x100d9c38]
mov esi, eax
call fcn.100bf4e5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100c2cc8
test edi, edi
je 0x100c2cc8
call esi
test eax, eax
je 0x100c2cbf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100c2cbf
test byte [ebp - 0xc], 1
jne 0x100c2cc8
or dword [ebp + 0x10], 0x200000
jmp 0x100c2d01
mov eax, dword [0x100d9c2c]
cmp eax, ebx
je 0x100c2d01
push eax
call fcn.100bf4e5
pop ecx
test eax, eax
je 0x100c2d01
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100c2d01
mov eax, dword [0x100d9c30]
cmp eax, ebx
je 0x100c2d01
push eax
call fcn.100bf4e5
pop ecx
test eax, eax
je 0x100c2d01
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100d9c28]
call fcn.100bf4e5
pop ecx
test eax, eax
je 0x100c2d21
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100c2d23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100c47a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x100d7e74], 0
mov byte [0x100d7e78], 0
mov dword [0x100d7e70], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100c4806
mov eax, dword [0x100d7e68]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x100c4838
xor eax, eax
mov ecx, 0x1fdd
mov dword [0x100d7e70], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x100c4838
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x100d7e68], 0x1fdd
mov eax, dword [0x100d7e70]
add eax, 1
mov dword [0x100d7e70], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100c4806
jmp 0x100c47ed
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
add eax, 0xfffff6b9
mov dword [0x100d7e7c], 0
mov dword [ebp - 0x2c], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x100d7e74]
mov ebx, dword [ebp - 0x18]
movzx esi, byte [ebx + ecx]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x100d7e7c], esi
mov dword [0x100d7e6c], 0x1dfc
mov eax, esi
cdq
mov esi, dword [ebp - 0x30]
idiv esi
mov dword [0x100d7e74], edx
mov esi, dword [ebp - 0x2c]
mov dword [0x100d7e68], esi
mov bl, byte [ebx + ecx]
mov byte [0x100d7e78], bl
mov dword [0x100d7e6c], 0xe30
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov ecx, dword [0x100d7e6c]
add ecx, 0xfffffd81
mov dword [0x100d7e68], ecx
mov bl, byte [0x100d7e78]
mov ecx, dword [0x100d7e74]
mov byte [esi + ecx], bl
mov ecx, dword [0x100d7e70]
add ecx, 1
mov dword [0x100d7e70], ecx
cmp ecx, 0x100
mov dword [ebp - 0x20], ecx
jl 0x100c47dd
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100c59d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x100d7e68], 0x512
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x100c5a50
mov eax, dword [ebp - 0x14]
add esp, 0x20
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov dword [0x100d7e6c], 0x11c4
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x100c5a7f
jmp 0x100c5a3f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x100c5ace
xor eax, eax
mov dword [0x100d7e6c], 0x1864
mov dword [ebp - 0x14], eax
jmp 0x100c5a06
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edx
je 0x100c5a0e
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
jl 0x100c5a50
jmp 0x100c5a0e
mov dword [0x100d7e6c], 0x2624
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x100c5a3f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x100c5a3f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x100c5a3f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x100c5a2c
jmp 0x100c5a3f
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x14], eax
je 0x100c5a06
jmp 0x100c5a3f
Function at 0x100c5ed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x100d7e70], 0
mov dword [0x100d7e74], 0
mov dword [0x100d7e80], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x100c6033
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x100c5f2b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [0x100d7e68], 0x1e8a
mov edi, edx
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x100d7e70], edx
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x100d7e74], edx
mov dword [0x100d7e68], 0x40c5
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x100d7e78], cl
mov dword [0x100d7e6c], 0x471
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x100d7e78]
mov edx, dword [0x100d7e74]
mov byte [ebx + edx], cl
mov edx, dword [0x100d7e70]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x100d7e74]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x100d7e80], ecx
mov dword [0x100d7e68], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x100d7e6c], 0xbad
mov dword [0x100d7e68], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
jne 0x100c6017
jmp 0x100c6033
mov eax, dword [0x100d7e70]
mov ecx, dword [0x100d7e74]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
jmp 0x100c5f2b
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100c6040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x100d7e68], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.100c4930
lea ecx, [0x100c46a0]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x54], edx
mov dword [esp + 0x60], 0x14ba00
mov edx, dword [0x100d7e54]
mov dword [esp + 0x68], edx
mov edx, dword [0x100d7e58]
mov dword [esp + 0x48], edx
mov edx, dword [0x100d7e5c]
mov dword [esp + 0x84], edx
mov edx, dword [0x100d7e60]
mov dword [esp + 0x8c], edx
mov edx, dword [0x100d7e64]
mov dword [esp + 0x94], edx
mov dword [0x100d7e68], 0x212d
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x100c60e1
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x100c60cf
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jne 0x100c60cf
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
mov dword [0x100d7e6c], 0x1fcc
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x38], eax
call fcn.100c59d0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x100c616c
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100c52f0
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x100d7e68], 0x1ed4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret