joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d9ef
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000da8c
push ebx
push esi
call fcn.1000d9b8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000d94c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000da39
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000da8b
push edi
push eax
call fcn.1000e9aa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000da59
call fcn.1000c494
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000da8a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000d94c
add esp, 0x20
test eax, eax
jne 0x1000da78
push edi
call fcn.1000c494
jmp 0x1000da80
push ebx
call fcn.1000c494
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000dcf9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015678
push 0x10015670
push str.FlsAlloc
push 0x1f
call fcn.1000dc15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000dd2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014158]
call esi
jmp 0x1000dd33
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000dd77
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015688
push 0x10015680
push str.FlsGetValue
push 0x21
call fcn.1000dc15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ddae
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000ddb6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015690
push 0x10015688
push str.FlsSetValue
push 0x22
call fcn.1000dc15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ddf0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10014158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10013480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100134ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100134ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x405960
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3ab8d95
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x3ad6124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x3ad732c
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.004251b0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x3ad6cb4
push eax
call fcn.004251b0
mov esi, dword [0x3ad733c]
xor ebx, ebx
mov edi, dword [0x3ad7340]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x3ad9ac8], bl
mov eax, ebx
mov ecx, 0x3ad732c
cmovae ecx, dword [0x3ad732c]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x3ad9bd8], al
inc ebx
cmp ebx, 0x100
jl 0x4059e0
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x3ad9ac8]
movzx eax, byte [esi + 0x3ad9bd8]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x405a34
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x3ad9ac8]
mov byte [esi + 0x3ad9ac8], al
inc esi
mov byte [edi + 0x3ad9ac8], dl
cmp esi, 0x100
jl 0x405a10
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00405640
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x405a89
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405a7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405adf
push edx
push ecx
call fcn.0042af96
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x405acb
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405ac1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405adf
push edx
push ecx
call fcn.0042af96
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042fca5
int3
Function at 0x408c70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x3ad6124]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call dword [0x3ac110c]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x408e59
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x408e59
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.0042c5b0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call dword [0x3ac1094]
test eax, eax
je 0x408e59
push 4
push 0x1000
push 4
push 0
call dword [0x3ac10f0]
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call dword [0x3ac1080]
test eax, eax
je 0x408e59
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x3acdbb0
push dword [esp + 0x30]
call dword [0x3ac1090]
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x408d7c
push 0x3acdbb4
push 0x3acdbcc
call dword [0x3ac10c8]
push eax
call dword [0x3ac1084]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call dword [0x3ac1110]
mov dword [esp + 0x14], eax
test eax, eax
je 0x408e59
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call dword [0x3ac1108]
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x408e13
mov dword [esp + 0xc], eax
call fcn.00408ab0
push eax
call dword [0x3ac10b8]
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [0x3ac1108]
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x408dc2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call dword [0x3ac1108]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call dword [0x3ac109c]
push dword [esp + 0x24]
call dword [0x3ac10cc]
push 0x8000
push 0
push esi
call dword [0x3ac10fc]
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0042a920
mov esp, ebp
pop ebp
ret
Function at 0x40da00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3ab99bb
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x3ad6124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00432a73
push eax
call fcn.0042f06c
add esp, 8
call fcn.0042f04b
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.0042f04b
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.0042f04b
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.00404fe0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40dab0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40dac6
push 0x40
push 0
push 0x3adbc98
sub esi, ecx
call fcn.0042c5b0
add esp, 0xc
mov dword [0x3adbc8c], 0
mov edx, esi
mov dword [0x3adbc88], 0
lea ecx, [ebp - 0x410]
mov dword [0x3adbc78], 0x67452301
mov dword [0x3adbc7c], 0xefcdab89
mov dword [0x3adbc80], 0x98badcfe
mov dword [0x3adbc84], 0x10325476
call fcn.004067a0
call fcn.00406860
mov ecx, 0x3ad9cd8
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40db60
sub ecx, edx
push ecx
push 0x3ad9cd8
lea ecx, [ebp - 0x42c]
call fcn.004251b0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x40dbbb
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dbb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc81
push edx
push ecx
call fcn.0042af96
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0x40dc7c
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.004251b0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x40dc5e
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc81
push edx
push ecx
call fcn.0042af96
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a920
mov esp, ebp
pop ebp
ret
call fcn.004256c0
call fcn.0042fca5
int3
Function at 0x424a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x3ad6124]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x424afa
cmp byte [esi + 0x3d], 0
je 0x424afa
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x424ae8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x424ab0
sub eax, 1
je 0x424ab4
sub eax, 2
jne 0x424ae8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a920
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x424ad1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00431e06
add esp, 0x10
cmp edi, eax
jne 0x424ae8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a920
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a920
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0042a920
mov esp, ebp
pop ebp
ret

Function at 0x425370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3abc5e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x3ad6124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x3acde58
call fcn.0042ad15
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004297ae
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x439ac1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439937
Function at 0x401560
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 1
push esi
lea eax, [ebp - 0x7c]
push ebx
add esp, 0xffffff80
mov dword [esp + 4], eax
mov dword [esp], str.browseui.dll
call dword [0x4061ec]
sub esp, 8
test eax, eax
jne 0x401598
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, eax
mov dword [esp + 4], 0
lea edi, [ebp - 0x74]
mov dword [esp + 8], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], str.browseui.dll
call dword [0x4061f0]
lea eax, [ebp - 0x70]
mov ebx, dword [0x4061f4]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.VarFileInfoTranslation
mov dword [esp], esi
call ebx
sub esp, 0x10
test eax, eax
jne 0x401640
mov edi, 1
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x70]
movzx edx, word [eax + 2]
mov dword [esp + 0xc], edx
movzx eax, word [eax]
lea edx, [ebp - 0x6c]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.StringFileInfo_04x_04xFileDescription
call dword [0x4061e0]
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x6c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], esi
call ebx
sub esp, 0x10
test eax, eax
je 0x401608
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], 0x4040a2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsstr]
test eax, eax
sete al
movzx eax, al
mov edi, eax
jmp 0x40160d
Function at 0x401f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401f68
cmp byte [esi + ebx - 1], 0xa
je 0x401f3c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x403158], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x4021e0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40226b
cmp ax, 9
je 0x402258
cmp ax, 0x20
je 0x402258
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x4022c0
cmp ax, 0x22
je 0x4022d0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40226b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x402210
test edi, 1
jne 0x402210
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x402258
cmp ax, 0x20
je 0x402258
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x4022e8
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x40222b
and dword [ebp - 0x54], 1
jne 0x402224
xor edi, 1
jmp 0x40222b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x402284

Function at 0x402300
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x40109e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x40
push ebx
push esi
jae 0x4010b3
push str.Len___sizeof_IMAGE_DOS_HEADER_
jmp 0x401246
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
je 0x4010c7
push str.SrcMz__e_magic___IMAGE_DOS_SIGNATURE
jmp 0x401246
mov esi, dword [eax + 0x3c]
lea ecx, [esi + 0xf8]
cmp dword [ebp + 0xc], ecx
jge 0x4010df
push str.Len___SrcMz__e_lfanew___long_sizeof_IMAGE_NT_HEADERS_
jmp 0x401246
add esi, eax
cmp dword [esi], 0x4550
je 0x4010f3
push str.SrcPeH__Signature___IMAGE_NT_SIGNATURE
jmp 0x401246
test byte [esi + 0x17], 0x20
jne 0x401241
cmp word [esi + 0x14], 0xe0
jne 0x401241
lea ebx, [esi + 0xf8]
push ebx
push esi
push dword [ebp + 0xc]
push eax
call fcn.00401014
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
jne 0x401130
push str.ImageSize__0
jmp 0x401246
push edi
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [ebp + 0x18]
test eax, eax
mov dword [edi], eax
je 0x401230
movzx ecx, word [esi + 6]
mov edx, dword [esi + 0x54]
test ecx, ecx
jle 0x40116e
add ebx, 0x14
mov esi, dword [ebx]
test esi, esi
je 0x401168
cmp esi, edx
jae 0x401168
mov edx, esi
add ebx, 0x28
dec ecx
jne 0x40115c
mov ebx, dword [sym.imp.MSVCRT.dll_memmove]
push edx
push dword [ebp + 8]
push eax
call ebx
mov eax, dword [edi]
mov esi, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi], eax
add eax, 0xf8
mov dword [ecx], eax
mov eax, dword [esi]
push dword [eax + 0x38]
push dword [eax + 0x54]
call fcn.00401000
mov edi, eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
add esp, 0x14
add edi, dword [eax]
mov eax, dword [esi]
mov dword [ebp + 0x1c], ecx
cmp word [eax + 6], cx
jbe 0x40123b
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, edx
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x4011d4
mov edi, dword [ebp + 0x18]
add edx, dword [edi]
mov edi, edx
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x40120d
mov eax, dword [ecx + 0x14]
push edx
add eax, dword [ebp + 8]
push eax
push edi
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0x10]
cmp ecx, eax
jae 0x401205
mov ecx, dword [esi]
push dword [ecx + 0x38]
push eax
jmp 0x401213
mov eax, dword [esi]
push dword [eax + 0x38]
push ecx
jmp 0x401213
push dword [eax + 0x38]
push dword [ecx + 8]
call fcn.00401000
add dword [ebp + 0xc], 0x28
pop ecx
add edi, eax
mov eax, dword [esi]
inc dword [ebp + 0x1c]
pop ecx
movzx ecx, word [eax + 6]
cmp dword [ebp + 0x1c], ecx
jl 0x4011bc
jmp 0x40123b
push str.Mem___NULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
pop eax
pop edi
jmp 0x40124e
push str.SrcPeH__FileHeader.Characteristics__IMAGE_FILE_DLL_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
pop ebx
pop ebp
ret