joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8368
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4da34c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4da360]
je 0x4b839f
inc eax
cmp eax, 0x13
jb 0x4b8390
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4da360]
jne 0x4b84c2
mov eax, dword [0x4dbf3c]
cmp eax, 1
je 0x4b849d
cmp eax, edx
jne 0x4b83cf
cmp dword [0x4d994c], 1
je 0x4b849d
cmp ecx, 0xfc
je 0x4b84c2
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4b8405
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004ad0b0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004b1380
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b8439
mov eax, edi
push eax
call fcn.004b1380
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4d3ad8
push edi
call fcn.004af8f0
add esp, 0x10
push edi
call fcn.004b1380
push dword [esi + 0x4da364]
mov ebx, eax
call fcn.004b1380
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004ad340
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004ad0b0
push edi
push ebx
call fcn.004ad0c0
push 0x4d3ab8
push ebx
call fcn.004ad0c0
push dword [esi + 0x4da364]
push ebx
call fcn.004ad0c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004bbf63
add esp, 0x2c
jmp 0x4b84c2
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4da364]
push dword [esi]
call fcn.004b1380
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]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004b919e
add ebp, 0x90
leave
ret
Function at 0x4b898c
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4dc444]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x4b89d5
call ebp
mov esi, eax
cmp esi, ebx
je 0x4b89bb
mov dword [0x4dc444], 1
jmp 0x4b89da
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x4b89d0
push 2
pop eax
mov dword [0x4dc444], eax
jmp 0x4b89d5
mov eax, dword [0x4dc444]
cmp eax, 1
jne 0x4b8a32
cmp esi, ebx
jne 0x4b89ed
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4b89ed
xor eax, eax
jmp 0x4b8ad9
cmp word [esi], bx
mov eax, esi
je 0x4b8a02
inc eax
inc eax
cmp word [eax], bx
jne 0x4b89f4
inc eax
inc eax
cmp word [eax], bx
jne 0x4b89f4
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004ae494
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4b8a25
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4b8ad9
push ebp
push esi
push edi
call fcn.004ad610
add esp, 0xc
jmp 0x4b8a17
cmp eax, 2
je 0x4b8a3b
cmp eax, ebx
jne 0x4b89e6
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4b89e6
cmp byte [ebp], bl
mov esi, ebp
je 0x4b8a71
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
je 0x4b89e6
push esi
add edi, eax
call fcn.004b1380
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4b8a4e
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004ae494
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4b8aea
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4b8acb
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x4b8ae0
push edi
call fcn.004b1380
push esi
lea edi, [edi + eax + 1]
call fcn.004ae019
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4b8a91
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.004ae02f
pop ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
jmp 0x4b89e6
Function at 0x4b8af6
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4dc448]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
jne 0x4b8b36
call esi
test eax, eax
je 0x4b8b1b
mov dword [0x4dc448], 1
jmp 0x4b8b3b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x4b8b32
mov dword [0x4dc448], 2
jmp 0x4b8b44
xor eax, eax
jmp 0x4b8b92
cmp eax, 1
jne 0x4b8b3f
call esi
jmp 0x4b8b92
cmp eax, 2
jne 0x4b8b32
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x4b8b8a
lea eax, [esi + esi]
push eax
call fcn.004ae494
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4b8b8a
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4b8b8e
push ebp
call fcn.004ae02f
pop ecx
xor eax, eax
jmp 0x4b8b90
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4bbf63
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4dc4d4], ebx
push esi
push edi
jne 0x4bbfe3
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4bc01e
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4dc4d4], eax
je 0x4bc01e
push 0x4d55e8
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4dc4d8], eax
call esi
cmp dword [0x4dbf44], 2
mov dword [0x4dc4dc], eax
jne 0x4bbfe3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4dc4e4], eax
je 0x4bbfe3
push 0x4d55a0
push edi
call esi
mov dword [0x4dc4e0], eax
mov eax, dword [0x4dc4e0]
test eax, eax
je 0x4bc028
call eax
test eax, eax
je 0x4bc00f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4dc4e4]
test eax, eax
je 0x4bc00f
test byte [ebp - 8], 1
jne 0x4bc028
cmp dword [0x4dbf50], 4
jb 0x4bc022
or byte [ebp + 0x12], 0x20
jmp 0x4bc047
xor eax, eax
jmp 0x4bc057
or byte [ebp + 0x12], 4
jmp 0x4bc047
mov eax, dword [0x4dc4d8]
test eax, eax
je 0x4bc047
call eax
mov ebx, eax
test ebx, ebx
je 0x4bc047
mov eax, dword [0x4dc4dc]
test eax, eax
je 0x4bc047
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4dc4d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bd4dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4bd6b2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4dc7c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4bd6b2
test cl, 0x48
je 0x4bd547
cmp byte [eax + 5], 0xa
je 0x4bd547
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4bd599
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4bd581
call fcn.004b1087
mov dword [eax], 9
call fcn.004b1090
mov dword [eax], esi
jmp 0x4bd591
cmp eax, 0x6d
je 0x4bd6b2
push eax
call fcn.004b1099
pop ecx
or eax, 0xffffffff
jmp 0x4bd6b4
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4bd6ad
test eax, eax
je 0x4bd5c0
cmp byte [ebx], 0xa
jne 0x4bd5c0
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4bd5c9
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4bd6a7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4bd697
cmp al, 0xd
je 0x4bd5fb
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4bd689
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4bd615
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4bd610
add dword [ebp + 0x10], 2
jmp 0x4bd669
mov dword [ebp + 0x10], eax
jmp 0x4bd685
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4bd63d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4bd685
cmp dword [ebp - 0xc], 0
je 0x4bd685
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4bd65e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4bd669
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4bd688
cmp ebx, dword [ebp + 0xc]
jne 0x4bd66e
cmp byte [ebp - 1], 0xa
jne 0x4bd66e
mov byte [ebx], 0xa
jmp 0x4bd688
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b9247
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4bd689
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4bd5df
jmp 0x4bd6a7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4bd6a7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4bd6b4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4be035
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4be04e
or eax, 0xffffffff
jmp 0x4be0af
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4be0ab
push 0x3d
push esi
call fcn.004be236
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4be0ab
cmp esi, eax
je 0x4be0ab
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4dbf64]
sete cl
cmp eax, dword [0x4dbf68]
mov dword [ebp - 4], ecx
jne 0x4be091
mov edi, eax
call fcn.004bdfd4
mov dword [0x4dbf64], eax
cmp eax, ebx
jne 0x4be0ea
cmp dword [ebp + 0xc], ebx
je 0x4be0b3
cmp dword [0x4dbf6c], ebx
je 0x4be0b3
call fcn.004bd44c
test eax, eax
je 0x4be0ea
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4be0bc
xor eax, eax
jmp 0x4be0ae
push 4
call fcn.004ae494
cmp eax, ebx
pop ecx
mov dword [0x4dbf64], eax
je 0x4be0ab
mov dword [eax], ebx
cmp dword [0x4dbf6c], ebx
jne 0x4be0ea
push 4
call fcn.004ae494
cmp eax, ebx
pop ecx
mov dword [0x4dbf6c], eax
je 0x4be0ab
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4dbf64]
sub edi, esi
push esi
call fcn.004bdf87
mov edi, eax
test edi, edi
pop ecx
jl 0x4be151
cmp dword [ebx], 0
je 0x4be151
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004ae02f
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4be131
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4be192
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4be128
mov eax, edi
shl eax, 2
push eax
push dword [0x4dbf64]
call fcn.004b018a
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4be192
jmp 0x4be18d
cmp dword [ebp - 4], 0
jne 0x4be1f9
test edi, edi
jge 0x4be161
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4dbf64]
call fcn.004b018a
test eax, eax
pop ecx
pop ecx
je 0x4be0ab
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4dbf64], eax
cmp dword [ebp + 0xc], 0
je 0x4be1e4
push esi
call fcn.004b1380
inc eax
inc eax
push eax
call fcn.004ae494
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4be1e4
push esi
push edi
call fcn.004ad0b0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x4be1dd
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.004ae02f
pop ecx
cmp dword [ebp - 4], 0
je 0x4be1f1
push esi
call fcn.004ae02f
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4be0ae
push esi
call fcn.004ae02f
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4be0b8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x4344c8
push 0x14
push 0x44f050
call fcn.004345e0
push 1
call fcn.004340ae
pop ecx
test al, al
jne 0x43437f
push 7
call fcn.004347e5
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00434079
mov byte [ebp - 0x24], al
mov eax, dword [0x4527dc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x434378
test eax, eax
jne 0x4343e9
mov dword [0x4527dc], ecx
push 0x4442cc
push 0x4442b4
call fcn.0043ada6
pop ecx
pop ecx
test eax, eax
je 0x4343cc
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4344c2
push 0x4442b0
push 0x444260
call fcn.0043ad4a
pop ecx
pop ecx
mov dword [0x4527dc], 2
jmp 0x4343ee
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00434208
pop ecx
call fcn.00434a8c
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x43441e
push esi
call fcn.0043417e
pop ecx
test al, al
je 0x43441e
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004345d8
call esi
call fcn.00434a92
mov esi, eax
cmp dword [esi], edi
je 0x43443c
push esi
call fcn.0043417e
pop ecx
test al, al
je 0x43443c
push dword [esi]
call fcn.0043a1ea
pop ecx
call fcn.00434900
movzx eax, ax
push eax
call fcn.0043acf7
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0043a0f9
test al, al
jne 0x434467
push esi
call fcn.0043a222
test bl, bl
jne 0x434470
call fcn.0043a1c5
push edi
push 1
call fcn.00434225
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4344c2
call fcn.00434626
ret
call fcn.00434988
jmp 0x434360
Function at 0x401b26
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
je 0x401b58
test dl, 3
je 0x401b55
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x452f00]
inc edx
sub ecx, 1
jne 0x401b38
mov dword [ebp - 4], edx
push edi
lea edi, [edx + ecx]
mov eax, edi
mov dword [ebp + 8], eax
cmp ecx, 0xc
jb 0x401c2c
sub edi, 0xc
xor ebx, dword [edx]
mov edx, dword [edx + 4]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x454300]
xor esi, dword [eax*4 + 0x454700]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x453f00]
movzx eax, dl
mov edx, dword [ebp - 4]
xor esi, dword [eax*4 + 0x454b00]
mov edx, dword [edx + 8]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x453300]
xor ecx, dword [eax*4 + 0x453700]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x455300]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x455700]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x452f00]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x454f00]
movzx eax, bl
xor ecx, dword [eax*4 + 0x455b00]
movzx eax, dl
mov edx, dword [ebp - 4]
add edx, 0xc
mov dword [ebp - 4], edx
xor ecx, dword [eax*4 + 0x453b00]
xor ecx, esi
mov ebx, ecx
cmp edx, edi
jbe 0x401b6d
mov eax, dword [ebp + 8]
xor edi, edi
mov ecx, eax
sub ecx, edx
xor esi, esi
cmp edx, eax
cmova ecx, edi
pop edi
test ecx, ecx
je 0x401c56
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x452f00]
inc edx
inc esi
cmp esi, ecx
jb 0x401c3e
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401c60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x401c97
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x401c8a
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401d05
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x401d52
cmp ebx, 4
jne 0x401d55
cmp edi, 6
jbe 0x401d55
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x401ca6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402c8c
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x451008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402cd5
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402cd5
push 0xc00
call eax
test eax, eax
jne 0x402d70
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402d70
cmp eax, 0x104
ja 0x402d70
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402d0c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402d6f
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x402d36
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x402d2d
push 0x2e
pop eax
push 0x64
mov word [ecx], ax
pop eax
mov word [ecx + 2], ax
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [ecx + 4], bx
mov word [ecx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402d29
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433c38
mov esp, ebp
pop ebp
ret
Function at 0x407045
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, ecx
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [ebp - 4], esi
cmova eax, ecx
mov dword [esi + 0x78], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x4070f5
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x4070d4
mov ecx, edi
call fcn.00406147
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x4070c6
cmp dword [esi + 0x5c], ebx
je 0x4070f0
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
xor edx, edx
mov dword [esi + 0x5c], edx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa8], edx
mov dword [esi + 0xac], edx
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
mov ecx, ebx
call fcn.0040612a
mov edi, eax
test edi, edi
jne 0x407187
lea ecx, [ebx + 0x20]
call fcn.0040777d
mov edi, eax
test edi, edi
jne 0x407187
lea ecx, [ebx + 0x1c]
call fcn.0040777d
mov edi, eax
test edi, edi
jne 0x407187
push ebx
call fcn.00406df8
mov edi, eax
test edi, edi
je 0x407187
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
mov ecx, ebx
call fcn.0040616b
add ebx, 0x28
sub esi, 1
jne 0x407175
mov esi, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x40719b
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x4071af
cmp dword [esi + 0x40], edx
jne 0x4071af
cmp dword [esi + 0x3c], edx
jne 0x4071af
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4071be
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 8], 0
and dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x4071ff
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x40720a
jmp fcn.004071be