joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404adb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
push edi
mov dword [esp + 0x14], ecx
cmp word [esi], ax
je 0x404aff
xor eax, eax
jmp 0x404c87
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi + 0x74], 0x10
jne 0x404af8
mov ecx, dword [eax + esi + 0x7c]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x404af8
mov edi, dword [eax + esi + 0x78]
xor ebx, ebx
add edi, esi
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
add eax, esi
mov dword [esp + 0x1c], eax
add edx, esi
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
cmp dword [ebp + 0xc], ebx
je 0x404b87
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [edi + 0x14], eax
jbe 0x404c85
mov ecx, dword [edx + eax*4]
add ecx, esi
call fcn.0040307d
cmp eax, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
je 0x404b72
mov edx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0x14]
jb 0x404b4c
jmp 0x404c85
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x24]
mov ebx, dword [ebx + eax*4]
jmp 0x404b99
mov ebx, dword [ebp + 0x10]
sub ebx, dword [edi + 0x10]
cmp ebx, dword [edi + 0x14]
jae 0x404af8
mov ebx, dword [eax + ebx*4]
add ebx, esi
cmp ebx, edi
jbe 0x404c85
lea eax, [ecx + edi]
cmp ebx, eax
jae 0x404c85
push 0x104
call fcn.0040e75b
mov dword [esp + 0x14], eax
mov dword [esp], 0x100
call fcn.0040e75b
pop ecx
mov esi, eax
push 0x2e
push ebx
mov dword [esp + 0x2c], esi
call fcn.004104e0
pop ecx
pop ecx
push 0x100
lea edi, [eax + 1]
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
call esi
sub edi, ebx
push edi
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x42a5fc
push ebx
call esi
push 0x42c0dc
push ebx
call esi
push 0x42c0e0
push ebx
call esi
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00404a82
mov edi, eax
test edi, edi
jne 0x404c3d
push eax
push ecx
push ebx
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0040544d
mov edi, eax
test edi, edi
jne 0x404c41
jmp 0x404af8
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x404c5f
cmp byte [esi], 0x23
jne 0x404c5f
movsx eax, byte [esi + 1]
push eax
push 0
jmp 0x404c69
push 0
mov ecx, esi
call fcn.0040307d
push eax
push edi
mov ecx, ebx
call fcn.00404adb
push esi
mov ebx, eax
call fcn.00410173
mov eax, dword [esp + 0x14]
pop ecx
push eax
call fcn.00410173
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405dbb
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x405e01
sub ebx, 0x42a800
mov ax, word [ebx + edi*2 + 0x42a800]
mov ecx, esi
xor ax, word [edi*2 + 0x42a800]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x405ddf
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x405e09
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x405e4f
sub ebx, 0x42a780
mov ax, word [ebx + edi*2 + 0x42a780]
mov ecx, esi
xor ax, word [edi*2 + 0x42a780]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x405e2d
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x405e57
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov ebx, ecx
mov esi, edx
push edi
lea ecx, [esp + 0x28]
call fcn.004018f0
push 0x10
pop edi
cmp dword [esp + 0x3c], edi
lea edx, [esp + 0x28]
push dword [esi + 0x10]
cmovae edx, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
xor ebp, ebp
mov dword [esp + 0x4c], 0x67452301
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], 0xefcdab89
mov dword [esp + 0x54], 0x98badcfe
mov dword [esp + 0x58], 0x10325476
call fcn.00408d4b
lea ecx, [esp + 0x40]
call fcn.00408dd7
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebp
lea esi, [esp + 0x98]
mov word [esp + 0x10], ax
movzx eax, byte [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00401a7c
inc esi
dec edi
jne 0x405ed7
push dword [esp + 0x20]
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.00405f1c
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.004023dd
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.00401d41
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x9c
ret
Function at 0x405f1c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
and dword [esp + 0x10], 0
push ebx
push ebp
push esi
push edi
mov esi, edx
mov dword [esp + 0x24], 0xf
mov ebx, ecx
mov byte [esp + 0x10], 0
xor edi, edi
mov al, byte [edi + 0x42a740]
lea ecx, [esp + 0x10]
xor al, byte [edi + 0x494470]
movzx eax, al
push eax
call fcn.00403b4e
inc edi
cmp edi, 0x10
jl 0x405f3b
xor ebp, ebp
mov dword [esp + 0x3c], 7
xor eax, eax
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], ax
cmp dword [esi + 0x10], ebp
jne 0x405f85
push 0x42a5f0
mov ecx, ebx
call fcn.004019f1
jmp 0x406009
mov edi, ebp
cmp dword [esp + 0x44], eax
jbe 0x405ffd
cmp dword [esi + 0x14], 8
jb 0x405f97
mov eax, dword [esi]
jmp 0x405f99
mov eax, esi
movzx eax, word [eax + edi*2]
lea ecx, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
cmovae ecx, dword [esp + 0x10]
shr eax, 4
and eax, 0xf
movsx ax, byte [eax + ecx]
lea ecx, [esp + 0x28]
movzx eax, ax
push eax
call fcn.00401a7c
cmp dword [esi + 0x14], 8
jb 0x405fcd
mov eax, dword [esi]
jmp 0x405fcf
mov eax, esi
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0x10]
movzx eax, word [eax + edi*2]
cmovae ecx, dword [esp + 0x10]
and eax, 0xf
movsx ax, byte [eax + ecx]
lea ecx, [esp + 0x28]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x44]
jb 0x405f8d
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.00401a13
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.004023dd
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.00401d41
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x30
ret 4
Function at 0x409723
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x409769
sub ebx, 0x42a870
mov ax, word [ebx + edi*2 + 0x42a870]
mov ecx, esi
xor ax, word [edi*2 + 0x42a870]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x409747
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x409771
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x4097b7
sub ebx, 0x42a8d0
mov ax, word [ebx + edi*2 + 0x42a8d0]
mov ecx, esi
xor ax, word [edi*2 + 0x42a8d0]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x409795
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x40a9f5
Capabilities:
Get common file path

Disassembly:
sub esp, 0x2b4
lea eax, [esp + 0xa8]
push ebx
push ebp
push esi
push edi
push 0x208
push eax
mov bh, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40ab7a
and dword [esp + 0x38], 0
xor eax, eax
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
cmp word [esp + 0xb8], ax
je 0x40aa48
lea eax, [esp + 0xb8]
push eax
call fcn.0040f83b
pop ecx
push eax
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x30]
call fcn.004026be
push 0xc
mov edx, 0x4944f0
lea ecx, [esp + 0x5c]
call fcn.00409723
push 0xd
mov edx, 0x494920
lea ecx, [esp + 0x74]
call fcn.00409723
push 0xb
mov edx, 0x494580
lea ecx, [esp + 0x8c]
call fcn.00409723
push 0xc
mov edx, 0x494750
lea ecx, [esp + 0xa4]
call fcn.00409723
xor esi, esi
lea ebp, [esp + 0x58]
mov edi, esi
xor eax, eax
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x38]
push 0x42a5f8
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
call fcn.0040f83b
pop ecx
add eax, esi
lea ecx, [esp + 0x10]
push eax
call fcn.00402caa
push 0xffffffffffffffff
xor esi, esi
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00401dd0
push 0x42a5f8
call fcn.0040f83b
pop ecx
push eax
push 0x42a5f8
lea ecx, [esp + 0x18]
call fcn.00401e6d
push 0xffffffffffffffff
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401dd0
push eax
lea ecx, [esp + 0x44]
call fcn.00401a13
lea ecx, [esp + 0x40]
call fcn.0040a300
push esi
push 1
lea ecx, [esp + 0x48]
mov bl, al
call fcn.004023dd
push esi
push 1
lea ecx, [esp + 0x18]
call fcn.004023dd
test bl, bl
jne 0x40ab50
inc edi
add ebp, 0x18
cmp edi, 4
jl 0x40aaa8
jmp 0x40ab52
xor bh, bh
push 3
lea esi, [esp + 0xbc]
pop edi
push 0
sub esi, 0x18
push 1
mov ecx, esi
call fcn.004023dd
dec edi
jns 0x40ab5c
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004023dd
pop edi
pop esi
pop ebp
mov al, bh
pop ebx
add esp, 0x2b4
ret
Function at 0x40c534
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x40c53f
xor eax, eax
jmp 0x40c617
push ebx
push esi
mov esi, dword [esp + 0xc]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x40c5f8
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ba50]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ba50]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ba50]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ba50]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ba50]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ba50]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ba50]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ba50]
dec edi
jne 0x40c55b
pop edi
test esi, esi
je 0x40c611
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ba50]
inc edx
dec esi
jne 0x40c5fc
not ecx
pop esi
mov eax, ecx
pop ebx
ret 4

Function at 0x40c61a
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov edx, 0xff
mov esi, dword [edi]
xor eax, esi
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x42ba50]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, edx
xor eax, dword [ecx*4 + 0x42ba50]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x40d535
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
jne 0x40d54a
push 0xffffffffffffff9a
pop eax
jmp 0x40d673
push ebp
xor ebp, ebp
cmp dword [edi + 0x18], ebp
jne 0x40d556
push 0xffffffffffffff9a
jmp 0x40d57b
cmp dword [edi + 0x7c], ebp
je 0x40d560
call fcn.0040d8a9
lea eax, [esp + 0x10]
mov ecx, edi
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
call fcn.0040d396
test eax, eax
je 0x40d581
push 0xffffffffffffff99
pop eax
jmp 0x40d672
push esi
push 0x7e
call fcn.00410b3d
mov esi, eax
pop ecx
test esi, esi
je 0x40d5ab
push 0x4000
call fcn.00410b3d
mov dword [esi], eax
mov dword [esi + 0x4c], ebp
pop ecx
test eax, eax
jne 0x40d5b3
push esi
call fcn.0040f774
pop ecx
push 0xffffffffffffff98
pop eax
jmp 0x40d671
mov dword [esi + 0x40], ebp
xor ecx, ecx
cmp dword [edi + 0x34], ebp
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
sete cl
mov dword [esi + 0x50], ebp
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], ebp
test ecx, ecx
jne 0x40d5fb
lea ecx, [esi + 4]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call fcn.0040c7f0
test eax, eax
jne 0x40d5fb
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40d61e
mov al, byte [edi + 0x39]
jmp 0x40d621
mov al, byte [edi + 0x3f]
mov byte [esi + 0x7d], al
xor eax, eax
cmp byte [esi + 0x6c], al
push 0xc
pop ecx
cmovne eax, ecx
mov dword [esi + 0x79], eax
mov dword [esi + 0x6d], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
test ebx, ebx
je 0x40d65c
mov dl, byte [ebx]
test dl, dl
je 0x40d65c
lea ecx, [esi + 0x6d]
call fcn.0040c61a
inc ebx
jne 0x40d64b
mov eax, dword [esp + 0x10]
add eax, 0x1e
add eax, dword [edi + 0x78]
and dword [esi + 8], ebp
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x7c], esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret
Function at 0x420087
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e4b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x42c1c8]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00412d84
mov dword [ebp - 0x14], eax
cmp dword [0x495dfc], esi
jne 0x42017a
push 0x800
push esi
push str.USER32.DLL
call dword [0x42c1d8]
mov edi, eax
test edi, edi
jne 0x420107
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42025a
push esi
push esi
push str.USER32.DLL
call dword [0x42c1d8]
mov edi, eax
test edi, edi
je 0x42025a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42025a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x495dfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x495e00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x495e04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x495e0c], eax
test eax, eax
je 0x420177
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x495e08], eax
mov edi, dword [ebp - 0x18]
call dword [0x42c1d0]
test eax, eax
je 0x42019f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x420192
push eax
call dword [0x42c1dc]
cmp dword [ebp - 0x14], esi
je 0x4201b4
push 4
pop eax
jmp 0x42025c
cmp dword [ebp - 0x14], esi
je 0x4201b4
push dword [0x495dfc]
call dword [0x42c1cc]
push 3
jmp 0x420199
mov eax, dword [0x495e08]
mov ebx, dword [0x42c1cc]
cmp eax, edi
je 0x420212
cmp dword [0x495e0c], edi
je 0x420212
push eax
call ebx
push dword [0x495e0c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x420212
test eax, eax
je 0x420212
call ecx
test eax, eax
je 0x420207
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x420207
test byte [ebp - 8], 1
jne 0x420212
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x420242
mov eax, dword [0x495e00]
cmp eax, edi
je 0x42023f
push eax
call ebx
test eax, eax
je 0x42023f
call eax
mov esi, eax
test esi, esi
je 0x42023f
mov eax, dword [0x495e04]
cmp eax, edi
je 0x42023f
push eax
call ebx
test eax, eax
je 0x42023f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x495dfc]
call ebx
test eax, eax
je 0x42025a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42025c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411265
mov esp, ebp
pop ebp
ret
Function at 0x100015c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001618
cmp byte [esi + ebx - 1], 0xa
je 0x100015ec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10001c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10001e18
mov edi, dword [0x100060a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10001d27
test byte [0x10002030], 8
jne 0x10001dc0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10002040], 8
jne 0x10001d80
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10001cc9
cmp esi, 3
jbe 0x10001d38
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10001cda
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x100041b0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10001cc9
mov dword [esp], 0x10002040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10001ca0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10001ca0
mov dword [esp], 0x10002030
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10001c8b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10001c93
mov eax, 0xffffffff
jmp 0x10001d27
Function at 0x401246
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea esi, [eax - 6]
xor edi, edi
lea eax, [esi - 1]
cmp eax, edi
jl 0x401274
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x28]
sub ecx, edx
lea edx, [ecx + eax*4]
dec eax
mov edx, dword [ebp + edx - 0x28]
mov dword [ebp + eax*4 - 0x24], edx
jns 0x401266
mov ebx, dword [ebp + 0xc]
xor eax, eax
cmp esi, edi
mov dword [ebp - 4], edi
jle 0x4012a5
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
inc ecx
cmp edx, ecx
jge 0x4012a5
lea ecx, [edi + edx*4]
mov edx, dword [ebp + eax*4 - 0x28]
inc edi
cmp edi, 4
mov dword [ebx + ecx*4], edx
jne 0x4012a0
inc dword [ebp - 4]
xor edi, edi
inc eax
cmp eax, esi
jl 0x401280
mov eax, dword [ebp + 0x10]
inc eax
cmp dword [ebp - 4], eax
mov dword [ebp - 8], eax
jge 0x4013f8
mov dword [ebp + 0xc], 0x412250
push dword [ebp + esi*4 - 0x2c]
lea eax, [ebp + 8]
push eax
call fcn.004013fd
push dword [ebp - 0x28]
lea eax, [ebp + 0x10]
push eax
call fcn.004013fd
movzx ecx, byte [ebp + 9]
mov al, byte [ebp + 0x10]
xor al, byte [ecx + str.cw]
movzx ecx, byte [ebp + 0xa]
mov cl, byte [ecx + str.cw]
xor byte [ebp + 0x11], cl
movzx ecx, byte [ebp + 0xb]
mov cl, byte [ecx + str.cw]
xor byte [ebp + 0x12], cl
movzx ecx, byte [ebp + 8]
mov cl, byte [ecx + str.cw]
xor byte [ebp + 0x13], cl
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx]
inc dword [ebp + 0xc]
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040103f
xor ecx, ecx
add esp, 0x18
inc ecx
cmp esi, 8
je 0x401345
cmp esi, ecx
jle 0x4013c4
mov edx, dword [ebp + ecx*4 - 0x2c]
lea eax, [ebp + ecx*4 - 0x28]
xor dword [eax], edx
inc ecx
cmp ecx, esi
jl 0x401334
jmp 0x4013c4
mov edx, dword [ebp + ecx*4 - 0x2c]
lea eax, [ebp + ecx*4 - 0x28]
xor dword [eax], edx
inc ecx
cmp ecx, 4
jl 0x401345
push dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
call fcn.004013fd
push dword [ebp - 0x18]
lea eax, [ebp + 0x10]
push eax
call fcn.004013fd
movzx eax, byte [ebp + 8]
mov al, byte [eax + str.cw]
xor byte [ebp + 0x10], al
movzx eax, byte [ebp + 9]
mov al, byte [eax + str.cw]
xor byte [ebp + 0x11], al
movzx eax, byte [ebp + 0xa]
mov al, byte [eax + str.cw]
xor byte [ebp + 0x12], al
movzx eax, byte [ebp + 0xb]
mov al, byte [eax + str.cw]
xor byte [ebp + 0x13], al
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040103f
add esp, 0x18
push 5
pop ecx
mov edx, dword [ebp + ecx*4 - 0x2c]
lea eax, [ebp + ecx*4 - 0x28]
xor dword [eax], edx
inc ecx
cmp ecx, 8
jl 0x4013b4
xor eax, eax
test esi, esi
jle 0x4013ec
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jge 0x4013f8
mov edx, dword [ebp + eax*4 - 0x28]
lea ecx, [edi + ecx*4]
inc edi
cmp edi, 4
mov dword [ebx + ecx*4], edx
jne 0x4013e7
inc dword [ebp - 4]
xor edi, edi
inc eax
cmp eax, esi
jl 0x4013ca
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jl 0x4012bc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40141e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
jle 0x401531
mov ecx, dword [ebp + 8]
push esi
push edi
lea edi, [eax - 1]
lea esi, [ecx + 0x18]
push dword [esi - 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004013fd
movzx eax, byte [ebp + 0xf]
movzx ecx, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x411e50]
push dword [esi - 4]
xor eax, dword [ecx*4 + 0x411a50]
movzx ecx, byte [ebp + 0xd]
xor eax, dword [ecx*4 + 0x411650]
movzx ecx, byte [ebp + 0xc]
xor eax, dword [ecx*4 + 0x411250]
mov dword [esi - 8], eax
lea eax, [ebp + 0xc]
push eax
call fcn.004013fd
movzx eax, byte [ebp + 0xf]
movzx ecx, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x411e50]
push dword [esi]
xor eax, dword [ecx*4 + 0x411a50]
movzx ecx, byte [ebp + 0xd]
xor eax, dword [ecx*4 + 0x411650]
movzx ecx, byte [ebp + 0xc]
xor eax, dword [ecx*4 + 0x411250]
mov dword [esi - 4], eax
lea eax, [ebp + 0xc]
push eax
call fcn.004013fd
movzx eax, byte [ebp + 0xf]
movzx ecx, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x411e50]
push dword [esi + 4]
xor eax, dword [ecx*4 + 0x411a50]
movzx ecx, byte [ebp + 0xd]
xor eax, dword [ecx*4 + 0x411650]
movzx ecx, byte [ebp + 0xc]
xor eax, dword [ecx*4 + 0x411250]
mov dword [esi], eax
lea eax, [ebp + 0xc]
push eax
call fcn.004013fd
movzx eax, byte [ebp + 0xf]
movzx ecx, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x411e50]
add esp, 0x20
xor eax, dword [ecx*4 + 0x411a50]
add esi, 0x10
movzx ecx, byte [ebp + 0xd]
xor eax, dword [ecx*4 + 0x411650]
movzx ecx, byte [ebp + 0xc]
xor eax, dword [ecx*4 + 0x411250]
dec edi
mov dword [esi - 0xc], eax
jne 0x401438
pop edi
pop esi
pop ebp
ret
Function at 0x403920
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret