joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414760
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x43850e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 1]
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov dword [esp + 0x14], esi
mov byte [esi + 8], al
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov cl, byte [esp + 0xd]
lea edi, [esi + 0x18]
push ebp
mov dword [esp + 0x28], ebp
mov byte [edi], cl
mov ecx, edi
mov dword [esp + 0x1c], edi
call dword [0x43b3f8]
mov dl, byte [esp + 0xd]
lea ecx, [edi + 0x10]
push ebp
mov byte [esp + 0x28], 1
mov byte [ecx], dl
call dword [0x43b3f8]
mov al, byte [esp + 0xd]
lea ecx, [edi + 0x20]
push ebp
mov byte [esp + 0x28], 2
mov byte [ecx], al
call dword [0x43b3f8]
lea ecx, [esp + 0xd]
mov byte [esp + 0x24], 3
push ecx
lea ecx, [edi + 0x30]
call dword [0x43b3c4]
lea edx, [esp + 0xe]
lea ecx, [edi + 0x40]
push edx
mov byte [esp + 0x28], 4
call dword [0x43b3c4]
lea eax, [esp + 0xf]
lea ecx, [edi + 0x50]
push eax
mov byte [esp + 0x28], 5
call dword [0x43b3c4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 6
push ecx
lea ecx, [edi + 0x60]
call dword [0x43b3c4]
lea edx, [esp + 0x11]
lea ecx, [edi + 0x70]
push edx
mov byte [esp + 0x28], 7
call dword [0x43b3c4]
mov al, byte [esp + 0x11]
lea edi, [esi + 0x98]
push ebp
mov ecx, edi
mov byte [esp + 0x28], 8
mov dword [esp + 0x1c], edi
mov byte [edi], al
call dword [0x43b3f8]
lea ecx, [esp + 0x11]
mov byte [esp + 0x24], 9
push ecx
lea ecx, [edi + 0x10]
call dword [0x43b3c4]
mov byte [esp + 0x24], 0xa
lea edx, [esp + 0x10]
lea ecx, [edi + 0x20]
push edx
call dword [0x43b3c4]
lea eax, [esp + 0xf]
lea ecx, [edi + 0x30]
push eax
mov byte [esp + 0x28], 0xb
call dword [0x43b3c4]
lea ecx, [esp + 0xe]
mov byte [esp + 0x24], 0xc
push ecx
lea ecx, [edi + 0x40]
call dword [0x43b3c4]
lea edx, [esp + 0xd]
lea ecx, [edi + 0x50]
push edx
mov byte [esp + 0x28], 0xd
call dword [0x43b3c4]
lea eax, [esp + 0x12]
lea ecx, [edi + 0x60]
push eax
mov byte [esp + 0x28], 0xe
call dword [0x43b3c4]
lea ecx, [esp + 0x13]
mov byte [esp + 0x24], 0xf
push ecx
lea ecx, [edi + 0x70]
call dword [0x43b3c4]
lea ecx, [esi + 0x118]
mov byte [esp + 0x24], 0x10
inc esp
and al, 0x24
adc al, ch
mov bh, 4
add byte [eax], al
Function at 0x414da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4386ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
push edi
mov byte [esi], al
call dword [0x43b3f8]
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x10]
push edi
mov dword [esp + 0x1c], edi
mov byte [ecx], dl
call dword [0x43b3f8]
mov al, byte [esp + 0xb]
lea ecx, [esi + 0x20]
push edi
mov byte [esp + 0x1c], 1
mov byte [ecx], al
call dword [0x43b3f8]
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x30]
push edi
mov byte [esp + 0x1c], 2
mov byte [ecx], dl
call dword [0x43b3f8]
mov al, byte [esp + 0xb]
mov dword [esi + 0x44], edi
mov byte [esi + 0x40], al
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x50]
push edi
mov byte [esp + 0x1c], 4
mov byte [ecx], dl
call dword [0x43b3f8]
mov al, byte [esp + 0xb]
mov dword [esi + 0x64], edi
mov byte [esi + 0x60], al
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov cl, byte [esp + 0xb]
mov dword [esi + 0x74], edi
mov byte [esi + 0x70], cl
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x80]
push edi
mov byte [esp + 0x1c], 7
mov byte [ecx], dl
call dword [0x43b3f8]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4186d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x438c06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
mov eax, dword [esp + 0x100]
push ebx
mov ebx, ecx
mov dword [esp + 0x10], eax
mov ecx, eax
mov dword [esp + 0x28], eax
mov edx, dword [ebx + 0x48]
and eax, 0xffff
sar ecx, 0x10
shl eax, 5
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x108]
push ebp
xor ebp, ebp
mov eax, dword [ecx + eax + 0xc]
push esi
and eax, 0xffff
mov dword [edx + 8], ebp
mov dword [esp + 0x34], eax
mov eax, dword [0x43b410]
lea esi, [ebx + 0x10]
push edi
mov edi, dword [eax]
mov ecx, esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebp
call dword [0x43b3e8]
mov eax, dword [esi + 8]
cmp eax, edi
jae 0x41874f
mov edi, eax
cmp edi, ebp
jbe 0x418786
mov ecx, dword [esi + 4]
sub eax, edi
push eax
lea edx, [ecx + edi]
push edx
push ecx
call dword [0x43b44c]
mov ebp, dword [esi + 8]
add esp, 0xc
sub ebp, edi
mov ecx, esi
push 0
push ebp
call dword [0x43b408]
test al, al
je 0x418784
push ebp
mov ecx, esi
call dword [0x43b418]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
push 6
lea ecx, [esp + 0x14]
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x1c], ebp
call fcn.00419300
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
Function at 0x4196f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438c59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov edx, dword [esp + 0x28]
push ebx
xor ebx, ebx
push esi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
cmp ecx, eax
push edi
mov dword [esp + 0xc], ebx
jle 0x419762
mov esi, dword [esp + 0x30]
mov al, byte [esp + 0x30]
mov edi, 0x4488c8
or ecx, 0xffffffff
mov byte [esi], al
xor eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4488c8
mov ecx, esi
call dword [0x43b3f4]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [edx + 0xc]
sub eax, ecx
inc eax
add esi, ecx
mov cl, byte [esp + 0x30]
push ebp
mov ebp, eax
mov byte [esp + 0x14], cl
push 1
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [0x43b408]
test al, al
je 0x4197b1
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call dword [0x43b418]
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [0x43b410]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebx
push eax
call dword [0x43b40c]
mov ecx, dword [esp + 0x18]
pop ebp
cmp ecx, ebx
je 0x419816
mov al, byte [ecx - 1]
cmp al, bl
je 0x41980c
cmp al, 0xff
je 0x41980c
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.0041d310
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x41dc30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438f3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x43c0d8
mov al, byte [esp + 0x20]
xor edi, edi
mov dword [esp + 0x18], edi
mov byte [esi + 0x1c], al
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dl, byte [esp + 0x20]
lea ecx, [esi + 0x38]
push edi
mov byte [esp + 0x1c], 1
mov byte [ecx], dl
call dword [0x43b3f8]
mov al, byte [esp + 0x20]
lea ecx, [esi + 0x48]
push edi
mov byte [esp + 0x1c], 2
mov byte [ecx], al
call dword [0x43b3f8]
lea ecx, [esi + 0x58]
mov byte [esp + 0x18], 3
call fcn.00422310
mov cl, byte [esp + 0x20]
mov dl, byte [esp + 0x20]
mov al, byte [esp + 0x20]
mov byte [esi + 0xb4], cl
mov cl, byte [esp + 0x20]
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
mov byte [esi + 0x108], dl
mov dl, byte [esp + 0x20]
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov byte [esi + 0x118], al
mov eax, dword [esp + 0x20]
mov dword [esi + 0x11c], edi
mov dword [esi + 0x120], edi
mov dword [esi + 0x124], edi
push 0x41bbe0
mov byte [esi + 0x128], cl
mov dword [esi + 0x12c], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x134], edi
push 0xfffffffffffffffc
mov byte [esi + 0x138], dl
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
push eax
mov dword [esi], 0x43c03c
mov dword [esi + 4], eax
call dword [0x43b568]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
push eax
call dword [0x43b5b0]
mov ebx, dword [0x43b04c]
push edi
mov dword [esi + 0x10], eax
call ebx
push edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
call ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0xfc], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x94], edi
mov ecx, dword [esi + 4]
push edi
push 0x14
push 1
push ecx
mov dword [esi + 0x98], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0xb0], 0xd8e9ec
mov dword [esi + 0x14c], edi
mov dword [esi + 0x2c], edi
call dword [0x43b560]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x421480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
and al, 0x9c
add byte [eax], al
add byte [edx + 0x57], dl
push esi
push eax
mov byte [esp + 0xae24], 0xf
call fcn.00423170
add esp, 0x10
lea ecx, [esp + 0x9c]
push 1
call dword [0x43b3f8]
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x108]
xchg esp, eax
and al, 8
add dword [eax], eax
add byte [ecx + 0x68], dl
push eax
and eax, dword [eax + eax + 0x52]
Function at 0x4214b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xchg esp, eax
and al, 8
add dword [eax], eax
add byte [ecx + 0x68], dl
push eax
and eax, dword [eax + eax + 0x52]
call fcn.00439af8
push 0x44234c
push eax
lea eax, [esp + 0xd0]
mov byte [esp + 0xae28], 0x10
push eax
call fcn.00439afe
push 0x442384
lea ecx, [esp + 0xb8]
mov bl, 0x11
push eax
push ecx
mov byte [esp + 0xae38], bl
call fcn.00439afe
add esp, 0x24
mov edx, dword [0x43b410]
mov byte [esp + 0xae14], 0x12
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0x50]
call dword [0x43b430]
push 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0xae18], bl
call dword [0x43b3f8]
mov byte [esp + 0xae14], 0x10
push 1
lea ecx, [esp + 0xc0]
call dword [0x43b3f8]
push 1
lea ecx, [esp + 0x10c]
mov byte [esp + 0xae18], 0xf
call dword [0x43b3f8]
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0xae18], 9
call dword [0x43b3f8]
jmp 0x42158b
mov esi, dword [esp + 0xae30]
Function at 0x421590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [eax], al
xor ebx, ebx
cmp esi, ebx
je 0x42161d
push esi
call dword [0x43b08c]
mov ebp, dword [esp + 0xae34]
cmp ebp, ebx
je 0x4215b9
cmp byte [ebp], 0
je 0x4215b9
mov byte [esp + 0x12], 1
push esi
call dword [0x43b090]
mov al, byte [esp + 0x12]
test al, al
je 0x421624
mov ebp, dword [esp + 0xae34]
mov edi, 0x442300
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x442300
lea ecx, [esp + 0x4c]
call dword [0x43b434]
mov edi, 0x442278
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x442278
lea ecx, [esp + 0x4c]
call dword [0x43b434]
mov edi, 0x442258
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x442258
lea ecx, [esp + 0x4c]
call dword [0x43b434]
mov edi, 0x442234
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x442234
lea ecx, [esp + 0x4c]
call dword [0x43b434]
mov edi, 0x442208
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x442208
lea ecx, [esp + 0x4c]
call dword [0x43b434]
mov edi, 0x442384
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x442384
lea ecx, [esp + 0x4c]
call dword [0x43b434]
mov eax, dword [esp + 0x48]
cmp eax, ebx
jne 0x4216eb
mov eax, dword [0x43b3fc]
mov edx, dword [esp + 0x4c]
push ebx
push edx
push eax
mov eax, dword [esp + 0xc4]
push eax
call dword [0x43b5e8]
or edi, 0xffffffff
cmp eax, edi
jne 0x421795
call dword [0x43b5c4]
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xae18], 4
call dword [0x43b3f8]
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xae18], 3
call dword [0x43b3f8]
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0xae18], 2
call dword [0x43b3f8]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xae18], 1
call dword [0x43b3f8]
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xae18], 0
call dword [0x43b3f8]
push 1
lea ecx, [esp + 0x80]
mov dword [esp + 0xae18], edi
call dword [0x43b3f8]
mov eax, 0xfffffffa
jmp 0x42304b
cmp esi, ebx
je 0x421832
push esi
call dword [0x43b08c]
cmp ebp, ebx
je 0x4217b3
cmp byte [ebp], 0
je 0x4217b3
mov byte [esp + 0x12], 1
push esi
call dword [0x43b090]
mov al, byte [esp + 0x12]
test al, al
je 0x421832
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xae18], 4
call dword [0x43b3f8]
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xae18], 3
call dword [0x43b3f8]
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0xae18], 2
call dword [0x43b3f8]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xae18], 1
call dword [0x43b3f8]
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xae18], 0
call dword [0x43b3f8]
mov dword [esp + 0xae14], edi
jmp 0x420c9b
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x68], 0xa000
mov dword [esp + 0xd8], 1
mov dword [esp + 0xdc], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x100], 2
mov dword [esp + 0x104], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd0], ebx
Function at 0x42a370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4392ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [ebp], str.D_LUPS
xor ebx, ebx
mov dword [esp + 0x30], 1
xor edi, edi
lea esi, [ebp + 0xc]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x42a3cd
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x42a3cd
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx + edi*4]
cmp ecx, ebx
je 0x42a3ca
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
jmp 0x42a3a8
mov cl, byte [esp + 0x13]
mov byte [esp + 0x18], cl
mov eax, dword [esi + 4]
mov dword [esi + 4], ebx
mov edx, dword [esi + 8]
mov dword [esi + 8], ebx
mov ecx, dword [esi + 0xc]
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esi + 0xc], ebx
mov byte [esp + 0x34], 1
call fcn.00422310
mov ecx, dword [esi + 8]
mov edi, dword [esi + 4]
mov eax, ecx
add esp, 4
cmp eax, ecx
je 0x42a41b
mov edx, dword [eax]
add eax, 4
mov dword [edi], edx
add edi, 4
cmp eax, ecx
jne 0x42a40d
mov eax, dword [esi + 8]
mov ecx, esi
push eax
push edi
call fcn.004260b0
mov dword [esi + 8], edi
mov eax, dword [ebp + 0x20]
push eax
mov dword [esp + 0x18], eax
call fcn.00422310
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x1c], eax
call fcn.00422310
mov ecx, dword [esp + 0x30]
add esp, 8
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1a4d6b1d
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x39fd2d91
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401450
Capabilities:
Get common file path

Disassembly:
mov edx, dword [0x41053c]
sub esp, 0x104
test edx, edx
push ebx
push esi
push edi
jne 0x401529
push 0x104
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x41053c], eax
jne 0x401491
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x104
ret
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x41053c]
lea edx, [esp + 0xc]
push ecx
push 0
push 0x40d0cc
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [0x41053c]
push eax
call fcn.00404f14
mov edx, dword [0x41053c]
add esp, 4
cmp byte [edx], 0
je 0x401529
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x5c
je 0x401529
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x3a
je 0x401529
mov edi, 0x40d038
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x41053c]
lea esi, [esp + 0xc]
mov eax, edx
sub esi, edx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401531
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x114]
repne scasb al, byte es:[edi]
mov al, byte [esi]
not ecx
dec ecx
test al, al
mov edi, ecx
je 0x4015b8
lea ebx, [esp + 0xc]
dec ebx
mov cl, byte [ebx + edi]
lea edx, [esp + 0xc]
mov byte [esp + 0x10f], cl
push edx
mov byte [ebx + edi], 0
call fcn.00404f1f
mov al, byte [esp + 0x113]
add esp, 4
mov byte [ebx + edi], al
cmp edi, 0x102
jae 0x401484
cmp byte [esi], 0x2f
jne 0x401596
mov byte [esi], 0x5c
movzx cx, byte [esi]
mov al, byte [esi + 1]
mov word [esp + edi + 0xc], cx
inc edi
inc esi
test al, al
je 0x4015b8
mov al, byte [esi - 1]
cmp al, 0x5c
je 0x4015b3
cmp al, 0x2f
jne 0x401582
cmp byte [esi], 0
jne 0x40155d
lea edx, [esp + 0xc]
push edx
call section..text
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x406725
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d680
cmp edx, dword [eax]
je 0x406747
add eax, 8
inc ecx
cmp eax, 0x40d710
jl 0x406738
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d680]
jne 0x406875
mov eax, dword [0x4101d4]
cmp eax, 1
je 0x40684f
test eax, eax
jne 0x406778
cmp dword [0x40d434], 1
je 0x40684f
cmp edx, 0xfc
je 0x406875
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4067af
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004080a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004084d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4067f2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004084d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b574
push edi
call fcn.00409140
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004080a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004080b0
lea eax, [ebp - 0xa0]
push 0x40b554
push eax
call fcn.004080b0
push dword [esi + 0x40d684]
lea eax, [ebp - 0xa0]
push eax
call fcn.004080b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004090af
add esp, 0x2c
pop edi
jmp 0x406875
lea eax, [ebp + 8]
lea esi, [esi + 0x40d684]
push 0
push eax
push dword [esi]
call fcn.004084d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46e00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403428
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403408
xor eax, eax
push ebp
push 0x403401
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403444
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403408
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46e00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46e00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404108
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x475048], 0
je 0x404169
cmp word [0x47521c], 0xd7b2
jne 0x404131
cmp dword [0x475224], 0
jbe 0x404131
mov eax, 0x475218
call dword [0x475234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404190
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e01c], 0
jne 0x404185
push 0
push 0x46e074
push 0x46e054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret