joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418610
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x471d34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esi], 0x48671c
call fcn.00411ac0
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 1
call fcn.00411ac0
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 2
call fcn.00411ac0
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 3
call fcn.00411ac0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 4
call fcn.00404130
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x60], 0x485dd8
mov dword [esi + 4], ebx
mov byte [esi + 0x74], bl
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4186c0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x471d8a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x48671c
mov dword [esp + 0x10], 6
call fcn.00418400
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 5
call fcn.0040e8c0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 4
call fcn.00404160
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 3
call fcn.00411a20
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 2
call fcn.00411a20
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 1
call fcn.00411a20
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 0
call fcn.00411a20
mov ecx, dword [esp + 8]
mov dword [esi], 0x4866fc
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4186d6
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x471d8a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x48671c
mov dword [esp + 0x10], 6
call fcn.00418400
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 5
call fcn.0040e8c0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 4
call fcn.00404160
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 3
call fcn.00411a20
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 2
call fcn.00411a20
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 1
call fcn.00411a20
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 0
call fcn.00411a20
mov ecx, dword [esp + 8]
mov dword [esi], 0x4866fc
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41b920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4721b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
lea edi, [esi + 4]
mov dword [esi], 0x4868f8
mov dword [esp + 0x2c], ebx
mov dword [edi], fcn.00414f60
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov eax, dword [esp + 0x34]
push 4
mov byte [esp + 0x30], 2
mov dword [esi + 0x48], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x38], bl
call fcn.0046188c
add esp, 4
cmp eax, ebx
je 0x41b99a
mov dword [eax], 0x486390
jmp 0x41b99c
xor eax, eax
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.00413450
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov byte [esp + 0x30], 3
call fcn.00412790
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004132f0
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x41ca29
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x472308
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
xor ebx, ebx
cmp eax, ebx
je 0x41ca3d
push ebx
push eax
call dword [0x485588]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esi + 0x38], ebx
call fcn.00411bb0
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
mov dword [esp + 0x24], ebx
je 0x41ca5c
mov ecx, dword [ecx + 0xc]
jmp 0x41ca5e
xor ecx, ecx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
imul edx, ecx
lea ecx, [edx + eax]
mov edx, dword [ecx]
call dword [edx + 0x14]
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.004112b0
mov byte [esi + 0x18], bl
xor eax, eax
lea ecx, [esi + 0x19]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov word [ecx + 0x10], ax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x42ad48
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472dee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00461a2b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x1c], 0
lea edi, [esi + 4]
call fcn.00461a2b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 1
lea ebx, [esi + 8]
call fcn.00461a2b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov byte [esp + 0x1c], 2
jne 0x42ada7
xor eax, eax
jmp 0x42adb9
mov eax, ecx
lea ebp, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42adb0
sub eax, ebp
push eax
push ecx
mov ecx, esi
call fcn.00402b00
push 4
push str..sp_
mov ecx, esi
call fcn.004180b0
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x42addc
xor eax, eax
jmp 0x42adea
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ade1
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.00402b00
push 4
push str..sp_
mov ecx, edi
call fcn.004180b0
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x42ae0d
xor eax, eax
jmp 0x42ae1b
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ae12
sub eax, edi
push eax
push edx
mov ecx, ebx
call fcn.00402b00
push 4
push str..sp_
mov ecx, ebx
call fcn.004180b0
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x34]
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 0x11], ah
mov byte [esi + 0x10], al
pop edi
mov byte [esi + 0x12], cl
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x4349b0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x477636
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
mov eax, dword [0x4ab244]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0xa0], eax
call fcn.00406d80
mov edx, dword [esp + 0xb8]
xor ebx, ebx
mov edi, 0xf
mov eax, edx
mov dword [esp + 0xac], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x434a10
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004012e0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 1
call fcn.004098f0
test eax, eax
je 0x434a5f
cmp dword [esp + 0x28], 0x10
jb 0x434a52
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004618bc
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
jmp 0x434b9a
lea ecx, [esp + 0x2c]
call fcn.00405530
mov ecx, 0x21
mov edi, 0x48f990
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x434a97
cmp dword [esp + 0x28], 0x10
jb 0x434a8e
mov eax, dword [esp + 0x14]
push eax
call fcn.004618bc
add esp, 4
mov dword [esp + 0x24], ebx
jmp 0x434b92
mov ecx, dword [eax + 0x21]
lea esi, [eax + 0x25]
mov eax, ebp
sub eax, esi
mov edi, 0x2cd4
mov dl, byte [esi]
xor dl, cl
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x434aa6
cmp dword [esp + 0xbc], ebx
jne 0x434ad4
cmp dword [esp + 0x28], 0x10
jb 0x434ace
mov eax, dword [esp + 0x14]
push eax
call fcn.004618bc
add esp, 4
mov dword [esp + 0x24], ebx
jmp 0x434b29
mov edi, dword [ebp]
mov ebp, dword [esp + 0xb4]
mov ecx, ebp
mov dword [ebp + 0x174d8], edi
call fcn.00424ab0
lea ebx, [ebp + 0xca0]
xor ebp, ebp
test edi, edi
jle 0x434b0d
push 0x1c
push esi
mov ecx, ebx
call fcn.00411560
test eax, eax
jne 0x434b76
add esi, 0x1c
inc ebp
cmp ebp, edi
jl 0x434af7
cmp dword [esp + 0x28], 0x10
jb 0x434b21
mov edx, dword [esp + 0x14]
push edx
call fcn.004618bc
add esp, 4
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14], 0
mov dword [esp + 0x28], 0xf
mov dword [esp + 0xac], 0xffffffff
call fcn.00406de0
mov eax, 1
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x94]
pop ebx
call fcn.004407d1
add esp, 0xa0
ret 0xc
cmp dword [esp + 0x28], 0x10
jb 0x434b8a
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004618bc
add esp, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xf
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14], 0
mov dword [esp + 0xac], 0xffffffff
call fcn.00406de0
xor eax, eax
jmp 0x434b4f
Function at 0x44221f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x492d58
call fcn.00442d74
mov edi, 0x94
mov eax, edi
call fcn.004412b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x485300]
mov ecx, dword [esi + 0x10]
mov dword [0x4c7f94], ecx
mov eax, dword [esi + 4]
mov dword [0x4c7fa0], eax
mov edx, dword [esi + 8]
mov dword [0x4c7fa4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4c7f98], esi
cmp ecx, 2
je 0x44227f
or esi, 0x8000
mov dword [0x4c7f98], esi
shl eax, 8
add eax, edx
mov dword [0x4c7f9c], eax
xor esi, esi
push esi
mov edi, dword [0x485244]
call edi
cmp word [eax], 0x5a4d
jne 0x4422ba
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4422ba
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4422d2
cmp eax, 0x20b
je 0x4422bf
mov dword [ebp - 0x1c], esi
jmp 0x4422e6
cmp dword [ecx + 0x84], 0xe
jbe 0x4422ba
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4422e0
cmp dword [ecx + 0x74], 0xe
jbe 0x4422ba
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00447c4f
pop ecx
test eax, eax
jne 0x4422fa
push 0x1c
call fcn.004421fb
pop ecx
call fcn.00443f55
test eax, eax
jne 0x44230b
push 0x10
call fcn.004421fb
pop ecx
call fcn.00448fe0
mov dword [ebp - 4], esi
call fcn.00448de2
test eax, eax
jge 0x442324
push 0x1b
call fcn.004421d6
pop ecx
call dword [0x485108]
mov dword [0x4c9634], eax
call fcn.00448cc0
mov dword [0x4c7f84], eax
call fcn.00448c1e
test eax, eax
jge 0x44234a
push 8
call fcn.004421d6
pop ecx
call fcn.004489eb
test eax, eax
jge 0x44235b
push 9
call fcn.004421d6
pop ecx
push 1
call fcn.00442bd9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x442371
push eax
call fcn.004421d6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x485104]
call fcn.0044898e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x442392
movzx eax, word [ebp - 0x40]
jmp 0x442395
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0045c31c
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4423b3
push edi
call fcn.00442d06
call fcn.00442d28
jmp 0x4423e5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00442daf
ret
Function at 0x446b4a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x446b78
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x446b7f
cmp ebx, dword [eax + 4]
jae 0x446b7f
xor eax, eax
jmp 0x446d6f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x446b90
xor eax, eax
inc eax
jmp 0x446d6e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x446ba6
cmp ecx, edx
jae 0x446ceb
cmp dword [eax + 4], 0
je 0x446baf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x446b97
cmp dword [ebp + 8], 0
je 0x446bd1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x446ceb
cmp eax, esi
jae 0x446ceb
mov eax, dword [0x4c8180]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x446bf6
cmp dword [esi*4 + 0x4c8188], edi
je 0x446cef
inc esi
cmp esi, eax
jl 0x446be4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x485100]
test eax, eax
je 0x446d6b
cmp dword [ebp - 8], 0x1000000
jne 0x446d6b
test byte [ebp - 0xc], 0xcc
je 0x446c74
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x446d6b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x446d6b
cmp word [eax + 0x18], 0x10b
jne 0x446d6b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x446d6b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x446c74
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x446c74
test byte [ecx + 0x27], 0x80
jne 0x446ceb
push 1
push 0x4c81c8
call dword [0x485310]
test eax, eax
jne 0x446b88
mov ecx, dword [0x4c8180]
test ecx, ecx
mov edx, ecx
jle 0x446ca8
lea eax, [ecx*4 + 0x4c8184]
cmp dword [eax], edi
je 0x446ca8
dec edx
sub eax, 4
test edx, edx
jg 0x446c9c
test edx, edx
jne 0x446cd9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x446cb5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x446ccd
lea eax, [edx*4 + 0x4c8188]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x446cbb
cmp ecx, 0x10
jge 0x446cd9
inc ecx
mov dword [0x4c8180], ecx
push 0
push 0x4c81c8
call dword [0x485310]
jmp 0x446b88
xor eax, eax
jmp 0x446d6e
test esi, esi
jle 0x446b88
mov ebx, dword [0x485310]
push 1
push 0x4c81c8
call ebx
test eax, eax
jne 0x446b88
cmp dword [esi*4 + 0x4c8188], edi
je 0x446d45
mov eax, dword [0x4c8180]
lea esi, [eax - 1]
test esi, esi
jl 0x446d33
cmp dword [esi*4 + 0x4c8188], edi
je 0x446d2f
dec esi
jns 0x446d23
test esi, esi
jge 0x446d43
cmp eax, 0x10
jge 0x446d3e
inc eax
mov dword [0x4c8180], eax
lea esi, [eax - 1]
jmp 0x446d45
je 0x446d5d
xor ecx, ecx
test esi, esi
jl 0x446d5d
lea eax, [ecx*4 + 0x4c8188]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x446d4b
push 0
push 0x4c81c8
call ebx
jmp 0x446b88
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460270
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x460310
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x4602c2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4bad80]
xor eax, edx
inc esi
cmp esi, edi
jl 0x4602a3
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x4602eb
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4bad80]
xor eax, edx
inc esi
cmp esi, edi
jl 0x4602ce
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x40143f
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x828
push ebx
push esi
push edi
sub eax, eax
mov word [ebp - reloc.comctl32.dll_PropertySheetA], ax
push 0x400
xor edi, edi
lea eax, [ebp - 0x828]
push eax
push edi
pop ebx
push edi
pop esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x828]
push edi
push 0x8000000
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
pop edi
cmp edi, 0xffffffff
je 0x4014e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
pop ebx
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.00401720
push eax
pop esi
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4014c8
cmp dword [ebp - 0x20], ebx
je 0x4014d9
push esi
pop ecx
call fcn.00401790
xor esi, esi
sub ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, esi
call fcn.00401271
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401213
mov edi, dword [ebp - 0xc]
push reloc.winmm.dll_joyGetDevCapsW
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
add eax, 0x18
push 0x3000
add eax, ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push eax
pop ebx
mov dword [ebp - 8], ebx
or ebx, ebx
je 0x401650
push reloc.winmm.dll_joyGetDevCapsW
push edi
pop edx
push ebx
pop ecx
jmp section..htext
push edi
pop ecx
call fcn.00401790
mov ecx, esi
call fcn.00401790
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
mov ecx, 0x16dc2296
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x585331aa
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402044
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42f040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x489550]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4020b4
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.00402bc8
lea ecx, [esp + 0x1c]
call fcn.00401e74
cmp eax, dword [esp + 0x10]
je 0x4020cb
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403484
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x402084
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040833e
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403e0f
push eax
call fcn.00404088
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403484
jmp 0x4020b6
Function at 0x419180
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418e22

Function at 0x41918b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418fb1

Function at 0x419585
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409270
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004164e5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4195c7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419723
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004235a0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x489148]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a755
mov ecx, dword [esi*4 + 0x489148]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41971c
cmp eax, dword [edi + ecx + 0x24]
jne 0x41971c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41971c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a755
add esp, 0x14
test edx, edx
jl 0x41971c
jg 0x419692
test eax, eax
jb 0x41971c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41971c
jl 0x4196ac
cmp dword [ebp - 0x1008], eax
ja 0x41971c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4196ca
test ebx, ebx
je 0x419703
cmp ecx, edi
jae 0x419703
mov al, byte [ecx]
cmp al, 0xd
jne 0x4196e4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4196f0
cmp byte [ecx + 1], 0xa
jne 0x4196f0
inc ecx
jmp 0x4196f0
movzx eax, al
movsx eax, byte [eax + 0x42f300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4196ca
cmp edx, ebx
jne 0x4196ca
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419721
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040833e
leave
ret