joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421654
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 + 0x43ced0]
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 0x421694
cmp byte [ebx], 0xa
jne 0x421694
or byte [eax + edi + 0x28], 4
jmp 0x421699
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421797
mov al, byte [edx]
cmp al, 0x1a
je 0x421779
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4216c8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4216ed
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4216f7
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 0x4216aa
jmp 0x421797
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 0x421774
cmp dword [ebp - 0xc], 0
je 0x421774
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43ced0]
test byte [eax + edi + 0x28], 0x48
je 0x42174e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x421739
mov byte [esi], dl
jmp 0x42174a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43ced0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421797
cmp byte [ebp - 1], 0xa
jne 0x42175d
cmp esi, ebx
jne 0x42175d
mov byte [esi], 0xa
jmp 0x421796
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004221d4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421797
mov byte [esi], 0xd
jmp 0x421796
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43ced0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421793
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421797
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4217a0
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 + 0x43ced0]
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 0x4217e3
cmp word [esi], dx
jne 0x4217e3
or byte [edi + eax + 0x28], 4
jmp 0x4217e8
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 0x42193b
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 0x42191b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42182a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x421860
cmp eax, edx
jae 0x42186c
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 0x421802
jmp 0x42193b
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 0x421917
cmp dword [ebp - 0x14], 0
je 0x421917
mov eax, dword [ebx*4 + 0x43ced0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4218ef
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4218b8
mov word [esi], cx
jmp 0x4218eb
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43ced0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43ced0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43ced0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42193b
pop ebx
cmp word [ebp - 4], bx
jne 0x421900
cmp esi, dword [ebp + 0xc]
jne 0x421900
mov word [esi], bx
jmp 0x421938
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004221d4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42193b
push 0xd
jmp 0x421934
mov ecx, dword [ebx*4 + 0x43ced0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421932
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42193b
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 0x42494f
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 0x4249ec
push ebx
push esi
call fcn.00424918
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.0042359d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x424999
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4249eb
push edi
push eax
call fcn.0041ef2a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4249b9
call fcn.0041e2d3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4249ea
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042359d
add esp, 0x20
test eax, eax
jne 0x4249d8
push edi
call fcn.0041e2d3
jmp 0x4249e0
push ebx
call fcn.0041e2d3
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 0x42ba4e
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042b9ca
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42bbc6
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42bbc6
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42bb75
jg 0x42baa7
test eax, eax
je 0x42bb6b
push 1
push 0x1000
call fcn.0041d66a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42bacd
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42bb62
push 0x8000
push ebx
call fcn.0041a4ec
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42baf9
jg 0x42baf4
cmp ecx, 0x1000
jb 0x42baf9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041e0d3
add esp, 0x10
cmp eax, 0xffffffff
je 0x42bb3e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42baf4
jl 0x42bb25
test ecx, ecx
jne 0x42bae6
push dword [ebp - 0xc]
push ebx
call fcn.0041a4ec
push esi
call fcn.0041e2d3
add esp, 0xc
xor edi, edi
jmp 0x42bbd7
cmp byte [edi + 0x24], 0
je 0x42bb55
cmp dword [edi + 0x20], 5
jne 0x42bb55
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42bb60
mov edi, dword [edi + 0x18]
jmp 0x42bb62
xor edi, edi
push esi
call fcn.0041e2d3
pop ecx
jmp 0x42bbd7
test ecx, ecx
jg 0x42bb37
jl 0x42bb75
test eax, eax
jae 0x42bb37
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004221d4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42bb98
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42bb37
jmp 0x42bbcf
push ebx
call fcn.00425141
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42bb37
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42bbd7
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42bbd4
mov edi, dword [edi + 0x18]
jmp 0x42bbd7
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004221d4
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42cc40
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x103230e8]
jne 0x102d8d81
repz ret
jmp fcn.102da86b

Function at 0x102dbb5f
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.102d8e7c
and dword [ebp - 4], 0
cmp dword [0x10325618], 0
mov ebx, eax
jne 0x102dbc10
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x102dbcc1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x102dbcc1
push eax
call fcn.102d8e0a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10325618], eax
call esi
push eax
call fcn.102d8e0a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1032561c], eax
call esi
push eax
call fcn.102d8e0a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10325620], eax
call esi
push eax
call fcn.102d8e0a
pop ecx
mov dword [0x10325628], eax
test eax, eax
je 0x102dbc10
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.102d8e0a
pop ecx
mov dword [0x10325624], eax
mov eax, dword [0x10325624]
cmp eax, ebx
je 0x102dbc68
cmp dword [0x10325628], ebx
je 0x102dbc68
push eax
call fcn.102d8e85
push dword [0x10325628]
mov esi, eax
call fcn.102d8e85
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x102dbc68
test edi, edi
je 0x102dbc68
call esi
test eax, eax
je 0x102dbc5f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x102dbc5f
test byte [ebp - 0xc], 1
jne 0x102dbc68
or dword [ebp + 0x10], 0x200000
jmp 0x102dbca1
mov eax, dword [0x1032561c]
cmp eax, ebx
je 0x102dbca1
push eax
call fcn.102d8e85
pop ecx
test eax, eax
je 0x102dbca1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x102dbca1
mov eax, dword [0x10325620]
cmp eax, ebx
je 0x102dbca1
push eax
call fcn.102d8e85
pop ecx
test eax, eax
je 0x102dbca1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10325618]
call fcn.102d8e85
pop ecx
test eax, eax
je 0x102dbcc1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x102dbcc3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102dd710
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 [0x10322b70], 0x17bb
mov dword [ebp - 0x10], eax
call fcn.102de82d
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov esi, ecx
add esi, edx
mov dword [0x10322b74], 0x589
cmp dword [eax + edx], 0x4550
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ecx
je 0x102dd799
jmp 0x102dd7b3
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [ebp - 0x20]
add ecx, edx
mov esi, dword [ebp - 0x18]
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 - 0x24], eax
mov byte [ebp - 0x25], bh
mov byte [ebp - 0x26], cl
je 0x102dd813
jmp 0x102dd83b
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
jmp 0x102dd81c
mov eax, 0x1be4
mov dword [0x10322b70], 0xe63
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
jmp 0x102dd7c7
xor eax, eax
mov ecx, dword [0x10322b70]
add ecx, 0xd81
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dword [0x10322b70], eax
mov eax, dword [ecx + 0x78]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ecx + eax + 0x20]
mov esi, dword [ebp - 0x18]
mov edi, dword [esi + eax + 0x24]
mov dword [0x10322b74], 0x17c0
mov ebx, dword [esi + eax + 0x18]
cmp ebx, 0
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x4c], edx
je 0x102dd8bf
jmp 0x102dd784
mov al, byte [ebp - 0x26]
test al, 1
jne 0x102dd890
jmp 0x102dd86a
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x48]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edx
jmp 0x102dd752
mov al, byte [ebp - 0x25]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x24]
add edx, 1
mov ah, byte [ebp - 0x26]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x1c], edx
jne 0x102dd752
jmp 0x102dd813
xor eax, eax
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov edx, dword [ebp - 0x54]
add edx, 2
mov esi, dword [ebp - 0x40]
cmp ecx, esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x4c], eax
jb 0x102dd81c
jmp 0x102dd8bf
mov eax, dword [ebp - 0x54]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x44]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x10322b74], 0x942
mov edx, dword [ebp - 0x18]
add edx, ecx
mov dword [0x10322b70], 0x19c2
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102ddc6c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x28
mov dword [0x10322b70], 0x44c
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
jmp 0x102ddd11
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [0x10322b70], eax
mov eax, ecx
add esp, 0x28
pop esi
pop edi
pop ebp
ret
mov eax, 0x3392
mov dword [0x10322b70], 0x1d5d
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x1c], eax
je 0x102ddd90
jmp 0x102ddca4
mov eax, 0x1a99
mov dword [0x10322b74], 0xdc8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x1c], eax
je 0x102ddddf
jmp 0x102ddca4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
je 0x102ddd3e
mov eax, dword [ebp - 0x2c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], eax
jl 0x102ddd11
mov eax, dword [ebp - 0x30]
mov ecx, 0x1dfb
mov dword [0x10322b70], 0x7c6
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], ecx
jne 0x102ddca4
mov eax, 0x1dfb
mov dword [0x10322b74], 0xfb4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x1c], eax
je 0x102ddcc3
jmp 0x102ddca4
mov eax, 0x1a99
mov dword [0x10322b70], 0x464
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x1c], eax
jne 0x102ddca4
mov eax, 0x1a99
mov dword [0x10322b74], 0xf9f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x1c], eax
je 0x102ddcea
jmp 0x102ddca4
mov eax, 1
mov ecx, 0xfffff5cc
mov edx, 0x1a99
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp word [esi + edi*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
je 0x102ddcaf
jmp 0x102ddca4
Function at 0x102ddfe8
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 [0x10322b7c], 0
mov byte [0x10322b80], 0
mov dword [0x10322b74], 0x209f
mov dword [0x10322b70], 0x1c24
mov dword [0x10322b78], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x102de0e7
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10322b84], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x10322b7c]
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 [0x10322b84], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x10322b7c], edx
mov dword [0x10322b70], 0x178e
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x10322b80], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x10322b80]
mov esi, dword [0x10322b7c]
mov byte [ebx + esi], cl
mov esi, dword [0x10322b74]
add esi, 0xfffff954
mov dword [0x10322b70], esi
mov esi, dword [0x10322b78]
add esi, 1
mov dword [0x10322b78], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x102de03c
jmp 0x102de144
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x10322b70], 0x1fa8
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10322b70]
add eax, 0xffffebbb
mov dword [0x10322b70], eax
mov eax, dword [0x10322b78]
add eax, 1
mov dword [0x10322b78], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x102de0e7
xor eax, eax
mov dword [0x10322b70], 0x3f2
mov dword [0x10322b78], 0
mov dword [ebp - 0x20], eax
jmp 0x102de03c
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102de52d
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, [0x102df90a]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x10322b70], 0x1d
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.102dd662
mov dword [0x10322b70], 0x185c
call fcn.102dd8ca
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.102dd46a
xor ecx, ecx
mov dword [0x10322b70], 0xac9
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x102de65a
mov eax, dword [ebp - 0x3c]
mov dword [0x10322b70], 0x501
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 [0x10322b70], 0x16ce
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.102dde2c
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x50], ecx
mov dword [0x10322b74], 0x2314
mov dword [0x10322b70], 0x23c3
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x102de65a
mov dword [0x10322b70], 0x1fb7
mov eax, dword [ebp - 0x44]
add eax, 0x1d57
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x102de999
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]
xor edi, edi
mov dword [0x10322b78], 0
mov dword [0x10322b7c], 0
mov dword [0x10322b88], 0
mov dword [0x10322b70], 0x2391
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x102deaf9
jmp 0x102dea15
mov eax, dword [0x10322b7c]
mov ecx, dword [0x10322b78]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov edi, eax
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10322b78], edx
mov dword [0x10322b70], 0x8e3
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10322b7c], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10322b80], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10322b80]
mov edx, dword [0x10322b7c]
mov byte [ebx + edx], cl
mov dword [0x10322b70], 0xca1
mov edx, dword [0x10322b78]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10322b7c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10322b88], ecx
mov dword [0x10322b74], 0x35c
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x10322b74], 0x1af0
mov dword [0x10322b70], 0x11e7
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x2c], edi
jne 0x102de9fe
mov dword [0x10322b70], 0x4db
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102deb0b
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x10322b74], 0x2f0
mov dword [0x10322b70], 0x102b
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.102de239
lea ecx, [0x102ddf78]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x48], edx
mov dword [esp + 0x54], 0x149c00
mov edx, dword [0x10322b5c]
mov dword [esp + 0x78], edx
mov edx, dword [0x10322b60]
mov dword [esp + 0x28], edx
mov dword [0x10322b74], 0xaaa
mov edx, dword [0x10322b64]
mov dword [esp + 0x5c], edx
mov edx, dword [0x10322b68]
mov dword [esp + 0x58], edx
mov edx, dword [0x10322b6c]
mov dword [esp + 0x38], edx
mov dword [0x10322b70], 0xffffe7a6
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x102debcc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x102debe0
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x102deba9
mov eax, dword [esp + 0x10]
mov dword [esp + 0x64], eax
mov dword [0x10322b74], 0x589
mov dword [0x10322b70], 0xe63
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x6c], edx
call fcn.102ddc6c
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x102dec51
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.102de52d
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x10322b74], 0x24a5
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret