joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417f20
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x34]
xor edx, edx
mov eax, 0x40000000
xor ebx, ebx
div esi
mov dword [esp + 0xc], ebx
lea ebp, [ebx + 1]
shl eax, 2
mov dword [esp + 0x10], eax
test eax, eax
je 0x417fb7
push edi
push 0x1c
lea eax, [esp + 0x1c]
push eax
mov eax, ebx
imul eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edx, edx
test eax, eax
je 0x417fa5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x417fa5
div esi
cmp dword [esp + 0x28], 0x1000
mov edi, eax
jne 0x417fae
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x10]
jbe 0x417fae
push ebp
push eax
push dword [esp + 0x64]
mov dword [esp + 0x1c], eax
call fcn.00417d50
add esp, 0xc
test al, al
je 0x417fae
inc ebp
jmp 0x417fae
mov eax, 0x10000
div esi
mov edi, eax
add ebx, edi
cmp ebx, dword [esp + 0x14]
jb 0x417f53
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret

Function at 0x418060
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x828
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0x824], eax
cmp byte [0x4a6718], 0
mov eax, dword [esp + 0x82c]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
je 0x41813e
push 0x410
lea eax, [esp + 0x14]
mov byte [0x4a6718], 0
push 0
push eax
call fcn.00447160
add esp, 0xc
lea eax, [esp + 0x10]
push 0x206
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
jne 0x4180d2
push 0x47fb40
lea eax, [esp + 0x14]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call fcn.00418040
add esp, 4
mov ebp, eax
lea eax, [esp + 0x420]
push ebp
push eax
call edi
lea eax, [esp + 0x420]
push 0x2e
push eax
call fcn.00419c20
add esp, 8
test eax, eax
je 0x418107
xor ecx, ecx
mov word [eax], cx
push str.ERRORLOG.TXT
push ebp
call edi
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418158
push str.Error_creating_exception_report_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x824]
xor ecx, esp
call fcn.00444138
add esp, 0x828
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.00417f20
push str.ERRORLOG.TXT
push str._r_n__end_of__s___r_n
push esi
call fcn.00419bc0
push esi
call fcn.00419b80
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x47fbec
push ebp
call edi
push 0
push 0x80000080
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4181cb
push dword [esp + 0xc]
push esi
call fcn.00417ae0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x41813e
cmp dword [0x4a66fc], 0x51
jne 0x4181e7
call fcn.00418210
mov ecx, dword [esp + 0x830]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00444138
add esp, 0x828
ret
Function at 0x419bc0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x4ad820]
cmp eax, 0x1c00
jle 0x419bf6
push 0
lea eax, [esp + 4]
push eax
push 0x4a9820
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push 0x4a9820
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [0x4ad820], eax
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x10]
lea eax, [eax*2 + 0x4a9820]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
add dword [0x4ad820], eax
pop ecx
ret
Function at 0x419d30
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc0c
mov eax, dword [0x4a6c44]
xor eax, esp
mov dword [esp + 0xc08], eax
push ebx
mov ebx, dword [esp + 0xc1c]
lea eax, [esp + 0x80c]
push ebp
mov ebp, dword [esp + 0xc1c]
push esi
mov esi, dword [esp + 0xc1c]
push edi
mov edi, dword [esp + 0xc2c]
push 0x200
push eax
push ebp
call fcn.00416680
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 2
push 0
lea eax, [esp + 0x824]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419eb5
push 0x200
lea eax, [esp + 0x41c]
push eax
push ebx
call fcn.00416680
push 0x200
lea eax, [esp + 0x28]
push eax
push edi
call fcn.00416680
mov edx, dword [esp + 0xc48]
add esp, 0x18
cmp edx, 4
jne 0x419e44
push edi
call fcn.0044f79e
add esp, 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
lea eax, [esp + 0x428]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x419ea7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push ebx
mov esi, eax
push ebp
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push str.RegSetValueEx___failed._iErrorCode___d__Error___s__sKey___s__sName___s__sValue___s
push 0x2b
push str.c:_rhub2codeutility_registryhandler.cpp
push 0
push str.RegistryHandler::AddRegistryValue__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x2c
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x419eec
lea ecx, [esp + 0x18]
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419e50
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
push 0
lea eax, [esp + 0x428]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x419ea7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push ebx
mov esi, eax
push ebp
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push str.RegSetValueEx___failed._iErrorCode___d__Error___s__sKey___s__sName___s__sValue___s
push 0x38
jmp 0x419e1b
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x419eee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push ebx
mov esi, eax
push ebp
push esi
call fcn.00470f20
add esp, 4
push eax
push esi
push str.RegOpenKeyEx___failed._iErrorCode___d__Error___s__sKey___s__sName___s__sValue___s
push 0x46
push str.c:_rhub2codeutility_registryhandler.cpp
push 0
push str.RegistryHandler::AddRegistryValue__
push dword [0x4a9068]
call fcn.0040eee0
add esp, 0x2c
xor al, al
mov ecx, dword [esp + 0xc18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00444138
add esp, 0xc0c
ret 0x14
Function at 0x41d290
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret 4

Function at 0x420871
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4208b6
call fcn.0041dddd
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4208b6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4208d2
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d42a
mov ebx, eax
test edi, edi
je 0x4208d0
test esi, esi
je 0x4208d0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x421087
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x421145
cmp dword [esi + 0x20], 0
je 0x421145
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x421145
cmp dword [ebp + 8], 0
je 0x421145
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0041dddd
push 0x481528
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x421116
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x421145
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0042f3bc
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x421136
test edi, edi
je 0x421136
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x421141
mov ecx, esi
call fcn.00420e65
mov eax, ebx
jmp 0x421147
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42799b
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4279ee
push esi
push dword [ebp + 8]
call fcn.00427b84
mov edi, eax
test edi, edi
je 0x4279e9
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4279e9
mov eax, dword [ebp - 8]
jmp 0x427a00
mov eax, dword [ebp + 0x10]
jmp 0x427a00
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x4288b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x4288ff
call fcn.0041dddd
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4288fc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42894f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x42892c
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x479760]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x42892c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x42894d
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x479760]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42ab88
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x477032
call fcn.00444180
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x42abae
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42ac0e
call fcn.0042960a
push eax
lea ecx, [ebp - 0x10]
call fcn.0041d9dd
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x479760]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00458d94
push eax
call fcn.00425ef4
add esp, 0x14
test esi, esi
je 0x42ac01
push esi
call fcn.004587d2
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402dc6
mov eax, ebx
call fcn.00444149
ret 8
Function at 0x42b40c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x42b437
cmp dword [ebx + 0x80], 0
jne 0x42b437
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0041dddd
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0042b677
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x461497
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00461314

Function at 0x4614a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x4b06d0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4614e3
cmp byte [edx], 0xa
jne 0x4614e3
or byte [eax + edi + 0x28], 4
jmp 0x4614e8
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4615d9
mov al, byte [ebx]
cmp al, 0x1a
je 0x4615ba
cmp al, 0xd
je 0x461511
mov byte [esi], al
inc esi
inc ebx
jmp 0x4615af
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x461531
cmp byte [eax], 0xa
jne 0x461526
push 2
mov byte [esi], 0xa
pop eax
jmp 0x46152c
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4615af
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4615a8
cmp dword [ebp - 0x14], 0
je 0x4615a8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b06d0]
test byte [eax + edi + 0x28], 0x48
je 0x46157f
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x46156f
mov byte [esi], dl
jmp 0x4615ab
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b06d0]
mov byte [eax + edi + 0x2a], dl
jmp 0x4615ab
cmp byte [ebp - 1], 0xa
jne 0x461591
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x461591
mov byte [esi], 0xa
jmp 0x46152e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00461fa3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4615ac
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4614fa
jmp 0x4615d9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b06d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4615d4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4615d9
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4615e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x4b06d0]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x461628
cmp word [edx], bx
jne 0x461628
or byte [edi + eax + 0x28], 4
jmp 0x46162d
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x461781
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x461761
cmp ax, word [ebp - 0x10]
je 0x461666
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x461756
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x46168c
push 0xa
pop ecx
cmp word [eax], cx
jne 0x46167c
push ecx
pop eax
push 4
jmp 0x461681
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x461750
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461747
cmp dword [ebp - 0x18], 0
je 0x461747
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x4b06d0]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x461713
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4616d7
mov word [esi], ax
jmp 0x46170b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x4b06d0]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x4b06d0]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x4b06d0]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x461756
cmp word [ebp - 4], ax
jne 0x461728
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x461728
mov word [esi], ax
add esi, 2
jmp 0x461756
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00461fa3
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x461753
jmp 0x46174a
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x461646
jmp 0x461781
mov ecx, dword [ecx*4 + 0x4b06d0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x461778
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x461781
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46439a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046403c

Function at 0x46cb10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x24]
mov ebx, dword [edi + 0x6c]
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x34]
add eax, 0xfffffefa
sub edx, dword [edi + 0x64]
add eax, esi
sub edx, ebx
mov dword [ebp - 4], edx
cmp dword [edi + 0x64], eax
jb 0x46cbb8
mov ecx, dword [edi + 0x30]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00446660
mov ebx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], esi
sub dword [edi + 0x64], esi
sub dword [edi + 0x54], esi
lea edx, [eax + ebx*2]
nop dword [eax]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp + 8], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp + 8]
mov word [edx], ax
sub ebx, 1
jne 0x46cb60
mov eax, dword [edi + 0x38]
mov ebx, esi
lea edx, [eax + esi*2]
nop dword [eax + eax]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp + 8], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp + 8]
mov word [edx], ax
sub ebx, 1
jne 0x46cb90
mov edx, dword [ebp - 4]
add edx, esi
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x46cc10
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x30]
add eax, dword [edi + 0x64]
push edx
push eax
push ecx
call fcn.0046cf70
add dword [edi + 0x6c], eax
add esp, 0xc
mov ebx, dword [edi + 0x6c]
cmp ebx, 3
jb 0x46cbfc
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx edx, byte [eax]
mov dword [edi + 0x40], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x4c]
mov dword [edi + 0x40], edx
cmp ebx, 0x106
jae 0x46cc10
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x46cb20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470200
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x47021c
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x470321
nop dword [eax + eax]
mov edx, 0x15b0
cmp ebx, edx
cmovb edx, ebx
sub ebx, edx
mov dword [ebp + 0x10], ebx
cmp edx, 0x10
jl 0x4702e4
mov ebx, edx
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
sub ebx, 1
jne 0x470256
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x4702f5
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x4702e8
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul edx, edx, 0xffff000f
add esi, edx
test ebx, ebx
jne 0x470230
shl esi, 0x10
pop ebx
or esi, ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x47033c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00470350
Function at 0x403630
Capabilities:
Create process on windows
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ab6db
push eax
mov dword fs:[0], esp
sub esp, 0x264
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ebx, [ebp + 0x1704]
mov ecx, ebx
call fcn.00484880
test al, al
je 0x4037e3
lea esi, [ebp + 0x68]
mov byte [ebp + 0x1778], 0
mov ecx, esi
call fcn.0044c100
test al, al
je 0x4036b7
mov ecx, esi
call fcn.0044bd60
mov eax, dword [ebp + 0x1c]
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
push 1
push 0x3ef
push eax
call esi
mov edi, dword [sym.imp.user32.dll_EnableWindow]
push eax
call edi
mov ecx, dword [ebp + 0x1c]
push 0
push 0x3f0
push ecx
call esi
push eax
call edi
push 0
mov ecx, ebp
call fcn.00402d60
mov al, byte [ebp + 0x1780]
test al, al
jne 0x4037ea
mov ecx, ebx
mov byte [ebp + 0x1780], 1
call fcn.00466520
dec eax
je 0x40370b
dec eax
push 0x4c73e8
push 0x4c73e8
je 0x4036f7
lea edx, [esp + 0x7c]
push str.Your_trial_period_has_expired._nReason:_An_error_occured_with_the_licencing_system._n_n_s_will_not_activate_now_until_you_have_entered_na_valid_license_key._n_nDo_you_wish_to_visit_the__s_website_now_
push edx
call fcn.0047ac80
add esp, 0x10
jmp 0x40372c
lea eax, [esp + 0x7c]
push str.Your_trial_period_has_expired._nReason:_The_time_on_your_computer_was_reversed._n_n_s_will_not_activate_now_until_you_have_entered_na_valid_license_key._n_nDo_you_wish_to_visit_the__s_website_now_
push eax
call fcn.0047ac80
add esp, 0x10
jmp 0x40372c
push 0x4c73e8
push 0x4c73e8
push 0x1e
lea ecx, [esp + 0x80]
push str.Your_trial_period_has_expired._nReason:_Your__d_days_have_now_passed._n_n_s_will_not_activate_now_until_you_have_entered_na_valid_license_key._n_nDo_you_wish_to_visit_the__s_website_now_
push ecx
call fcn.0047ac80
add esp, 0x14
push 0x34
lea edx, [esp + 0x78]
push str.Trial_Period_Ended
push edx
mov ecx, ebp
call fcn.004a53e3
cmp eax, 6
jne 0x4037ea
lea ecx, [esp + 0x10]
call fcn.00489cd0
push str.amssite.url
mov dword [esp + 0x280], 0
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push 1
push 1
push str.amssite.url
lea ecx, [esp + 0x20]
call fcn.00489d20
test al, al
je 0x4037cd
mov ecx, 0x15
mov esi, str._InternetShortcut__r_nURLhttp:__www.code_crafters.com_abilitymailserver_index.html_r_n
lea edi, [esp + 0x20]
lea eax, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push 0x53
push eax
lea ecx, [esp + 0x18]
call fcn.00489eb0
cmp eax, 0x53
jne 0x4037cd
lea ecx, [esp + 0x10]
call fcn.00489e00
mov ecx, dword [ebp + 0x1c]
push 1
push 0x4d83ac
push 0x4d83ac
push str.amssite.url
push str.open
push ecx
call dword [sym.imp.shell32.dll_ShellExecuteA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x27c], 0xffffffff
call fcn.00489d10
jmp 0x4037ea
mov byte [ebp + 0x1778], 1
mov ecx, ebp
call fcn.00403590
push str.Help___Enter_Key
push 0x3f3
mov ecx, ebp
call fcn.004a65a4
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x270
ret