joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e62
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call esi
mov edi, eax
mov eax, ebx
call fcn.00401000
lea eax, [edi + 2]
mov dword [ebp - 4], eax
push eax
mov eax, ebx
call fcn.004034b3
inc edi
push edi
push dword [ebp - 4]
mov eax, ebx
call fcn.004034b3
push eax
push dword [ebp + 8]
call esi
push ebx
call fcn.00403495
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x404eaf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x42f280]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov edi, eax
mov ebx, 0x409
test edi, edi
jne 0x404ef7
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
je 0x404f21
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x404f0a
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404f21
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x404f8b
cmp dword [0x42f444], 0
jne 0x404f89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x42cee8]
mov dword [0x42f444], 1
call esi
push 0
mov edi, eax
movzx eax, word [0x42f280]
push ebx
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test edi, edi
jne 0x404f7f
push str.SetThreadPreferredUILanguages
push dword [0x42cee8]
call esi
mov edi, eax
test edi, edi
je 0x404f89
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405280
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x42bdd0], ebx
je 0x4052b3
mov eax, 0x42bdd0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4052b3
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x42bdd0]
cmp dword [eax], ebx
jne 0x40529c
shl esi, 4
cmp dword [esi + 0x42bdd0], ebx
jne 0x4052c8
mov eax, 0x426924
jmp 0x40543a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x405378
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041bcfe
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x40536f
call edi
test eax, eax
jne 0x40536f
mov eax, dword [esi + 0x42bddc]
test eax, eax
je 0x405364
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405361
push dword [esi + 0x42bddc]
call fcn.0041bca4
mov dword [esi + 0x42bddc], edi
jmp 0x405377
push edi
jmp 0x405372
mov eax, dword [ebp - 8]
mov dword [esi + 0x42bddc], eax
jmp 0x405378
push dword [ebp - 8]
call fcn.0041bca4
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x42bddc]
test eax, eax
jne 0x405439
mov ebx, dword [esi + 0x42bdd4]
cmp dword [esi + 0x42bdd8], eax
je 0x4053af
call fcn.00405226
cmp eax, 0x419
jne 0x4053af
mov ebx, dword [esi + 0x42bdd8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041bcfe
cmp dword [0x42c0d8], 0xffffffff
pop ecx
mov dword [esi + 0x42bddc], eax
jne 0x405419
and dword [0x42c0d8], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x42f280]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x405419
lea eax, [ebp - 0xa4]
push eax
call fcn.0041bee2
pop ecx
mov dword [0x42c0d8], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x42bddc]
push edi
push ebx
push 0
push dword [0x42c0d8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x42bddc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4054f2
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x405545
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x405bda
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42cee8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0040a595
call fcn.00405226
push 3
call fcn.00405280
pop ecx
push 0x28
mov dword [0x42cf10], eax
call fcn.00405280
pop ecx
push 2
mov dword [0x42cf0c], eax
call fcn.00405280
pop ecx
push 5
mov dword [0x42cf08], eax
call fcn.00405280
pop ecx
push 0x15
mov dword [0x42cf04], eax
call fcn.00405280
pop ecx
push 0x16
mov dword [0x42cf00], eax
call fcn.00405280
pop ecx
push 0x17
mov dword [0x42cefc], eax
call fcn.00405280
xor ebx, ebx
pop ecx
mov dword [0x42cef8], eax
mov dword [0x42cef0], ebx
mov dword [0x42cef4], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x270]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x405cd5
push edi
lea eax, [ebp - 0x60]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00403591
add esp, 0xc
xor esi, esi
cmp dword [esi + 0x42bda8], edi
jne 0x405ccd
push ebx
lea eax, [ebp - 0x270]
push eax
push dword [esi + 0x42bdac]
call fcn.00403591
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x405caf
inc edi
cmp edi, 0x40
jl 0x405c71
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405d1a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, 0x42f3f4
push edi
mov eax, esi
xor edi, edi
call fcn.00410813
test eax, eax
jle 0x405d85
push ebx
mov ecx, edi
mov eax, esi
call fcn.00414fbb
lea ebx, [eax + 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.00402655
lea eax, [ebp - 0xc]
call fcn.00405d02
lea eax, [ebp - 0xc]
call fcn.0040bbc2
push eax
mov ecx, edi
mov eax, esi
call fcn.00414fbb
call fcn.0040bbc2
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0xc]
call fcn.004017d0
mov eax, esi
inc edi
call fcn.00410813
cmp edi, eax
jl 0x405d35
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4075a5
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea eax, [ebp + 8]
call fcn.0040bbc2
cmp word [eax + 2], 0x3a
jne 0x407728
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x4075d3
cmp ecx, 0x2f
jne 0x407728
mov ax, word [eax]
push 0x3a
mov word [ebp - 0x18], ax
pop eax
mov word [ebp - 0x16], ax
push 0x5c
pop eax
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x407728
push str.7ZSfx_03x.cmd
lea esi, [ebp - 0x30]
call fcn.00403608
pop ecx
mov eax, esi
call fcn.0040bbc2
mov dword [ebp - 8], eax
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x407720
lea eax, [ebp - 0x24]
call fcn.00401000
push str.:Repeat_r_n
lea eax, [ebp - 0x24]
call fcn.0040100c
push str.del__
lea esi, [ebp - 0x24]
call fcn.00412685
lea edi, [ebp + 8]
call fcn.004126bc
mov ebx, 0x427fec
push ebx
call fcn.00412685
push str.if_exist__
call fcn.00412685
call fcn.004126bc
push str.__goto_Repeat_r_n
call fcn.00412685
push str.del__
call fcn.00412685
lea edi, [ebp - 0x30]
call fcn.004126bc
push ebx
call fcn.00412685
mov eax, esi
call fcn.0040b9c5
mov edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push 1
lea ebx, [ebp - 0x3c]
call fcn.00403796
pop ecx
call fcn.00403413
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov eax, ebx
call fcn.004017d0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp esi, ebx
je 0x407710
cmp dword [ebp - 0x10], edi
jne 0x407710
push ebx
lea eax, [ebp + 8]
call fcn.0040bbc2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x407718
mov esi, dword [ebp - 8]
call fcn.00404457
lea eax, [ebp - 0x24]
call fcn.004017d0
lea eax, [ebp - 0x30]
call fcn.004017d0
lea eax, [ebp + 8]
call fcn.004017d0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4077fc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push 0x41343d
push eax
push eax
call fcn.0041c816
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.004077be
add esp, 0x1c
leave
ret

Function at 0x407896
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00407882
Function at 0x407b6f
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
mov eax, 0x42f2f8
call fcn.0040bbc2
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [ebp + 8]
add edi, 4
mov ecx, edi
call fcn.00405a47
test al, al
jne 0x407bb0
push edi
call fcn.00407d3b
pop ecx
test al, al
je 0x407bb0
push esi
mov eax, edi
call fcn.0040bbc2
mov esi, eax
call fcn.00404457
pop esi
mov eax, edi
call fcn.00402649
mov al, 1
pop edi
pop ebp
ret 4
Function at 0x409009
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov esi, ecx
mov edi, 0x4b6
push edi
mov eax, esi
call fcn.004088a1
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
xor ecx, ecx
add eax, 2
mov dword [esi + 0x58], eax
push edi
inc ecx
mov eax, esi
call fcn.00408941
xor ecx, ecx
inc edi
push edi
inc ecx
mov eax, esi
call fcn.00408941
and dword [ebp - 0x2c8], 0
push 0x2b0
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.00420580
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c8]
push eax
push 0
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c8]
push 0x4091e3
push 0xfffffffffffffffc
mov dword [esi + 0x50], eax
push edi
mov eax, esi
call fcn.00407e18
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004085c4
push esi
mov edi, eax
call fcn.004092c1
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a174
Capabilities:
Create thread

Disassembly:
push esi
call fcn.00407deb
test eax, eax
jne 0x40a18f
push eax
push eax
push esi
push 0x40a134
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
push dword [0x42cf08]
mov eax, esi
call fcn.0040b9c5
push eax
call fcn.00408885
push 0x2d
call fcn.00405280
pop ecx
push eax
push 0x4b2
mov eax, esi
call fcn.00407e47
ret

Function at 0x40a595
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40a59d
mov dword [ecx*4 + 0x42f5a0], eax
inc ecx
cmp ecx, 0x100
jb 0x40a598
mov edx, 0x800
jmp 0x40a5ea
mov eax, dword [ecx*4 + 0x42f1a0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42f5a0]
inc ecx
mov dword [ecx*4 + 0x42f59c], eax
cmp ecx, edx
jb 0x40a5c9
mov eax, 0x422a50
mov esi, 0x422970
mov dword [0x42f588], eax
mov dword [0x4315a0], eax
mov dword [0x42f584], esi
call fcn.00410964
test eax, eax
jne 0x40a617
mov dword [0x4315a0], esi
pop esi
ret
Function at 0x410bb7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x410bdf
xor al, al
jmp 0x410bf1
mov ecx, dword [ebp + 8]
xor eax, eax
xor edx, edx
add eax, edi
adc ecx, edx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov al, 1
pop edi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x42d058], al
inc eax
cmp eax, 0x100
jb 0x413fb2
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, dword [ebp - 4]
movzx esi, byte [ecx + str.cw]
mov eax, esi
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x1b
lea edx, [esi + esi]
xor eax, edx
mov edi, 0xff
and eax, edi
mov edx, eax
xor edx, esi
mov dword [ebp - 8], edx
shl edx, 8
or edx, esi
shl edx, 8
or edx, esi
shl edx, 8
or edx, eax
mov dword [ecx*4 + 0x42e160], edx
mov edx, esi
shl edx, 8
mov ebx, edx
or edx, eax
or ebx, esi
shl edx, 8
or edx, dword [ebp - 8]
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, dword [ebp - 8]
shl ebx, 8
or ebx, dword [ebp - 8]
shl edx, 8
shl eax, 8
mov dword [ecx*4 + 0x42e560], ebx
mov ebx, ecx
movzx esi, byte [ebx + str.cw]
or edx, esi
or eax, esi
mov dword [ecx*4 + 0x42e960], edx
movzx edx, byte [ebx + 0x42d058]
shl eax, 8
or eax, esi
mov dword [ecx*4 + 0x42ed60], eax
mov eax, edx
and al, 0x80
mov dword [ebp - 8], edx
movzx eax, al
neg eax
sbb eax, eax
add edx, edx
and eax, 0x1b
xor eax, edx
and eax, edi
mov edx, eax
and dl, 0x80
movzx esi, dl
neg esi
sbb esi, esi
and esi, 0x1b
lea edx, [eax + eax]
xor esi, edx
and esi, edi
mov edx, esi
and dl, 0x80
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea ebx, [esi + esi]
xor edx, ebx
and edx, edi
mov edi, edx
xor edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, edx
xor edi, eax
xor edi, dword [ebp - 8]
xor edx, esi
xor eax, edx
mov esi, edx
xor esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ebx, edi
shl ebx, 8
or ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov dword [ecx*4 + 0x42d158], ebx
mov ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, edi
mov dword [ecx*4 + 0x42d558], ebx
mov ebx, edx
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, edi
shl ebx, 8
shl eax, 8
or ebx, edi
or eax, esi
shl ebx, 8
shl eax, 8
or ebx, esi
or eax, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov dword [ecx*4 + 0x42d958], ebx
mov dword [ecx*4 + 0x42dd58], eax
jb 0x413fce
mov dword [0x42f160], 0x414b97
mov dword [0x42e15c], 0x414bf3
mov dword [0x42e158], 0x414c77
call fcn.00410a32
pop edi
pop esi
pop ebx
test eax, eax
je 0x414179
mov dword [0x42f160], 0x422c80
mov dword [0x42e15c], 0x422b30
mov dword [0x42e158], 0x422cf0
leave
ret
Function at 0x41417b
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
test eax, eax
je 0x4141b0
mov ebx, dword [edx]
mov dword [ecx + esi*4 + 0x10], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x4141a2
cmp esi, edi
jae 0x414291
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4 + 0x10]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov edi, dword [ecx + esi*4 + 0xc]
mov dword [ebp - 8], eax
test edx, edx
jne 0x414228
mov eax, edi
mov ebx, edi
mov edx, 0xff
and eax, edx
movzx eax, byte [eax + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl eax, 8
or eax, ebx
mov ebx, edi
shr edi, 8
and edi, edx
shr ebx, 0x10
and ebx, edx
movzx edx, byte [edi + str.cw]
movzx ebx, byte [ebx + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x427a04]
shl eax, 8
or eax, ebx
shl eax, 8
xor edi, edx
or edi, eax
jmp 0x414278
cmp dword [ebp + 8], 6
jbe 0x414278
cmp edx, 4
jne 0x414278
mov edx, edi
shr edx, 0x10
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov eax, 0xff
and edx, eax
movzx edx, byte [edx + str.cw]
shl ebx, 8
or edx, ebx
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
and edi, eax
movzx edi, byte [edi + str.cw]
or edx, ebx
shl edx, 8
or edi, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, edi
mov dword [ecx + esi*4 + 0x10], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4141c3
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x414cd3
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
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

Function at 0x414f4f
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push edi
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov ebx, eax
mov byte [edi + esi + 0x28], 0x80
jmp 0x414f71
and edi, 0x3f
jne 0x414f6c
push esi
call fcn.00414d13
pop ecx
mov byte [esi + edi + 0x28], 0
inc edi
cmp edi, 0x38
jne 0x414f60
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
shl eax, 3
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.00414d13
pop ecx
xor ecx, ecx
mov eax, dword [esi + ecx*4 + 4]
mov edx, dword [esi + ecx*4]
bswap edx
bswap eax
mov dword [ebx], edx
mov dword [ebx + 4], eax
add ecx, 2
add ebx, 8
cmp ecx, 8
jb 0x414f97
pop edi
mov eax, esi
pop ebx
jmp fcn.00414cd3

Function at 0x4152b1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
push edi
xor edi, edi
and edx, 7
cmp ecx, 5
jae 0x4152cd
xor eax, eax
jmp 0x4153df
mov eax, dword [ebp + 8]
add dword [ebp + 0xc], 5
sub ecx, 4
add ecx, eax
push ebx
mov dword [ebp - 4], ecx
push esi
lea esi, [edi + eax]
jmp 0x4152ee
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4152f3
inc esi
cmp esi, dword [ebp - 4]
jb 0x4152e3
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, eax
sub edi, eax
cmp esi, dword [ebp - 4]
jae 0x4153c9
cmp ecx, 2
jbe 0x415346
xor edx, edx
movzx ecx, byte [esi + 4]
lea ebx, [ecx + 1]
test bl, 0xfe
jne 0x415365
movzx ebx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ebx, ecx
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 1]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0xc]
add eax, edi
add edi, 5
cmp dword [ebp + 0x14], 0
je 0x415370
add ebx, eax
jmp 0x415372
shr edx, cl
test edx, edx
je 0x41530d
cmp edx, 4
ja 0x415365
cmp edx, 3
je 0x415365
mov ecx, edx
shr ecx, 1
movzx ecx, byte [ecx + esi + 1]
inc ecx
test cl, 0xfe
jne 0x41530d
or edx, 8
shr edx, 1
inc edi
jmp 0x4152de
sub ebx, eax
test edx, edx
je 0x4153a3
and edx, 6
shl edx, 2
mov ecx, edx
mov edx, ebx
shr edx, cl
mov dword [ebp - 8], ecx
inc edx
test dl, 0xfe
jne 0x4153a1
mov edx, 0x100
shl edx, cl
dec edx
xor ebx, edx
cmp dword [ebp + 0x14], 0
je 0x41539f
add ebx, eax
jmp 0x4153a1
sub ebx, eax
xor edx, edx
mov eax, ebx
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
mov byte [esi + 1], bl
shr ebx, 0x18
shr eax, 0x10
and bl, 1
neg bl
mov byte [esi + 3], al
mov eax, dword [ebp + 8]
mov byte [esi + 4], bl
jmp 0x4152de
push 2
pop eax
shr edx, cl
cmp eax, ecx
mov ecx, dword [ebp + 0x10]
sbb eax, eax
not eax
and eax, edx
pop esi
mov dword [ecx], eax
mov eax, edi
pop ebx
pop edi
leave
ret
Function at 0x41fb10
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42bac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041e3fb
and dword [ebp - 0x14], 0
cmp dword [0x42cb54], 0
mov dword [ebp - 0x18], eax
jne 0x41fbc3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fc6b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fc6b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42cb54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42cb58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42cb5c], eax
call edi
push eax
call esi
mov dword [0x42cb64], eax
test eax, eax
je 0x41fbc3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42cb60], eax
mov eax, dword [0x42cb60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc1c
cmp dword [0x42cb64], ecx
je 0x41fc1c
push eax
call esi
push dword [0x42cb64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc1c
test ebx, ebx
je 0x41fc1c
call edi
test eax, eax
je 0x41fc13
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc13
test byte [ebp - 8], 1
jne 0x41fc1c
or dword [ebp + 0x10], 0x200000
jmp 0x41fc4f
mov eax, dword [0x42cb58]
cmp eax, dword [ebp - 0x18]
je 0x41fc4f
push eax
call esi
test eax, eax
je 0x41fc4f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fc4f
mov eax, dword [0x42cb5c]
cmp eax, dword [ebp - 0x18]
je 0x41fc4f
push eax
call esi
test eax, eax
je 0x41fc4f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42cb54]
call esi
test eax, eax
je 0x41fc6b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fc6d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fe7b
leave
ret

Function at 0x41fe7b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42bac0]
jne 0x41fe85
repz ret
jmp fcn.004212db