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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000fbad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000fbad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10003410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, edx
mov edx, ecx
push esi
push edi
mov dword [ebp - 0xc], ebx
mov eax, dword [edx + 0x3c]
mov dword [ebp - 8], edx
mov ecx, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
add ecx, edx
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 4], ecx
test eax, eax
je 0x10003487
mov esi, dword [ecx + 0x20]
xor edi, edi
mov ebx, dword [ecx + 0x24]
add esi, edx
add ebx, edx
cmp dword [ecx + 0x18], edi
jbe 0x10003487
mov ecx, dword [esi]
add ecx, edx
xor edx, edx
cmp byte [ecx], dl
je 0x10003467
nop word [eax + eax]
inc edx
cmp byte [edx + ecx], 0
jne 0x10003460
push ecx
call fcn.100056e0
add esp, 4
cmp eax, dword [ebp - 0xc]
je 0x10003499
mov eax, dword [ebp - 4]
inc edi
mov edx, dword [ebp - 8]
add esi, 4
add ebx, 2
cmp edi, dword [eax + 0x18]
jb 0x10003450
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
call fcn.10003020
push dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov esi, eax
mov ecx, esi
call fcn.10002d60
add esp, 8
test eax, eax
je 0x100034c7
mov ecx, esi
call fcn.10001ed0
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100056e0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1002d008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
lea eax, [ebp - 0x44]
push edi
mov edx, 0x40
nop dword [eax]
mov byte [eax], 0
inc eax
sub edx, 1
jne 0x10005700
push ebx
mov ebx, esi
lea edx, [ebp - 0x44]
shr ebx, 2
mov edi, ebx
test edi, edi
je 0x10005727
mov eax, dword [ecx]
add ecx, 4
mov dword [edx], eax
add edx, 4
sub edi, 1
jne 0x10005718
mov edi, esi
and edi, 3
je 0x1000573e
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
sub edi, 1
jne 0x10005730
xor ecx, ecx
test esi, esi
jle 0x1000575b
mov al, byte [ebp + ecx - 0x44]
cmp al, 0x41
jl 0x10005756
cmp al, 0x5a
jg 0x10005756
add al, 0x20
mov byte [ebp + ecx - 0x44], al
inc ecx
cmp ecx, esi
jl 0x10005744
mov dword [ebp - 0x48], esi
lea edx, [ebp - 0x44]
mov edi, 0xff889912
cmp esi, 4
jl 0x100057a3
mov eax, ebx
neg eax
lea esi, [esi + eax*4]
nop dword [eax]
nop word [eax + eax]
imul ecx, dword [edx], 0x5bd1e995
add edx, 4
imul edi, edi, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor edi, ecx
sub ebx, 1
jne 0x10005780
xor ecx, ecx
pop ebx
sub esi, 1
je 0x100057c5
sub esi, 1
je 0x100057bc
sub esi, 1
jne 0x100057ca
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor ecx, eax
imul edx, dword [ebp - 0x48], 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, edi, 0x5bd1e995
pop edi
pop esi
xor ecx, eax
mov eax, edx
shr eax, 0x18
xor eax, edx
imul ecx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b306
mov esp, ebp
pop ebp
ret
Function at 0x10010300
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1002d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], edx
mov esi, ecx
push 0x47
push 0x4156547c
mov edx, 0x10
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x28
call fcn.10004ff0
add esp, 8
lea edi, [ebx + 0x58]
push edi
push 0x20
push esi
call eax
test eax, eax
jne 0x10010359
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b306
mov esp, ebp
pop ebp
ret
push 0x47
push 0x4156547c
mov edx, 0x10
call fcn.10004ff0
add esp, 8
lea esi, [ebx + 0x50]
push esi
push 8
push dword [ebp - 0xc]
call eax
test eax, eax
je 0x10010346
mov ecx, 0x40
lea eax, [ebx + 0x10]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10010384
mov ecx, edi
lea edx, [ebx + 0x78]
sub edx, edi
mov eax, dword [ecx]
mov dword [ebx + 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0x24], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0x28], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x30], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x34], eax
mov eax, dword [ecx + 0x18]
mov dword [ebx + 0x38], eax
mov eax, dword [ecx + 0x1c]
mov ecx, 8
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x10], 0x61707865
mov dword [ebx + 0x14], 0x3320646e
mov dword [ebx + 0x18], 0x79622d32
mov dword [ebx + 0x1c], 0x6b206574
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov eax, dword [esi]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x4c], eax
nop
mov eax, dword [edi]
lea edi, [edi + 4]
mov dword [edx + edi - 4], eax
sub ecx, 1
jne 0x10010400
lea edi, [ebx + 0x98]
mov ecx, 2
sub edi, esi
nop dword [eax + eax]
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [edi + esi - 4], eax
sub ecx, 1
jne 0x10010420
push 0xc
push 0x711c72ac
lea edx, [ecx + 0x10]
call fcn.10004ff0
add esp, 8
lea ecx, [ebp - 8]
push 0x20c
push ecx
lea ecx, [ebx + 0x78]
push ecx
push 0
push 1
push 0
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.1001b306
mov esp, ebp
pop ebp
ret
Function at 0x10017580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100175c3
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax*2 + 2]
push esi
call fcn.1001d2b7
push esi
mov ebx, eax
push 0
push ebx
call fcn.1001c930
add esp, 0x10
mov dword [0x1002fa8c], ebx
test ebx, ebx
je 0x100175c1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
pop ebx
push 0
push 0
push dword [0x1002fa94]
push fcn.100163b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop edi
pop ebp
ret 4
Function at 0x1001a2e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x1002d008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x19
push 0xf2f7da4c
mov edx, 0xf
mov esi, ecx
call fcn.10004ff0
add esp, 8
push 0
push 2
call eax
mov edi, eax
test edi, edi
je 0x1001a50a
push 0xb
push 0x8dcd453a
mov edx, 0xf
mov dword [ebp - 0x230], 0x22c
call fcn.10004ff0
add esp, 8
lea ecx, [ebp - 0x230]
push ecx
push edi
call eax
test eax, eax
jne 0x1001a36c
push 0x59
push 0x3d7344ad
lea edx, [eax + 0xf]
call fcn.10004ff0
add esp, 8
push edi
call eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b306
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, 0x7f
mov byte [ebp - 0x24c], 0
mov byte [ebp - 0x24b], 0x7d
mov byte [ebp - 0x24a], 0x6a
mov byte [ebp - 0x249], 0x74
mov byte [ebp - 0x248], 0x6a
mov byte [ebp - 0x247], 0x49
mov byte [ebp - 0x246], 0x6a
mov byte [ebp - 0x245], 0x73
mov byte [ebp - 0x244], 0x6a
mov byte [ebp - 0x243], 0x14
mov byte [ebp - 0x242], 0x6a
mov byte [ebp - 0x241], 0x34
mov byte [ebp - 0x240], 0x6a
mov byte [ebp - 0x23f], 0x7d
mov byte [ebp - 0x23e], 0x6a
mov byte [ebp - 0x23d], 0x34
mov byte [ebp - 0x23c], 0x6a
mov byte [ebp - 0x23b], 4
mov byte [ebp - 0x23a], 0x6a
mov byte [ebp - 0x239], 0x7d
mov byte [ebp - 0x238], 0x6a
mov byte [ebp - 0x237], 0x74
mov byte [ebp - 0x236], 0x6a
mov byte [ebp - 0x235], 0x7d
mov byte [ebp - 0x234], 0x6a
mov byte [ebp - 0x233], 0x6a
mov byte [ebp - 0x232], 0x6a
mov al, byte [ebp - 0x24b]
cmp byte [ebp - 0x24c], 0
jne 0x1001a469
xor ecx, ecx
mov al, byte [ebp + ecx - 0x24b]
movzx eax, al
sub eax, 0x6a
lea eax, [eax + eax*2]
shl eax, 2
cdq
idiv ebx
lea eax, [edx + 0x7f]
cdq
idiv ebx
mov byte [ebp + ecx - 0x24b], dl
inc ecx
cmp ecx, 0x1a
jb 0x1001a440
push 0x2d
push 0x6a52db9
mov edx, 0xf
call fcn.10004ff0
add esp, 8
lea ecx, [ebp - 0x24b]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
call eax
test eax, eax
jne 0x1001a4cc
push 0xc
call fcn.1001d2b7
xorps xmm0, xmm0
add esp, 4
movq qword [eax], xmm0
mov dword [eax + 8], 0
test eax, eax
je 0x1001a4f2
mov ecx, dword [ebp - 0x228]
lea edx, [eax + 4]
mov dword [eax], ecx
mov dword [edx], 0
mov ecx, dword [esi + 4]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [esi + 4], edx
push 0x50
push 0xd91f548a
mov edx, 0xf
call fcn.10004ff0
add esp, 8
lea ecx, [ebp - 0x230]
push ecx
push edi
call eax
test eax, eax
jne 0x1001a372
push 0x59
push 0x3d7344ad
mov edx, 0xf
call fcn.10004ff0
add esp, 8
push edi
call eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001b306
mov esp, ebp
pop ebp
ret
Function at 0x1001cdf7
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x10027320
push str.FlsAlloc
push 0
call fcn.1001cd77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001ce29
push dword [ebp + 8]
mov ecx, esi
call fcn.1001bf01
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1001ce6b
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x10027344
push str.FlsGetValue
push 2
call fcn.1001cd77
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x1001ce9c
mov ecx, esi
call fcn.1001bf01
call esi
jmp 0x1001cea2
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x1001cea5
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x10027358
push str.FlsSetValue
push 3
call fcn.1001cd77
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x1001ced9
mov ecx, esi
call fcn.1001bf01
call esi
jmp 0x1001cedf
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x401b02
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x401b29
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
leave
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x401b49
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x401c8f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x3000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call esi
mov edi, eax
test edi, edi
jne 0x401b86
push 4
push 0x3000
push dword [ebx + 0x50]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x401b86
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x401c84
nop
nop
nop
nop
nop
nop
nop
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x401bc8
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
nop
nop
nop
nop
nop
nop
nop
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401c84
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
push 4
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x18]
push 0x1000
mov dword [esi + 4], edi
mov dword [esi + 0x20], eax
push dword [ebx + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [ebx + 0x54]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call fcn.0050a3c0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.00401305
add esp, 0x18
nop
nop
nop
nop
nop
nop
nop
mov eax, edi
sub eax, dword [ebx + 0x34]
je 0x401c3c
push eax
mov eax, esi
call fcn.004014b2
pop ecx
call fcn.0040152d
test eax, eax
je 0x401c7d
mov ebx, esi
call fcn.004013b7
mov eax, esi
call fcn.00401484
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x401c8b
push 0
xor ebx, ebx
inc ebx
push ebx
add eax, edi
push edi
call eax
test eax, eax
jne 0x401c88
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.0040177a
pop ecx
xor eax, eax
jmp 0x401c8d
mov dword [esi + 0x10], ebx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401da6
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x14
push ebx
push esi
push edi
cmp ecx, 1
jle 0x401e9a
push 0x34
pop eax
cdq
idiv ecx
mov esi, dword [ebp + 8]
and dword [ebp + 0xc], 0
add eax, 6
mov dword [ebp - 0xc], eax
lea eax, [esi + ecx - 1]
mov dword [ebp - 0x14], eax
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
sub dword [ebp + 0xc], 0x61c88647
mov eax, dword [ebp + 0xc]
shr eax, 2
and eax, 3
xor ecx, ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], ecx
jbe 0x401e47
movzx edx, byte [ecx + esi + 1]
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 4]
shr edi, 5
mov eax, edx
shl eax, 2
xor eax, edi
mov edi, edx
xor edx, dword [ebp + 0xc]
shr edi, 3
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp + 0x10]
add eax, edi
mov edi, ecx
and edi, 3
xor edi, dword [ebp - 8]
mov edi, dword [ebx + edi*4]
xor edi, dword [ebp - 4]
add edi, edx
movzx edx, byte [ecx + esi]
xor eax, edi
add eax, edx
mov byte [ecx + esi], al
movzx eax, al
inc ecx
mov dword [ebp - 4], eax
cmp ecx, dword [ebp - 0x10]
jb 0x401df9
movzx edx, byte [esi]
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 4]
shr edi, 5
mov eax, edx
shl eax, 2
xor eax, edi
mov edi, edx
xor edx, dword [ebp + 0xc]
and ecx, 3
xor ecx, dword [ebp - 8]
shr edi, 3
shl ebx, 4
xor edi, ebx
add eax, edi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + ecx*4]
xor ecx, dword [ebp - 4]
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
add eax, edx
dec dword [ebp - 0xc]
mov byte [ecx], al
movzx eax, al
mov dword [ebp - 4], eax
jne 0x401ddf
jmp 0x401f76
cmp ecx, 0xffffffff
jge 0x401f76
push 0x34
neg ecx
pop eax
cdq
idiv ecx
mov edi, dword [ebp + 8]
lea edx, [ecx - 1]
lea ecx, [edi + ecx - 1]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
add eax, 6
mov dword [ebp - 0xc], eax
imul eax, eax, 0x9e3779b9
mov dword [ebp + 0xc], eax
movzx eax, byte [edi]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
shr ecx, 2
and ecx, 3
mov dword [ebp - 8], ecx
test esi, esi
je 0x401f28
movzx ecx, byte [esi + edi - 1]
mov ebx, ecx
shr ebx, 5
mov edx, eax
shl edx, 2
xor edx, ebx
mov ebx, eax
xor eax, dword [ebp + 0xc]
shr ebx, 3
shl ecx, 4
xor ebx, ecx
add edx, ebx
mov ebx, dword [ebp + 0x10]
mov ecx, esi
and ecx, 3
xor ecx, dword [ebp - 8]
mov ebx, dword [ebx + ecx*4]
movzx ecx, byte [esi + edi - 1]
xor ebx, ecx
add ebx, eax
movzx eax, byte [esi + edi]
xor edx, ebx
sub eax, edx
mov byte [esi + edi], al
dec esi
movzx eax, al
jne 0x401ee0
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ecx]
mov bl, cl
shl bl, 4
mov edx, eax
shr edx, 3
xor dl, bl
mov dword [ebp - 4], ecx
shr ecx, 5
mov bl, al
shl bl, 2
xor cl, bl
mov bl, byte [ebp + 0xc]
add dword [ebp + 0xc], 0x61c88647
add dl, cl
mov ecx, dword [ebp + 0x10]
and esi, 3
xor esi, dword [ebp - 8]
xor bl, al
mov cl, byte [ecx + esi*4]
xor cl, byte [ebp - 4]
add cl, bl
xor dl, cl
sub byte [edi], dl
dec dword [ebp - 0xc]
movzx eax, byte [edi]
jne 0x401ecd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40200f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0x10]
push esi
push 0x5f
cdq
pop ecx
idiv ecx
mov esi, dword [ebp + 0xc]
lea ecx, [edx + 0x58]
test esi, esi
je 0x402036
mov eax, dword [ebp + 8]
mov dl, byte [eax]
xor dl, cl
add dl, cl
mov byte [eax], dl
inc eax
dec esi
jne 0x40202a
pop esi
pop ebp
ret

Function at 0x40230a
Capabilities:
Check for foreground window switch

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
push edi
call esi
push 0x1388
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp edi, eax
je 0x402312
push 0
call fcn.0041738c
mov dword [esp], str.tuazyxa
call fcn.00402039
pop ecx
pop edi
xor eax, eax
pop esi
ret

Function at 0x40dd8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40ddd1
call fcn.0041e653
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40ddd1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40dded
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d88f
mov esi, eax
test edi, edi
je 0x40ddeb
test ebx, ebx
je 0x40ddeb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40eca7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x52947e
call fcn.0050b6b8
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40eccc
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40ed1e
call fcn.0041f0ad
push eax
lea ecx, [ebp - 0x10]
call fcn.00403d08
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050b61f
push eax
call fcn.0040290b
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004029e2
mov eax, esi
call fcn.0050b790
ret 8
Function at 0x410fde
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041e653
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x41100b
xor eax, eax
jmp 0x4110b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x411004
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x411004
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004028c6
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x411063
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, edx
jl 0x411051
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0040fcca
push edi
mov ebx, eax
call fcn.004028f5
pop ecx
test ebx, ebx
je 0x4110a5
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.004102f1
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004103a5
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x41659c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041e653
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4165d5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004161de
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x416633
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x416657
cmp dword [edi + 0x74], 0
jne 0x416657
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041e653
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004165f4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x416fb6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x416ffe
call fcn.0041e653
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x416ffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x417041
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41702a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41702a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x41703e
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42ee69
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x42eea7
push 0x5375c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x42eeb5
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42eeb5
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x42eeb7
cmp dword [esi + 4], 0
je 0x42eeb5
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8