joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404873
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4048b2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4048b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4048b2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4048b2
cmp dword [ecx + 0x74], 0xe
jbe 0x4048b2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407836
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00422f00
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.00410cfb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x407878
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4079d4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422e50
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 + 0x430090]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00410f0b
mov ecx, dword [esi*4 + 0x430090]
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 0x4079cd
cmp eax, dword [edi + ecx + 0x24]
jne 0x4079cd
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 0x4079cd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00410f0b
add esp, 0x14
test edx, edx
jl 0x4079cd
jg 0x407943
test eax, eax
jb 0x4079cd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4079cd
jl 0x40795d
cmp dword [ebp - 0x1008], eax
ja 0x4079cd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40797b
test ebx, ebx
je 0x4079b4
cmp ecx, edi
jae 0x4079b4
mov al, byte [ecx]
cmp al, 0xd
jne 0x407995
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4079a1
cmp byte [ecx + 1], 0xa
jne 0x4079a1
inc ecx
jmp 0x4079a1
movzx eax, al
movsx eax, byte [eax + 0x42f200]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40797b
cmp edx, ebx
jne 0x40797b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4079d2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403f99
leave
ret
Function at 0x4115b0
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 + 0x430090]
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 0x4115f0
cmp byte [ebx], 0xa
jne 0x4115f0
or byte [eax + edi + 0x28], 4
jmp 0x4115f5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4116f3
mov al, byte [edx]
cmp al, 0x1a
je 0x4116d5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x411624
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x411649
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x411653
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 0x411606
jmp 0x4116f3
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 0x4116d0
cmp dword [ebp - 0xc], 0
je 0x4116d0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x430090]
test byte [eax + edi + 0x28], 0x48
je 0x4116aa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411695
mov byte [esi], dl
jmp 0x4116a6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x430090]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4116f3
cmp byte [ebp - 1], 0xa
jne 0x4116b9
cmp esi, ebx
jne 0x4116b9
mov byte [esi], 0xa
jmp 0x4116f2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00410f29
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4116f3
mov byte [esi], 0xd
jmp 0x4116f2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x430090]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4116ef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4116f3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4116fc
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 + 0x430090]
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 0x41173f
cmp word [esi], dx
jne 0x41173f
or byte [edi + eax + 0x28], 4
jmp 0x411744
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 0x411897
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 0x411877
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x411786
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4117bc
cmp eax, edx
jae 0x4117c8
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 0x41175e
jmp 0x411897
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 0x411873
cmp dword [ebp - 0x14], 0
je 0x411873
mov eax, dword [ebx*4 + 0x430090]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41184b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x411814
mov word [esi], cx
jmp 0x411847
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x430090]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x430090]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x430090]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x411897
pop ebx
cmp word [ebp - 4], bx
jne 0x41185c
cmp esi, dword [ebp + 0xc]
jne 0x41185c
mov word [esi], bx
jmp 0x411894
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00410f29
add esp, 0x10
cmp word [ebp - 4], bx
je 0x411897
push 0xd
jmp 0x411890
mov ecx, dword [ebx*4 + 0x430090]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41188e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411897
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 0x412d7f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426b88
push 0x426b80
push str.FlsAlloc
push 0x1e
call fcn.00412bec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412db3
push dword [ebp + 8]
mov ecx, esi
call dword [0x425170]
call esi
jmp 0x412db9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412dfd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426b98
push 0x426b90
push str.FlsGetValue
push 0x20
call fcn.00412bec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412e34
push dword [ebp + 8]
mov ecx, esi
call dword [0x425170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x416975
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004167e6
Function at 0x417e89
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 0x417f26
push ebx
push esi
call fcn.00417e52
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.00417d9b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x417ed3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417f25
push edi
push eax
call fcn.004121b2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x417ef3
call fcn.00412178
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417f24
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417d9b
add esp, 0x20
test eax, eax
jne 0x417f12
push edi
call fcn.00412178
jmp 0x417f1a
push ebx
call fcn.00412178
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 0x417f29
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x417f3a
pop esi
ret
push ebx
push edi
push esi
call fcn.00417e52
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004121b2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x417f62
push ebx
push esi
push edi
call fcn.00405ee0
add esp, 0xc
push 0
call fcn.00412178
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4186ae
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004181d5
Function at 0x420af5
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]
push dword [ebp + 0xc]
push ebx
call fcn.00420a71
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x420c6d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x420c6d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x420c1c
jg 0x420b4e
test eax, eax
je 0x420c12
push 1
push 0x1000
call fcn.0041211b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x420b74
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x420c09
push 0x8000
push ebx
call fcn.0040e91b
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x420ba0
jg 0x420b9b
cmp ecx, 0x1000
jb 0x420ba0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00414261
add esp, 0x10
cmp eax, 0xffffffff
je 0x420be5
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 0x420b9b
jl 0x420bcc
test ecx, ecx
jne 0x420b8d
push dword [ebp - 0xc]
push ebx
call fcn.0040e91b
push esi
call fcn.00412178
add esp, 0xc
xor edi, edi
jmp 0x420c7e
cmp byte [edi + 0x24], 0
je 0x420bfc
cmp dword [edi + 0x20], 5
jne 0x420bfc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x420c07
mov edi, dword [edi + 0x18]
jmp 0x420c09
xor edi, edi
push esi
call fcn.00412178
pop ecx
jmp 0x420c7e
test ecx, ecx
jg 0x420bde
jl 0x420c1c
test eax, eax
jae 0x420bde
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00410f29
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x420c3f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x420bde
jmp 0x420c76
push ebx
call fcn.00418ab4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x420bde
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x420c7e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x420c7b
mov edi, dword [edi + 0x18]
jmp 0x420c7e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00410f29
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x422cc0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword [ecx]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test eax, eax
jle 0x4012c7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
add edx, eax
mov eax, dword [edi]
mov bl, byte [edx]
add eax, esi
xor byte [eax], bl
mov eax, dword [ecx]
inc esi
add edx, 4
cmp esi, eax
jl 0x4012b5
inc dword [ebp - 4]
add edi, 4
cmp dword [ebp - 4], 4
jl 0x4012a7
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40132b
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
push 4
sub ecx, eax
sub esi, eax
pop edi
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x401340
pop edi
pop esi
ret 0xc

Function at 0x4014e6
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jbe 0x40150d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x401500
pop esi
pop edi
ret 0x10
Function at 0x401c56
Capabilities:
Encode data using base64

Disassembly:
push 0x5c
mov eax, 0x41ab9a
call fcn.0040aba5
mov eax, dword [ebp + 8]
push 0x10
xor ebx, ebx
mov dword [ebp - 0x68], ebx
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [ebp - 0x60], eax
movsb byte es:[edi], byte [esi]
call fcn.00401a3e
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x68], 1
cmp dword [ebp + 0x10], ebx
je 0x401da0
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
dec dword [ebp + 0x10]
mov byte [ebp + esi - 0x58], al
mov bl, byte [ebp - 0x57]
inc esi
inc edi
cmp esi, 3
jne 0x401d05
mov al, byte [ebp - 0x58]
shr al, 2
mov byte [ebp - 0x5c], al
mov al, byte [ebp - 0x58]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp - 0x56]
mov byte [ebp - 0x5b], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x5a], al
mov al, byte [ebp - 0x56]
and al, 0x3f
mov byte [ebp - 0x59], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x5c]
mov al, byte [ebp + eax - 0x54]
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x64], al
push dword [ebp - 0x64]
push 1
call fcn.00401abb
inc esi
cmp esi, 4
jl 0x401ce4
xor esi, esi
cmp dword [ebp + 0x10], 0
jne 0x401c9a
xor edi, edi
cmp esi, edi
je 0x401da0
cmp esi, 3
jge 0x401d31
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x58]
push edi
push eax
call fcn.0040a4e0
mov bl, byte [ebp - 0x57]
add esp, 0xc
mov al, byte [ebp - 0x58]
mov cl, al
shr cl, 2
mov byte [ebp - 0x5c], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x5b], al
mov al, byte [ebp - 0x56]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x5a], bl
and al, 0x3f
lea ebx, [esi + 1]
cmp ebx, edi
mov byte [ebp - 0x59], al
jle 0x401d88
movzx eax, byte [ebp + edi - 0x5c]
mov al, byte [ebp + eax - 0x54]
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 0x64], al
push dword [ebp - 0x64]
push 1
call fcn.00401abb
inc edi
cmp edi, ebx
jl 0x401d6a
push 3
pop edi
cmp esi, edi
jge 0x401da0
sub edi, esi
mov ecx, dword [ebp - 0x60]
push 0x3d
push 1
call fcn.00401abb
dec edi
jne 0x401d91
mov eax, dword [ebp - 0x60]
call fcn.0040abef
ret 0xc
Function at 0x401fa7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x54
mov eax, 0x41ac2e
call fcn.0040aba5
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp + 0x20]
xor esi, esi
add eax, 0x64
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.00409e46
mov eax, dword [ebp + 0x20]
add eax, 0x64
push eax
call fcn.00409e46
mov ecx, dword [ebp + 0x20]
add ecx, 0x64
push ecx
push ebx
push eax
mov dword [ebp - 0x50], eax
call fcn.0040a4e0
mov eax, dword [ebp + 0x10]
add esp, 0x14
cmp dword [ebp + 0x24], 0x10
jae 0x401fff
lea eax, [ebp + 0x10]
push dword [ebp + 0x20]
push eax
push dword [ebp - 0x50]
call fcn.00409f60
mov edx, dword [ebp + 0x20]
add esp, 0xc
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push eax
add edx, 0xf
lea eax, [ebp - 0x40]
push eax
shr edx, 4
lea eax, [ebp - 0x30]
push eax
shl edx, 4
push edx
push dword [ebp - 0x50]
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], bl
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], bl
mov byte [ebp - 0x3b], bl
mov byte [ebp - 0x3a], bl
mov byte [ebp - 0x39], bl
mov byte [ebp - 0x38], bl
mov byte [ebp - 0x37], bl
mov byte [ebp - 0x36], bl
mov byte [ebp - 0x35], bl
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x21], 0x35
mov byte [ebp - 0x16], 0x45
mov byte [ebp - 0x2e], 0x36
mov byte [ebp - 0x17], 0x31
mov byte [ebp - 0x24], 0x39
mov byte [ebp - 0x2f], 0x43
mov byte [ebp - 0x1b], 0x37
mov byte [ebp - 0x2b], 0x36
mov byte [ebp - 0x14], 0x37
mov byte [ebp - 0x1c], 0x32
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x2a], 0x32
mov byte [ebp - 0x25], 0x45
mov byte [ebp - 0x30], 0x33
mov byte [ebp - 0x1d], 0x32
mov byte [ebp - 0x2c], 0x46
mov byte [ebp - 0x23], 0x39
mov byte [ebp - 0x27], 0x41
mov byte [ebp - 0x15], 0x44
mov byte [ebp - 0x2d], 0x41
mov byte [ebp - 0x26], 0x45
mov byte [ebp - 0x28], 0x38
mov byte [ebp - 0x22], 0x35
mov byte [ebp - 0x29], 0x43
mov byte [ebp - 0x1a], 0x35
mov byte [ebp - 0x18], 0x39
mov byte [ebp - 0x1e], 0x33
mov byte [ebp - 0x20], 0x33
mov byte [ebp - 0x1f], 0x31
mov byte [ebp - 0x12], bl
call fcn.004017ea
push dword [ebp - 0x54]
mov edi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
push eax
push edi
mov dword [ebp - 0x50], eax
call fcn.00401c56
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x54], esp
push edi
mov dword [ebp - 0x60], esi
call fcn.00401c0d
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x4c]
push eax
call fcn.00401dcd
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00401b09
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.004018a2
push dword [ebp - 0x50]
call fcn.0040a2c5
pop ecx
push ebx
push esi
lea ecx, [ebp + 0xc]
call fcn.004018a2
mov eax, edi
call fcn.0040abef
ret 0x20
Function at 0x403969
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x4221e4]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4039b0
xor al, al
mov ecx, dword [ebp + 0xa8]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ab2d
add ebp, 0xac
leave
ret
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4039d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x403999
lea eax, [ebp - 0x5c]
push str.egui.exe
push eax
call fcn.0040b0c5
pop ecx
pop ecx
test eax, eax
je 0x4039f8
lea eax, [ebp - 0x5c]
push str.ekrn.exe
push eax
call fcn.0040b0c5
pop ecx
pop ecx
test eax, eax
jne 0x4039fa
mov bl, 1
lea eax, [ebp - 0x80]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x4039c1

Function at 0x403d29
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0c
mov eax, dword [0x4221e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x108]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403df8
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x508]
push ebx
push eax
call fcn.0040a4e0
mov esi, 0x800
push esi
lea eax, [ebp - 0xd08]
push ebx
push eax
call fcn.0040a4e0
add esp, 0x18
push edi
lea eax, [ebp - 0x508]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403df6
lea eax, [ebp - 0xd0c]
push 0x41c640
push eax
call fcn.00409d13
lea ecx, [ebp - 0x108]
push ecx
push dword [eax]
lea eax, [ebp - 0xd08]
push esi
push eax
call fcn.0040b550
mov ecx, dword [ebp - 0xd0c]
add esp, 0x18
add ecx, 0xfffffff0
call fcn.004022b2
push ebx
push ebx
lea eax, [ebp - 0xd08]
push eax
lea eax, [ebp - 0x508]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040ab2d
leave
ret
Function at 0x403ff7
Capabilities:
Parse credit card information

Disassembly:
push 0x2c
mov eax, 0x41abe0
call fcn.0040aba5
mov ecx, dword [ebp + 8]
and dword [ebp - 0x38], 0
mov dword [ebp - 0x28], ecx
mov esi, str.0123456789ABCDEF
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
movsb byte es:[edi], byte [esi]
call fcn.00401a3e
xor edi, edi
mov dword [ebp - 0x38], ebx
cmp dword [ebp + 0x20], edi
jbe 0x4040f1
push edi
lea ecx, [ebp + 0xc]
call fcn.0040175c
mov bl, byte [eax]
mov byte [ebp - 0x2c], bl
cmp bl, 0x25
je 0x4040a5
cmp bl, 0x24
je 0x4040a5
cmp bl, 0x26
je 0x4040a5
cmp bl, 0x2b
je 0x4040a5
cmp bl, 0x2c
je 0x4040a5
cmp bl, 0x2f
je 0x4040a5
cmp bl, 0x3a
je 0x4040a5
cmp bl, 0x5b
je 0x4040a5
cmp bl, 0x5d
je 0x4040a5
cmp bl, 0x5c
je 0x4040a5
cmp bl, 0x3b
je 0x4040a5
cmp bl, 0x3d
je 0x4040a5
cmp bl, 0x3f
je 0x4040a5
cmp bl, 0x40
je 0x4040a5
cmp bl, 0x23
je 0x4040a5
mov al, bl
sub al, 0x20
cmp al, 0x5e
ja 0x4040a5
mov ecx, dword [ebp - 0x28]
cmp bl, 0x20
jne 0x4040a0
push 0x2b
jmp 0x4040dd
push dword [ebp - 0x2c]
jmp 0x4040dd
mov ecx, dword [ebp - 0x28]
push 0x25
push 1
call fcn.00401abb
mov ecx, dword [ebp - 0x28]
movsx esi, bl
mov eax, esi
sar eax, 4
mov al, byte [ebp + eax - 0x24]
mov byte [ebp - 0x34], al
push dword [ebp - 0x34]
push 1
call fcn.00401abb
mov ecx, dword [ebp - 0x28]
and esi, 0xf
mov al, byte [ebp + esi - 0x24]
mov byte [ebp - 0x30], al
push dword [ebp - 0x30]
push 1
call fcn.00401abb
inc edi
cmp edi, dword [ebp + 0x20]
jb 0x404033
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.004018a2
mov eax, dword [ebp - 0x28]
call fcn.0040abef
ret