joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a7fd4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x14]
sub esp, 0x14
cmp eax, dword [esi]
push ebx
jae 0x5a811f
mov eax, dword [edi + 0x14]
cmp eax, dword [edi]
jae 0x5a811f
call fcn.00543891
mov ebx, dword [ebp + 0x10]
test ebx, ebx
mov dword [ebp - 0x14], eax
jle 0x5a804b
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, ecx
shr eax, 8
push eax
mov eax, ecx
lea edx, [ebp - 4]
shr eax, 0x10
push edx
mov dword [ebp - 0x10], ecx
call fcn.004cd56c
xor eax, eax
mov ah, byte [ebp - 0xd]
xor ecx, ecx
mov ch, byte [ebp - 0xd]
xor eax, dword [ebp - 4]
and eax, 0xffff7fff
xor eax, ecx
mov ecx, dword [edi + 0x18]
mov word [ecx], ax
mov word [ebp - 4], ax
mov eax, esi
call fcn.0054d8be
mov eax, edi
call fcn.0054d8be
dec ebx
jne 0x5a8000
call fcn.00543891
xor ebx, ebx
mov ecx, eax
inc ebx
sub ecx, dword [ebp - 0x14]
je 0x5a8071
xor edx, edx
mov eax, 0x186a0
div ecx
cmp eax, ebx
jle 0x5a806c
mov dword [ebp - 8], eax
jmp 0x5a8078
mov dword [ebp - 8], ebx
jmp 0x5a8078
mov dword [ebp - 8], 0x186a0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x5a8094
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x5a8128
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 0x10], ebx
jle 0x5a8117
cmp dword [ebp + 0x10], 0
jle 0x5a80f1
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, ecx
shr eax, 8
push eax
mov eax, ecx
lea edx, [ebp - 4]
shr eax, 0x10
push edx
mov dword [ebp - 0x14], ecx
call fcn.004cd56c
xor eax, eax
mov ah, byte [ebp - 0x11]
xor ecx, ecx
mov ch, byte [ebp - 0x11]
xor eax, dword [ebp - 4]
and eax, 0xffff7fff
xor eax, ecx
mov ecx, dword [edi + 0x18]
mov word [ecx], ax
mov word [ebp - 4], ax
mov eax, esi
call fcn.0054d8be
mov eax, edi
call fcn.0054d8be
dec ebx
jne 0x5a80a5
inc ebx
mov eax, dword [ebp - 0xc]
dec dword [ebp - 0xc]
test eax, eax
jne 0x5a810c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x5a808a
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x14]
jl 0x5a809c
mov eax, dword [ebp + 8]
and dword [eax], 0
jmp 0x5a8128
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ebx
leave
ret 0x10
Function at 0x5aad1b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x14]
sub esp, 0x14
cmp eax, dword [esi]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
jae 0x5aaee8
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx]
jae 0x5aaee8
call fcn.00543891
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x5aadcf
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
mov di, word [eax]
mov word [ebp - 0xc], di
mov ecx, dword [ebp - 0xc]
mov dx, di
shr dx, 7
shr ecx, 0xc
and cl, 7
or cl, dl
and dl, 7
mov ax, di
shr ax, 2
or dl, al
and al, 7
push edx
mov dl, byte [ebp - 0xc]
shl dl, 3
or al, dl
lea edx, [ebp + 0x10]
push edx
call fcn.004cd56c
xor ecx, ecx
mov ax, di
sar ax, 0xf
mov ch, al
mov ax, di
sar ax, 0xf
xor edx, edx
mov dh, al
xor ecx, dword [ebp + 0x10]
and ecx, 0xffff7fff
xor ecx, edx
mov ax, cx
mov ecx, dword [ebx + 0x18]
mov word [ecx], ax
mov word [ebp + 0x10], ax
mov eax, esi
call fcn.0054d8be
mov eax, ebx
call fcn.0054d8be
dec dword [ebp - 8]
jne 0x5aad52
call fcn.00543891
xor edi, edi
mov ecx, eax
inc edi
sub ecx, dword [ebp - 0x14]
je 0x5aadf5
xor edx, edx
mov eax, 0x186a0
div ecx
cmp eax, edi
jle 0x5aadf0
mov dword [ebp - 4], eax
jmp 0x5aadfc
mov dword [ebp - 4], edi
jmp 0x5aadfc
mov dword [ebp - 4], 0x186a0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp - 8], eax
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x5aae18
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x5aaef1
cmp dword [ebp + 0x18], edi
mov dword [ebp - 0xc], edi
jle 0x5aaee0
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x5aaeb2
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x18]
mov di, word [eax]
mov word [ebp - 0x10], di
mov ecx, dword [ebp - 0x10]
mov dx, di
shr dx, 7
shr ecx, 0xc
and cl, 7
or cl, dl
and dl, 7
mov ax, di
shr ax, 2
or dl, al
and al, 7
push edx
mov dl, byte [ebp - 0x10]
shl dl, 3
or al, dl
lea edx, [ebp + 0x10]
push edx
call fcn.004cd56c
xor ecx, ecx
mov ax, di
sar ax, 0xf
mov ch, al
mov ax, di
sar ax, 0xf
xor edx, edx
mov dh, al
xor ecx, dword [ebp + 0x10]
and ecx, 0xffff7fff
xor ecx, edx
mov ax, cx
mov ecx, dword [ebx + 0x18]
mov word [ecx], ax
mov word [ebp + 0x10], ax
mov eax, esi
call fcn.0054d8be
mov eax, ebx
call fcn.0054d8be
dec dword [ebp - 0x14]
jne 0x5aae32
xor edi, edi
inc edi
mov eax, dword [ebp - 8]
dec dword [ebp - 8]
test eax, eax
jne 0x5aaed1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x5aae0e
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x18]
jl 0x5aae24
mov eax, dword [ebp + 8]
and dword [eax], 0
jmp 0x5aaef1
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop edi
pop ebx
leave
ret 0x14
Function at 0x5fc14a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6a10c0]
jne 0x5fc154
repz ret
jmp fcn.00608dc3
Function at 0x5fc4db
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x5fc518
cmp dword [ebp + 0x14], edi
je 0x5fc518
cmp ecx, edi
jne 0x5fc51f
call fcn.005fd88b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.005fb8e9
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x5fc533
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x5fc554
cmp ebx, 0xffffffff
je 0x5fc543
push ebx
push edi
push ecx
call fcn.005fc0d0
add esp, 0xc
cmp esi, edi
je 0x5fc500
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5fc500
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x5fc570
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x5fc577
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x5fc668
test word [esi + 0xc], 0x10c
je 0x5fc5cb
mov eax, dword [esi + 4]
test eax, eax
je 0x5fc5cb
jl 0x5fc6c9
cmp ebx, eax
mov edi, ebx
jb 0x5fc59c
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x5fc670
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005fa5b4
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x5fc660
cmp ebx, dword [ebp - 0xc]
jb 0x5fc638
cmp dword [ebp - 0xc], 0
je 0x5fc5f5
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x5fc5ea
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x5fc5f1
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x5fc600
mov eax, SysReAllocString
cmp ebx, eax
ja 0x5fc600
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x5fc69c
push eax
push dword [ebp - 8]
push esi
call fcn.0060902b
pop ecx
push eax
call fcn.006098ec
add esp, 0xc
test eax, eax
je 0x5fc6db
cmp eax, 0xffffffff
je 0x5fc6c9
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x5fc660
push esi
call fcn.0060920b
cmp eax, 0xffffffff
pop ecx
je 0x5fc6cd
cmp dword [ebp - 4], 0
je 0x5fc69c
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x5fc57f
mov eax, dword [ebp + 0x14]
jmp 0x5fc51a
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x5fc687
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.005fc0d0
add esp, 0xc
call fcn.005fd88b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5fc510
cmp dword [ebp + 0xc], 0xffffffff
je 0x5fc6b2
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.005fc0d0
add esp, 0xc
call fcn.005fd88b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5fc510
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x5fc51a
or dword [esi + 0xc], 0x10
jmp 0x5fc6cd
Function at 0x604e92
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x6a1b28]
je 0x604ead
inc edi
cmp edi, 0x17
jb 0x604e9e
cmp edi, 0x17
jae 0x60502d
push ebp
push 3
call fcn.0060e5aa
cmp eax, 1
pop ecx
je 0x604ff9
push 3
call fcn.0060e5aa
test eax, eax
pop ecx
jne 0x604ee1
cmp dword [0x6a10b0], 1
je 0x604ff9
cmp ebx, 0xfc
je 0x60502c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x6a8090
push ebp
call fcn.00600879
add esp, 0xc
test eax, eax
je 0x604f17
push esi
push esi
push esi
push esi
push esi
call fcn.005fb7cb
add esp, 0x14
push 0x104
mov esi, 0x6a80a9
push esi
push 0
mov byte [0x6a81ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x604f5b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00600879
add esp, 0xc
test eax, eax
je 0x604f5b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.005fb7cb
add esp, 0x14
push esi
call fcn.006010d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x604fa0
push esi
call fcn.006010d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x6a83a4
push 0x62fab4
sub ecx, eax
push ecx
push eax
call fcn.006007c6
add esp, 0x14
test eax, eax
je 0x604fa0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.005fb7cb
add esp, 0x14
jmp 0x604fa2
xor esi, esi
push 0x62fab0
push ebx
push ebp
call fcn.00600706
add esp, 0xc
test eax, eax
je 0x604fc2
push esi
push esi
push esi
push esi
push esi
call fcn.005fb7cb
add esp, 0x14
push dword [edi*8 + 0x6a1b2c]
push ebx
push ebp
call fcn.00600706
add esp, 0xc
test eax, eax
je 0x604fe4
push esi
push esi
push esi
push esi
push esi
call fcn.005fb7cb
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0060e3ed
add esp, 0xc
jmp 0x60502c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x60502c
cmp ebp, 0xffffffff
je 0x60502c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x6a1b2c]
push dword [esi]
call fcn.006010d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x60e3ed
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005ff847
xor ebx, ebx
cmp dword [0x6a8830], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x60e4c3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x60e5a3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x60e5a3
push eax
call fcn.005ff7d9
mov dword [esp], 0x62fca0
push edi
mov dword [0x6a8830], eax
call esi
push eax
call fcn.005ff7d9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6a8834], eax
call esi
push eax
call fcn.005ff7d9
mov dword [0x6a8838], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005ff4fa
test eax, eax
pop ecx
pop ecx
je 0x60e491
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005fb7cb
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x60e4c3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.005ff7d9
cmp eax, ebx
pop ecx
mov dword [0x6a8840], eax
je 0x60e4c3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005ff7d9
pop ecx
mov dword [0x6a883c], eax
mov eax, dword [0x6a883c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x60e548
cmp dword [0x6a8840], ecx
je 0x60e548
push eax
call fcn.005ff850
push dword [0x6a8840]
mov esi, eax
call fcn.005ff850
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x60e548
cmp edi, ebx
je 0x60e548
call esi
cmp eax, ebx
je 0x60e515
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x60e515
test byte [ebp - 0x18], 1
jne 0x60e548
lea eax, [ebp - 0x10]
push eax
call fcn.005ff531
test eax, eax
pop ecx
je 0x60e530
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005fb7cb
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x60e53f
or dword [ebp + 0x10], 0x200000
jmp 0x60e583
or dword [ebp + 0x10], 0x40000
jmp 0x60e583
mov eax, dword [0x6a8834]
cmp eax, dword [ebp - 8]
je 0x60e583
push eax
call fcn.005ff850
cmp eax, ebx
pop ecx
je 0x60e583
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x60e583
mov eax, dword [0x6a8838]
cmp eax, dword [ebp - 8]
je 0x60e583
push eax
call fcn.005ff850
cmp eax, ebx
pop ecx
je 0x60e583
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6a8830]
call fcn.005ff850
cmp eax, ebx
pop ecx
je 0x60e5a3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x60e5a5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405273
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00405423
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x405371
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x405314
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x405357
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40532b
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x405346
test al, 0x40
je 0x40533d
mov ecx, dword [edi + 0x20]
jmp 0x405344
test al, 0x80
je 0x405357
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x405357
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4052e3
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x405dc0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x405e29
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00405b40
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x4060e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x406172
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x406164
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40615c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x406125
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x407640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x407661
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x4076bb
inc edi
cmp edi, esi
jl 0x407655
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x4076f0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x4076aa
cmp byte [eax], bl
je 0x4076c5
cmp byte [eax + 1], bl
je 0x4076ce
cmp byte [eax + 2], bl
je 0x4076d8
cmp byte [eax + 3], bl
je 0x4076e4
add eax, 4
cmp eax, edi
jb 0x407681
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x409270
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x423ca0
push 1
push 0
push 0x423cb0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40929e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x423c90
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x4092d2
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8

Function at 0x4096b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
call edi
test eax, eax
jne 0x4096db
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x4096eb
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp word [esp + 8], 0
je 0x4096fc
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
call edi
test eax, eax
jne 0x40971a
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x40972a
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp word [esp + 8], 1
je 0x40973b
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x10]
push 2
push edx
push esi
call edi
test eax, eax
jne 0x409759
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x409769
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov eax, dword [esp + 8]
pop edi
and eax, 0xffff
pop esi
pop ecx
ret 4
Function at 0x409780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 2
push 0
mov dword [esp + 0x20], ecx
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
je 0x409930
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4098f9
push 0xe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x409929
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409929
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x409929
xor eax, eax
mov ax, word [edi + 4]
shl eax, 5
add eax, 0x210
push eax
call fcn.0040d986
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x409929
xor ecx, ecx
lea edx, [esi + 0x108]
mov cx, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
mov dword [esi + 0x20c], ecx
call ebx
lea eax, [esi + 4]
push 0x45ef8c
push eax
call ebx
mov eax, dword [esi + 0x20c]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x4098f9
mov ecx, esi
add edi, 0x12
mov dword [esp + 0x20], edi
lea ebx, [ecx + 0x21c]
mov eax, dword [esp + 0x20]
xor edx, edx
push 3
mov dx, word [eax]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40990e
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409915
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebx + 4], eax
call fcn.0040d986
add esp, 4
mov dword [ebx], eax
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebx]
mov ecx, esi
mov esi, eax
mov edx, ecx
lea eax, [ebx - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.00409640
test eax, eax
je 0x40991c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0x20c]
add edi, 0xe
add ebx, 0x20
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jb 0x40985c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x10]
push edx
jmp 0x409921
mov eax, dword [esp + 0x10]
push eax
jmp 0x409921
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040d89d
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x409940
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x409970
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x40997f
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x4099a2
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x4099b1
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x4099d4
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8