joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476611
Capabilities:
Hash data using sha1

Disassembly:
call fcn.0047372b
test al, al
je 0x47662f
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0047d72b
add esp, 0x10
ret
jmp fcn.004738b8

Function at 0x476634
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
call fcn.0047372b
test al, al
je 0x476652
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0047d9c2
add esp, 0x10
ret
jmp fcn.00474959

Function at 0x478184
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
movzx edi, byte [edx + 0x48c858]
mov dword [esp + 0x10], edi
mov eax, edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
or ebp, ecx
mov ecx, dword [esp + 0x10]
shl ecx, 3
xor ecx, dword [esp + 0x10]
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
imul eax, edi, 0x11b
or ebp, ecx
mov ecx, dword [esp + 0x10]
shl ecx, 2
xor ecx, dword [esp + 0x10]
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x4baf20], eax
mov dword [edx*8 + 0x4baf24], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x478191
pop edi
pop esi
pop ebp
pop ebx
mov byte [0x4bb721], 1
add esp, 0x10
ret

Function at 0x4782dc
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
push edi
xor edi, edi
movzx edx, byte [edi + str.cw]
mov ecx, edx
mov eax, edx
shr ecx, 7
imul esi, ecx, 0x1b000000
shl eax, 0x19
imul ecx, ecx, 0x11b
xor esi, eax
mov eax, edx
shl eax, 8
or eax, edx
shl eax, 8
or esi, eax
lea eax, [edx + edx]
xor ecx, eax
xor eax, eax
xor ecx, edx
or eax, esi
or ecx, esi
mov dword [edi*8 + 0x4ba710], eax
mov dword [edi*8 + 0x4ba714], ecx
inc edi
cmp edi, 0x100
jl 0x4782e0
xorps xmm0, xmm0
pop edi
movlpd qword [0x4baf18], xmm0
movlpd qword [0x4baf10], xmm0
pop esi
mov byte [0x4bb720], 1
ret
Function at 0x479e2d
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x44
mov eax, 0x484978
call fcn.0047edd9
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4bbb28]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4bb728]
cmp eax, dword [ecx + 4]
jg 0x479e75
push 0
push dword [ebp + 0xc]
push esi
push dword [0x4bb724]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x479eb0
call fcn.0047ed97
ret 8
mov edi, 0x4bb728
push edi
call fcn.0047e571
cmp dword [0x4bb728], 0xffffffff
pop ecx
jne 0x479e58
and dword [ebp - 4], 0
mov ecx, 0x4bb724
call fcn.00479c74
push 0x4850e1
call fcn.0047e926
or dword [ebp - 4], 0xffffffff
push edi
call fcn.0047e520
pop ecx
pop ecx
jmp 0x479e58
push eax
call fcn.00479eed
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x48b518
lea ecx, [ebp - 0x28]
call fcn.004456b0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.00479d1e
push 0x49c28c
lea eax, [ebp - 0x50]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x47ac84
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x10]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
cmp edi, 4
jb 0x47ace4
push ebp
mov ebp, edi
shr ebp, 2
push 4
lea eax, [esp + 0x18]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
push 4
lea eax, [esp + 0x34]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x3c]
add esp, 0x18
xor eax, dword [esp + 0x14]
add ebx, 4
mov ecx, dword [esp + 0x10]
add esi, 4
or ecx, eax
sub edi, 4
mov dword [esp + 0x10], ecx
sub ebp, 1
jne 0x47aca6
pop ebp
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test edi, edi
je 0x47ad17
sub ebx, esi
movzx ecx, byte [ebx + esi]
movzx eax, byte [esi]
xor ecx, eax
or edx, ecx
inc esi
sub edi, 1
jne 0x47ad06
pop edi
test edx, edx
pop esi
sete al
pop ebx
pop ecx
pop ecx
ret

Function at 0x47ad22
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x47adad
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x28]
cmp edi, 4
jb 0x47ad94
mov eax, edi
shr eax, 2
mov dword [esp + 0x2c], eax
push 4
lea eax, [esp + 0x18]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
push 4
lea eax, [esp + 0x20]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x28]
xor eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push 4
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
add ebp, 4
add ebx, 4
add esi, 4
sub edi, 4
sub dword [esp + 0x2c], 1
jne 0x47ad4b
test edi, edi
je 0x47adaa
sub ebx, esi
sub ebp, esi
mov al, byte [ebx + esi]
xor al, byte [esi]
mov byte [esi + ebp], al
inc esi
sub edi, 1
jne 0x47ad9c
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret
Function at 0x47adb2
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x47ae2a
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
cmp edi, 4
jb 0x47ae17
push ebp
mov ebp, edi
shr ebp, 2
push 4
lea eax, [esp + 0x14]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
push 4
lea eax, [esp + 0x34]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x3c]
xor eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push 4
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
add esi, 4
add ebx, 4
sub edi, 4
sub ebp, 1
jne 0x47add2
pop ebp
test edi, edi
je 0x47ae28
sub ebx, esi
mov al, byte [ebx + esi]
xor byte [esi], al
inc esi
sub edi, 1
jne 0x47ae1d
pop esi
pop ebx
pop edi
pop ecx
pop ecx
ret

Function at 0x47e15d
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
mov edx, dword [esp + 4]
add eax, eax
push 4
lea ecx, [ecx*4 - 4]
movups xmm0, xmmword [edx + eax*8]
movups xmm1, xmmword [edx]
movups xmmword [edx], xmm0
movups xmmword [edx + eax*8], xmm1
pop eax
cmp ecx, eax
jbe 0x47e1a3
aesimc xmm0, xmmword [edx + ecx*4]
aesimc xmm1, xmmword [edx + eax*4]
movups xmmword [edx + eax*4], xmm0
add eax, 4
movups xmmword [edx + ecx*4], xmm1
sub ecx, 4
cmp eax, ecx
jb 0x47e185
aesimc xmm0, xmmword [edx + eax*4]
movups xmmword [edx + eax*4], xmm0
ret
Function at 0x47e1ae
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
push esi
movups xmm0, xmmword [eax + edi - 0x10]
movaps xmmword [esp + 0x2c], xmm0
call sub.VCRUNTIME140.dll_memcpy
movaps xmm1, xmmword [esp + 0x2c]
mov eax, edi
shr eax, 2
add esp, 0xc
mov edx, eax
mov dword [esp + 0x14], eax
aeskeygenassist xmm0, xmm1, 0
shl edx, 2
lea ecx, [eax + 7]
mov dword [esp + 0x18], 0x48c714
shl ecx, 4
add ecx, esi
mov dword [esp + 0x1c], ecx
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
xor ecx, 1
mov dword [edx + esi], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edx + esi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + eax*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + ecx*4 + 0xc], eax
lea eax, [esi + 0x10]
add eax, edx
jmp 0x47e2ea
cmp edi, 0x18
jne 0x47e25d
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
pinsrd xmm1, ecx, 3
jmp 0x47e2a2
cmp edi, 0x20
jne 0x47e29b
pinsrd xmm1, dword [esi + 0x2c], 3
mov eax, dword [esi + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 2
xor ecx, dword [esi + 0x10]
xor eax, ecx
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
pinsrd xmm1, eax, 3
jmp 0x47e2a2
pinsrd xmm1, dword [esi + 0x1c], 3
mov eax, dword [esp + 0x18]
add esi, edx
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [eax]
add eax, 4
xor ecx, dword [esi]
mov dword [edx + esi], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edx + esi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + eax*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + ecx*4 + 0xc], eax
lea eax, [edx + 0x10]
add eax, esi
cmp eax, dword [esp + 0x1c]
jne 0x47e23f
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47f7da
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
in al, dx
dec ebp
or al, 0x8a
mov edi, 0x6a1075
or edx, dword [ebp - 8]
push 0
mov eax, dword [esi]
push edx
mov edx, dword [ebp + 8]
mov dword [eax + esi*8 - 0x7603ba73], ebp
dec ebp
rcl byte [eax - 0x75], cl
push ss
sub byte [ebp + 0x4d], al
invalid
Function at 0x4022e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x144
mov ecx, 0x41
xor eax, eax
push ebp
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x154]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
je 0x4023bf
dec eax
je 0x402371
dec eax
jne 0x402421
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x23
push 0
call fcn.004038d0
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
call edi
cmp byte [esp + eax + 0xb], 0x5c
je 0x402347
mov byte [esp + eax + 0xc], 0x5c
mov byte [esp + eax + 0xd], 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402421
mov eax, dword [esp + 0x158]
mov byte [eax], 0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x144
ret
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0xc]
push edx
call edi
cmp byte [esp + eax + 0xb], 0x5c
je 0x402399
mov byte [esp + eax + 0xc], 0x5c
mov byte [esp + eax + 0xd], 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402421
mov ecx, dword [esp + 0x158]
pop edi
pop esi
xor eax, eax
mov byte [ecx], 0
pop ebp
add esp, 0x144
ret
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xc]
push eax
call edi
cmp byte [esp + eax + 0xb], 0x5c
je 0x4023e3
mov byte [esp + eax + 0xc], 0x5c
inc eax
lea esi, [esp + eax + 0xc]
push str.Temp
push esi
call ebp
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402415
mov edx, dword [esp + 0x158]
pop edi
pop esi
xor eax, eax
mov byte [edx], 0
pop ebp
add esp, 0x144
ret
push 0x409368
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.2401210545217232405327811500
call edi
dec eax
cmp eax, 8
jl 0x402365
mov al, byte [eax + str.2401210545217232405327811500]
cmp al, 0x30
jl 0x402365
cmp al, 0x39
jg 0x402365
movsx esi, al
sub esi, 0x30
and esi, 0x80000003
jns 0x40245b
dec esi
or esi, 0xfffffffc
inc esi
push str.2401210545217232405327811500
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea edx, [eax + str.2401210545217232405327811500]
mov al, byte [edx]
test al, al
je 0x40248d
test esi, esi
jle 0x40248d
add al, al
inc al
dec esi
mov byte [esp + ecx + 0x110], al
inc edx
inc ecx
cmp ecx, 0x40
jb 0x402470
lea eax, [esp + ecx + 0x111]
push 0x409364
push eax
mov byte [esp + ecx + 0x118], 0x2e
call ebp
lea ecx, [esp + 0xc]
push ecx
call edi
mov edx, 0x104
lea ecx, [esp + 0xc]
sub edx, eax
lea eax, [esp + 0x110]
push edx
push eax
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + eax + 0x14]
push edx
call esi
mov ecx, dword [esp + 0x158]
lea eax, [esp + 0xc]
push 0x103
push eax
push ecx
call esi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x144
ret
Function at 0x402530
Capabilities:
Rebuild import table

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x88
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x40b9a4], eax
je 0x402785
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x10]
push 0x30
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push str.2401210545217232405327811500
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [0x40b9a4]
mov edx, dword [0x40ba14]
mov eax, dword [0x40ba18]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Load
push ecx
mov dword [esp + 0x48], 0x40ba1c
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], fcn.00404530
mov dword [esp + 0x58], fcn.00404740
mov dword [esp + 0x5c], fcn.00404840
mov dword [esp + 0x60], fcn.00404870
mov dword [esp + 0x64], fcn.00403f00
mov dword [esp + 0x68], fcn.00403ff0
mov dword [esp + 0x6c], fcn.00404070
mov dword [esp + 0x70], fcn.00404080
mov dword [esp + 0x74], fcn.004040a0
mov dword [esp + 0x78], fcn.00404200
mov dword [esp + 0x7c], fcn.00404260
mov dword [esp + 0x80], fcn.004042f0
mov dword [esp + 0x84], 0x404390
mov dword [esp + 0x88], 0x4043f0
mov dword [esp + 0x8c], fcn.00404420
mov dword [esp + 0x90], fcn.00404490
mov dword [esp + 0x94], fcn.00401280
mov dword [esp + 0x98], fcn.004021c0
mov dword [esp + 0x9c], fcn.00402fc0
call esi
mov edx, dword [0x40b9a4]
push 0x409384
push edx
mov ebp, eax
call esi
mov edi, eax
mov eax, dword [0x40b9a4]
push str.Stop
push eax
call esi
mov ecx, dword [0x40b9a4]
push str.Unload
push ecx
mov ebx, eax
call esi
mov esi, eax
mov al, byte [0x409080]
cmp al, 0xb9
jne 0x40269e
push 0x50
push 0x409080
push 0x409080
call fcn.00403ae0
add esp, 0xc
test ebp, ebp
jne 0x4026b9
mov edx, dword [esp + 0xa4]
push edx
push str.Load
push 0x409080
jmp 0x402759
test edi, edi
jne 0x4026d4
mov edx, dword [esp + 0xa4]
push edx
push 0x409384
push 0x409080
jmp 0x402759
test ebx, ebx
jne 0x4026ec
mov edx, dword [esp + 0xa4]
push edx
push str.Stop
push 0x409080
jmp 0x402759
test esi, esi
jne 0x402704
mov edx, dword [esp + 0xa4]
push edx
push str.Unload
push 0x409080
jmp 0x402759
lea edx, [esp + 0x10]
push edx
push 0x88
call ebp
test eax, eax
je 0x40272a
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
push eax
push ecx
call edi
call esi
jmp 0x40276e
cmp byte [0x4090d0], 0xb9
jne 0x402747
push 0x6c
push 0x4090d0
push 0x4090d0
call fcn.00403ae0
add esp, 0xc
mov edx, dword [esp + 0xa4]
push edx
push str.Load
push 0x4090d0
mov eax, dword [esp + 0xa8]
push 0x83
push eax
call fcn.00404840
add esp, 0x14
mov ecx, dword [0x40b9a4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x40b9a4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
Function at 0x4046d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
jle 0x40470a
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov al, byte [esi + edi]
xor al, cl
mov byte [esi + edi], al
mov eax, 0x24924925
mul ecx
mov eax, ecx
lea ecx, [ecx + ecx*2]
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
add ecx, eax
inc esi
cmp esi, ebx
jl 0x4046e5
pop edi
pop esi
pop ebx
ret

Function at 0x40569b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4095c8
cmp edx, dword [eax]
je 0x4056bd
add eax, 8
inc ecx
cmp eax, 0x409658
jl 0x4056ae
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4095c8]
jne 0x4057eb
mov eax, dword [0x40ba68]
cmp eax, 1
je 0x4057c5
test eax, eax
jne 0x4056ee
cmp dword [0x40952c], 1
je 0x4057c5
cmp edx, 0xfc
je 0x4057eb
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405725
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405c80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405768
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408528
push edi
call 0x4074d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405c80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405c90
lea eax, [ebp - 0xa0]
push 0x408508
push eax
call fcn.00405c90
push dword [esi + 0x4095cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405c90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call 0x407444
add esp, 0x2c
pop edi
jmp 0x4057eb
lea eax, [ebp + 8]
lea esi, [esi + 0x4095cc]
push 0
push eax
push dword [esi]
call fcn.00405e30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x409d1a
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
xor edx, edx
mov dword [0x66fe9c], eax
inc edx
mov ecx, 0x66fea0
push esi
mov esi, eax
shr esi, 0x1e
xor eax, esi
imul eax, eax, 0x6c078965
add eax, edx
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x67085c
jl 0x409d28
mov dword [0x66fe98], 0x270
pop esi
ret

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

Disassembly:
push ebx
push esi
push edi
mov ecx, 0x67085c
mov edi, SysReAllocString
mov esi, 0x9908b0df
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, edi
xor eax, dword [ecx]
mov ebx, eax
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, esi
xor ebx, dword [ecx + 0x634]
shr eax, 1
xor ebx, eax
mov dword [ecx - 0x9c0], ebx
add ecx, 4
mov eax, 0x670be8
cmp ecx, eax
jl 0x409eb7
mov ecx, eax
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, edi
xor eax, dword [ecx]
mov ebx, eax
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, esi
xor ebx, dword [ecx - 0xd4c]
shr eax, 1
xor ebx, eax
mov dword [ecx - 0x9c0], ebx
add ecx, 4
cmp ecx, 0x671218
jl 0x409eec
mov ecx, dword [0x671218]
mov eax, ecx
xor eax, dword [0x66fe9c]
and eax, edi
xor eax, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and dword [0x66fe98], 0
and ecx, esi
shr eax, 1
xor ecx, eax
xor ecx, dword [0x6704cc]
pop edi
pop esi
mov dword [0x670858], ecx
pop ebx
ret

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

Disassembly:
mov ecx, 0x66fea0
mov eax, dword [ecx - 4]
xor eax, dword [ecx]
and eax, 0x7fffffff
xor eax, dword [ecx - 4]
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [ecx + 0x630]
shr eax, 1
xor edx, eax
mov dword [ecx + 0x9bc], edx
add ecx, 4
cmp ecx, 0x670860
jl 0x409f5e
ret

Function at 0x418157
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.00422955
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x418190
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.00417d93
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 0x4181ee
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 0x418212
cmp dword [edi + 0x74], 0
jne 0x418212
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00422955
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
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.004181af
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 0x4207a8
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 0x4207ef
call fcn.00422955
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4207ef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42080b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004202a8
mov esi, eax
test edi, edi
je 0x420809
test ebx, ebx
je 0x420809
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4216e8
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5bc95e
call fcn.005214ac
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42170d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42175f
call fcn.004167eb
push eax
lea ecx, [ebp - 0x10]
call fcn.0040149e
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.0051e51d
push eax
call fcn.00401d3d
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004014fc
mov eax, esi
call fcn.00521584
ret 8

Function at 0x422d34
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004229d8
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x422d7e
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00414ef8
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040241a
jmp 0x422d89
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042bc74
pop edi
pop esi
pop ebp
ret 0xc