joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5465e0
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 + 0x5dbc38]
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 0x546620
cmp byte [ebx], 0xa
jne 0x546620
or byte [edi + eax + 0x28], 4
jmp 0x546625
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 0x546724
mov dl, byte [eax]
cmp dl, 0x1a
je 0x546707
inc eax
cmp dl, 0xd
je 0x546651
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x546677
cmp eax, ecx
jae 0x546685
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 0x546639
jmp 0x546724
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 0x546702
cmp dword [ebp - 0x10], 0
je 0x546702
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5dbc38]
test byte [eax + edi + 0x28], 0x48
je 0x5466dc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5466c7
mov byte [esi], dl
jmp 0x5466d8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5dbc38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x546724
cmp byte [ebp - 1], 0xa
jne 0x5466eb
cmp esi, ebx
jne 0x5466eb
mov byte [esi], 0xa
jmp 0x546723
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00547166
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x546724
mov byte [esi], 0xd
jmp 0x546723
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5dbc38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x546721
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x546724
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x54672d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5dbc38]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x546773
cmp word [ebx], dx
jne 0x546773
or byte [eax + edi + 0x28], 4
jmp 0x546778
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5468db
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5468bb
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5467b9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5467ef
cmp eax, edx
jae 0x5467fd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x546794
jmp 0x5468db
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5468b6
cmp dword [ebp - 0x18], 0
je 0x5468b6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5dbc38]
test byte [eax + edi + 0x28], 0x48
je 0x54688c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x546850
mov word [esi], cx
jmp 0x546887
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5dbc38]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5dbc38]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5dbc38]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5468db
pop eax
cmp word [ebp - 4], ax
jne 0x54689c
cmp esi, ebx
jne 0x54689c
mov word [esi], ax
jmp 0x5468d8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00547166
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5468db
push 0xd
pop eax
jmp 0x546897
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5dbc38]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5468d5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5468db
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x54b013
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 0x54b0b0
push ebx
push esi
call fcn.0054afdc
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.00549e71
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x54b05d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x54b0af
push edi
push eax
call fcn.0054506d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x54b07d
call fcn.00543e4b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x54b0ae
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00549e71
add esp, 0x20
test eax, eax
jne 0x54b09c
push edi
call fcn.00543e4b
jmp 0x54b0a4
push ebx
call fcn.00543e4b
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 0x54b0b3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x54b0c4
pop esi
ret
push ebx
push edi
push esi
call fcn.0054afdc
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0054506d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x54b0ec
push ebx
push esi
push edi
call fcn.005323e0
add esp, 0xc
push 0
call fcn.00543e4b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x54b4bc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0054b101

Function at 0x54dabd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00542c2f
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x54db2c
cmp esi, dword [ebp - 4]
je 0x54db27
cmp dword [ebp + 0xc], 0
je 0x54db27
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x54db04
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0054d60f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x54db2e
xor eax, eax
inc eax
jmp 0x54db2e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x54db93
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5ca1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00542c2f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00542c2f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x54dc0a
cmp word [ecx], dx
je 0x54dc0a
mov eax, dword [0x58fb4c]
push edi
dec eax
push eax
push 0x58fa38
call fcn.0054db32
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x54dc7d
cmp word [eax], dx
je 0x54dc7d
mov eax, dword [edi]
test eax, eax
je 0x54dc2e
cmp word [eax], dx
je 0x54dc2e
lea eax, [ebp - 0x10]
push eax
call fcn.0054d515
jmp 0x54dc37
lea eax, [ebp - 0x10]
push eax
call fcn.0054d5b0
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x54dca7
mov eax, dword [0x58fa34]
push dword [ebp - 0x14]
dec eax
push eax
push 0x58f728
call fcn.0054db32
add esp, 0xc
test al, al
je 0x54dca7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x54dc72
cmp word [eax], di
je 0x54dc72
lea eax, [ebp - 0x10]
push eax
call fcn.0054d515
pop ecx
jmp 0x54dca9
lea eax, [ebp - 0x10]
push eax
call fcn.0054d5b0
jmp 0x54dc6f
mov eax, dword [edi]
test eax, eax
je 0x54dc94
cmp word [eax], dx
je 0x54dc94
lea eax, [ebp - 0x10]
push eax
call fcn.0054d4ca
pop ecx
jmp 0x54dca7
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x54dd72
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0054d9b7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x54dd72
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x54dd72
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x54dd72
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x54dcff
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00544c99
test ebx, ebx
je 0x54dd6d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00544c99
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x54dd72
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x54dd72
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00551a51
add esp, 0x10
xor eax, eax
inc eax
jmp 0x54dd74
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052450f
leave
ret
Function at 0x55219f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0055211b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x55230e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x55230e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5522c3
jg 0x5521fb
test eax, eax
je 0x5522b9
push 1
push 0x1000
call fcn.0054310c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x55221e
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5522b0
push 0x8000
push ebx
call fcn.00540bf4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x552247
jg 0x552242
cmp ecx, 0x1000
jb 0x552247
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00543c2f
add esp, 0x10
cmp eax, 0xffffffff
je 0x55228c
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x552242
jl 0x552273
test ecx, ecx
jne 0x552234
push dword [ebp - 0xc]
push ebx
call fcn.00540bf4
push esi
call fcn.00543e4b
add esp, 0xc
xor ebx, ebx
jmp 0x55231c
cmp byte [edi + 0x24], 0
je 0x5522a3
cmp dword [edi + 0x20], 5
jne 0x5522a3
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5522ae
mov ebx, dword [edi + 0x18]
jmp 0x5522b0
xor ebx, ebx
push esi
call fcn.00543e4b
pop ecx
jmp 0x55231c
test ecx, ecx
jg 0x552285
jl 0x5522c3
test eax, eax
jae 0x552285
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00547166
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5522e3
cmp byte [edi + 0x1c], 0
je 0x552285
jmp 0x552314
push ebx
call fcn.0054ba8d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x552285
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x55231c
cmp byte [edi + 0x1c], 0
je 0x552319
mov ebx, dword [edi + 0x18]
jmp 0x55231c
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00547166
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x553440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x55346d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x55346d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100145fe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1001460d
pop dword [ebp - 0x40]
mov eax, 0x693d27ae
add eax, 0xa6c41e5f
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xa27887d2
add dword [ebp - 0x50], 0xabd9bd79
mov dword [ebp - 0x4c], 0x79b759f
sub dword [ebp - 0x4c], 0xd568295a
mov dword [ebp - 0x48], 0xe9361a57
sub dword [ebp - 0x48], 0x9ce9d629
mov dword [ebp - 0x44], 0x61a35330
add dword [ebp - 0x44], 0x9e5cacd0
lea eax, [ebp - 0x50]
push eax
mov eax, 0xa1416031
add eax, 0x6ec430db
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xf33e0c22
add dword [ebp - 0x50], 0x81345d34
mov dword [ebp - 0x4c], 0x1f06c6a9
sub dword [ebp - 0x4c], 0xdd9a6534
mov dword [ebp - 0x48], 0x1f3ebdb4
sub dword [ebp - 0x48], 0xbbcf5148
mov dword [ebp - 0x44], 0xa7ee1751
add dword [ebp - 0x44], 0x5811e8af
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x48aa37bb
add eax, 0xc75b5885
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x58dc4
push 0
call eax
mov ecx, 0xa31f6fee
add ecx, 0x5ce0c53f
mov edx, eax
mov esi, 0xd0475afb
add esi, 0x3fbf3905
add esi, dword [ebp - 0x40]
mov ebx, 0xc1f08611
add ebx, 0xa41db6e0
sub dword [ebp - 0xc], 0x9a13cda2
mov edi, dword [esi]
xor dword [ebp - 0x38], ebx
sub edi, ebx
sub dword [ebp - 0x24], 0x5554ddbb
mov dword [edx], edi
xor dword [ebp - 0x20], 0x5fb02284
add edx, 4
add esi, 0xc412ad65
sub esi, 0xc412ad61
loop 0x1001472f
add eax, 0x7003621a
sub eax, 0x70029a93
mov ebx, eax
add eax, 0x4239fe44
sub eax, 0x4239fe3f
mov ecx, 0xdc6ac7ff
sub ecx, 0xcc6ac7ff
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x402060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403230
push 0x402260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x4041c4], 0xffffffff
mov dword [0x4041c8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4041c0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4041bc]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x4041cc], ecx
call fcn.00402250
mov eax, dword [0x404174]
test eax, eax
jne 0x4020f1
push 0x402240
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402220
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x4041b8]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x4041b4]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4021ff
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x402165
cmp al, 0x22
jne 0x402157
cmp byte [esi], 0x22
jne 0x40216e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40217e
cmp al, 0x20
ja 0x40217e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40216e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40219f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4021a4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4021e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40216e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4021ff

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40b3b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
test eax, eax
jne 0x40b3ca
push edi
call fcn.0040b020
mov eax, dword [edi + 4]
add esp, 4
cmp eax, 1
jne 0x40b3e4
push dword [ebp + 0x10]
lea eax, [edi + 8]
push dword [ebp + 0xc]
push eax
call fcn.0040d910
add esp, 0xc
pop edi
pop ebp
ret
cmp eax, 2
jne 0x40b41d
push dword [edi]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0048ffbf
add esp, 0x10
cmp eax, dword [ebp + 0x10]
jae 0x40b41d
push edi
call fcn.0040afd0
push str.Disabled_writing_session_log_due_to_error_while_writing
push dword [edi + 0x18]
mov dword [edi + 4], 3
call fcn.00455ac0
add esp, 0xc
pop edi
pop ebp
ret

Function at 0x40d770
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e5814]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
mov cl, byte [edx + esi]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x40d7a2
movsx eax, cl
sub eax, 0x41
jmp 0x40d7e4
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x40d7b1
movsx eax, cl
sub eax, 0x47
jmp 0x40d7e4
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x40d7c0
movsx eax, cl
add eax, 4
jmp 0x40d7e4
cmp cl, 0x2b
jne 0x40d7cc
mov eax, 0x3e
jmp 0x40d7e4
cmp cl, 0x2f
jne 0x40d7d8
mov eax, 0x3f
jmp 0x40d7e4
cmp cl, 0x3d
jne 0x40d861
or eax, 0xffffffff
mov dword [ebp + edx*4 - 0x14], eax
inc edx
cmp edx, 4
jl 0x40d790
mov edx, dword [ebp - 0x14]
cmp edx, 0xffffffff
je 0x40d861
mov esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
je 0x40d861
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp ecx, 0xffffffff
jne 0x40d812
cmp eax, ecx
jne 0x40d861
lea ebx, [ecx + 2]
jmp 0x40d81d
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 2
shl edx, 6
and ecx, 0x3f
or edx, esi
and eax, 0x3f
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [edi], al
cmp ebx, 1
jbe 0x40d846
mov ecx, edx
shr ecx, 8
mov byte [edi + 1], cl
cmp ebx, 2
jbe 0x40d84e
mov byte [edi + 2], dl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046addd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046addd
mov esp, ebp
pop ebp
ret

Function at 0x40e5b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
test esi, esi
je 0x40e5e5
push ebx
mov ebx, dword [ebp + 0xc]
sub ebx, eax
nop word [eax + eax]
movzx edx, byte [ebx + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or edi, edx
sub esi, 1
jne 0x40e5d0
pop ebx
mov eax, pe_nt_image_headers32
sub eax, edi
pop edi
shr eax, 8
pop esi
pop ebp
ret
Function at 0x412d70
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0x34
push dword [ebp + 8]
call fcn.00403120
add esp, 8
cmp byte [eax], 0
je 0x412d8e
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0040ddc0
push 0x35
push dword [ebp + 8]
call fcn.004030c0
add esp, 8
test eax, eax
je 0x412da5
pop ebp
jmp fcn.00461fe0
xor eax, eax
pop ebp
ret

Function at 0x413070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00454a40
add esp, 8
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.004675b0
Function at 0x426e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4e5814]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x40], edi
movups xmm0, xmmword [edi + 0x3c8]
movups xmmword [ebp - 0x34], xmm0
test ebx, ebx
jle 0x426f75
dec ebx
add edx, 3
shr ebx, 4
inc ebx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ebx
push esi
movzx ecx, byte [edx - 3]
lea esi, [edx - 1]
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 6]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
call fcn.00426df0
add esp, 8
xor edi, edi
mov edx, dword [ebp + edi - 0x34]
lea esi, [esi + 4]
mov ebx, dword [ebp + edi - 0x14]
mov ecx, edx
shr ecx, 0x18
mov eax, ebx
shr eax, 0x18
xor cl, al
mov eax, ebx
mov byte [esi - 6], cl
mov ecx, edx
shr ecx, 0x10
shr eax, 0x10
xor cl, al
mov eax, ebx
mov byte [esi - 5], cl
mov ecx, edx
shr eax, 8
xor dl, bl
shr ecx, 8
xor cl, al
mov byte [esi - 3], dl
mov eax, dword [ebp + edi - 0x24]
mov dword [ebp + edi - 0x34], eax
add edi, 4
mov byte [esi - 4], cl
cmp edi, 0x10
jl 0x426ef4
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
add edx, 0x10
sub dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], edx
jne 0x426e50
movups xmm0, xmmword [ebp - 0x34]
mov eax, edi
pop esi
pop edi
pop ebx
movups xmmword [eax + 0x3c8], xmm0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046addd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
movups xmmword [edi + 0x3c8], xmm0
pop edi
xor ecx, ebp
pop ebx
call fcn.0046addd
mov esp, ebp
pop ebp
ret