joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043b8
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4043b5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4043d3
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x404431
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x404418
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x404421
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40442b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40440d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x404397
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40447e
dec eax
je 0x404475
sub eax, 3
je 0x40446c
mov dword [ebp - 4], 0x40
jmp 0x40449b
mov dword [ebp - 4], 4
jmp 0x404481
mov dword [ebp - 4], 0x20
jmp 0x404481
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4044cd
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40444d
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00403cde
bound esi, qword [esi]
scasb al, byte es:[edi]
cwde
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x4044d9
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406d0a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
cmp dword [0x40f740], 0
push esi
jne 0x406e0e
cmp dword [ebp + 8], 0
je 0x406d2b
mov eax, dword [0x413674]
jmp 0x406d30
mov eax, dword [0x41297c]
push eax
push 0x41086c
push 6
push 0x34
push 2
call fcn.004027d8
add esp, 0x14
cmp eax, 6
jne 0x406e0e
call fcn.0040b5ca
test eax, eax
je 0x406de3
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x406d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x78]
push str.OpenProcessToken_Error__d_in_fDoReboot__.
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x406e13
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push esi
push esi
push ecx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x406de3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x78]
push str.AdjustTokenPrivileges_Error__d_in_fDoReboot
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x406e13
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x406e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x78]
push str.Error_ExitWindows_Error__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x406e13
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407440
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4074c9
lea eax, [esp + 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4074c9
cmp byte [esp + 4], 0x5c
je 0x407477
cmp byte [esp + 4], 0x2f
jne 0x40748a
mov al, byte [esp + 5]
cmp byte [esp + 4], al
jne 0x40748a
xor eax, eax
add esp, 0x10c
ret
mov byte [esp], 0x3d
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.004087f0
lea ecx, [esp + 8]
mov byte [esp + 5], al
mov byte [esp + 6], 0x3a
mov byte [esp + 7], 0
lea edx, [esp + 4]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x4074c9
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408780
add esp, 4
mov eax, 0xffffffff
add esp, 0x10c
ret

Function at 0x4074f0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x40750c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40751f
push eax
call fcn.00408780
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x407550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x4075c3
push ebx
call fcn.00407680
add esp, 4
test eax, eax
jne 0x407591
xor eax, eax
pop edi
mov dword [0x410ddc], 0xf
mov dword [0x410dd8], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4075d3
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x407672
inc eax
cmp eax, 0x104
ja 0x407672
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x407624
mov ecx, dword [esp + 0x124]
cmp eax, ecx
jg 0x4075ff
mov eax, ecx
push eax
call fcn.004089c0
add esp, 4
mov edx, eax
test edx, edx
jne 0x407643
xor eax, eax
pop edi
mov dword [0x410dd8], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, dword [esp + 0x124]
jle 0x407643
xor eax, eax
pop edi
mov dword [0x410dd8], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x407680
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x407694
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4076c6
cmp eax, 1
je 0x4076c6
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret

Function at 0x4076d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x407706
cmp byte [esp + 5], 0x3a
jne 0x407706
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00408a40
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x407710
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
cmp eax, 1
jl 0x40775e
cmp eax, 0x1f
jg 0x40775e
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x407746
xor eax, eax
add esp, 4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408780
add esp, 4
mov eax, 0xffffffff
add esp, 4
ret
mov eax, 0xffffffff
add esp, 4
mov dword [0x410dd8], 0xd
mov dword [0x410ddc], 0xf
ret
Function at 0x407990
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x4079aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4079bd
push eax
call fcn.00408780
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4088f0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x410e20], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40890e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x410e1c], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x410e18], bl
jne 0x408968
cmp dword [0x4137f8], 0
je 0x408956
mov edi, dword [0x4137f4]
sub edi, 4
cmp dword [0x4137f8], edi
ja 0x408956
mov eax, dword [edi]
test eax, eax
je 0x40894b
call eax
sub edi, 4
cmp dword [0x4137f8], edi
jbe 0x408943
push 0x40f014
push 0x40f010
call fcn.004089a0
add esp, 8
push 0x40f01c
push 0x40f018
call fcn.004089a0
add esp, 8
test ebx, ebx
jne 0x40898f
mov dword [0x410e20], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x401872
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [ebp - 0xc], 0xbb8
mov dword [esp], 0xbb8
call sym._malloc
mov dword [ebp - 0x10], eax
mov dword [esp], 0x400
call sym._malloc
mov dword [ebp - 0x14], eax
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], 0
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0xbb8
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x55
mov dword [esp + 4], str.Bem_vindo_a_mais_um_desafio_da_FIAP__Por_favor__escreva_sua_mensagem_e_ganhe_a_flag._n
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4019b9
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Send_failed_with_error:__d_n
call sym._printf
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
mov eax, 1
jmp 0x4019bf
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._recv_16
sub esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jle 0x401990
mov dword [ebp - 0x24], 0x4061ea
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._RemoveChars
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Vulnerable
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x18
mov dword [esp + 4], str.Obrigado_pela_mensagem__n
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x40193f
leave
ret 4
Function at 0x402080
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x4020cb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4020c4
test esi, esi
je 0x4020c4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020a0
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4022b0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402300
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4023d8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40233e
cmp eax, 4
jne 0x402360
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40234e
cmp edx, 4
je 0x40234e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004022b0
Function at 0x40c4d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0
call dword [sym.imp.ole32.dll_CreateBindCtx]
mov edi, dword [ebp + 0xc]
mov esi, eax
test esi, esi
js 0x40c53d
push 0x497104
push 0x497120
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c528
mov ecx, dword [edi]
test ecx, ecx
je 0x40c512
mov ecx, dword [ecx]
jmp 0x40c514
xor ecx, ecx
push 0
push 2
push 0
push dword [ebp - 4]
push 0
push 0
push 0
push ecx
call eax
mov esi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x40c53d
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x400
mov dword [ebp - 0x34], 0x497138
test eax, eax
je 0x40c565
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
jmp 0x40c56c
mov dword [ebp - 0x30], 0
movdqa xmm0, xmmword [0x4971e0]
lea eax, [ebp - 0x40]
movdqu xmmword [ebp - 0x2c], xmm0
push eax
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
pop edi
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40e770
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push eax
push 4
push 0
push 0x4973ec
push esi
mov dword [ebp - 4], 3
call edi
lea eax, [ebp - 0xc]
push eax
push 0x497410
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
call esi
push 0x36
push 0x497424
push 1
push 0
push 0x49745c
push dword [ebp - 0xc]
call edi
lea eax, [ebp - 8]
push eax
push 0x497424
push dword [ebp - 0xc]
call esi
push 0xc
push 0x49747c
push 1
push 0
push 0x49748c
push dword [ebp - 8]
call edi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0
push 0x4974a0
push dword [ebp - 8]
call edi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e820
Capabilities:
Delete file
Delete registry key
Delete registry value
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487a1b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x21c]
push eax
push 0x497570
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40e94b
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4977f8
push dword [ebp - 0x21c]
call esi
push 0x497810
push dword [ebp - 0x21c]
call esi
push 0x497824
push dword [ebp - 0x21c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4975c8
push dword [ebp - 0x21c]
call esi
push 0x4975d4
push dword [ebp - 0x21c]
call esi
push 0x4975f0
push dword [ebp - 0x21c]
call esi
push 0x49760c
push dword [ebp - 0x21c]
call esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x497830
lea ecx, [ebp - 0x224]
call fcn.00402130
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040e630
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.004021d0
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40e937
mov eax, dword [eax]
jmp 0x40e939
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x220]
call fcn.004021d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x466db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea ebx, [edi + edi]
mov eax, ebx
mov dword [ebp - 0xc], ebx
call fcn.00475290
mov eax, esp
mov dword [ebp - 8], eax
test edi, edi
je 0x466e05
mov ebx, dword [ebp + 0x10]
mov esi, eax
sub ebx, eax
push dword [0x4bd894]
movzx eax, word [ebx + esi]
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov word [esi], ax
lea esi, [esi + 2]
dec edi
jne 0x466de3
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
test edx, edx
je 0x466e20
push ebx
push eax
push 3
push 0
push dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x466e35
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x466e35
push ebx
push eax
push dword [ebp + 0xc]
push ecx
call fcn.00465ae0
add esp, 0x10
mov al, 1
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret

Function at 0x469440
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x2c]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov esi, dword [edi + 0x3d8]
neg eax
mov ecx, dword [edi + 0x3dc]
cdq
and edx, dword [edi + 0x26c]
mov ebx, eax
and ebx, dword [edi + 0x268]
sub esi, ebx
mov dword [ebp - 4], ecx
push esi
push ebx
push edx
push 4
push dword [edi + 0x3d0]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [edi + 0x560], ecx
test ecx, ecx
jne 0x4694a6
mov dword [edi + 0x564], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x268]
sub ecx, ebx
add eax, ecx
lea ecx, [edi + 0x4fc]
push eax
mov dword [edi + 0x564], eax
call fcn.00443430
mov eax, dword [edi + 0x270]
lea ecx, [edi + 0x4c8]
sub eax, dword [edi + 0x268]
add eax, dword [edi + 0x564]
push eax
call fcn.0040dcc0
mov eax, dword [edi + 0x278]
lea ecx, [edi + 0x52c]
sub eax, dword [edi + 0x268]
add eax, dword [edi + 0x564]
push eax
call fcn.0042e060
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46b4b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sbb bh, bh
jne 0x46b4c8
call fcn.0046a7de
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0046a819
dec eax
inc esi
test eax, 0x1046847
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x46b50d
cmp dword [ebp - 0x398], 0
je 0x46b6d7
cmp dword [ebp + 0xc], 1
je 0x46b6d7
cmp dword [ebp + 0xc], 8
jne 0x46b69f
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
invalid
movsd dword es:[edi], dword [esi]
dec ebx
stc

Function at 0x46b6a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [esp - 4], eax
popal
add esp, 0x14
jmp dword [esp - 0x38]
jne 0x46b693
invalid
Function at 0x402594
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025a2
call dword [0x40b004]
or eax, eax
je 0x4025a3
ret
mov al, 1
jmp fcn.00402614

Function at 0x4025ac
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4025ba
call dword [0x40b008]
or eax, eax
jne 0x4025bb
ret
mov al, 2
jmp fcn.00402614

Function at 0x4025c4
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4025fc
test edx, edx
je 0x4025e6
push eax
mov eax, ecx
call dword [0x40b00c]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402614
mov dword [eax], edx
mov eax, ecx
call dword [0x40b008]
or eax, eax
jne 0x4025df
ret
mov al, 1
jmp fcn.00402614
test edx, edx
je 0x402610
push eax
mov eax, edx
call dword [0x40b004]
pop ecx
or eax, eax
je 0x4025f5
mov dword [ecx], eax
ret

Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x403780
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.00402614
cmp eax, edx
je 0x4037f0
cmp word [eax], 8
jb 0x4037a5
push eax
push edx
cmp word [eax], 0x100
je 0x40379b
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x4037a3
add eax, 8
call fcn.00403198
pop edx
pop eax
cmp word [edx], 8
jae 0x4037bc
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
jne 0x4037dc
mov edx, dword [edx + 8]
or edx, edx
je 0x4037d3
mov ecx, dword [edx - 8]
inc ecx
jle 0x4037d3
mov dword [edx - 8], ecx
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x403744
ret

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret