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

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
shr ecx, 1
jne 0x5d65ce37
mov eax, dword [eax]
not eax
mov dword [edx], eax
ret
push ebx
pcmpeqd mm7, mm7
mov ebx, ecx
lea esi, [esi]
movq mm0, qword [eax + ecx*8 - 8]
pxor mm0, mm7
movq qword [edx + ecx*8 - 8], mm0
loop 0x5d65ce40
jae 0x5d65ce59
mov eax, dword [eax + ebx*8]
not eax
mov dword [edx + ebx*8], eax
pop ebx
emms
ret

Function at 0x5d65e9b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
pcmpeqd mm7, mm7
lea eax, [edx + ecx*4]
and eax, 4
mov eax, dword [esp + 8]
movd mm0, dword [eax + ecx*4 - 4]
je 0x5d65e9d7
pxor mm0, mm7
movd dword [edx + ecx*4 - 4], mm0
dec ecx
je 0x5d65e9fd
add eax, 4
add edx, 4
dec ecx
je 0x5d65e9f2
sub ecx, 2
movq mm0, qword [eax + ecx*4]
pxor mm0, mm7
movq qword [edx + ecx*4], mm0
jg 0x5d65e9e0
jne 0x5d65e9fd
movd mm0, dword [eax - 4]
pxor mm0, mm7
movd dword [edx - 4], mm0
emms
ret
Function at 0x5d668200
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
test ecx, ecx
setne al
neg eax
mov dword [ebp - 0x10], eax
test edx, edx
jle 0x5d668252
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
lea ebx, [eax + edx*4]
mov dword [ebp - 0x20], ebx
lea esi, [esi]
nop
mov ebx, dword [eax]
mov edx, dword [esi]
add eax, 4
add esi, 4
mov ecx, dword [ebp - 0x10]
mov edi, ebx
xor edi, edx
and ecx, edi
xor ebx, ecx
xor edx, ecx
mov dword [eax - 4], ebx
mov dword [esi - 4], edx
cmp eax, dword [ebp - 0x20]
jne 0x5d668230
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5d66e2d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
cmp edx, 1
jbe 0x5d66e480
mov edi, edx
xor eax, eax
mov ecx, 0x20
lea esi, [esi]
xor eax, edi
sub ecx, 1
shr edi, 1
jne 0x5d66e2f8
shl edx, cl
cmp dword [ebp + 0x10], 1
mov dword [ebp - 0x1c], edx
je 0x5d66e3e0
xor eax, ecx
test al, 1
je 0x5d66e4c8
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [ebp - 0x20], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sym.msys_gmp_10.dll_I_gmpn_sqr
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
cmp dword [esi + eax*8 - 4], 1
lea edx, [eax + eax]
mov eax, 0x1f
sbb edx, 0
sub eax, ecx
mov edi, edx
mov dword [ebp - 0x20], eax
mov edx, ebx
mov ebx, edi
jmp 0x5d66e38f
sub dword [ebp - 0x20], 1
je 0x5d66e3d1
mov dword [esp + 8], ebx
lea edi, [ebx + ebx]
mov dword [esp + 4], esi
mov dword [esp], edx
mov dword [ebp + 0x18], edx
call sym.msys_gmp_10.dll_I_gmpn_sqr
mov edx, dword [ebp + 0x18]
cmp dword [edx + ebx*8 - 4], 1
mov ebx, edi
mov edi, esi
mov esi, edx
sbb ebx, 0
mov edx, edi
shl dword [ebp - 0x1c], 1
jns 0x5d66e360
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
add edi, ebx
mov dword [esp], edx
mov ebx, edi
mov edi, esi
mov dword [esp + 0xc], eax
mov dword [ebp + 0x18], edx
call sym.msys_gmp_10.dll_I_gmpn_mul
mov edx, dword [ebp + 0x18]
cmp eax, 1
sbb ebx, 0
sub dword [ebp - 0x20], 1
mov esi, edx
mov edx, edi
jne 0x5d66e366
add esp, 0x3c
mov edi, ebx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
test cl, 1
jne 0x5d66e4d8
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x18], ebx
mov ebx, esi
mul eax
cmp edx, 1
mov dword [esi], eax
mov eax, 0x1f
mov dword [esi + 4], edx
mov edx, 1
mov esi, dword [ebp + 0x18]
sbb edx, 0xffffffff
sub eax, ecx
mov dword [ebp - 0x20], eax
mov edi, edx
jmp 0x5d66e443
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym.msys_gmp_10.dll_I_gmpn_sqr
cmp dword [esi + edi*8 - 4], 1
lea eax, [edi + edi]
sbb eax, 0
mov edi, eax
mov eax, ebx
mov ebx, esi
mov esi, eax
shl dword [ebp - 0x1c], 1
jns 0x5d66e469
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call dword [0x5d69e0e4]
cmp eax, 1
mov dword [ebx + edi*4], eax
sbb edi, 0xffffffff
sub dword [ebp - 0x20], 1
jne 0x5d66e420
add esp, 0x3c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test edx, edx
jne 0x5d66e4a0
mov dword [esi], 1
mov edi, 1
add esp, 0x3c
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call dword [0x5d69e0a8]
mov edi, dword [ebp + 0x10]
add esp, 0x3c
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
ret
mov eax, esi
mov esi, ebx
mov ebx, eax
jmp 0x5d66e31a
mov eax, esi
mov esi, ebx
mov ebx, eax
jmp 0x5d66e3f1
Function at 0x5d671e20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
cmp cx, cx
je 0x5d671d13
inc eax
mov dword [ebp - 0x10], eax
jmp 0x5d671de3
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
jmp 0x5d671cdb
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
cmp bh, bh
je 0x5d671cb6
add eax, dword [ecx + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x5d671d7d
mov eax, dword [ecx + eax + 0x78]
mov dword [ebp - 0x28], eax
cmp al, al
je 0x5d671cd1
mov dword [ebp - 0x18], eax
mov ebx, 0
jmp 0x5d671deb
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x20]
cmp bl, bl
je 0x5d671cf1
imul eax, eax, 0
mov ecx, dword [ebp - 0x24]
cmp ax, ax
je 0x5d671ce6
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
cmp cl, cl
je 0x5d671cfe
add edx, dword [eax + ecx*4]
mov eax, edx
jmp 0x5d671ddd
ret
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x18]
cmp bl, bl
je 0x5d671d1d
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 4]
cmp bh, bh
je 0x5d671d2d
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x14]
cmp bx, bx
je 0x5d671d37
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
jmp 0x5d671dc6
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
cmp bx, bx
je 0x5d671d92
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x24]
cmp bl, bl
je 0x5d671db0
mov ebx, 0
and dword [ebp - 0x1c], ebx
jmp 0x5d671d4d
add eax, ebx
mov dword [ebp - 0x18], eax
cmp ah, ah
je 0x5d671d6a
mov eax, dword [ebp - 0x18]
mov ebx, 4
cmp dh, dh
je 0x5d671d74
mov word [ebp - 4], ax
mov eax, dword [ebp - 8]
jmp 0x5d671d42
inc eax
mov dword [ebp - 0xc], eax
jmp 0x5d671d4d
movzx eax, byte [eax]
add eax, dword [ebp - 0x1c]
cmp cx, cx
je 0x5d671d55
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
cmp bp, bp
je 0x5d671d60
mov ecx, dword [ebp - 0x10]
mov ax, word [eax + ecx*2]
jmp 0x5d671d89
cmp ecx, dword [eax + 0x18]
jae 0x5d671ddb
mov eax, dword [ebp - 0x18]
jmp 0x5d671cca
test eax, eax
je 0x5d671dcf
mov eax, dword [ebp - 0xc]
jmp 0x5d671d9a
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 8]
jne 0x5d671dd9
jmp 0x5d671da5
jmp 0x5d671df0
xor eax, eax
leave
jmp 0x5d671d2c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
jmp 0x5d671db9
and dword [ebp - 0x10], ebx
jmp 0x5d671de3
mov eax, dword [ebp - 0x10]
jmp 0x5d671cc1
mov dword [ebp - 0x24], ecx
mov ebx, 8
jmp 0x5d671e13
mov ecx, dword [ecx + 0x18]
add ecx, dword [eax + 0x3c]
cmp dl, dl
je 0x5d671dff
push ebx
pop eax
jmp 0x5d671d08
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
cmp sp, sp
je 0x5d671e25
mov eax, dword [eax]
mov eax, dword [eax]
cmp cx, cx
je 0x5d671e3b
sub esp, 0x28
mov eax, dword fs:[0x30]
cmp ah, ah
je 0x5d671e51
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp di, di
je 0x5d671e46
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 8]
cmp ax, ax
je 0x5d671e09
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dh, dh
je 0x5d671e1a
Function at 0x5d698fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ecx
shl ecx, 2
add esi, ecx
add ebx, ecx
neg eax
add ecx, dword [ebp + 8]
lea esi, [esi]
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [ecx + eax*4], edx
add eax, 1
jne 0x5d698fe0
pop ebx
pop esi
pop ebp
ret

Function at 0x5d699000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ecx
shl ecx, 2
add esi, ecx
add ebx, ecx
neg eax
add ecx, dword [ebp + 8]
lea esi, [esi]
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
not edx
mov dword [ecx + eax*4], edx
add eax, 1
jne 0x5d699020
pop ebx
pop esi
pop ebp
ret

Function at 0x5d69c6a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 4
mov eax, dword [ebp + 8]
mov edi, eax
mov edx, eax
add edi, 0x38c
lea esi, [esi]
lea esi, [esi]
mov ebx, dword [edx]
mov ecx, dword [edx + 4]
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
mov ecx, ebx
shr ecx, 1
xor ecx, dword [edx + 0x634]
mov esi, ecx
xor esi, 0x9908b0df
and ebx, 1
cmovne ecx, esi
add edx, 4
mov dword [edx - 4], ecx
cmp edi, edx
jne 0x5d69c6c0
mov edi, dword [ebp + 8]
lea ebx, [edi + 0x630]
nop
mov ecx, dword [eax + 0x38c]
mov edx, dword [eax + 0x390]
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
mov edx, ecx
shr edx, 1
xor edx, dword [eax]
mov esi, edx
xor esi, 0x9908b0df
and ecx, 1
cmovne edx, esi
add eax, 4
mov dword [eax + 0x388], edx
cmp ebx, eax
jne 0x5d69c700
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x9bc]
mov edx, eax
mov eax, dword [ebp + 8]
and edx, 0x80000000
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
and eax, 0x7fffffff
or edx, eax
mov eax, edx
shr eax, 1
xor eax, dword [edi + 0x630]
mov ecx, eax
xor ecx, 0x9908b0df
and edx, 1
cmovne eax, ecx
mov dword [edi + 0x9bc], eax
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5d69c790
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
mov eax, esi
and eax, 0x1f
shr esi, 5
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
je 0x5d69c820
mov edx, dword [edi + 0x9c0]
xor ebx, ebx
jmp 0x5d69c801
lea eax, [edi + edx*4]
add edx, 1
mov dword [edi + 0x9c0], edx
mov eax, dword [eax]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov eax, ecx
shl eax, 7
and eax, 0x9d2c5680
xor ecx, eax
mov eax, ecx
shl eax, 0xf
and eax, 0xefc60000
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
add ebx, 1
cmp esi, ebx
je 0x5d69c820
cmp edx, 0x26f
jle 0x5d69c7c0
mov dword [esp], edi
call sym.msys_gmp_10.dll_I_gmp_mt_recalc_buffer
mov eax, edi
mov edx, 1
jmp 0x5d69c7c6
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5d69c885
mov eax, dword [edi + 0x9c0]
cmp eax, 0x26f
jg 0x5d69c890
lea edx, [eax + 1]
lea eax, [edi + eax*4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx ecx, byte [ebp - 0x10]
mov dword [edi + 0x9c0], edx
mov edx, dword [eax]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor edx, eax
mov eax, 0xffffffff
mov ebx, edx
shl eax, cl
shr ebx, 0x12
not eax
xor ebx, edx
and ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + esi*4], ebx
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call sym.msys_gmp_10.dll_I_gmp_mt_recalc_buffer
mov edx, 1
jmp 0x5d69c83d
Function at 0x4012c6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4542b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00431170
add esp, 0xc
xor esi, esi
call fcn.00428e21
cdq
mov ecx, 0xd6
idiv ecx
sub dl, 5
mov byte [ebp + esi - 0x110], dl
inc esi
cmp esi, 0x19
jl 0x4012fa
xor eax, eax
lea edi, [ebp - 0x268]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401381
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401381
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00428582
leave
ret

Function at 0x401536
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4542b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00431170
add esp, 0xc
xor esi, esi
call fcn.00428e21
cdq
mov ecx, 0xd8
idiv ecx
add dl, 0x5b
mov byte [ebp + esi - 0x110], dl
inc esi
cmp esi, 0x19
jl 0x40156a
xor eax, eax
lea edi, [ebp - 0x268]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4015f1
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4015f1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00428582
leave
ret
Function at 0x4016cb
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, 0x2000
push esi
call fcn.00428a41
mov edi, eax
mov dword [esp + 0x14], esi
mov dword [esp], str.0b67baff2feb3065d22340
call fcn.00428d27
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push str.fca940c71aeb5f61
push 0x80000004
call ebx
mov ebp, 0xea
jmp 0x40173c
add esi, 0x1000
push esi
push edi
call fcn.00428f21
pop ecx
pop ecx
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push str.3281418b90d7f795e7cbc2b764abc68
push 0x80000004
mov dword [esp + 0x28], esi
call ebx
cmp eax, ebp
je 0x401711
test eax, eax
jne 0x40174c
push esi
push str.11b72f5fb64106e556774f332b03_d
jmp 0x401752
push eax
push str.3ce96145694be9c5371999bd__d_
call fcn.00428d27
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40175f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 4
pop ecx
push 5
pop edx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 7
mov dword [ebp - 0xc], 8
mov dword [ebp - 8], 9
mov dword [ebp - 4], 0xa
xor eax, eax
push esi
add eax, ecx
cmp eax, 0x14
jl 0x4017ac
mov esi, edx
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec esi
jne 0x4017b5
pop esi
leave
ret

Function at 0x401884
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x370]
sub esp, 0x3f0
mov eax, dword [0x4542b0]
xor eax, ebp
mov dword [ebp + 0x36c], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x3e7
push esi
lea eax, [ebp - 0x7b]
push ebx
push eax
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x7c], bl
call fcn.00431170
push str.f17bb4d5839721c1a951e85536
call fcn.00428d27
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
cmp edi, 0xffffffff
jne 0x4018f4
push str.bc5fd48f290d11c3ecef4
call fcn.00428d27
pop ecx
pop ecx
jmp 0x401964
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40190f
push str.f08b6509c19ff71188f
jmp 0x401957
mov eax, dword [ebp - 0x80]
lea ecx, [eax - 1]
cmp ecx, 0x3e6
ja 0x401940
push eax
push ebx
push str.63df12a97a19813568fb
mov byte [ebp + eax - 0x7c], bl
call fcn.00428d27
lea eax, [ebp - 0x7c]
push eax
push str.6829412de15f83f78407f82b3b251e
call fcn.00428d27
add esp, 0x14
jmp 0x40195d
cmp eax, ebx
jne 0x401952
push ebx
push str.8dfb9575f685e4c3f
call fcn.00428d27
pop ecx
jmp 0x40195c
push str.7509559ff9a9a58b1dcbf5c50e8
call fcn.00428d27
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x36c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428582
add ebp, 0x370
leave
ret
Function at 0x401a0a
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x370]
sub esp, 0x3f0
mov eax, dword [0x4542b0]
xor eax, ebp
mov dword [ebp + 0x36c], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x3e7
push esi
lea eax, [ebp - 0x7b]
push ebx
push eax
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x7c], bl
call fcn.00431170
push str.04f7476b7fb5c0c7051951
call fcn.00428d27
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
cmp edi, 0xffffffff
jne 0x401a7a
push str.3df7d1af66150f1362e776e19
call fcn.00428d27
pop ecx
pop ecx
jmp 0x401aea
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401a95
push str.680144bbbf5bda6b304be1df
jmp 0x401add
mov eax, dword [ebp - 0x80]
lea ecx, [eax - 1]
cmp ecx, 0x3e6
ja 0x401ac6
push eax
push ebx
push str.9731a3f72599bcb7e7ab48c3e7051
mov byte [ebp + eax - 0x7c], bl
call fcn.00428d27
lea eax, [ebp - 0x7c]
push eax
push str.e633c3eb0c0deead792798817c6f
call fcn.00428d27
add esp, 0x14
jmp 0x401ae3
cmp eax, ebx
jne 0x401ad8
push ebx
push str.a3c342dd079db51193
call fcn.00428d27
pop ecx
jmp 0x401ae2
push str.72f9a3979bf9ef752cfb8
call fcn.00428d27
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x36c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428582
add ebp, 0x370
leave
ret

Function at 0x401b5b
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, 0x2000
push esi
call fcn.00428a41
mov edi, eax
mov dword [esp + 0x14], esi
mov dword [esp], str.a579be2127b1e5d3fadf8db99
call fcn.00428d27
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push str.1b0b66bff43705fbfe
push 0x80000004
call ebx
mov ebp, 0xea
jmp 0x401bcc
add esi, 0x1000
push esi
push edi
call fcn.00428f21
pop ecx
pop ecx
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push str.7c01751115459fdf1655e88de7
push 0x80000004
mov dword [esp + 0x28], esi
call ebx
cmp eax, ebp
je 0x401ba1
test eax, eax
jne 0x401bdc
push esi
push str.ad1f557b332339e55ad19b5_d
jmp 0x401be2
push eax
push str.abab52ff7c1f134f466fb1e__d_
call fcn.00428d27
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401cc6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4542b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00431170
add esp, 0xc
xor esi, esi
call fcn.00428e21
cdq
mov ecx, 0x96
idiv ecx
add dl, 0x46
mov byte [ebp + esi - 0x110], dl
inc esi
cmp esi, 0x19
jl 0x401cfa
xor eax, eax
lea edi, [ebp - 0x268]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401d81
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401d81
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00428582
leave
ret

Function at 0x401d8f
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4542b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00431170
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
test eax, eax
je 0x401de2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428582
leave
ret

Function at 0x401fa1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x20]
push str.aa0112c3270704838b97cca567
call fcn.00428d27
mov esi, dword [ebp - 0x20]
pop ecx
imul esi, esi, 0x50
pop ecx
push 1
push 0x2000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x401fea
push str.4d612fcfa939a54d98f
call fcn.00428d27
jmp 0x402022
test esi, esi
jbe 0x401ffa
push esi
push 0x61
push edi
call fcn.00431170
add esp, 0xc
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
mov eax, str.c529ce7b43455c87ac4b634160
jne 0x402016
mov eax, str.a33745339f63aec50ba52555532fb
push eax
push str.99af37e7b50fd4095a19abd
call fcn.00428d27
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x402091
Capabilities:
Set uefi variable

Disassembly:
push 0x10
mov eax, 0x43db67
call fcn.0042b30d
mov ebx, dword [ebp + 8]
push 4
call fcn.0042a190
xor edi, edi
pop ecx
cmp eax, edi
je 0x4020b2
mov dword [eax], ebx
jmp 0x4020b4
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
lea esi, [ebx + 0x1c]
mov dword [ebp - 4], 1
call fcn.00402e5f
mov byte [ebp - 4], 2
mov dword [ebx + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
test eax, eax
jge 0x4020eb
fadd qword [0x44a9c8]
call fcn.00438ef0
fstp qword [ebp - 0x18]
push edi
call fcn.0042a13f
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
pop ecx
test eax, eax
jge 0x40210a
fadd qword [0x44a9c8]
fcomp qword [ebp - 0x18]
fnstsw ax
test ah, 5
jp 0x402123
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
xor eax, eax
inc eax
jmp 0x402125
xor eax, eax
dec eax
jne 0x402132
call fcn.0040cb42
call fcn.004012c6
xor eax, eax
lea edi, [ebx + 0x38]
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
shr esi, 0x18
call fcn.0042a13f
imul eax, eax, 0x63
pop ecx
cmp esi, eax
jbe 0x402169
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call fcn.0040138f
call fcn.004094e1
test eax, eax
je 0x402177
call fcn.0040140b
mov dword [ebx + 0x48], edi
call fcn.00428e21
cdq
push 0x14
pop ecx
idiv ecx
mov esi, edx
inc esi
call fcn.00428e21
cdq
idiv esi
cmp edx, esi
jg 0x40219d
mov eax, esi
cdq
idiv esi
cmp edx, edi
je 0x4021a2
call fcn.0040147c
mov dword [ebx + 0x50], edi
mov dword [ebx + 0x54], edi
mov eax, ebx
call fcn.0042b3e5
ret 4