joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b12d1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5b14dd
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
imul esi, dword [esp + 0x24], 3
push edi
mov edi, 0xff
shl ebx, 2
mov dword [esp + 0x28], edx
cmp dword [esp + 0x40], edi
jne 0x5b13ed
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x5b13b6
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx edi, byte [ebp + 3]
mov esi, 0xff
movzx eax, byte [ebp + 2]
sub esi, edi
movzx ecx, byte [ebx + 2]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x5b1347
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x14]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
test ecx, ecx
jne 0x5b1312
jmp 0x5b14d9
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x5b14a7
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx eax, byte [ebp + 3]
mov esi, 0xff
imul eax, dword [esp + 0x40]
movzx ecx, byte [ebx + 2]
cdq
idiv edi
mov edi, eax
movzx eax, byte [ebp + 2]
imul eax, edi
sub esi, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
mov edi, 0xff
add eax, ecx
cdq
idiv edi
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x5b142e
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x18]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x5b13f5
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x5b1eac
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x5b1f51
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ebx
shl ecx, 2
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x5b1f2f
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 4]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x5b1f0d
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x5b1edc
pop ebx
pop edi
pop esi
pop ebp
ret 0x24

Function at 0x5b2290
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul ecx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ecx
test ebx, ebx
je 0x5b235e
push ebp
mov ebp, dword [esp + 0x24]
push esi
imul esi, dword [esp + 0x2c], 3
imul eax, dword [esp + 0x24], 3
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov edx, eax
imul edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
add edi, esi
mov esi, dword [eax + 0xcc]
add edi, dword [esp + 0x20]
imul esi, ebp
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x38]
test ecx, ecx
jle 0x5b232b
mov ebx, 0xff
mov ebp, ecx
sub ebx, dword [esp + 0x40]
movzx eax, byte [edi]
imul eax, dword [esp + 0x40]
movzx ecx, byte [esi]
imul ecx, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc edi
mov byte [esi], al
inc esi
sub ebp, 1
jne 0x5b22fe
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
xor esi, esi
dec ebx
or eax, 0xffffffff
inc esi
mov dword [esp + 0x3c], ebx
inc ebp
cmp dword [ecx + 0xe8], 0
mov ecx, dword [esp + 0x10]
cmovne eax, esi
mov dword [esp + 0x2c], ebp
mov esi, dword [esp + 0x14]
add eax, edx
test ebx, ebx
jne 0x5b22c5
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x5b296f
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x5b2a12
imul ecx, dword [esp + 0x24], 3
mov eax, dword [esp + 0x28]
push ebx
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x5b29f0
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 3]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x5b29ce
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x5b299d
pop ebx
pop edi
pop esi
pop ebp
ret 0x24
Function at 0x5b4f76
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x5b510d
push dword [esp + 0x28]
call fcn.0045818f
test eax, eax
je 0x5b4fb6
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x5b510d
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x5b50fa
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x5b50f2
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0042d490
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x5b50f2
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x5b50f2
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x5b50f2
mov eax, dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x5b50e9
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x5b50c1
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x5b50a4
mov ebx, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
push dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4
Function at 0x40f4c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450d4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [esi + 0x10]
mov dword [esi + 0xc], 0
mov byte [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov byte [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov byte [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov byte [eax + 0x34], 0
mov dword [ebp - 4], 0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push ecx
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call fcn.0040ff10
add esp, 0x10
test al, al
mov eax, esi
jne 0x40f57c
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43e5cb
Capabilities:
Encode data using xor

Disassembly:
xchg ebp, eax
jno 0x43e649
push ecx
jbe 0x43e5ed
in al, 0xed
in al, 0x8b
movsb byte es:[edi], byte [esi]
cdq
jo 0x43e618
add dh, 0xa9
cmp al, 0x46
ret 0x770d
hlt
push es
in al, 2
sti
and esi, dword [ebp - 0x7f]
mov edx, 0x8e2cf05f
not dword [esi + 0x5b6f9ae0]
insd dword es:[edi], dx
and al, 0xd6
push edx
invalid
inc edx
lodsb al, byte [esi]
test eax, esi
mov cl, 0xa1
call 0x1e741d7f
js 0x43e672
daa
cmc
invalid
inc eax
pop ds
mov cl, 0x84
push ebp
fidiv word [ebx*8 - 0x12aa18ba]
and edi, edx
pushal
out dx, al
cmp ch, bh
lcall 0xc431, 0xd09a9f45
das
mov al, byte [0x9361c215]
test eax, 0xb671a79b
mov cl, 0xc0
cmp dword [0xfa7a4da4], edx
pop ecx
test al, 0x9d
adc ch, byte [ebx - 0x68]
and bh, byte [esi - 0x327ed11a]
inc esp
and al, 0x8b
clc
mov ecx, ebp
shl byte [eax], 0x4d
std
lea edi, [edx + 0x1caef809]
mov edx, 0x1caef809
dec edx
cmp dword [edx + 0x2e], 0x994f7f1e
mov eax, dword [0x14c0098c]
sub dword [eax - 0x64], 0xffffffa7
rcl byte [ebx + eax*4], 0x68
pushfd
cmpsd dword [esi], dword es:[edi]
adc bh, byte [eax - 0x63]
mov ebx, esp
lodsb al, byte [esi]
push ss
sub eax, 0xba3fa1f0
push ds
insd dword es:[edi], dx
fist word [esi]
and byte [edx + 0x557677ce], dl
push ss
stosd dword es:[edi], eax
in al, 0x7c
push esi
dec edx
adc eax, 0x498629b7
push edi
wait
cmp dword [ecx - 0x50], eax
dec edx
xor edx, esp
fadd qword [0x7d5a2480]
test eax, 0xc5091e8d
xchg esp, eax
jae 0x43e6c5
xor esp, dword [0x59e60513]
test al, 0x6d
mov edx, 0x1a0c3236
and edx, eax
mov edx, 0x2dd16d5c
xor byte [edi + 0x77580e3b], bh
popfd
cmpsd dword [esi], dword es:[edi]
lds esp, fs:[edx]
cwde
inc ecx
xchg ebx, eax
add dh, cl
dec ebp
jp 0x43e6b5
pop esi
xchg esi, ebp
inc ebp
or esi, dword [ecx - 0x16]
sar byte [ecx], 1
inc esp
nop
cmp al, 0xb3
or dword [ecx + 0x56], 0xffffffb4
push 0x1d
xor byte [esi + 0x1d], cl
outsd dx, dword [esi]
inc ecx
popfd
sbb ch, byte [0x45fe61cb]
mov edi, 0x5485c1f1
rcl byte [esi]
mov ecx, 0xbd3b1bc8
mov dl, 0xb8
std
mov eax, dword [0x35c4592d]
cld
sub eax, 0xfc35c459
loopne 0x43e75d
inc esp
in eax, 0x63
push 0
imul esi, dword [edx], 0x9c872b47
ja 0x43e75c
hlt
Function at 0x4419a1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b715
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov dword [ebp - 0x128], ecx
mov byte [ebp - 0xf], 0
lea ecx, [ebp - 0x110]
call fcn.00402510
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
call fcn.00470531
lea ecx, [ebp - 0x110]
call fcn.00402550
push eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x10c]
push ecx
push 0x4a18d4
mov ecx, dword [ebp + 0x10]
call fcn.00402550
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402550
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 4
call fcn.0046d018
add esp, 4
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x118], 0
je 0x441a56
lea edx, [ebp - 0x10c]
push edx
mov ecx, dword [ebp - 0x118]
call fcn.004704b2
mov dword [ebp - 0x12c], eax
jmp 0x441a60
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x114]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x128]
cmp dword [eax + 0x20], 0
je 0x441b44
mov ecx, dword [ebp - 0x128]
mov ecx, dword [ecx + 0x20]
call fcn.004025f0
test eax, eax
jne 0x441aad
movsx edx, byte [ebp - 0xf]
test edx, edx
je 0x441b44
push str.ERROR:_CInitBaseCond_:_Cannot_load_Line:_n
push 1
mov eax, dword [0x4a160c]
push eax
call fcn.004304ab
xor ecx, ecx
test ecx, ecx
jne 0x441aad
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x110]
push eax
push str._______File:__s___Sect.:___s___Entry:___s__n
push 1
mov ecx, dword [0x4a160c]
push ecx
call fcn.00430406
add esp, 0x18
xor edx, edx
test edx, edx
jne 0x441ac5
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x11c], edx
cmp dword [ebp - 0x11c], 0
je 0x441b2d
push 1
mov ecx, dword [ebp - 0x11c]
call fcn.00444030
mov dword [ebp - 0x130], eax
jmp 0x441b37
mov dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x128]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x128]
xor edx, edx
cmp dword [ecx + 0x20], 0
setne dl
mov dword [ebp - 0x124], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.00470444
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481298
push 0x44d74c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.0044e24a]
test eax, eax
je 0x44e2f3
mov dword [ebp - 4], 1
call eax
jmp 0x44e2ef
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x44e2fc
jmp fcn.0044e24a
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x408ecc
mov ecx, 0x43e92471
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x430b5914
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43be00
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x140], ecx
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], esi
cmp dword [ebx + 4], esi
jbe 0x401f61
nop
mov eax, edi
lea esi, [ebp - 0x138]
and eax, 1
mov ecx, ebx
lea esi, [esi + eax*2]
call fcn.00402400
movzx eax, word [eax + edi*2]
push eax
call fcn.0042ac58
xor word [esi], ax
inc edi
add esp, 4
cmp edi, dword [ebx + 4]
jb 0x401f30
mov esi, dword [ebp - 0x138]
mov eax, 4
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
mov word [ebp - 0x1a], ax
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov byte [ebp - 0x18], 1
push 1
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406610
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
push str.Local_
lea eax, [ebp - 0x134]
mov dword [ebp - 4], ecx
push 0x44eac8
push eax
call fcn.00406410
push str.mutex_file_
lea eax, [ebp - 0x134]
push 0x44eac8
push eax
call fcn.00406410
push esi
lea eax, [ebp - 0x134]
push str.0x_p
push eax
call fcn.00406410
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0x140]
add esp, 0x24
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push esi
call fcn.00408f30
test al, al
jne 0x402042
push 0x44a728
mov ecx, esi
call fcn.00401e30
xor bl, bl
jmp 0x402044
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40206d
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x40206d
push eax
call fcn.00429f77
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422505
mov esp, ebp
pop ebp
ret 8
Function at 0x4025c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov cl, byte [edi + 0x11c]
lea eax, [edi + 0xc]
test cl, cl
jne 0x4025e7
mov eax, dword [edi + 8]
cmp word [eax + 6], 0x3a
jne 0x40267f
lea eax, [edi + 0xc]
test cl, cl
jne 0x4025fc
mov eax, dword [edi + 8]
cmp word [eax + 8], 0
jne 0x40267f
push edi
lea ecx, [ebp - 0x24c]
call fcn.004060b0
push 0x44a758
lea eax, [ebp - 0x24c]
push 0x44eac8
push eax
call fcn.00406410
add esp, 0xc
lea eax, [ebp - 0x240]
cmp byte [ebp - 0x130], 0
cmove eax, dword [ebp - 0x244]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402651
xor bl, bl
jmp 0x402657
shr ebx, 4
and bl, 1
cmp byte [ebp - 0x130], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4027a0
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
jmp 0x402793
push edi
lea ecx, [ebp - 0x128]
call fcn.004060b0
mov al, byte [edi + 0x11c]
lea ecx, [edi + 0xc]
test al, al
jne 0x40269b
mov ecx, dword [edi + 8]
cmp word [ecx + 6], 0x3a
jne 0x4026c4
lea ecx, [edi + 0xc]
test al, al
jne 0x4026ac
mov ecx, dword [edi + 8]
cmp word [ecx + 8], 0x5c
jne 0x4026c4
lea ecx, [edi + 0xc]
test al, al
jne 0x4026bd
mov ecx, dword [edi + 8]
cmp word [ecx + 0xa], 0
je 0x40270c
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40270c
test al, al
lea eax, [edi + 0xc]
jne 0x4026d5
mov eax, dword [edi + 8]
cmp word [eax + ecx*2 + 2], 0x5c
jne 0x40270c
push esi
lea esi, [ecx - 1]
push ecx
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x124], esi
call fcn.00406610
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
xor ecx, ecx
mov word [eax + esi*2 + 4], cx
pop esi
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402732
xor bl, bl
jmp 0x402777
mov al, byte [edi + 0x11c]
lea ecx, [edi + 0xc]
test al, al
jne 0x402742
mov ecx, dword [edi + 8]
cmp word [ecx + 6], 0x3a
jne 0x402771
lea ecx, [edi + 0xc]
test al, al
jne 0x402753
mov ecx, dword [edi + 8]
cmp word [ecx + 8], 0x5c
jne 0x402771
test al, al
je 0x402763
add edi, 0xc
jmp 0x402766
mov edi, dword [edi + 8]
cmp word [edi + 0xa], 0
jne 0x402771
mov bl, 1
jmp 0x402777
shr ebx, 4
and bl, 1
cmp byte [ebp - 0xc], 0
mov dword [ebp - 0x128], vtable.t_str.0
jne 0x4027a0
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x4027a0
push eax
call fcn.00429f77
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.00422505
mov esp, ebp
pop ebp
ret
Function at 0x402870
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43beb0
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
mov ebx, dword [ebp + 8]
jne 0x4028b2
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x4028d0
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40298c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x11c], 0
mov edi, eax
lea eax, [esi + 0xc]
jne 0x4028f9
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40298c
shr eax, 4
not al
test al, 1
je 0x40298c
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x402924
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x134]
push eax
call fcn.00402110
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 0
push eax
push 0x44a76c
push edi
mov ecx, ebx
call fcn.00407350
mov ecx, eax
call fcn.00407580
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x402988
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x402988
push eax
call fcn.00429f77
add esp, 4
xor al, al
jmp 0x40298e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422505
mov esp, ebp
pop ebp
ret 0xc