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

Disassembly:
jmp 0x411f5d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x412080
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.Soviet_aristo_baristo
mov ebp, 0x558118
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x58
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x55
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xd0
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0xc0
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xd1
push ebx
push ebp
call fcn.00403490
add esp, 0x44
push eax
call fcn.004013b6
xor byte [esi + edi], 0x26
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xa8
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xbf
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x4b
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0xab
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 4
add esp, 0x40
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x35
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xc
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x96
add esp, 0x24
inc esi
cmp esi, dword [esp + 0x18]
jb 0x411f7b
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x402946
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x412674
sub esp, 0x20
mov eax, dword [0x555cf0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add ebx, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4126f3
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401e2e
push str.Hardline
push 0x558200
call fcn.00402d60
push eax
call fcn.00406082
lea eax, [esp + 0x20]
push 0x36c
push eax
call fcn.00402cc5
add esp, 0x14
cmp eax, dword [esp + 0x38]
je 0x41270d
lea ecx, [esp + 0x14]
add ebx, 4
call fcn.00402982
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4126a5
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403030
add esp, 0x20
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402982
jmp 0x4126f5
Function at 0x49062c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dac
mov eax, dword [0x555cf0]
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.00405dda
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49066e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4907ca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f2e
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 + 0x5597b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403247
mov ecx, dword [esi*4 + 0x5597b8]
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 0x4907c3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4907c3
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 0x4907c3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403247
add esp, 0x14
test edx, edx
jl 0x4907c3
jg 0x490739
test eax, eax
jb 0x4907c3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4907c3
jl 0x490753
cmp dword [ebp - 0x1008], eax
ja 0x4907c3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x490771
test ebx, ebx
je 0x4907aa
cmp ecx, edi
jae 0x4907aa
mov al, byte [ecx]
cmp al, 0xd
jne 0x49078b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x490797
cmp byte [ecx + 1], 0xa
jne 0x490797
inc ecx
jmp 0x490797
movzx eax, al
movsx eax, byte [eax + 0x556010]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x490771
cmp edx, ebx
jne 0x490771
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4907c8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403030
leave
ret
Function at 0x490f09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x5597b8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x490f49
cmp byte [ebx], 0xa
jne 0x490f49
or byte [eax + edi + 0x28], 4
jmp 0x490f4e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49104c
mov al, byte [edx]
cmp al, 0x1a
je 0x49102e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x490f7d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x490fa2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x490fac
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x490f5f
jmp 0x49104c
push 0
lea eax, [ebp - 0xc]
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 0x491029
cmp dword [ebp - 0xc], 0
je 0x491029
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5597b8]
test byte [eax + edi + 0x28], 0x48
je 0x491003
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x490fee
mov byte [esi], dl
jmp 0x490fff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5597b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49104c
cmp byte [ebp - 1], 0xa
jne 0x491012
cmp esi, ebx
jne 0x491012
mov byte [esi], 0xa
jmp 0x49104b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49104c
mov byte [esi], 0xd
jmp 0x49104b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5597b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x491048
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49104c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4910a8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5597b8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4910eb
cmp word [esi], dx
jne 0x4910eb
or byte [edi + eax + 0x28], 4
jmp 0x4910f0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x491243
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x491223
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x491132
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x491168
cmp eax, edx
jae 0x491174
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49110a
jmp 0x491243
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49121f
cmp dword [ebp - 0x14], 0
je 0x49121f
mov eax, dword [ebx*4 + 0x5597b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4911f7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4911c0
mov word [esi], cx
jmp 0x4911f3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5597b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5597b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5597b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x491243
pop ebx
cmp word [ebp - 4], bx
jne 0x491208
cmp esi, dword [ebp + 0xc]
jne 0x491208
mov word [esi], bx
jmp 0x491240
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
cmp word [ebp - 4], bx
je 0x491243
push 0xd
jmp 0x49123c
mov ecx, dword [ebx*4 + 0x5597b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49123a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491243
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x497940
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x555cf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49798b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00497e02
test al, al
jne 0x497985
sub edx, 2
cmp edx, edi
jne 0x49796b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4979ad
lea eax, [edi + 2]
cmp edx, eax
je 0x4979ad
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00497539
add esp, 0x10
jmp 0x497aa7
push esi
lea ecx, [ebp - 0x255]
call fcn.00497e02
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4979f0
push dword [ebp - 0x25c]
jmp 0x49799d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x497a2d
cmp word [ebp - 0x226], 0
je 0x497a4e
cmp word [ebp - 0x226], ax
jne 0x497a2d
cmp word [ebp - 0x224], 0
je 0x497a4e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00497539
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x497a9a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x497a07
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x497a82
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x497aa7
push 0x496f21
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054b1
add esp, 0x10
jmp 0x497a77
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403030
leave
ret
Function at 0x454a68
Capabilities:
Encode data using xor

Disassembly:
enter 0x40, 0
sar ebx, 2
push edi
push ecx
cld
mov eax, 0x30303030
mov ecx, 0xb
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0x30
mov eax, 0
mov ecx, 4
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
push ebx
mov ecx, ebx
mov ebx, dword [esi + ecx*4 - 4]
sar ebx, 0x1f
lea edi, [ebp - 0x40]
clc
pushfd
lodsd eax, dword [esi]
xor eax, ebx
popfd
sbb eax, ebx
pushfd
stosd dword es:[edi], eax
loop 0x454aa6
add esp, 4
lea edi, [ebp - 0xc]
mov ecx, dword [esp]
lea esi, [ebp + ecx*4 - 0x44]
cmp dword [esi], 0
jne 0x454acb
sub esi, 4
loop 0x454abd
or ecx, ecx
je 0x454b0d
push ebx
mov ebx, 0x3b9aca00
mov dword [esp + 4], ecx
push esi
push ecx
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0xc]
sub edx, edx
mov eax, dword [esi]
div ebx
mov dword [esi], eax
sub esi, 4
loop 0x454ae9
call fcn.0045486c
sub edi, 0x12
dec dword [esp]
jne 0x454adf
mov edx, dword [ebp - 0x40]
call fcn.0045486c
add esp, 8
pop ebx
add esp, 4
pop ecx
mov bl, ch
movzx ecx, cl
pop edi
lea esi, [ebp - 3]
jmp 0x454b68

Function at 0x4558f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x44
mov edi, esp
sub eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edi, [esp]
mov eax, dword [esi + ecx*4 - 4]
cdq
mov dword [esp + 0x40], edx
clc
lodsd eax, dword [esi]
pushfd
xor eax, edx
popfd
sbb eax, edx
stosd dword es:[edi], eax
loop 0x455917
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea edi, [esp + 0x10]
mov eax, dword [esi + ecx*4 - 4]
cdq
xor dword [esp + 0x40], edx
clc
lodsd eax, dword [esi]
pushfd
xor eax, edx
popfd
sbb eax, edx
stosd dword es:[edi], eax
loop 0x455935
mov cl, byte [ebp + 0xc]
mov ch, byte [ebp + 0x14]
lea esi, [esp]
lea edi, [esp + 0x10]
lea ebx, [esp + 0x20]
cmp cl, ch
jae 0x455958
xchg ch, cl
xchg edi, esi
push ebx
push esi
push ebx
push edi
push ecx
mov edi, dword [edi]
or edi, edi
je 0x455982
lodsd eax, dword [esi]
or eax, eax
je 0x45597b
mul edi
add dword [ebx], eax
adc dword [ebx + 4], edx
jae 0x45597b
adc dword [ebx + 8], 0
jae 0x45597b
adc dword [ebx + 0xc], 0
add ebx, 4
dec cl
jne 0x455963
pop eax
mov cl, al
pop edi
pop ebx
pop esi
add edi, 4
add ebx, 4
dec ch
jne 0x455959
pop ebx
mov ecx, dword [ebp + 0x1c]
lea esi, [esp + 0x20]
mov edi, dword [ebp + 0x18]
mov edx, dword [esp + 0x40]
clc
lodsd eax, dword [esi]
pushfd
xor eax, edx
popfd
sbb eax, edx
stosd dword es:[edi], eax
loop 0x4559a2
add esp, 0x44
pop ebx
pop edi
pop esi
leave
ret 0x18
Function at 0x4579d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0xec4c60
cmp edx, dword [eax]
je 0x4579f3
add eax, 8
inc ecx
cmp eax, 0xec4cf0
jl 0x4579e4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0xec4c60]
jne 0x457b21
mov eax, dword [0xec501c]
cmp eax, 1
je 0x457afb
test eax, eax
jne 0x457a24
cmp dword [0xec4bb0], 1
je 0x457afb
cmp edx, 0xfc
je 0x457b21
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x457a5b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00458090
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00458200
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x457a9e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00458200
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45a458
push edi
call fcn.004595a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00458090
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004580a0
lea eax, [ebp - 0xa0]
push 0x45a438
push eax
call fcn.004580a0
push dword [esi + 0xec4c64]
lea eax, [ebp - 0xa0]
push eax
call fcn.004580a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00459511
add esp, 0x2c
pop edi
jmp 0x457b21
lea eax, [ebp + 8]
lea esi, [esi + 0xec4c64]
push 0
push eax
push dword [esi]
call fcn.00458200
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401415
Capabilities:
Encode data using xor

Disassembly:
jmp 0x413cd0
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x413e57
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [eax]
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x85
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x58
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x7a
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x19
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x69
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x35
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xa5
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x55
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x92
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xdb
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xad
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xf1
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x32
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x21
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x64
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x71
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x5e
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x35
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xd6
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xda
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x96
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe7
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x6d
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x98
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xad
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xed
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xd7
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xb4
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xba
inc edi
cmp edi, ebx
jb 0x413cf0
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x4038a0
Capabilities:
Terminate process

Disassembly:
jmp 0x452c69
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x452c7a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405e2f
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4039d6
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a83f2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a8403
pop esi
ret
push ebx
push edi
push esi
call fcn.004a82d9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00404318
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a842b
push ebx
push esi
push edi
call fcn.00405bff
add esp, 0xc
push 0
call fcn.00406839
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x405cd1
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e83
mov eax, dword [0x4db034]
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.004063ed
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49ecaa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49ee06
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040655f
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 + 0x4dec90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004034c2
mov ecx, dword [esi*4 + 0x4dec90]
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 0x49edff
cmp eax, dword [edi + ecx + 0x24]
jne 0x49edff
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 0x49edff
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004034c2
add esp, 0x14
test edx, edx
jl 0x49edff
jg 0x49ed75
test eax, eax
jb 0x49edff
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49edff
jl 0x49ed8f
cmp dword [ebp - 0x1008], eax
ja 0x49edff
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49edad
test ebx, ebx
je 0x49ede6
cmp ecx, edi
jae 0x49ede6
mov al, byte [ecx]
cmp al, 0xd
jne 0x49edc7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49edd3
cmp byte [ecx + 1], 0xa
jne 0x49edd3
inc ecx
jmp 0x49edd3
movzx eax, al
movsx eax, byte [eax + 0x4db360]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49edad
cmp edx, ebx
jne 0x49edad
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49ee04
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403288
leave
ret
Function at 0x49f545
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4dec90]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49f585
cmp byte [ebx], 0xa
jne 0x49f585
or byte [eax + edi + 0x28], 4
jmp 0x49f58a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49f688
mov al, byte [edx]
cmp al, 0x1a
je 0x49f66a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49f5b9
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49f5de
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49f5e8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x49f59b
jmp 0x49f688
push 0
lea eax, [ebp - 0xc]
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 0x49f665
cmp dword [ebp - 0xc], 0
je 0x49f665
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4dec90]
test byte [eax + edi + 0x28], 0x48
je 0x49f63f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49f62a
mov byte [esi], dl
jmp 0x49f63b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4dec90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49f688
cmp byte [ebp - 1], 0xa
jne 0x49f64e
cmp esi, ebx
jne 0x49f64e
mov byte [esi], 0xa
jmp 0x49f687
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004019c4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49f688
mov byte [esi], 0xd
jmp 0x49f687
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4dec90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49f684
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49f688
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret