joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003c196
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10057df2
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x10074118]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
push eax
xor ebx, ebx
push 0x10067020
push 1
push ebx
push 0x10067010
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1003c318
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1003c318
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x1003c318
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1003c318
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x1003c318
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1003c318
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x10067050
push eax
call dword [ecx]
test eax, eax
jl 0x1003c318
cmp dword [esp + 0x1c], ebx
je 0x1003c326
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x10077ad0
push eax
call dword [ecx + 0x1c]
lea eax, [esp + 0x2c]
push eax
xor edi, edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [esp + 0x48], ebx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x1003c28d
xor ebx, ebx
cmp edi, 1
je 0x1003c30c
lea eax, [esp + 0x2c]
push eax
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x30]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jl 0x1003c30c
cmp edi, 1
je 0x1003c30c
push 9
push ebx
lea eax, [esp + 0x34]
push eax
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jl 0x1003c28d
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x10067040
push eax
call dword [ecx]
test eax, eax
jl 0x1003c28d
push dword [ebp + 0xc]
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [ebp + 8]
mov bl, al
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
add esp, 0xc
push eax
call dword [ecx + 8]
and dword [esp + 0x14], 0
test bl, bl
jne 0x1003c28b
xor ebx, ebx
or dword [esp + 0x48], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1003c326
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1003c334
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1003c342
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1003c350
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1003c35e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1003c45b
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebx
push edi
xor eax, eax
push 6
lea edi, [esi + 4]
lea ebx, [esi + 8]
push eax
mov dword [esi], vtable.FirewallMgrImplXp.0
mov dword [edi], eax
mov dword [ebx], eax
mov dword [esi + 0xc], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
push edi
push 0x10067070
push 1
push 0
push 0x10067060
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1003c4b5
mov edi, dword [edi]
test edi, edi
je 0x1003c4b5
mov eax, dword [edi]
push ebx
push edi
call dword [eax + 0x1c]
test eax, eax
jl 0x1003c4b5
mov ebx, dword [ebx]
test ebx, ebx
je 0x1003c4b5
mov ecx, dword [ebx]
lea eax, [esi + 0xc]
push eax
push ebx
call dword [ecx + 0x1c]
pop edi
mov eax, esi
pop ebx
ret

Function at 0x1003c6fc
Capabilities:
Check os version

Disassembly:
push 0x134
mov eax, 0x10057e99
call fcn.1004262a
test edi, edi
jne 0x1003c716
xor eax, eax
jmp 0x1003c7a7
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x110
mov ebx, eax
lea eax, [ebp - 0x128]
push 0
push eax
mov dword [ebp - 0x12c], 0x114
call fcn.10046720
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x128], 5
jbe 0x1003c77b
push 6
push 0
mov dword [ebp - fcn.1003bf66], 0x10066ff4
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push edi
lea ecx, [ebp - 0x130]
call fcn.1003bf66
movzx eax, al
jmp 0x1003c7a7
lea esi, [ebp - 0x140]
call fcn.1003c45b
and dword [ebp - 4], 0
push ebx
push edi
mov ecx, esi
call fcn.1003c4ec
or dword [ebp - 4], 0xffffffff
movzx esi, al
lea eax, [ebp - 0x140]
call fcn.1003c4ba
mov eax, esi
call fcn.100426ad
ret
Function at 0x1003c931
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push 0x2c
mov eax, 0x10058e98
call fcn.1004262a
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
xor esi, esi
mov eax, edi
mov dword [ebp - 0x30], esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003c950
sub eax, ecx
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0xf
call fcn.10005350
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], esi
jbe 0x1003ca55
jmp 0x1003c981
mov edi, dword [ebp + 0xc]
movsx eax, byte [esi + edi]
mov al, byte [eax + 0x10066598]
inc esi
cmp esi, dword [ebp - 0x30]
jae 0x1003c995
cmp al, 0xff
je 0x1003c981
cmp al, 0xff
je 0x1003ca55
movsx ecx, byte [esi + edi]
mov cl, byte [ecx + 0x10066598]
inc esi
mov byte [ebp - 0x32], cl
cmp esi, dword [ebp - 0x30]
jae 0x1003c9b5
cmp cl, 0xff
je 0x1003c99d
cmp cl, 0xff
je 0x1003ca55
sar cl, 4
shl al, 2
and cl, 3
or cl, al
movzx eax, cl
push eax
lea edi, [ebp - 0x2c]
call fcn.1001864d
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
inc esi
cmp al, 0x3d
je 0x1003ca55
movsx eax, al
mov al, byte [eax + 0x10066598]
mov byte [ebp - 0x31], al
cmp esi, dword [ebp - 0x30]
jae 0x1003c9f5
cmp al, 0xff
je 0x1003c9d5
cmp al, 0xff
je 0x1003ca55
mov cl, al
mov al, byte [ebp - 0x32]
sar cl, 2
shl al, 4
and cl, 0xf
or cl, al
movzx eax, cl
push eax
lea edi, [ebp - 0x2c]
call fcn.1001864d
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
inc esi
cmp al, 0x3d
je 0x1003ca55
movsx eax, al
mov cl, byte [eax + 0x10066598]
cmp esi, dword [ebp - 0x30]
jae 0x1003ca33
cmp cl, 0xff
je 0x1003ca15
cmp cl, 0xff
je 0x1003ca55
mov al, byte [ebp - 0x31]
shl al, 6
or al, cl
movzx eax, al
push eax
lea edi, [ebp - 0x2c]
call fcn.1001864d
cmp esi, dword [ebp - 0x30]
jb 0x1003c97e
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
call fcn.1000487f
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10004d1a
mov eax, dword [ebp - 0x38]
call fcn.100426ad
ret
Function at 0x1003cc58
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x20a0]
mov eax, 0x2120
call fcn.10051950
mov eax, dword [0x10074118]
xor eax, ebp
mov dword [ebp + 0x209c], eax
mov eax, dword [ebp + 0x20a8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x1fff
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x63]
mov esi, ecx
push ebx
mov dword [ebp - 0x6c], ebx
push eax
mov dword [ebp - 0x70], esi
mov edi, edx
mov byte [ebp - 0x64], bl
call fcn.10046720
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
push 0x2000
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1003cda7
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.VarFileInfoTranslation
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
call sub.VERSION.dll_VerQueryValueW
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
test eax, eax
je 0x1003cd4f
test dword [ebp - 0x68], 0xfffffffc
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0x74], ebx
jbe 0x1003cd4f
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x80]
shl eax, 2
movzx ecx, word [eax + esi + 2]
movzx eax, word [eax + esi]
push ecx
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp + 0x1f9c]
push 0x80
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f9c]
push eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1003cdcb
mov eax, dword [ebp - 0x68]
inc dword [ebp - 0x74]
shr eax, 2
cmp dword [ebp - 0x74], eax
jb 0x1003ccf1
mov dword [ebp - 0x78], 0x40904b0
mov dword [ebp - 0x74], 0x40904e4
xor esi, esi
push dword [ebp - 0x80]
lea eax, [ebp + 0x1f9c]
push dword [ebp + esi*4 - 0x78]
push str.StringFileInfo_08x_s
push 0x80
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f9c]
push eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1003cdcb
inc esi
cmp esi, 2
jb 0x1003cd5f
mov esi, dword [ebp - 0x70]
push 0x10062e9c
call fcn.100048dd
mov eax, esi
mov ecx, dword [ebp + 0x209c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100408d9
add ebp, 0x20a0
leave
ret
push dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x70]
call fcn.1003cbf2
pop ecx
mov eax, edi
jmp 0x1003cdb3
Function at 0x1003e38d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10074118]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x18], 0
push edi
xor eax, eax
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], 0x5c
lea edi, [ebp - 0x11]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x1003e3ca
cmp eax, 3
jne 0x1003e3e2
push ebx
call fcn.10027725
pop ecx
cmp eax, 0xffffffff
je 0x1003e3ef
cmp eax, 7
jne 0x1003e3e2
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x1003e3f1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100408d9
leave
ret

Function at 0x1003ea27
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 4
shl eax, 4
pop edx
mov esi, ecx
lea edi, [eax + ecx + 0x3c]
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, edi
mov bl, byte [ecx]
xor byte [esi + eax], bl
inc eax
add ecx, edx
cmp eax, edx
jl 0x1003ea41
inc edi
add esi, edx
dec dword [ebp - 4]
jne 0x1003ea3d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003eb5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10074118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 4
lea esi, [ebp - 8]
lea ecx, [eax + 4]
pop edi
mov al, byte [esi - 0xc]
mov dl, byte [esi - 8]
call fcn.1003ed22
mov bl, al
mov al, dl
call fcn.1003ed22
xor bl, al
xor bl, byte [esi - 4]
mov al, dl
xor bl, byte [esi]
xor bl, dl
mov byte [ecx - 4], bl
call fcn.1003ed22
mov bl, al
mov al, byte [esi - 4]
call fcn.1003ed22
xor bl, al
xor bl, byte [esi - 0xc]
mov al, byte [esi - 4]
xor bl, byte [esi]
xor bl, al
mov byte [ecx], bl
call fcn.1003ed22
mov bl, al
mov al, byte [esi]
call fcn.1003ed22
xor bl, al
mov al, byte [esi]
xor bl, dl
xor bl, byte [esi - 0xc]
xor bl, al
mov byte [ecx + 4], bl
call fcn.1003ed22
mov bl, al
mov al, byte [esi - 0xc]
call fcn.1003ed22
xor bl, al
xor bl, dl
xor bl, byte [esi - 4]
xor bl, byte [esi - 0xc]
inc ecx
mov byte [ecx + 7], bl
inc esi
dec edi
jne 0x1003eb84
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100408d9
leave
ret 4
Function at 0x1003ec11
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10074118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x10]
lea esi, [eax + 4]
mov dword [ebp - 0x1c], 4
mov al, byte [edi - 4]
mov bl, byte [edi + 4]
call fcn.1003ed9e
push ebx
mov dl, al
call fcn.1003ed77
xor dl, al
movzx eax, byte [edi + 8]
push eax
call fcn.1003ed32
xor dl, al
movzx eax, byte [edi]
push eax
call fcn.1003ed50
xor dl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi - 4], dl
call fcn.1003ed32
push ebx
mov byte [ebp - 0x15], al
call fcn.1003ed50
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi + 8]
push eax
mov byte [ebp - 0x15], cl
call fcn.1003ed77
mov cl, byte [ebp - 0x15]
xor cl, al
mov al, byte [edi]
mov byte [ebp - 0x15], cl
call fcn.1003ed9e
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi], cl
call fcn.1003ed77
mov bl, al
mov al, byte [edi + 4]
call fcn.1003ed9e
movzx edx, byte [edi + 8]
push edx
xor bl, al
call fcn.1003ed50
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.1003ed32
xor bl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi + 4], bl
call fcn.1003ed50
mov bl, al
movzx eax, byte [edi + 4]
push eax
call fcn.1003ed32
xor bl, al
mov al, dl
call fcn.1003ed9e
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.1003ed77
xor bl, al
mov byte [esi + 8], bl
inc esi
inc edi
dec dword [ebp - 0x1c]
jne 0x1003ec3d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100408d9
leave
ret 4
Function at 0x1003f290
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1005817f
call fcn.1004262a
mov ebx, ecx
mov eax, dword [ebp + 8]
and dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x14]
mov esi, edx
mov dword [ebp - 0x34], esi
test al, 0xf
je 0x1003f2c5
push 0x10062e9b
mov ecx, esi
call fcn.1000485d
jmp 0x1003f3e5
push 0
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.1001860a
and dword [ebp - 4], 0
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebx + 0x14]
jb 0x1003f2e3
mov ebx, dword [ebx + 4]
jmp 0x1003f2e6
add ebx, 4
cmp dword [ebp - 0x14], 0x10
mov esi, dword [ebp - 0x28]
jae 0x1003f2f2
lea esi, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
cmp eax, 0x10
jb 0x1003f33d
shr eax, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x18], 0x10
mov ecx, dword [edx + 0x14]
lea eax, [edx + 4]
jb 0x1003f311
mov eax, dword [eax]
push 0
push eax
push esi
push ebx
call fcn.1003ef73
add esp, 0x10
mov ecx, edi
push 0x10
mov eax, esi
sub ecx, esi
pop edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec edi
jne 0x1003f327
mov edi, ebx
add ebx, 0x10
add esi, 0x10
dec dword [ebp - 0x38]
jne 0x1003f300
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jae 0x1003f366
mov ecx, dword [ebp - 0x34]
push 0x10062e9b
call fcn.1000485d
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10004d1a
mov eax, dword [ebp - 0x34]
jmp 0x1003f3e7
lea esi, [eax - 1]
cmp eax, esi
ja 0x1003f375
call fcn.1003ff88
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x1003f381
lea ecx, [ebp - 0x28]
mov bl, byte [ecx + esi]
cmp bl, 0x10
ja 0x1003f345
mov byte [ebp - 0x2d], 0
test bl, bl
jbe 0x1003f3c5
movzx edi, bl
movzx ecx, byte [ebp - 0x2d]
mov esi, eax
sub esi, ecx
dec esi
cmp eax, esi
ja 0x1003f3a9
call fcn.1003ff88
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x1003f3b5
lea ecx, [ebp - 0x28]
movsx ecx, byte [ecx + esi]
cmp ecx, edi
jne 0x1003f345
inc byte [ebp - 0x2d]
cmp byte [ebp - 0x2d], bl
jb 0x1003f394
mov esi, dword [ebp - 0x34]
movzx ecx, bl
sub eax, ecx
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.100048af
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10004d1a
mov eax, esi
call fcn.100426ad
ret

Function at 0x1003fab0
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x1003fbdf
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
xor edx, edx
inc ecx
push edi
movzx esi, byte [ecx - 1]
movzx edi, byte [ecx]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 1]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 2]
shl esi, 8
or esi, edi
mov dword [ebp + edx*4 - 0x120], esi
inc edx
add ecx, 4
cmp edx, 0x10
jb 0x1003fbee
push 0x40
pop esi
cmp edx, esi
jae 0x1003fc69
sub esi, edx
lea ecx, [ebp + edx*4 - 0x128]
mov dword [ebp - 4], esi
mov esi, dword [ecx]
mov edx, dword [ecx - 0x34]
mov edi, esi
rol edi, 0xf
mov ebx, esi
shr esi, 0xa
rol ebx, 0xd
xor edi, ebx
xor edi, esi
mov esi, edx
rol esi, 0xe
mov ebx, edx
ror ebx, 7
xor esi, ebx
shr edx, 3
xor esi, edx
add edi, esi
add edi, dword [ecx - 0x38]
add ecx, 4
add edi, dword [ecx - 0x18]
dec dword [ebp - 4]
mov dword [ecx + 4], edi
jne 0x1003fc2f
mov ecx, dword [eax + 0x54]
mov edi, dword [eax + 0x50]
mov ebx, dword [eax + 0x68]
mov esi, dword [eax + 0x60]
and dword [ebp - 0x14], 0
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x58]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x6c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov ecx, esi
ror ecx, 0xb
mov edx, esi
rol edx, 7
xor ecx, edx
mov edx, esi
ror edx, 6
xor ecx, edx
mov edx, esi
not edx
and edx, ebx
mov ebx, dword [ebp - 0x10]
and ebx, esi
xor edx, ebx
add ecx, edx
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0x10066430]
mov ebx, edi
add ecx, dword [ebp + edx - 0x120]
mov edx, edi
add ecx, dword [ebp - 4]
ror edx, 0xd
rol ebx, 0xa
xor edx, ebx
mov ebx, edi
add dword [ebp - 0x14], 4
ror ebx, 2
xor edx, ebx
mov ebx, dword [ebp - 8]
xor ebx, edi
and ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
and edi, dword [ebp - 0x18]
xor ebx, edi
mov edi, dword [ebp - 0x20]
add edx, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 8], edi
add esi, ecx
cmp dword [ebp - 0x14], 0x100
lea edi, [edx + ecx]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], edi
jb 0x1003fc9a
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp - 8]
add ecx, edi
mov dword [eax + 0x50], ecx
mov ecx, dword [eax + 0x54]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x54], ecx
mov ecx, dword [eax + 0x58]
add ecx, edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x58], ecx
mov ecx, dword [eax + 0x5c]
add ecx, edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x5c], ecx
mov ecx, dword [eax + 0x60]
add ecx, esi
mov dword [eax + 0x60], ecx
mov ecx, dword [eax + 0x64]
add ecx, edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x64], ecx
mov ecx, dword [eax + 0x68]
add ecx, ebx
mov dword [eax + 0x68], ecx
mov ecx, dword [eax + 0x6c]
pop edi
add ecx, edx
pop esi
mov dword [eax + 0x6c], ecx
pop ebx
leave
ret
Function at 0x100408d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10074118]
jne 0x100408e3
repz ret
jmp fcn.10045700

Function at 0x10051351
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.10045bc5
and dword [ebp - 4], 0
cmp dword [0x100774f0], 0
mov ebx, eax
jne 0x10051402
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100514b3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100514b3
push eax
call fcn.10045b53
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100774f0], eax
call esi
push eax
call fcn.10045b53
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100774f4], eax
call esi
push eax
call fcn.10045b53
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100774f8], eax
call esi
push eax
call fcn.10045b53
pop ecx
mov dword [0x10077500], eax
test eax, eax
je 0x10051402
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10045b53
pop ecx
mov dword [0x100774fc], eax
mov eax, dword [0x100774fc]
cmp eax, ebx
je 0x1005145a
cmp dword [0x10077500], ebx
je 0x1005145a
push eax
call fcn.10045bce
push dword [0x10077500]
mov esi, eax
call fcn.10045bce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1005145a
test edi, edi
je 0x1005145a
call esi
test eax, eax
je 0x10051451
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10051451
test byte [ebp - 0xc], 1
jne 0x1005145a
or dword [ebp + 0x10], 0x200000
jmp 0x10051493
mov eax, dword [0x100774f4]
cmp eax, ebx
je 0x10051493
push eax
call fcn.10045bce
pop ecx
test eax, eax
je 0x10051493
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10051493
mov eax, dword [0x100774f8]
cmp eax, ebx
je 0x10051493
push eax
call fcn.10045bce
pop ecx
test eax, eax
je 0x10051493
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100774f0]
call fcn.10045bce
pop ecx
test eax, eax
je 0x100514b3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100514b5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret