joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b46
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
call esi
push dword [ebp + 0x10]
mov edi, eax
call esi
mov esi, eax
push 0x100
mov dword [ebp - 0x1c], esi
call fcn.004165c4
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x403cda
push dword [ebp + 8]
call fcn.004132a0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x403d01
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x403cda
push ebx
add eax, esi
lea eax, [eax + edi + 0x8c]
push eax
push ebx
push 4
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x403cda
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x403cd1
mov eax, dword [ebp - 4]
push str._r_n_r_n
push esi
mov byte [eax + esi], bl
call fcn.00415e00
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x403c18
push 0x4308c0
push esi
call fcn.00415e00
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x403cc8
push str._r_nSubject:
push esi
mov dword [ebp - 0x10], 0xa
call fcn.00415e00
pop ecx
pop ecx
test eax, eax
jne 0x403c66
push str._nSubject:
push esi
call fcn.00415e00
pop ecx
pop ecx
test eax, eax
jne 0x403c66
push dword [ebp + 0xc]
and dword [ebp - 0x10], eax
push str._r_nSubject:__s
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp + 0xc], eax
test ebx, ebx
je 0x403cc8
mov eax, ebx
mov ecx, dword [ebp - 0x10]
lea esi, [eax + ecx]
mov ecx, dword [ebp - 4]
sub ecx, eax
sub ecx, dword [ebp - 0x10]
lea eax, [esi + edi]
add ecx, dword [ebp - 8]
push ecx
push esi
push eax
call fcn.00416210
push edi
push dword [ebp + 0xc]
push esi
call fcn.00415ea0
mov esi, dword [ebp - 0x1c]
add dword [ebp - 4], edi
add esp, 0x18
add ebx, edi
test esi, esi
je 0x403cbe
mov eax, dword [ebp - 4]
sub eax, ebx
add eax, dword [ebp - 8]
push eax
lea eax, [esi + ebx]
push ebx
push eax
call fcn.00416210
push esi
push dword [ebp + 0x10]
push ebx
call fcn.00415ea0
add esp, 0x18
add dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x18], 1
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor ebx, ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
cmp esi, 0xffffffff
je 0x403d01
cmp dword [ebp - 8], ebx
je 0x403cfa
push ebx
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.00413280
pop ecx
cmp dword [ebp - 0xc], ebx
pop edi
pop esi
pop ebx
je 0x403d12
push dword [ebp - 0xc]
call fcn.00415b4b
pop ecx
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x403fd7
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x444148]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
lea eax, [ebp - 0x7c]
xor esi, esi
push eax
mov dword [0x445f5c], esi
mov dword [0x445f60], esi
mov byte [ebp - 0x7c], 0
call fcn.00401e6d
cmp byte [ebp - 0x7c], 0
pop ecx
je 0x404109
push str.Exclude.Ini
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x445f60], eax
cmp eax, esi
je 0x404109
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push 1
mov edi, eax
lea eax, [ebp + 0x88]
push 0x439dd0
push eax
call ebx
and dword [edi], 0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x104
lea esi, [edi + 4]
push esi
push 0x43b830
lea eax, [ebp + 0x88]
push eax
push str.SmartExclude
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esi], 0
je 0x404107
mov dword [ebp - 0x80], 1
push esi
call fcn.004137a7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 5
push 0x2c
mov dword [edi], eax
push esi
add edi, eax
call fcn.00413460
pop ecx
pop ecx
test eax, eax
je 0x4040c1
mov byte [eax], 0
inc dword [ebp - 0x80]
push dword [ebp - 0x80]
lea eax, [ebp + 0x88]
push 0x439dd0
push eax
call ebx
and dword [edi], 0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x104
lea esi, [edi + 4]
push esi
push 0x43b830
lea eax, [ebp + 0x88]
push eax
push str.SmartExclude
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esi], 0
jne 0x40409b
pop edi
pop ebx
mov ecx, dword [ebp + 0x94]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0041343a
add ebp, 0x98
leave
ret

Function at 0x4048ef
Capabilities:
Create service

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x444148]
xor eax, ebp
mov dword [ebp + 0x84], eax
push edi
mov edi, ecx
call fcn.004048b1
test eax, eax
je 0x40491e
xor eax, eax
inc eax
jmp 0x4049c0
push ebx
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x404941
push esi
add edi, 0x34
push edi
push str.Couldnt_open_service_manager
jmp 0x4049a4
push 0x102
lea eax, [ebp - 0x7f]
push eax
push esi
mov byte [ebp - 0x80], 0x22
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x430ba8
lea eax, [ebp - 0x80]
push 0x104
push eax
call fcn.00416856
add esp, 0xc
push esi
push esi
push str.RPCSS
push esi
push esi
lea eax, [ebp - 0x80]
push eax
push 1
push 3
push 0x110
push 0xf01ff
add edi, 0x34
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, esi
jne 0x4049af
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push str.Couldnt_create_service
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4049be
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop edi
call fcn.0041343a
add ebp, 0x88
leave
ret
Function at 0x404a1b
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.004048b1
test eax, eax
jne 0x404a30
inc eax
jmp 0x404ac5
push ebp
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
jne 0x404a5c
push ebp
add esi, 0x34
push esi
push str.Couldnt_open_service_manager
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x404ac3
push ebx
push 0x10020
lea ebx, [esi + 0x34]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
jne 0x404a84
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
push ebx
push str.Couldnt_open_service
push ebp
jmp 0x404aba
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
je 0x404ab0
xor eax, eax
inc eax
jmp 0x404ac2
push 0
push ebx
push str.Service_could_not_be_deleted
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x1c
ret

Function at 0x405024
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x40503d
push 0x80004005
call fcn.00404ca0
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x40508c
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x40508a
cmp dword [ebp + 0x10], ebx
jbe 0x405087
cmp dword [ebp + 0x10], 2
jbe 0x405093
cmp dword [ebp + 0x10], 7
jne 0x405087
cmp ecx, 1
jb 0x405087
lea edx, [ecx + esi]
cmp byte [edx - 1], bl
jne 0x405087
cmp ecx, 1
jbe 0x40508c
cmp byte [edx - 2], bl
je 0x40508c
push 0xd
pop eax
mov byte [esi], bl
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp byte [ecx + esi - 1], bl
jmp 0x405085

Function at 0x4050f5
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x405143
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x405154
push 0xd
pop eax
jmp 0x40517e
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x405157
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x405f0a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x444148]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00404fe3
mov ebx, eax
cmp ebx, esi
je 0x405f7a
lea ecx, [ebp - 0x70]
call fcn.00404f6e
mov eax, ebx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041343a
add ebp, 0x9c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x405f92
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00405f0a
cmp eax, esi
jne 0x405fc4
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x405f82
lea ecx, [ebp - 0x70]
call fcn.00404f6e
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00404f13
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00404f6e
mov eax, esi
jmp 0x405f60
Function at 0x408abb
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x444148]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
mov esi, dword [ebp + 0xa8]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x408af9
mov byte [0x445ff0], 1
mov byte [0x445ff1], 0
jmp 0x408b07
mov byte [0x445ff0], 0
mov byte [0x445ff1], 1
mov byte [0x445ff3], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x430b48
push 0x64
push esi
mov ebx, 0x445fc0
push 0x43f050
mov ecx, ebx
mov dword [ebp - 0x6c], eax
call fcn.00405c66
push str.K7TS10UpgradeInProgress
push 0
push 0x1f0001
mov byte [0x445ff2], 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x408b5b
push eax
mov byte [0x445f54], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x4310d4
lea edi, [ebp - 0x74]
lea eax, [ebp - 0x74]
movsw word es:[edi], word [esi]
push eax
push dword [ebp - 0x6c]
movsb byte es:[edi], byte [esi]
call fcn.00404872
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x408baa
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x408bf4
push str.RegServer
push esi
call edi
test eax, eax
je 0x408bfd
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.00404872
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x408b80
and dword [ebp - 0x70], 0
and dword [ebp - 0x6c], 0
mov esi, 0x20019
push esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x70]
call fcn.00404fe3
mov edi, eax
test edi, edi
je 0x408c17
lea ecx, [ebp - 0x70]
call fcn.00404f6e
mov eax, edi
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041343a
add ebp, 0xa0
leave
ret 0x10
mov ecx, ebx
call fcn.00408a3f
jmp 0x408bda
cmp byte [0x445ff0], 0
mov ecx, ebx
je 0x408c13
push 0
push 1
call fcn.0040893d
jmp 0x408bda
push 1
jmp 0x408c0a
and dword [ebp - 0x7c], 0
and dword [ebp - 0x78], 0
push esi
push str.8B3D0F62_A377_11D8_B0FE_00C026A19B93
push dword [ebp - 0x70]
lea ecx, [ebp - 0x7c]
call fcn.00404fe3
test eax, eax
je 0x408c4a
mov esi, eax
lea ecx, [ebp - 0x7c]
call fcn.00404f6e
lea ecx, [ebp - 0x70]
call fcn.00404f6e
mov eax, esi
jmp 0x408bda
lea eax, [ebp - 0x80]
push eax
push str.LocalService
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x104
call fcn.00405024
mov byte [0x445ff2], 0
test eax, eax
jne 0x408c78
mov byte [0x445ff2], 1
mov ecx, ebx
call fcn.00408a76
mov esi, dword [0x446104]
jmp 0x408c36

Function at 0x40980a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x444148]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
push esi
lea eax, [ebp - 0x108]
jb 0x40983b
push str..Global_s
jmp 0x409840
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push SysReAllocString
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041343a
leave
ret
Function at 0x40a289
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x68
mov eax, 0x42f3ce
call fcn.00413c68
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
jne 0x40a2ee
push str.message_file_open_failure
lea ecx, [ebp - 0x4c]
call fcn.0040a267
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0040a205
mov dword [ebp - 0x74], vtable.std::ios_base::failure.0
push 0x43cd08
lea eax, [ebp - 0x74]
push eax
call fcn.00416964
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
inc eax
push eax
call fcn.00416f41
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
cmp esi, ebx
jne 0x40a32e
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0x4311a0
call fcn.00417140
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
push 0x43cbfc
lea eax, [ebp - 0x30]
jmp 0x40a2e8
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
push edi
mov byte [eax + esi], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x1c], 0xffffffff
call fcn.00409bc5
test al, al
je 0x40a385
mov ecx, dword [0x446130]
call fcn.00410217
mov eax, dword [ebp - 0x14]
push fcn.004099a4
add eax, esi
push eax
push esi
call fcn.0040fc7b
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
call fcn.004099a4
add esp, 0x10
jmp 0x40a38b
fld qword [0x431198]
push esi
fstp qword [ebp - 0x24]
call fcn.0041678a
fld qword [ebp - 0x24]
pop ecx
jmp 0x40a3d3
call fcn.00413cd4
ret

Function at 0x410243
Capabilities:
Hash data using djb2

Disassembly:
mov edx, dword [esp + 4]
mov eax, 0x1505
jmp 0x410254
imul eax, eax, 0x21
inc edx
add eax, ecx
movsx ecx, byte [edx]
test ecx, ecx
jne 0x41024e
and eax, 0xfff
ret 4

Function at 0x41256a
Capabilities:
Hash data with crc32

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [0x4482b0], edi
jne 0x41259b
mov esi, 0x443cd0
push dword [esi + 4]
call fcn.00415ac0
mov dword [esi], eax
add esi, 0xc
cmp esi, 0x443d48
pop ecx
jl 0x41257b
mov dword [0x4482b0], 1
mov esi, 0x443cd4
push dword [esi - 4]
push dword [esi]
push dword [esp + 0x14]
call fcn.00419923
add esp, 0xc
test eax, eax
je 0x4125c7
add esi, 0xc
inc edi
cmp esi, 0x443d4c
jl 0x4125a0
xor eax, eax
inc eax
pop edi
pop esi
ret
imul edi, edi, 0xc
mov eax, dword [edi + 0x443cd8]
jmp 0x4125c4
Function at 0x412cce
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x444148]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 8]
add ecx, eax
push ebx
mov ebx, eax
mov dword [ebp - 0x54], ecx
cmp eax, ecx
jae 0x412e51
push esi
push edi
cmp byte [ebx], 0x3d
jne 0x412e38
cmp byte [ebx + 1], 0x3f
jne 0x412e38
lea edi, [ebx + 2]
mov esi, edi
cmp edi, dword [ebp - 0x54]
jae 0x412d31
movzx eax, byte [esi]
push eax
call fcn.00412b38
pop ecx
test al, al
je 0x412d31
inc esi
cmp esi, dword [ebp - 0x54]
jb 0x412d1d
lea eax, [esi + 2]
cmp eax, dword [ebp - 0x54]
jae 0x412e38
cmp byte [esi], 0x3f
jne 0x412e38
cmp byte [eax], 0x3f
jne 0x412e38
mov eax, esi
sub eax, edi
inc eax
cmp eax, 0x40
mov dword [ebp - 0x58], 1
jle 0x412d63
push 0x40
pop eax
push eax
push edi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x48]
push eax
call fcn.00411208
mov dword [ebp - 0x60], eax
mov al, byte [esi + 1]
pop ecx
cmp al, 0x71
je 0x412d98
cmp al, 0x51
je 0x412d98
cmp al, 0x62
je 0x412d8f
cmp al, 0x42
jne 0x412d9f
mov dword [ebp - 0x58], 2
jmp 0x412d9f
mov dword [ebp - 0x58], 5
add esi, 3
push 0x4313f4
push esi
call fcn.00415e00
cmp dword [ebp - 0x58], 1
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x5c], ecx
je 0x412e38
test ecx, ecx
je 0x412e38
mov edi, dword [ebp - 0x50]
sub ecx, esi
cmp dword [ebp - 0x58], 2
mov byte [edi], 0
jne 0x412dd7
push edi
push ecx
mov ecx, esi
call fcn.00412bf0
jmp 0x412de3
push 0
push edi
mov eax, esi
call fcn.00412b56
pop ecx
pop ecx
test eax, eax
je 0x412e28
mov ecx, dword [ebp - 0x60]
cmp ecx, 2
je 0x412e21
cmp ecx, 3
je 0x412e21
cmp ecx, 4
jne 0x412e03
push edi
push edi
push eax
call fcn.004112a1
jmp 0x412e28
cmp ecx, 5
jne 0x412e12
push edi
push edi
push eax
call fcn.0041166c
jmp 0x412e28
cmp ecx, 6
jne 0x412e28
push edi
push edi
push eax
call fcn.00411849
jmp 0x412e28
push edi
push eax
call fcn.0041140c
mov ebx, dword [ebp - 0x5c]
add edi, eax
add ebx, 2
add dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edi
jmp 0x412e46
mov ecx, dword [ebp - 0x50]
mov al, byte [ebx]
inc dword [ebp - 0x50]
inc ebx
inc dword [ebp - 0x4c]
mov byte [ecx], al
cmp ebx, dword [ebp - 0x54]
jb 0x412d00
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
xor ecx, ebp
pop ebx
call fcn.0041343a
leave
ret 0xc

Function at 0x412f90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x412fcc
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412fcc
mov eax, 1
cmp dword [esp + 0x10], eax
je 0x412fce
xor eax, eax
ret 0x10
Function at 0x413030
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413077
cmp dword [esp + 0xc], 4
jne 0x413077
mov al, byte [esp + 8]
mov edx, dword [esp + 0x10]
mov byte [edx], al
mov eax, 1
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x4130b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4130f4
cmp dword [esp + 0x10], 3
jne 0x4130f4
cmp dword [esp + 0x14], esi
ja 0x4130f4
mov eax, 1
pop esi
ret 0x10
xor eax, eax
pop esi
ret 0x10

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

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x41327c
movzx ecx, byte [edx]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x443d48]
inc edx
sub esi, 1
jne 0x413261
pop esi
ret 0xc

Function at 0x4132e0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413305
pop esi
pop ecx
ret
xor eax, eax
cmp dword [esp + 4], esi
pop esi
sete al
pop ecx
ret

Function at 0x41343a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444148]
jne 0x413444
repz ret
jmp fcn.0041a078
Function at 0x428c10
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041b944
and dword [ebp - 4], 0
cmp dword [0x448dd0], 0
mov ebx, eax
jne 0x428cc1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x428d72
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x439204
push edi
call esi
test eax, eax
je 0x428d72
push eax
call fcn.0041b8d2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x448dd0], eax
call esi
push eax
call fcn.0041b8d2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x448dd4], eax
call esi
push eax
call fcn.0041b8d2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x448dd8], eax
call esi
push eax
call fcn.0041b8d2
pop ecx
mov dword [0x448de0], eax
test eax, eax
je 0x428cc1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b8d2
pop ecx
mov dword [0x448ddc], eax
mov eax, dword [0x448ddc]
cmp eax, ebx
je 0x428d19
cmp dword [0x448de0], ebx
je 0x428d19
push eax
call fcn.0041b94d
push dword [0x448de0]
mov esi, eax
call fcn.0041b94d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x428d19
test edi, edi
je 0x428d19
call esi
test eax, eax
je 0x428d10
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x428d10
test byte [ebp - 0xc], 1
jne 0x428d19
or dword [ebp + 0x10], 0x200000
jmp 0x428d52
mov eax, dword [0x448dd4]
cmp eax, ebx
je 0x428d52
push eax
call fcn.0041b94d
pop ecx
test eax, eax
je 0x428d52
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x428d52
mov eax, dword [0x448dd8]
cmp eax, ebx
je 0x428d52
push eax
call fcn.0041b94d
pop ecx
test eax, eax
je 0x428d52
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x448dd0]
call fcn.0041b94d
pop ecx
test eax, eax
je 0x428d72
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x428d74
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4047b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x412cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40374c
call fcn.00404992
push 4
mov dword [esp + 0x18], 0
call fcn.004056c8
mov edi, eax
add esp, 4
test edi, edi
je 0x404824
push ebx
call fcn.00404c50
mov dword [edi], eax
call fcn.00404a60
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00404953
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404818
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040497b
pop ebx
jmp 0x404826
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x405e40
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41ecc0]
jne 0x405e4a
repz ret
jmp fcn.0040ad9c