joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cc0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x408888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x40b0f4]
push ebx
mov dword [esp + 0x5c], eax
push edi
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov dword [esp + 0x70], ebx
call fcn.00401c20
add esp, 4
mov eax, dword [esp + 0x24]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x10]
mov byte [esp + 0x6c], 1
jae 0x401d10
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401e64
push ebp
push esi
push 3
mov ebp, 0xf
push 0x4091dc
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.004018b0
push 0x12
push str._nfsc_launcher.exe
lea ecx, [esp + 0x84]
mov byte [esp + 0x7c], 2
call fcn.00401ad0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.004014c0
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push 0x4091c7
push 1
push ebx
push str.GameLauncherParameters
push edx
call esi
cmp dword [esp + 0x48], edi
mov eax, dword [esp + 0x34]
jae 0x401da6
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
inc ecx
push ecx
push eax
push 1
push ebx
push str.GameLauncherPath
push edx
call esi
cmp dword [esp + 0x64], edi
mov eax, dword [esp + 0x50]
jae 0x401dca
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x10]
inc ecx
push ecx
push eax
push 1
push ebx
push str.Version
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x48], edi
jb 0x401dfe
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00402b63
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x401e1d
mov edx, dword [esp + 0x50]
push edx
call fcn.00402b63
add esp, 4
cmp dword [esp + 0x2c], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jb 0x401e3c
mov eax, dword [esp + 0x18]
push eax
call fcn.00402b63
add esp, 4
cmp dword [esp + 0x94], edi
pop esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
pop ebp
jb 0x401e60
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00402b63
add esp, 4
xor eax, eax
jmp 0x401ea2
cmp dword [esp + 0x24], edi
jb 0x401e77
mov edx, dword [esp + 0x10]
push edx
call fcn.00402b63
add esp, 4
cmp dword [esp + 0x8c], edi
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
jb 0x401e9d
mov eax, dword [esp + 0x78]
push eax
call fcn.00402b63
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x64]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x5c]
pop ebx
call fcn.00403075
add esp, 0x68
ret
Function at 0x401f70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4088b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x40b0f4]
push esi
push edi
xor edi, edi
push 0x4091e0
mov dword [esp + 0x48], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], edi
mov word [esp + 0x30], di
call fcn.00402b4d
add esp, 4
push eax
push 0x4091e0
lea ecx, [esp + 0x30]
call fcn.004019a0
mov eax, dword [esp + 0x5c]
push 0x67
push eax
mov dword [esp + 0x58], edi
call fcn.00401000
add esp, 4
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00401ec0
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
call fcn.004015b0
mov esi, dword [esp + 0x58]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.004016b0
cmp dword [esp + 0x24], 8
jb 0x40202a
mov edx, dword [esp + 0x10]
push edx
call fcn.00402b63
add esp, 4
cmp dword [esp + 0x40], 8
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
mov word [esp + 0x10], di
jb 0x40204f
mov eax, dword [esp + 0x2c]
push eax
call fcn.00402b63
add esp, 4
mov ecx, dword [esp + 0x48]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
call fcn.00403075
add esp, 0x4c
ret

Function at 0x4024a0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
push ebx
push 0
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40257d
lea eax, [esp + 4]
push eax
push 0x409228
push 1
push 0
push 0x409238
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402577
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4024f9
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x402513
mov eax, dword [esp + 4]
mov edx, dword [eax]
push esi
mov esi, dword [esp + 0x24]
push esi
push ecx
push eax
call dword [edx + 0x44]
pop esi
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x402526
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x402539
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x409248
push eax
call dword [ecx]
test eax, eax
jl 0x40256d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov bl, 1
mov eax, dword [esp + 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
pop ebx
add esp, 8
ret
Function at 0x403136
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x4092f0
call fcn.004044b8
mov edi, 0x94
mov eax, edi
call fcn.00405c30
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40b7f8], ecx
mov eax, dword [esi + 4]
mov dword [0x40b804], eax
mov edx, dword [esi + 8]
mov dword [0x40b808], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40b7fc], esi
cmp ecx, 2
je 0x403196
or esi, 0x8000
mov dword [0x40b7fc], esi
shl eax, 8
add eax, edx
mov dword [0x40b800], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4031cf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4031cf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4031e7
cmp eax, 0x20b
je 0x4031d4
mov dword [ebp - 0x1c], edi
jmp 0x4031fb
cmp dword [ecx + 0x84], 0xe
jbe 0x4031cf
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4031f5
cmp dword [ecx + 0x74], 0xe
jbe 0x4031cf
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00405bda
pop ecx
test eax, eax
jne 0x403227
cmp dword [0x40b7bc], 2
je 0x403214
call fcn.004053ec
push 0x1c
call fcn.00405275
push 0xff
call fcn.004050da
pop ecx
pop ecx
call fcn.00405b38
mov dword [ebp - 4], edi
call fcn.0040598d
test eax, eax
jge 0x403240
push 0x1b
call fcn.00403111
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40cda4], eax
call fcn.0040586b
mov dword [0x40b7b4], eax
call fcn.004057c9
test eax, eax
jge 0x403266
push 8
call fcn.00403111
pop ecx
call fcn.00405596
test eax, eax
jge 0x403277
push 9
call fcn.00403111
pop ecx
push 1
call fcn.0040510a
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40328d
push eax
call fcn.00403111
pop ecx
mov eax, dword [0x40b818]
mov dword [0x40b81c], eax
push eax
push dword [0x40b810]
push dword [0x40b80c]
call fcn.004022e0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x4032bc
push esi
call fcn.00405235
call fcn.00405257
jmp 0x4032ee
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.004044f3
ret
Function at 0x405174
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40b838], esi
push edi
jne 0x405194
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40b834], esi
mov byte [0x40b830], al
jne 0x4051fa
mov ecx, dword [0x40bd88]
test ecx, ecx
je 0x4051db
mov eax, dword [0x40bd84]
sub eax, 4
cmp eax, ecx
jmp 0x4051d4
mov eax, dword [eax]
test eax, eax
je 0x4051c6
call eax
mov eax, dword [0x40bd84]
sub eax, 4
cmp eax, dword [0x40bd88]
mov dword [0x40bd84], eax
jae 0x4051be
mov eax, 0x40b024
mov esi, 0x40b02c
cmp eax, esi
mov edi, eax
jae 0x4051fa
mov eax, dword [edi]
test eax, eax
je 0x4051f3
call eax
add edi, 4
cmp edi, esi
jb 0x4051eb
mov eax, 0x40b030
mov esi, 0x40b038
cmp eax, esi
mov edi, eax
jae 0x405219
mov eax, dword [edi]
test eax, eax
je 0x405212
call eax
add edi, 4
cmp edi, esi
jb 0x40520a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405233
push dword [ebp + 8]
mov dword [0x40b838], 1
call fcn.004050da
pop ebp
ret

Function at 0x405275
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40b0f4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40b3b8]
je 0x4052aa
inc eax
cmp eax, 0x13
jb 0x40529b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40b3b8]
jne 0x4053d0
mov eax, dword [0x40b7bc]
cmp eax, 1
je 0x4053a8
cmp eax, edx
jne 0x4052da
cmp dword [0x40b0fc], 1
je 0x4053a8
cmp ecx, 0xfc
je 0x4053d0
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405310
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00406820
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004033a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405344
mov eax, edi
push eax
call fcn.004033a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4093cc
push edi
call fcn.00406c20
add esp, 0x10
push edi
call fcn.004033a0
push dword [esi + 0x40b3bc]
mov ebx, eax
call fcn.004033a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405c30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00406820
push edi
push ebx
call fcn.00406830
push 0x4093c8
push ebx
call fcn.00406830
push dword [esi + 0x40b3bc]
push ebx
call fcn.00406830
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00406b1a
add esp, 0x2c
jmp 0x4053d0
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40b3bc]
push dword [esi]
call fcn.004033a0
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]
mov ecx, dword [ebp + 0x88]
call fcn.00403075
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x406b1a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40b958], ebx
push esi
push edi
jne 0x406b9a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406bd5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40b958], eax
je 0x406bd5
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40b95c], eax
call esi
cmp dword [0x40b7f8], 2
mov dword [0x40b960], eax
jne 0x406b9a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40b968], eax
je 0x406b9a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40b964], eax
mov eax, dword [0x40b964]
test eax, eax
je 0x406bdf
call eax
test eax, eax
je 0x406bc6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40b968]
test eax, eax
je 0x406bc6
test byte [ebp - 8], 1
jne 0x406bdf
cmp dword [0x40b804], 4
jb 0x406bd9
or byte [ebp + 0x12], 0x20
jmp 0x406bfe
xor eax, eax
jmp 0x406c0e
or byte [ebp + 0x12], 4
jmp 0x406bfe
mov eax, dword [0x40b95c]
test eax, eax
je 0x406bfe
call eax
mov ebx, eax
test ebx, ebx
je 0x406bfe
mov eax, dword [0x40b960]
test eax, eax
je 0x406bfe
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40b958]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406d44
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x406d72
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406d79
cmp ebx, dword [eax + 4]
jae 0x406d79
xor eax, eax
jmp 0x406f69
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406d8a
xor eax, eax
inc eax
jmp 0x406f68
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406da0
cmp ecx, edx
jae 0x406ee5
cmp dword [eax + 4], 0
je 0x406da9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x406d91
cmp dword [ebp + 8], 0
je 0x406dcb
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406ee5
cmp eax, esi
jae 0x406ee5
mov eax, dword [0x40b970]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406df0
cmp dword [esi*4 + 0x40b978], edi
je 0x406ee9
inc esi
cmp esi, eax
jl 0x406dde
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406f65
cmp dword [ebp - 8], 0x1000000
jne 0x406f65
test byte [ebp - 0xc], 0xcc
je 0x406e6e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406f65
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406f65
cmp word [eax + 0x18], 0x10b
jne 0x406f65
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406f65
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406e6e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406e6e
test byte [ecx + 0x27], 0x80
jne 0x406ee5
push 1
push 0x40b9b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x406d82
mov ecx, dword [0x40b970]
test ecx, ecx
mov edx, ecx
jle 0x406ea2
lea eax, [ecx*4 + 0x40b974]
cmp dword [eax], edi
je 0x406ea2
dec edx
sub eax, 4
test edx, edx
jg 0x406e96
test edx, edx
jne 0x406ed3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406eaf
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406ec7
lea eax, [edx*4 + 0x40b978]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406eb5
cmp ecx, 0x10
jge 0x406ed3
inc ecx
mov dword [0x40b970], ecx
push 0
push 0x40b9b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406d82
xor eax, eax
jmp 0x406f68
test esi, esi
jle 0x406d82
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40b9b8
call ebx
test eax, eax
jne 0x406d82
cmp dword [esi*4 + 0x40b978], edi
je 0x406f3f
mov eax, dword [0x40b970]
lea esi, [eax - 1]
test esi, esi
jl 0x406f2d
cmp dword [esi*4 + 0x40b978], edi
je 0x406f29
dec esi
jns 0x406f1d
test esi, esi
jge 0x406f3d
cmp eax, 0x10
jge 0x406f38
inc eax
mov dword [0x40b970], eax
lea esi, [eax - 1]
jmp 0x406f3f
je 0x406f57
xor ecx, ecx
test esi, esi
jl 0x406f57
lea eax, [ecx*4 + 0x40b978]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406f45
push 0
push 0x40b9b8
call ebx
jmp 0x406d82
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407d16
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405c30
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407db1
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40b7f8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x407db1
cmp eax, 1
je 0x407dd2
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407db1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407d7e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x407dad
xor eax, eax
inc eax
jmp 0x407df1
cmp edi, eax
jae 0x407db5
xor eax, eax
jmp 0x407df1
cmp eax, esi
jae 0x407dbc
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40b7f8]
jmp 0x407dd5
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40821c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40bc64]
mov eax, dword [0x40b0f4]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4083e2
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40bc80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4083e2
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x408286
xor eax, eax
jmp 0x4083f6
test al, 0x20
je 0x408297
push 2
push edi
push edi
push ecx
call fcn.004085f1
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40836c
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4083b3
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4082f9
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4082ea
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4082cc
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408339
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x408345
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4082c0
jmp 0x408347
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4083dd
cmp dword [ebp + 0x3a4], edi
je 0x4083b3
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4083a5
mov dword [0x40b7f0], eax
jmp 0x4083e9
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408397
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x408347
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x408347
push dword [ebp + 0x3a4]
call fcn.00408592
pop ecx
jmp 0x4083f3
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4083cb
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40827f
mov dword [0x40b7ec], 0x1c
mov dword [0x40b7f0], edi
jmp 0x4083f3
sub eax, dword [ebp - 0x7c]
jmp 0x4083f6
and dword [0x40b7f0], 0
mov dword [0x40b7ec], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00403075
add ebp, 0x39c
leave
ret
Function at 0x401090
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
shl edx, 4
push esi
lea eax, [ecx + 4]
lea ecx, [edx + ecx + 0x3e]
mov esi, 4
jmp 0x4010b0
movzx edx, byte [ecx - 2]
xor byte [eax - 4], dl
movzx edx, byte [ecx - 1]
xor byte [eax], dl
movzx edx, byte [ecx]
xor byte [eax + 4], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 8], dl
add ecx, 4
inc eax
sub esi, 1
jne 0x4010b0
pop esi
pop ebp
ret 4

Function at 0x4010e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea eax, [ecx + 4]
mov ecx, 4
jmp 0x4010f0
movzx edx, byte [eax - 4]
movzx edx, byte [edx + section..data]
mov byte [eax - 4], dl
movzx edx, byte [eax]
movzx edx, byte [edx + section..data]
mov byte [eax], dl
movzx edx, byte [eax + 4]
movzx edx, byte [edx + section..data]
mov byte [eax + 4], dl
movzx edx, byte [eax + 8]
movzx edx, byte [edx + section..data]
mov byte [eax + 8], dl
inc eax
sub ecx, 1
jne 0x4010f0
ret

Function at 0x401130
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
lea eax, [ecx + 4]
mov ecx, 4
jmp 0x401140
movzx edx, byte [eax - 4]
movzx edx, byte [edx + 0x42f100]
mov byte [eax - 4], dl
movzx edx, byte [eax]
movzx edx, byte [edx + 0x42f100]
mov byte [eax], dl
movzx edx, byte [eax + 4]
movzx edx, byte [edx + 0x42f100]
mov byte [eax + 4], dl
movzx edx, byte [eax + 8]
movzx edx, byte [edx + 0x42f100]
mov byte [eax + 8], dl
inc eax
sub ecx, 1
jne 0x401140
ret

Function at 0x402490
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor eax, eax
push edi
mov edi, dword [ebp + 0x14]
cmp edi, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
jle 0x4024d8
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push eax
push esi
mov ecx, esi
call fcn.00402340
sub edi, 1
jne 0x4024c5
pop ebx
mov ecx, dword [ebp + 0x10]
push esi
push ecx
mov ecx, esi
call fcn.00402400
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x402920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40293b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402974
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402970
jmp 0x402960
cmp esi, eax
jae 0x402974
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402960
cmp esi, eax
jb 0x40297b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret