joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10221db4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, 0
sete dl
cmp eax, 0
sete dh
and dl, dh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x10221fab
jmp 0x10221e93
mov eax, dword [ebp - 0x20]
mov cx, word [eax]
mov dword [0x102466fc], 0x26b6
shr cx, 1
mov word [ebp - 0x22], cx
xor eax, eax
mov cx, word [ebp - 0x22]
movzx edx, cx
cmp cx, 0
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
je 0x10221ef0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x3e], dx
mov word [ebp - 0x40], di
jb 0x10221e64
mov ax, word [ebp - 0x3e]
mov word [ebp - 0x40], ax
mov ax, word [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov byte [ebp - 0x41], bl
jne 0x10221f89
jmp 0x10221f56
mov dword [0x10246700], 0x25ed
mov dword [0x102466fc], 0x14fc
mov ecx, dword fs:[0x18]
mov dword [0x102466fc], 0xffffeafc
add ecx, 0x30
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov dword [0x10246700], 0xffffd3cf
mov ecx, dword [ecx + 0xc]
add ecx, 0x14
mov edx, dword [ebp - 0x10]
cmp edx, 0
setne bl
mov esi, ecx
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x4d], bl
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov eax, dword [eax]
mov edx, dword [ebp - 0x4c]
cmp eax, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], ecx
je 0x10221fab
mov dword [0x102466fc], 0xe77
mov eax, dword [ebp - 0x28]
add eax, 0x24
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x28]
mov esi, dword [ecx + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x4d]
and bh, bl
test bh, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x54], esi
jne 0x10221f43
jmp 0x10221df8
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
jmp 0x10221fab
mov dword [0x102466fc], 0x667
mov eax, dword [ebp - 0x3c]
add eax, 1
mov ecx, dword [ebp - 0x2c]
cmp eax, ecx
setb dl
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x5d], dl
mov al, byte [ebp - 0x5d]
test al, 1
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], ecx
jne 0x10221e30
jmp 0x10221f89
mov al, byte [ebp - 0x41]
test al, 1
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], ecx
jne 0x10221f9b
jmp 0x10221ef0
mov dword [0x10246700], 0xffffc994
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102223d5
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 [0x10246708], 0
mov byte [0x1024670c], 0
mov dword [0x102466fc], 0x1f87
mov dword [0x10246704], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10246704]
add eax, 1
mov dword [0x10246704], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1022241a
mov dword [0x102466fc], 0xd51
xor eax, eax
mov dword [0x10246704], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10246710], 0
mov dword [0x102466fc], 0x17de
mov edx, dword [0x10246708]
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 [0x10246710], edi
mov dword [0x10246700], 0x51e
mov dword [0x102466fc], 0xffffe312
mov eax, edi
cdq
idiv ecx
mov dword [0x10246708], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x1024670c], cl
mov dword [0x102466fc], 0x1980
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x102466fc]
add ecx, 0x1ff7
mov dword [0x10246700], ecx
mov cl, byte [0x1024670c]
mov edx, dword [0x10246708]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x102466fc], 0x5e6
mov edx, dword [0x10246700]
add edx, 0xfffffd1a
mov dword [0x10246700], edx
mov edx, dword [0x10246704]
add edx, 1
mov dword [0x10246704], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10222459
mov dword [0x102466fc], 0x1e31
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022255f
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]
mov dword [ebp - 0x130], eax
xor eax, eax
mov dword [0x102466fc], 0xeb4
mov ecx, eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jmp 0x102225c5
mov eax, dword [ebp - 0x13c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x10225483]
mov dh, byte [eax + 0x10225454]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x13c], ecx
je 0x1022262c
jmp 0x10222590
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
xor edx, edx
lea esi, section..data
imul edi, eax, 0xb4
mov ebx, esi
add ebx, edi
add ebx, 0x48
mov edi, dword [ebx]
imul ebx, eax, 0xb4
add esi, ebx
add esi, 0x44
movzx esi, word [esi]
xor esi, edi
add esi, ecx
add eax, 1
cmp eax, 0x2e2
mov ecx, esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], eax
je 0x10222590
jmp 0x102225c5
lea eax, [ebp - 0x12c]
mov dword [0x102466fc], 0xf0b
mov dword [ebp - 0x144], eax
call fcn.1022336c
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.1022210f
mov ecx, eax
mov dword [0x1024671c], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
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, dword [0x10246700]
add edx, 0xffffd942
mov dword [0x102466fc], edx
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
imul esi, eax, 0xb4
mov edi, edx
add edi, esi
add edi, 0x48
mov esi, dword [edi]
imul edi, eax, 0xb4
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0xb4
add edx, ebx
add edx, 0x44
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.102228e1
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x2e2
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x102226ac
lea eax, [0x10225462]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x10246700], 0xe6d
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.102223d5
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.10222eaf
xor eax, eax
mov dword [0x102466fc], 0x1e27
mov ecx, dword [ebp - 0x148]
add ecx, 0xb50df
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x12bc00
mov ecx, dword [ebp - 0x148]
add ecx, 0xaf8f5
mov dword [edx + 8], ecx
mov ecx, dword [0x102466fc]
add ecx, 0xffffe53e
mov dword [0x102466fc], ecx
mov dword [edx + 0xc], 0x2040
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022296d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x10246700], 0x26de
mov dword [ebp - 0x10], eax
call fcn.10221fb6
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov dword [0x10246700], 0xe73
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x102229bd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x102466fc], 0x16bd
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x10222ada
jmp 0x10222a45
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
jmp 0x10222a5f
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x102466fc], 0x22a3
mov dword [ebp - 0x30], edi
jmp 0x10222ada
mov al, byte [ebp - 0x49]
test al, 1
jne 0x10222a14
jmp 0x10222ab2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
add eax, dword [eax + ecx + 0x24]
mov dword [ebp - 0x50], eax
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jmp 0x102229f8
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
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 - 0x54], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x49], cl
je 0x10222a3c
mov eax, dword [ebp - 0x54]
add eax, 1
mov cl, byte [ebp - 0x55]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x49]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x10222a5f
jmp 0x10222a3c
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov edx, dword [ebp - 0x40]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], eax
jb 0x102229f8
mov eax, dword [ebp - 0x30]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10222b30
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
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 [0x102466fc], 0x1927
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10222b95
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x10222bce
jmp 0x10222c53
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x10222c14
jmp 0x10222c53
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
je 0x10222b66
mov dword [0x102466fc], 0x9f6
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jl 0x10222b95
jmp 0x10222b66
mov dword [0x102466fc], 0x21a9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x1e], dx
mov ax, word [ebp - 0x1e]
cmp ax, 0x6f
jne 0x10222c53
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff5
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x61
je 0x10222b7d
jmp 0x10222c53
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dx, word [eax + ecx*2 - 0x12]
mov word [ebp - 0x26], dx
mov ax, word [ebp - 0x26]
cmp ax, 0x64
jne 0x10222c53
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10222c53
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x10222c5a
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x10222c5a
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop ebp
ret
Function at 0x10222c62
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x10225483]
mov dl, byte [eax + 0x10225454]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x10222c7a
lea eax, [ebp - 0x24]
mov dword [0x102466fc], 0x1372
mov dword [ebp - 0x34], eax
call fcn.1022336c
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1022210f
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, 0
je 0x10222d8d
mov eax, dword [ebp - 0x38]
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 ecx, dword [0x102466fc]
add ecx, 0xffffdbc9
mov dword [0x102466fc], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.102222c2
mov eax, dword [0x102466fc]
add eax, 0xffffe005
mov dword [0x10246700], eax
mov eax, dword [ebp - 0x3c]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x24], ecx
mov dword [0x102466fc], 0x19c4
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x14], ecx
add ecx, 0x271a
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x10222d84
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x10222eaf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x10246704], 0
mov dword [0x10246708], 0
mov dword [0x10246714], 0
mov edi, dword [0x10246700]
add edi, 0xfffff338
mov dword [0x102466fc], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x1022302d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov dword [0x102466fc], 0x20d1
mov edi, edx
add edi, 1
mov dword [0x10246700], 0x7e7
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x10246704], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10246708], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x1024670c], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1024670c]
mov edx, dword [0x10246708]
mov byte [ebx + edx], cl
mov dword [0x10246700], 0x2664
mov edx, dword [0x10246704]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10246708]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10246714], ecx
mov dword [0x102466fc], 0x1fb1
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov byte [0x10246719], ch
mov byte [0x1024671a], cl
xor ch, cl
mov byte [0x10246718], ch
mov dword [0x102466fc], 0x251f
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov dword [0x10246700], 0x13d3
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x1022302d
mov eax, dword [0x10246704]
mov ecx, dword [0x10246708]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
jmp 0x10222f1e
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10223169
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x102466fc], 0x1f19
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1022255f
mov dword [esp + 0x20], eax
lea eax, [0x10222ae5]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x48], 0x12bc00
mov ecx, dword [0x102466e8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [0x102466ec]
mov dword [esp + 0x60], ecx
mov ecx, dword [0x102466f0]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x102466f4]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x102466f8]
mov dword [esp + 0x80], ecx
mov dword [0x10246700], 0x4bf
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x1022325e
jmp 0x1022323a
lea eax, [esp + 0x38]
mov dword [0x10246700], 0x341
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10222c62
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 0x10223256
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x102231f3
mov eax, dword [esp + 0x14]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
jne 0x1022323a
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov dword [0x10246700], 0xe73
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x3c], edx
call fcn.10222b30
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
je 0x10223204
jmp 0x10223256
Function at 0x406f20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x406f52
jl 0x406f45
test ecx, ecx
jne 0x406f52
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x407012
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0040a190
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x406fbe
jg 0x406f7d
test esi, esi
je 0x406fbe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x406f95
mov eax, dword [esp + 0x10]
jl 0x406f8f
cmp eax, esi
jae 0x406f95
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00429080
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x406fdf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x406ffb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x406f64
jl 0x406ffb
test ecx, ecx
jne 0x406f64
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x407056
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x407056
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00429080
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4070c7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40707c
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 [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4070b2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004369ab
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4070c7
cmp edi, eax
ja 0x407090
test edi, edi
je 0x4070c7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004369ab
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
Function at 0x40a840
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450650
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46b140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004278b4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00426e4e
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0040a7e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret