joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420d30
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 0x420dcd
push ebx
push esi
call fcn.00420cf9
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.00419003
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x420d7a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420dcc
push edi
push eax
call fcn.00418e90
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x420d9a
call fcn.00418e56
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420dcb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00419003
add esp, 0x20
test eax, eax
jne 0x420db9
push edi
call fcn.00418e56
jmp 0x420dc1
push ebx
call fcn.00418e56
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 0x420dd0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x420de1
pop esi
ret
push ebx
push edi
push esi
call fcn.00420cf9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00418e90
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x420e09
push ebx
push esi
push edi
call fcn.0040c980
add esp, 0xc
push 0
call fcn.00418e56
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x421563
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042107e
Function at 0x424aee
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00424a6a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424c5d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424c5d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424c12
jg 0x424b4a
test eax, eax
je 0x424c08
push 1
push 0x1000
call fcn.0041ffd2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424b6d
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424bff
push 0x8000
push ebx
call fcn.00417b1c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424b96
jg 0x424b91
cmp ecx, 0x1000
jb 0x424b96
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041c52b
add esp, 0x10
cmp eax, 0xffffffff
je 0x424bdb
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 0x424b91
jl 0x424bc2
test ecx, ecx
jne 0x424b83
push dword [ebp - 0xc]
push ebx
call fcn.00417b1c
push esi
call fcn.00418e56
add esp, 0xc
xor ebx, ebx
jmp 0x424c6b
cmp byte [edi + 0x24], 0
je 0x424bf2
cmp dword [edi + 0x20], 5
jne 0x424bf2
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424bfd
mov ebx, dword [edi + 0x18]
jmp 0x424bff
xor ebx, ebx
push esi
call fcn.00418e56
pop ecx
jmp 0x424c6b
test ecx, ecx
jg 0x424bd4
jl 0x424c12
test eax, eax
jae 0x424bd4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b130
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424c32
cmp byte [edi + 0x1c], 0
je 0x424bd4
jmp 0x424c63
push ebx
call fcn.0041e494
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424bd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424c6b
cmp byte [edi + 0x1c], 0
je 0x424c68
mov ebx, dword [edi + 0x18]
jmp 0x424c6b
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041b130
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4277f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42781d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42781d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000305c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
xor eax, eax
mov dword [ebp - 0x10], eax
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 - 0x16], 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 0x100030b5
jmp 0x100030a8
mov eax, dword [ebp - 0x24]
sub eax, 0xb
mov dword [ebp - 0x28], eax
jne 0x100030ca
jmp 0x100030b5
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 0x10003089
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 0x10003133
jmp 0x10003126
mov eax, dword [ebp - 0x14]
sub eax, 0x25
mov dword [ebp - 0x38], eax
jne 0x10003179
jmp 0x10003133
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
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
cmp ecx, 0x3c
mov word [ebp - 0x3e], ax
mov dword [ebp - 0x10], ecx
jne 0x10003067
add esp, 0x5c
pop ebp
ret

Function at 0x100eea84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101710b0]
jne 0x100eea8e
repz ret
jmp fcn.100f933c
Function at 0x100fda73
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.100ecdd5
and dword [ebp - 4], 0
cmp dword [0x101724b4], 0
mov ebx, eax
jne 0x100fdb24
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100fdbd5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100fdbd5
push eax
call fcn.100ecd63
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101724b4], eax
call esi
push eax
call fcn.100ecd63
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101724b8], eax
call esi
push eax
call fcn.100ecd63
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101724bc], eax
call esi
push eax
call fcn.100ecd63
pop ecx
mov dword [0x101724c4], eax
test eax, eax
je 0x100fdb24
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100ecd63
pop ecx
mov dword [0x101724c0], eax
mov eax, dword [0x101724c0]
cmp eax, ebx
je 0x100fdb7c
cmp dword [0x101724c4], ebx
je 0x100fdb7c
push eax
call fcn.100ecdde
push dword [0x101724c4]
mov esi, eax
call fcn.100ecdde
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100fdb7c
test edi, edi
je 0x100fdb7c
call esi
test eax, eax
je 0x100fdb73
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100fdb73
test byte [ebp - 0xc], 1
jne 0x100fdb7c
or dword [ebp + 0x10], 0x200000
jmp 0x100fdbb5
mov eax, dword [0x101724b8]
cmp eax, ebx
je 0x100fdbb5
push eax
call fcn.100ecdde
pop ecx
test eax, eax
je 0x100fdbb5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100fdbb5
mov eax, dword [0x101724bc]
cmp eax, ebx
je 0x100fdbb5
push eax
call fcn.100ecdde
pop ecx
test eax, eax
je 0x100fdbb5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101724b4]
call fcn.100ecdde
pop ecx
test eax, eax
je 0x100fdbd5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100fdbd7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10102831
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [0x1017062c], 0xaa5
mov ecx, dword [0x10170630]
add ecx, 0xffffd942
mov dword [0x10170630], ecx
mov dword [ebp - 0x10], eax
call fcn.10103c63
xor ecx, ecx
mov dword [0x10170630], 0x1d70
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x1017062c], 0x9d6
mov dword [0x10170630], 0x84a
mov esi, dword [eax + esi + 0x78]
mov dword [0x1017062c], 0x13d1
mov dword [0x10170630], 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 0x101029ba
jmp 0x101028fc
mov dword [0x1017062c], 0xd28
mov eax, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x2c], eax
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x24], eax
jb 0x10102914
jmp 0x101029ba
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add eax, dword [eax + ecx + 0x24]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov edx, dword [ebp - 0x40]
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 - 0x48], eax
mov byte [ebp - 0x49], bh
mov byte [ebp - 0x4a], cl
je 0x1010297f
mov eax, dword [ebp - 0x48]
add eax, 1
mov cl, byte [ebp - 0x49]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x44], eax
jne 0x1010292e
mov al, byte [ebp - 0x4a]
test al, 1
jne 0x1010298b
jmp 0x101028c4
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 [0x1017062c], 0x547
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x10170630], 0x1a0f
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101029c5
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1017062c]
add eax, 0xfffffadd
mov dword [0x1017062c], 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 dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x3c]
mov dword [0x10170630], 0x15f7
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x10102a78
jmp 0x10102a5a
mov eax, dword [ebp - 0x20]
add esp, 0x30
pop ebp
ret
mov dword [0x1017062c], 0x7d9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x18], 0x6f
sete dl
mov byte [ebp - 0x25], dl
xor eax, eax
mov cl, byte [ebp - 0x25]
test cl, 1
mov dword [ebp - 0x20], eax
jne 0x10102aa5
jmp 0x10102a26
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 0x104
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ecx
jl 0x10102a0e
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [0x1017062c], 0x28a1
mov dword [0x10170630], 0x2cb8
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
je 0x10102a2e
jmp 0x10102a26
xor eax, eax
mov dword [0x1017062c], 0x3dce
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
jne 0x10102a26
xor eax, eax
mov dword [0x1017062c], 0x20ef
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
jne 0x10102a26
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 0x12], 0x64
sete dl
mov byte [ebp - 0x2d], dl
xor eax, eax
mov cl, byte [ebp - 0x2d]
test cl, 1
mov dword [ebp - 0x20], eax
jne 0x10102b0e
jmp 0x10102a26
xor eax, eax
mov dword [0x1017062c], 0x1c90
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
jne 0x10102a26
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x10102a26
mov eax, 1
mov dword [0x1017062c], 0x8a6
mov dword [ebp - 0x20], eax
jmp 0x10102a26
Function at 0x101030a3
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 [0x10170638], 0
mov byte [0x1017063c], 0
mov dword [0x10170630], 0x2272
mov edi, dword [0x1017062c]
add edi, 0xffffe432
mov dword [0x1017062c], edi
mov dword [0x10170634], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1010311c
xor eax, eax
mov dword [0x10170634], 0
mov ecx, dword [0x1017062c]
add ecx, 0xfffff4ce
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x1010314e
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10170630], 0xde5
mov eax, dword [0x10170634]
add eax, 1
mov dword [0x10170634], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1010311c
jmp 0x101030fc
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x1831
mov esi, 0x100
mov dword [0x10170640], 0
mov edi, dword [0x10170638]
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 [0x10170640], ebx
mov dword [0x10170630], 0x1119
mov eax, ebx
cdq
idiv esi
mov dword [0x10170638], edx
mov dword [0x1017062c], ecx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
mov cl, byte [ecx + esi]
mov byte [0x1017063c], cl
mov dword [0x10170630], 0x249d
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x10170630], 0x1076
mov cl, byte [0x1017063c]
mov edx, dword [0x10170638]
mov byte [ebx + edx], cl
mov dword [0x1017062c], 0x2363
mov edx, dword [0x10170634]
add edx, 1
mov dword [0x10170634], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
jl 0x1010314e
mov dword [0x1017062c], 0x3cc4
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1010334e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [0x1017062c], 0x12cc
mov eax, dword [0x10170630]
add eax, 0xfffff509
mov dword [ebp - 4], eax
lea eax, [fcn.1010334e]
mov ecx, dword [ebp - 4]
mov dword [0x10170630], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, ecx
add edx, 0x5c2
cmp word [eax], 0x5a4d
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x101033bd
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x101033bd
mov eax, dword [ebp - 0x18]
mov dword [0x10170630], eax
mov eax, dword [ebp - 0x10]
add esp, 0x18
pop ebp
ret
mov eax, dword [ebp - 0x14]
add eax, 0x164a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [0x1017062c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jmp 0x10103380
Function at 0x101033e4
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, [0x10105d4e]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x1017062c], 0xfffff764
mov dword [0x10170630], 0xe7d
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.10103a76
mov dword [0x10170630], 0xefc
mov dword [0x1017062c], 0x784
call fcn.10103561
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10103632
xor ecx, ecx
mov dword [0x10170630], 0xe3a
mov dword [0x1017062c], 0x162c
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x10103525
mov eax, dword [ebp - 0x3c]
mov dword [0x1017062c], 0xbfe
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 [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.10102f7a
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 dword [0x10170630], 0x2241
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x2c], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x14], ecx
mov dword [0x1017062c], 0x20d7
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x10103525
mov eax, dword [ebp - 0x44]
add eax, 0x18f4
mov dword [0x1017062c], 0x556
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x101037bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1017062c], 0x1b78
mov dword [0x10170630], 0x1566
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x101038a7
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea edx, section..data
imul esi, eax, 0x148
mov edi, edx
add edi, esi
add edi, 0xf0
mov esi, dword [edi]
imul edi, eax, 0x148
mov ebx, edx
add ebx, edi
add ebx, 0x5c
mov edi, dword [ebx]
imul ebx, eax, 0x148
add edx, ebx
add edx, 0xb8
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x144]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], edx
call fcn.10103b29
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
add eax, ecx
mov edx, dword [ebp - 0x148]
add edx, 1
cmp edx, 0x50b
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edx
je 0x101039b4
jmp 0x101037fd
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x148
mov edi, edx
add edi, esi
add edi, 0xf0
mov esi, dword [edi]
imul edi, eax, 0x148
add edx, edi
add edx, 0xb8
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x50b
mov ecx, edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x101038a7
lea eax, [0x10105d4e]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [0x1017062c], 0x14bc
mov dword [0x10170630], 0xfffff816
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x15c], ecx
call fcn.10103a76
mov dword [0x1017062c], 0x784
call fcn.10103561
mov dword [esp], eax
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], eax
call fcn.10103632
mov dword [0x1017064c], eax
mov dword [0x1017062c], 0x867
mov ecx, esp
mov edx, dword [ebp - 0x154]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], ecx
jmp 0x101037fd
lea eax, [0x10105d5c]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x1017062c], 0x2154
mov dword [0x10170630], 0x4610
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.101030a3
mov eax, dword [0x1017062c]
add eax, 0x170f
mov dword [0x10170630], eax
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x154]
mov dword [esp + 0xc], edx
call fcn.10103dd0
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0x9c8ac
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x139c00
mov ecx, dword [ebp - 0x144]
add ecx, 0x6e818
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x20e0
mov dword [0x10170630], 0x1682
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret