joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a6b2
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4496f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1f4
xor edi, edi
push edi
call dword [0x45c0a8]
push eax
call dword [0x45c02c]
push edi
push edi
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], edi
call dword [0x45c018]
mov esi, eax
shl eax, 2
push eax
push 0x40
call dword [0x45bff0]
mov ebx, eax
push ebx
push esi
call dword [0x45c018]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x41a78e
mov esi, 0x200
push esi
lea eax, [ebp - 0x204]
push eax
movzx eax, word [ebx + edi*4]
push 2
push eax
call dword [0x45bf10]
cmp dword [ebp - 0x20c], 0
lea eax, [ebp - 0x204]
push eax
je 0x41a759
push dword [ebp - 0x208]
push 0x440ef8
push dword [ebp - 0x208]
call dword [0x45be90]
add esp, 0x10
jmp 0x41a76d
push 0x43fffc
push dword [ebp - 0x208]
call dword [0x45be90]
add esp, 0xc
inc dword [ebp - 0x20c]
push esi
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00423be0
add esp, 0xc
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x41a718
test ebx, ebx
je 0x41a799
push ebx
call dword [0x45c0f8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x208]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423c5a
leave
ret

Function at 0x41a8b8
Capabilities:
Reference http user-agent string

Disassembly:
push 0x14c
mov eax, 0x437ff7
call fcn.00426268
mov esi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x154], 0x128
call dword [0x45c090]
mov edi, eax
lea eax, [ebp - 0x154]
push eax
push edi
call dword [0x45bef0]
test eax, eax
je 0x41a971
jmp 0x41a95f
push 0x440f10
push esi
call dword [0x45c048]
lea eax, [ebp - 0x130]
push eax
push esi
call dword [0x45c048]
push 0x440050
push esi
call dword [0x45c048]
push dword [ebp - 0x14c]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x155]
call fcn.0041e393
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x41a93b
mov eax, dword [eax]
push eax
push esi
call dword [0x45c048]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405a94
push 0x44004c
push esi
call dword [0x45c048]
lea eax, [ebp - 0x154]
push eax
push edi
call dword [0x45bfd4]
test eax, eax
jne 0x41a8f4
push edi
call dword [0x45bed4]
call fcn.004262eb
ret 4
Function at 0x41a980
Capabilities:
Reference http user-agent string

Disassembly:
push 0x60
mov eax, 0x43802f
call fcn.0042629e
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [0x439188]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [0x439184]
lea eax, [ebp - 0x50]
push eax
push str.Select__From_Win32_OperatingSystem
xor edi, edi
inc edi
push edi
push ebx
push 0x442008
mov dword [ebp - 0x50], ebx
call dword [0x439180]
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x44]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x440f80
mov dword [ebp - 0x44], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x41ab02
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x44]
call dword [0x43918c]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x4c]
push edx
push ebx
push 0x20
push 0x440f38
push 0x440f2c
mov dword [ebp - 0x4c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp eax, ebx
jl 0x41ab02
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x41aaf8
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x48]
push edx
push edi
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x54], ebx
je 0x41aaf8
lea eax, [ebp - 0x64]
push eax
call dword [0x43916c]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x64]
push edx
push ebx
push 0x440f14
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x10]
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x5c]
call fcn.0041a7f2
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [0x45c0e0]
call dword [0x45c0a8]
push 0x104
push ebx
push eax
call dword [0x45c02c]
mov esi, eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x1e]
push eax
push 0x440df8
push esi
call dword [0x45be90]
add esp, 0x20
lea eax, [ebp - 0x64]
push eax
call dword [0x439168]
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00405a94
mov eax, esi
jmp 0x41ab07
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00405a94
mov eax, 0x440eac
call fcn.004262fa
ret
Function at 0x41ad5d
Capabilities:
Reference http user-agent string

Disassembly:
push 0x84
mov eax, 0x43809c
call fcn.0042629e
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [0x439188]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [0x439184]
lea eax, [ebp - 0x7c]
push eax
push str.Select__From_Win32_OperatingSystem
xor edi, edi
inc edi
push edi
push ebx
push 0x442008
mov dword [ebp - 0x7c], ebx
call dword [0x439180]
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x70]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x44101c
mov dword [ebp - 0x70], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x41aecd
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x70]
call dword [0x43918c]
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x78]
push edx
push ebx
push 0x20
push 0x440fdc
push 0x440f2c
mov dword [ebp - 0x78], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp eax, ebx
jl 0x41aecd
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x41aec3
mov ecx, dword [eax]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x80]
push edx
push edi
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x74], ebx
je 0x41aec3
lea eax, [ebp - 0x90]
push eax
call dword [0x43916c]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x90]
push edx
push ebx
push 0x440fc4
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x10]
push dword [ebp - 0x88]
lea ecx, [ebp - 0x4c]
call fcn.0041abc0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x69]
mov byte [ebp - 4], 3
call fcn.0041e1d3
cmp dword [eax + 0x14], 0x10
jb 0x41ae92
mov esi, dword [eax]
jmp 0x41ae94
mov esi, eax
push ebx
push edi
lea ecx, [ebp - 0x68]
call fcn.00405a94
push ebx
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040a8d4
lea eax, [ebp - 0x90]
push eax
call dword [0x439168]
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.00405a94
mov eax, esi
jmp 0x41aed2
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.00405a94
mov eax, 0x440eac
call fcn.004262fa
ret
Function at 0x420950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x42095e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x420a19
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4415f0]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4415f0]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4415f0]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4415f0]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4415f0]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4415f0]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4415f0]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4415f0]
add edx, 8
sub edi, 8
dec esi
jne 0x42097c
pop ebx
test edi, edi
je 0x420a32
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4415f0]
inc edx
dec edi
jne 0x420a1d
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x420a38
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4415f0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4415f0]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x420c18
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4496f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [0x45bfd8]
test eax, eax
jne 0x420c5b
mov eax, 0x200
jmp 0x420de4
mov ecx, dword [ebp - 0x38]
xor eax, eax
push ebx
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x420c72
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x420c7b
or dword [ebp - 0x3c], 2
test cl, 4
je 0x420c84
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x420c8f
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x420c98
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x420ca5
or dword [ebp - 0x3c], 0x40000000
jmp 0x420cac
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x420cbf
or dword [ebp - 0x3c], 0x800000
push ebx
push esi
call dword [0x45c0bc]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x420d64
push ebx
push ebx
push ebx
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x45c004]
push ebx
push ebx
push 0x24
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x45c004]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x420d64
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x420d64
push ebx
push ebx
push eax
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x45c004]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x420d5d
cmp eax, 0x454e
je 0x420d5d
cmp eax, 0x454c
je 0x420d5d
cmp eax, 0x4550
jne 0x420d64
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x420d70
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x420d7c
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp edi, ebx
je 0x420db5
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00420b83
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.00420b83
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.00420b83
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x54]
cmp esi, ebx
pop ebx
je 0x420de2
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.00420ba7
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00423c5a
leave
ret
Function at 0x421a88
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x421ab5
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.00423be0
mov ecx, dword [ebp + 0xc]
mov eax, ecx
movzx edx, word [eax*8 + 0x4415a2]
mov dword [esi + 0x6af98], edx
movzx edx, word [eax*8 + 0x4415a0]
mov dword [esi + 0x6af9c], edx
movzx edx, word [eax*8 + 0x4415a4]
mov dword [esi + 0x6afa0], edx
movzx eax, word [eax*8 + 0x4415a6]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ecx, 2
jg 0x421b1b
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x421b27
cmp ecx, 8
jl 0x421b27
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x421b8e
cmp eax, 0xffffffff
je 0x421b8e
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x421b69
push esi
call fcn.00420074
pop ecx
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x421b71
jmp 0x421b9e
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x422150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x422358
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x4221ca
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x42220d
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x42220d
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x4221f4
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.0041ff30
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x42220d
mov ebx, eax
cmp ebx, 3
jb 0x4222d2
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0041fab5
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x42229f
cmp eax, 3
jb 0x42229f
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x42224d
jmp 0x4222f5
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x4222fb
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0041fab5
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x422337
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x422314
lea ecx, [eax + esi + 0x1af70]
jmp 0x422316
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00421fcd
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x42234a
push esi
call fcn.00420074
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x42217a
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x42236b
lea ecx, [eax + esi + 0x1af70]
jmp 0x42236d
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00421fcd
add esp, 0x10
pop esi
pop ebx
leave
ret
Function at 0x401450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.xnet2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov eax, dword [ebp + 0xc]
pop ebp
ret

Function at 0x405020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
call fcn.004051b0
push 0x409384
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405059
xor al, al
jmp 0x40519b
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405075
xor al, al
jmp 0x40519b
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405098
xor al, al
jmp 0x40519b
mov eax, dword [ebp - 4]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx], 0
jne 0x4050b8
xor al, al
jmp 0x40519b
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x405184
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x405178
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00405460
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x20]
cmp dword [edx + 4], 0
je 0x405178
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
call fcn.00405230
test eax, eax
jne 0x405141
mov al, 1
jmp 0x40519b
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x405167
push 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x40516e
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x20]
mov dword [edx], 0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40df8e
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x40dfa8
push dword [ebp + 8]
push 0x40df20
call sub.USER32.dll_EnumWindows
jmp 0x40dfdf
mov edi, dword [0x414250]
jmp 0x40dfdb
mov esi, dword [edi]
call sub.KERNEL32.DLL_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x40dfd9
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x414250
call fcn.00410940
add esp, 8
mov edi, esi
or edi, edi
jne 0x40dfb0
pop edi
pop esi
pop ebp
ret 4

Function at 0x40e140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
or esi, esi
je 0x40e218
mov dword [ebp - 0x40], esi
push esi
call sub.CRTDLL.dll_strlen
pop ecx
lea edi, [eax + esi - 1]
jmp 0x40e16a
dec edi
cmp edi, esi
jbe 0x40e173
cmp byte [edi], 0x5c
jne 0x40e169
cmp edi, esi
jbe 0x40e1a9
mov byte [edi], 0
push esi
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcpy
push 0x414266
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x240]
mov dword [ebp - 0x40], eax
mov byte [edi], 0x5c
jmp 0x40e1ad
and dword [ebp - 0x40], 0
mov eax, dword [ebp + 0x10]
or eax, eax
je 0x40e1bc
cmp byte [eax], 0
je 0x40e1bc
mov dword [ebp - 0x40], eax
xor edi, edi
inc edi
test byte [ebp + 0x14], 2
je 0x40e1c7
xor edi, edi
mov dword [ebp - GetWindowWord], 0x3c
mov dword [ebp - 0x38], reloc.user32.dll_GetWindowWord
mov dword [ebp - 0x20], edi
lea eax, str.Open
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov ebx, eax
or eax, eax
je 0x40e218
cmp dword [ebp - 4], 0
je 0x40e218
test byte [ebp + 0x14], 1
je 0x40e215
push 0xffffffffffffffff
push dword [ebp - 4]
call sub.KERNEL32.DLL_WaitForSingleObject
mov ebx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10