joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ed3c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1013b618], 0
mov byte [0x1013b61c], 0
mov dword [0x1013b610], 0x21b3
mov dword [0x1013b614], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1001ed8b
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [0x1013b610], 0x76b
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1013b60c], 0xae2
mov eax, dword [0x1013b614]
add eax, 1
mov dword [0x1013b614], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1001ed8b
mov dword [0x1013b60c], 0x1eac
mov dword [0x1013b614], 0
mov eax, 0xb4a
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x1001ede8
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0xfffff78f
mov esi, 0x100
mov dword [0x1013b620], 0
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov dword [0x1013b610], 0x141d
mov ebx, dword [0x1013b618]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [edi + ecx]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add ecx, edx
mov dword [0x1013b620], ecx
mov edx, dword [ebp - 0x30]
mov dword [0x1013b610], edx
mov eax, ecx
cdq
idiv esi
mov dword [0x1013b618], edx
mov dword [0x1013b60c], 0x929
mov ecx, dword [ebp - 0x28]
mov cl, byte [edi + ecx]
mov byte [0x1013b61c], cl
mov dword [0x1013b610], 0x1600
mov cl, byte [edi + edx]
mov edx, dword [ebp - 0x28]
mov byte [edi + edx], cl
mov cl, byte [0x1013b61c]
mov esi, dword [0x1013b618]
mov byte [edi + esi], cl
mov dword [0x1013b60c], 0xaf1
mov esi, dword [0x1013b614]
add esi, 1
mov dword [0x1013b614], esi
cmp esi, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], esi
jl 0x1001ede8
jmp 0x1001ed83
Function at 0x1001eec1
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x34
mov dword [0x1013b610], 0x1a77
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1013b60c], 0x158d
mov esi, dword [0x1013b610]
add esi, 0x1c0f
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
jmp 0x1001ef68
mov eax, 1
mov ecx, 0x10f
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
je 0x1001f070
mov eax, dword [ebp - 0x20]
xor ecx, ecx
add eax, 0x599
mov dword [0x1013b610], eax
mov dword [ebp - 0x24], ecx
jmp 0x1001f070
mov eax, dword [ebp - 0x28]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], eax
jge 0x1001ef86
mov eax, dword [ebp - 0x18]
mov ecx, 0x873
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
jne 0x1001ef4b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [0x1013b60c], ecx
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], esi
jne 0x1001ef34
mov dword [0x1013b610], 0x2651
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], edx
jne 0x1001ef34
mov eax, 0x599
mov dword [0x1013b60c], 0x599
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
jne 0x1001ef34
mov dword [0x1013b60c], 0xb26
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov dx, word [eax + ecx*2 - 0x14]
mov word [ebp - 0x36], dx
mov eax, 0xb26
mov cx, word [ebp - 0x36]
cmp cx, 0x64
mov dword [ebp - 0x20], eax
jne 0x1001ef34
mov eax, 0x63f
mov dword [0x1013b60c], 0x63f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
jne 0x1001ef34
mov eax, 0x10f
mov dword [0x1013b60c], 0x10f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
je 0x1001ef11
jmp 0x1001ef34
mov eax, dword [ebp - 0x24]
add esp, 0x34
pop esi
pop ebp
ret
Function at 0x1001f079
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]
mov dword [0x1013b614], 0
mov dword [0x1013b618], 0
mov dword [0x1013b624], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [0x1013b610], 0xa49
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 0x1001f1eb
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1013b60c], 0x155
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1013b614], edx
mov dword [0x1013b610], 0x11f1
mov ecx, dword [ebp - 0x1c]
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 [0x1013b618], edx
mov dword [0x1013b610], 0x1930
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1013b61c], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x1013b61c]
mov edx, dword [0x1013b618]
mov byte [edi + edx], cl
mov dword [0x1013b60c], 0x134
mov edx, dword [0x1013b614]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1013b618]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x1013b60c], 0xcb2
and ebx, 0xff
mov dword [0x1013b624], ebx
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov dword [0x1013b60c], 0xfa8
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
mov dword [0x1013b610], 0x134d
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x1001f1eb
mov eax, dword [0x1013b618]
mov ecx, dword [0x1013b614]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
jmp 0x1001f0e0
mov eax, dword [0x1013b60c]
add eax, 0x115a
mov dword [0x1013b60c], eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001f25f
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 ecx, dword [0x1013b610]
add ecx, 0xffffe584
mov dword [0x1013b610], ecx
mov dword [0x1013b60c], 0x1e69
mov dword [ebp - 0x10], eax
call fcn.1002018f
xor ecx, ecx
mov edx, dword [0x1013b60c]
mov esi, eax
add edx, 0xffffc0bc
mov dword [0x1013b60c], edx
mov edx, dword [eax + 0x3c]
mov dword [0x1013b610], 0xfffffa68
mov dword [0x1013b60c], 0xffffe539
mov edx, dword [eax + edx + 0x78]
mov dword [0x1013b610], 0xfffff632
mov edi, esi
add edi, dword [eax + edx + 0x20]
mov ebx, dword [eax + edx + 0x24]
mov dword [0x1013b60c], 0x2418
mov eax, dword [eax + edx + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x1001f411
jmp 0x1001f39a
mov eax, dword [ebp - 0x2c]
add eax, 1
mov cl, byte [ebp - 0x2d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x2e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x34], eax
jne 0x1001f3d4
jmp 0x1001f401
mov eax, dword [ebp - 0x38]
add eax, 2
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x28], eax
jb 0x1001f3b0
jmp 0x1001f411
mov eax, dword [ebp - 0x38]
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 [0x1013b610], 0xd4a
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [0x1013b60c], 0x14b4
mov dword [ebp - 0x28], edx
jmp 0x1001f411
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x50], eax
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [0x1013b60c], 0x1e69
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp - 0x54]
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 - 0x2c], eax
mov byte [ebp - 0x2d], bh
mov byte [ebp - 0x2e], cl
jne 0x1001f304
mov al, byte [ebp - 0x2e]
test al, 1
jne 0x1001f369
jmp 0x1001f335
mov eax, dword [ebp - 0x28]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001fdd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x1013b60c], 0x1c2
mov dword [0x1013b610], 0x25f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x100210fc]
mov dh, byte [eax + 0x100210cd]
sub dh, dl
mov byte [ebp + eax - 0x20], dh
cmp ecx, 0xe
mov dword [ebp - 0x2c], ecx
jne 0x1001fdfb
lea eax, [ebp - 0x20]
mov dword [0x1013b60c], 0x1c8b
mov dword [ebp - 0x30], eax
call fcn.100205d5
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.1001f605
xor ecx, ecx
mov dword [0x1013b60c], 0xd55
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x1001ff12
mov eax, dword [ebp - 0x34]
mov dword [0x1013b60c], 0xfd
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 [0x1013b60c], 0xeb2
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.10020061
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x40], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x3c], ecx
mov dword [0x1013b610], 0x1bfa
mov dword [0x1013b60c], 0x13b2
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x1001ff12
mov dword [0x1013b60c], 0x261d
mov eax, dword [ebp - 0x3c]
add eax, 0x155f
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret
Function at 0x10020439
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x1013b610], 0x1077
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1001fa4b
lea ecx, [0x1001fd6f]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x64], edx
mov dword [esp + 0x58], 0x132a00
mov edx, dword [0x1013b5f8]
mov dword [esp + 0x48], edx
mov edx, dword [0x1013b5fc]
mov dword [esp + 0x3c], edx
mov edx, dword [0x1013b600]
mov dword [esp + 0x5c], edx
mov edx, dword [0x1013b604]
mov dword [esp + 0x74], edx
mov edx, dword [0x1013b608]
mov dword [esp + 0x7c], edx
mov dword [0x1013b610], 0x184e
mov dword [0x1013b60c], 0x133f
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1002050c
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1001fdd0
mov dword [0x1013b610], 0x11fa
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x1013b60c], 0x2140
mov dword [esp + 0x10], eax
jmp 0x1002058e
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
je 0x10020539
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x1013b610], 0x1087
mov dword [esp + 0x14], eax
jmp 0x1002050c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
jne 0x1002051b
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov dword [0x1013b610], 0xfffffa68
mov dword [0x1013b60c], 0xffffe539
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x80], edx
call fcn.1001eec1
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x100204c9
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x4060b4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x4060b8]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.004029d0
jmp 0x4011d3
mov eax, dword [0x4060b8]
test eax, eax
jne 0x4011c9
mov dword [0x4060b8], 1
mov dword [esp + 4], 0x408014
mov dword [esp], 0x40800c
call sub.ucrtbase.dll__initterm
jmp 0x4011d3
mov dword [0x40601c], 1
mov eax, dword [0x4060b8]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x408008
mov dword [esp], section..CRT
call sub.ucrtbase.dll__initterm
mov dword [0x4060b8], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x4060b4
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.00401e69
mov dword [esp], 0x401f84
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x406074], eax
mov dword [esp], section..text
call sub.ucrtbase.dll__set_invalid_parameter_handler
call fcn.00401808
mov eax, dword [0x406004]
mov dword [esp + 4], 0x406008
mov dword [esp], eax
call fcn.004013c8
call fcn.00401644
mov eax, dword [0x403028]
mov edx, dword [0x40600c]
mov dword [eax], edx
mov ecx, dword [0x40600c]
mov edx, dword [0x406008]
mov eax, dword [0x406004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402bf0
mov dword [0x406014], eax
mov eax, dword [0x406018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x406014]
mov dword [esp], eax
call sub.ucrtbase.dll_exit
mov eax, dword [0x40601c]
test eax, eax
jne 0x4012de
call sub.ucrtbase.dll__cexit
mov eax, dword [0x406014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40604c], 1
mov dword [0x406050], 1
mov dword [0x406054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.ucrtbase.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.ucrtbase.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.ucrtbase.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004027ec
call sub.ucrtbase.dll_abort

Function at 0x4023e4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402403
mov eax, 0
jmp 0x402447
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402426
mov eax, 0
jmp 0x402447
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x402442
mov eax, 0
jmp 0x402447
mov eax, 1
leave
ret
Function at 0x402449
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4024a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4024a0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4024a0
mov eax, dword [ebp - 4]
jmp 0x4024bc
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40247d
mov eax, 0
leave
ret

Function at 0x402bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x20
call fcn.00401644
cmp dword [ebp + 8], 1
jg 0x402c26
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], str.need_input_file_argument_n
mov dword [esp + 4], eax
call sub.ucrtbase.dll_fputs
jmp 0x402c63
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
mov dword [esp + 4], 0x40405e
mov dword [esp], edi
call sub.ucrtbase.dll_fopen
mov ebx, eax
test eax, eax
jne 0x402c6d
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], edi
mov dword [esp + 4], str.error_while_openin_file___s__n
mov dword [esp], eax
call fcn.0040287c
mov eax, 1
jmp 0x402d43
xor eax, eax
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.ucrtbase.dll_fseek
mov dword [esp], ebx
call sub.ucrtbase.dll_ftell
mov dword [esp], ebx
mov esi, eax
call sub.ucrtbase.dll_rewind
mov dword [esp], esi
call sub.ucrtbase.dll_malloc
mov dword [esp + 4], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sub.ucrtbase.dll_fread
mov dword [esp], str.file:
call sub.ucrtbase.dll_puts
mov dword [esp + 4], edi
mov dword [esp], str.__name:___s__n
call fcn.00402828
mov dword [esp + 4], esi
mov dword [esp], str.__size:__u_byte_n
call fcn.00402828
mov dword [esp], str.u64_sum:
call sub.ucrtbase.dll_puts
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], esi
mov dword [esp], ecx
call fcn.00401590
mov dword [esp], str.__dec:__llu_n
mov dword [esp + 8], edx
mov edi, edx
mov esi, eax
mov dword [esp + 4], eax
call fcn.00402828
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp], str.__hex:__llX_n
call fcn.00402828
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
call sub.ucrtbase.dll_free
mov dword [esp], ebx
call sub.ucrtbase.dll_fclose
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401f90
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x401fb0
push edi
mov edi, esi
mov ecx, 0x82
rep stosd dword es:[edi], eax
pop edi
pop esi
ret
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401fb5
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x401fe1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x401fe1
cmp ecx, 0x102
jge 0x401fe1
mov eax, 0x5c
mov word [esi + ecx*2], ax
mov eax, 1
pop esi
ret

Function at 0x401ff0
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x402023
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x402023
cmp eax, 0x50
je 0x402023
cmp eax, 0xb7
je 0x402023
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x402030
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, ecx
push edi
push 0x45af00
push 0x69
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40210d
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40210d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov dword [ebp - 8], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp - 8], 0
mov esi, eax
mov dword [ebp - 0xc], esi
je 0x402116
test esi, esi
je 0x402116
xor eax, eax
mov ecx, 0x82
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, ebx
call fcn.00401f90
push 0x45af04
mov ecx, ebx
call fcn.00401dc0
push 0x45af18
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov eax, dword [ebp - 4]
xor ecx, ecx
push eax
push esi
test eax, eax
mov edi, 1
push 1
push dword [ebp - 8]
cmove edi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x20
cmp esi, dword [ebp - 0xc]
jne 0x402102
test edi, edi
jne 0x402116
mov ecx, 0x82
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret