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

Disassembly:
cmp ecx, dword [0x1022e788]
jne 0x101318b3
repz ret
jmp fcn.1013ac07

Function at 0x1013c7ff
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.1012fd16
and dword [ebp - 4], 0
cmp dword [0x1022fdec], 0
mov ebx, eax
jne 0x1013c8b0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1013c961
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1013c961
push eax
call fcn.1012fca4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1022fdec], eax
call esi
push eax
call fcn.1012fca4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1022fdf0], eax
call esi
push eax
call fcn.1012fca4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1022fdf4], eax
call esi
push eax
call fcn.1012fca4
pop ecx
mov dword [0x1022fdfc], eax
test eax, eax
je 0x1013c8b0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1012fca4
pop ecx
mov dword [0x1022fdf8], eax
mov eax, dword [0x1022fdf8]
cmp eax, ebx
je 0x1013c908
cmp dword [0x1022fdfc], ebx
je 0x1013c908
push eax
call fcn.1012fd1f
push dword [0x1022fdfc]
mov esi, eax
call fcn.1012fd1f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1013c908
test edi, edi
je 0x1013c908
call esi
test eax, eax
je 0x1013c8ff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1013c8ff
test byte [ebp - 0xc], 1
jne 0x1013c908
or dword [ebp + 0x10], 0x200000
jmp 0x1013c941
mov eax, dword [0x1022fdf0]
cmp eax, ebx
je 0x1013c941
push eax
call fcn.1012fd1f
pop ecx
test eax, eax
je 0x1013c941
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1013c941
mov eax, dword [0x1022fdf4]
cmp eax, ebx
je 0x1013c941
push eax
call fcn.1012fd1f
pop ecx
test eax, eax
je 0x1013c941
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1022fdec]
call fcn.1012fd1f
pop ecx
test eax, eax
je 0x1013c961
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1013c963
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1013fac7
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 edi, dword [0x1022dbf0]
add edi, 0x2307
mov dword [0x1022dbec], edi
mov dword [0x1022dbf8], 0
mov byte [0x1022dbfc], 0
mov dword [0x1022dbf0], 0x1492
mov dword [0x1022dbf4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1013fb52
mov dword [0x1022dbf0], 0x5b8
mov eax, dword [0x1022dbec]
add eax, 0x1964
mov dword [0x1022dbec], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x1022dbf4], 0
mov dword [ebp - 0x20], eax
jmp 0x1013fb8e
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x1022dbf0], 0x11fa
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1022dbec], 0xfffff39e
mov eax, dword [0x1022dbf4]
add eax, 1
mov dword [0x1022dbf4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1013fb52
jmp 0x1013fb41
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1022dc00], 0
mov dword [0x1022dbec], 0x113b
mov edx, dword [0x1022dbf8]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x1022dc00], edi
mov dword [0x1022dbf0], 0x977
mov eax, edi
cdq
idiv ecx
mov dword [0x1022dbf8], edx
mov dword [0x1022dbec], 0x182
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x1022dbfc], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x1022dbfc]
mov edx, dword [0x1022dbf8]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x1022dbf0], 0x1ee0
mov edx, dword [0x1022dbf4]
add edx, 1
mov dword [0x1022dbf4], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1013fb8e
jmp 0x1013fb20
Function at 0x1013fc59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1022dbec], 0x1498
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
mov esi, eax
add esi, 1
imul edi, eax, 0x78
mov ebx, edx
add ebx, edi
add ebx, 0x40
imul eax, eax, 0x78
add edx, eax
add edx, 4
mov eax, dword [ebx]
movzx edx, word [edx]
xor edx, eax
add edx, ecx
cmp esi, 0x1d5
mov eax, edx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], esi
jne 0x1013fc88
lea eax, [0x1021cc5a]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [0x1022dbec], 0x3528
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.10140931
mov dword [0x1022dbec], 0xee1
call fcn.10140c68
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.1013f7eb
mov ecx, eax
mov dword [0x1022dc0c], eax
mov eax, esp
mov edx, dword [ebp - 0x13c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
mov esi, dword [ebp - 0x148]
add esi, ecx
mov edi, eax
add edi, 1
imul ebx, eax, 0x78
mov dword [ebp - 0x154], eax
mov eax, edx
add eax, ebx
add eax, 0x40
mov ebx, dword [ebp - 0x154]
imul ebx, ebx, 0x78
mov dword [ebp - 0x158], eax
mov eax, edx
add eax, ebx
mov ebx, dword [ebp - 0x154]
imul ebx, ebx, 0x78
add edx, ebx
add edx, 4
mov ebx, dword [ebp - 0x158]
mov ebx, dword [ebx]
mov eax, dword [eax]
movzx edx, word [edx]
xor edx, ebx
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], edx
call fcn.1013fffe
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x160]
add eax, ecx
mov edx, dword [ebp - 0x15c]
cmp edx, 0x1d5
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], eax
jne 0x1013fd82
lea eax, [0x1021cc68]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x1022dbec], 0xb3f
mov dword [0x1022dbf0], 0x16e8
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], ecx
call fcn.1013fac7
mov dword [0x1022dbec], 0x1454
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.101406da
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x77692
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [0x1022dbec], 0x1719
mov dword [edx + 4], 0x138600
mov ecx, dword [ebp - 0x148]
add ecx, 0x20203
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2010
mov ecx, dword [0x1022dbec]
add ecx, 0xffffe743
mov dword [0x1022dbec], ecx
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1014009c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [0x1022dbec], 0x2289
mov dword [ebp - 0x10], eax
call fcn.1013f66d
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov eax, dword [eax + esi]
cmp eax, 0x4550
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
je 0x101400de
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x78]
mov ecx, eax
add ecx, 0x20
mov edx, dword [ebp - 0x14]
add edx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
add ecx, dword [edx]
mov dword [0x1022dbec], 0x5d8
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov ebx, dword [esi + edi + 0x24]
mov dword [0x1022dbf0], 0xa39
mov edx, dword [esi + edi + 0x18]
cmp edx, 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
je 0x10140225
jmp 0x101401ed
mov eax, dword [ebp - 0x38]
add eax, 1
mov cl, byte [ebp - 0x39]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x3a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x40], eax
jne 0x101401b7
jmp 0x101401e4
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov esi, dword [ebp - 0x30]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x40], edx
jmp 0x101401b7
mov eax, dword [ebp - 0x50]
add eax, 2
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
xor eax, eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], eax
jb 0x1014016a
jmp 0x10140225
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x54]
add ecx, edx
mov esi, dword [ebp - 0x14]
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 - 0x38], eax
mov byte [ebp - 0x39], bh
mov byte [ebp - 0x3a], cl
jne 0x10140140
mov al, byte [ebp - 0x3a]
test al, 1
jne 0x10140202
jmp 0x10140186
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
add ecx, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], eax
jmp 0x1014016a
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x14]
add edi, dword [edx + ecx*4]
mov dword [0x1022dbec], 0xf
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10140289
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [0x1022dbf0], 0x4f5
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov dword [0x1022dbec], 0x650
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
add ecx, 0x3c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
jmp 0x1014037c
mov eax, 1
mov dword [0x1022dbf0], 0x7a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
je 0x10140417
jmp 0x10140408
mov eax, dword [ebp - 0x20]
add eax, 0xffffff23
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff5
mov dword [0x1022dbec], eax
shl ecx, 1
mov eax, dword [ebp - 0x10]
add eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x61
je 0x1014035e
jmp 0x10140408
mov eax, 0xab6
mov dword [0x1022dbf0], 0xab6
mov ecx, dword [ebp - 0x28]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jl 0x1014037c
jmp 0x1014038f
mov dword [0x1022dbec], 0xe50
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x101403dc
jmp 0x10140408
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov dword [ebp - 0x28], eax
je 0x101403b7
jmp 0x10140331
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
add edx, 0xffffde47
mov dword [0x1022dbf0], edx
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ecx
je 0x101403c7
jmp 0x10140408
mov eax, dword [0x1022dbf0]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jmp 0x1014038f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x10140301
jmp 0x10140408
mov dword [0x1022dbec], 0x1419
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10140408
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x101402d7
xor eax, eax
mov dword [0x1022dbf0], 0x1280
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x30
pop ebp
ret
Function at 0x1014041f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x1021cc5a]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x1022dbec], 0x117a
mov dword [0x1022dbf0], 0x2413
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.10140931
mov dword [0x1022dbf0], 0x182b
mov dword [0x1022dbec], 0xee1
call fcn.10140c68
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1013f7eb
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x10140561
mov eax, dword [ebp - 0x3c]
mov dword [0x1022dbf0], 0x686
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 [0x1022dbf0], 0x1c5a
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1013f985
mov eax, dword [ebp - 0x44]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [eax + 0xd0], 0x4550
add eax, 0xffc00000
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [0x1022dbf0], 0x145
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x48]
mov dword [ecx + 0x1c], edx
mov esi, dword [ebp - 0x44]
mov dword [ecx + 8], esi
mov dword [0x1022dbec], 0x640
cmp esi, 0
mov dword [ebp - 0x40], eax
je 0x10140561
mov eax, dword [ebp - 0x44]
add eax, 0x1277
mov dword [ebp - 0x4c], eax
mov dword [0x1022dbec], 0x13f8
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
Function at 0x101406da
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 ebx, dword [0x1022dbec]
add ebx, 0x510
mov dword [0x1022dbf0], ebx
mov dword [0x1022dbf4], 0
mov dword [0x1022dbf8], 0
mov dword [0x1022dc04], 0
mov dword [0x1022dbec], 0x16c5
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
jne 0x1014075d
mov dword [0x1022dbec], 0xb72
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1022dbf0], 0x47c
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1022dbf4], edx
mov dword [0x1022dbec], 0xd85
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1022dbf8], edx
mov dword [0x1022dbec], 0x237c
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1022dbfc], cl
mov dword [0x1022dbf0], 0x46d
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x1022dbf0], 0x7f8
mov cl, byte [0x1022dbfc]
mov edx, dword [0x1022dbf8]
mov byte [edi + edx], cl
mov dword [0x1022dbec], 0x14d6
mov edx, dword [0x1022dbf4]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1022dbf8]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x1022dbf0], 0x16e2
and ebx, 0xff
mov dword [0x1022dc04], ebx
mov dword [0x1022dbec], 0xaf
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov byte [0x1022dc09], ch
mov byte [0x1022dc0a], cl
xor ch, cl
mov byte [0x1022dc08], ch
mov dword [0x1022dbec], 0xa4e
mov edx, dword [ebp - 0x1c]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x1014074b
mov eax, dword [0x1022dbf4]
mov ecx, dword [0x1022dbf8]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x1014075d
Function at 0x101409f5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x1022dbec]
add eax, 0xffffddc7
mov dword [0x1022dbec], eax
call fcn.1000107a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x10140b76
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov edx, dword [0x1022dbf0]
add edx, 0xffffd0b8
mov dword [0x1022dbec], edx
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.1013fc59
lea ecx, [0x10140230]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x88], edx
mov dword [esp + 0x4c], 0x138600
mov dword [0x1022dbf0], 0x1eb7
mov edx, dword [0x1022dbd8]
mov dword [esp + 0x70], edx
mov edx, dword [0x1022dbdc]
mov dword [esp + 0x50], edx
mov edx, dword [0x1022dbe0]
mov dword [esp + 0x8c], edx
mov edx, dword [0x1022dbe4]
mov dword [esp + 0x64], edx
mov edx, dword [0x1022dbe8]
mov dword [esp + 0x80], edx
mov dword [0x1022dbec], 0x19e4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
jmp 0x10140b2d
lea eax, [esp + 0x38]
mov dword [0x1022dbec], 0x1b81
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1014041f
mov dword [0x1022dbf0], 0xecc
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x14], eax
jmp 0x10140b6e
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x74], edx
mov dword [0x1022dbec], 0xebf
call fcn.10140289
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
je 0x10140abb
jmp 0x10140b6e
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10140b50
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10140afb
mov dword [0x1022dbf0], 0x773
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x10140b2d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x1000c540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000c56c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1000c594
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000c59a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x1000c602
jg 0x1000c5b1
test esi, esi
je 0x1000c602
test ecx, ecx
jl 0x1000c5fd
jg 0x1000c5bb
test eax, eax
je 0x1000c5fd
cmp edi, ecx
jg 0x1000c5cf
jl 0x1000c5c5
cmp esi, eax
jae 0x1000c5cf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1000c605
mov ecx, dword [ebp + 8]
jmp 0x1000c60f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1000c629
jg 0x1000c60f
test esi, esi
je 0x1000c629
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000c629
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000c640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1000c66c
jl 0x1000c660
test ecx, ecx
jne 0x1000c66c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000c685
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000c6cd
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1000c6d3
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1000c6d3
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1000c746
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000c6fc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x1000c734
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1000c746
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1000c710
test edi, edi
je 0x1000c746
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc