joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001168
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001145
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x100114c
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100113c
cmp dword [ebp - 8], 0xd2af9
sete bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x1001676
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 1], 1
je 0x10016ad
push 0x10017b4
push dword [ebp + 8]
call fcn.010011c6
test eax, eax
pop ecx
pop ecx
jne 0x10019ac
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 3
push esi
mov edi, 0x1001728
push edi
mov esi, 0x80000001
push esi
call ebx
test eax, eax
jne 0x10019ca
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001780
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001707
cmp dword [ebp - 0x10], esi
jne 0x1001707
cmp dword [ebp - 0x14], 1
jne 0x1001707
mov byte [ebp - 1], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 8], 0
cmp byte [ebp - 1], 0
jne 0x10019de
mov al, byte [ebp - 1]
pop edi
pop ebx
pop esi
leave
ret 4
xor al, al
jmp 0x1001723
lea eax, [ebp - 8]
push eax
push 1
push 0
push edi
push esi
call ebx
test eax, eax
je 0x1001703
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x1001a40
push 0x80000002
call ebx
test eax, eax
jne 0x100171e
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001aa0
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001a31
cmp dword [ebp - 0x10], esi
jne 0x1001a31
cmp dword [ebp - 0x14], 1
jne 0x1001a31
mov byte [ebp - 1], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100171e
Function at 0x40159c
Capabilities:
Create directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea esi, [edi + 3]
jmp 0x4015ac
cmp al, 0x5c
je 0x4015b2
inc esi
mov al, byte [esi]
test al, al
jne 0x4015a7
cmp byte [esi], 0
je 0x4015e0
push ebx
mov bl, byte [esi]
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], bl
inc esi
mov al, byte [esi]
test al, al
je 0x4015df
cmp al, 0x5c
je 0x4015da
inc esi
mov al, byte [esi]
test al, al
jne 0x4015cf
cmp byte [esi], 0
jne 0x4015b8
pop ebx
pop edi
pop esi
ret

Function at 0x401fcc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
push esi
push dword [ebp + 8]
mov dword [0x409e20], eax
call fcn.0040159c
pop ecx
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [0x40aecc], eax
cmp eax, 0xffffffff
jne 0x401ffe
xor eax, eax
jmp 0x402147
push edi
mov edi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
mov eax, dword [ebp + 0x18]
mov dword [0x40aec8], esi
mov dword [0x40aed4], eax
cmp dword [0x409e4c], esi
jne 0x40202d
mov eax, 0x3b9aca00
mov dword [0x40aed4], eax
cmp dword [ebp + 0x14], esi
jne 0x4020fc
cmp eax, esi
jle 0x4020e3
push ebx
mov ecx, 0x1388
cmp eax, ecx
jl 0x40204a
mov eax, ecx
push eax
push 0x40aee0
call fcn.00402fab
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jle 0x4020d8
cmp dword [0x409e20], esi
je 0x402094
cmp edi, esi
mov dword [ebp + 0x20], esi
jle 0x402094
mov esi, dword [ebp + 0x20]
lea esi, [esi + 0x40aee0]
call fcn.00402634
mov ebx, eax
movzx eax, byte [esi]
xor ebx, eax
push ebx
call fcn.004025f3
inc dword [ebp + 0x20]
cmp dword [ebp + 0x20], edi
pop ecx
mov byte [esi], bl
jl 0x40206c
xor esi, esi
push edi
push 0x40aee0
push dword [0x40aecc]
call dword [sym.imp.KERNEL32.dll__lwrite]
mov eax, dword [0x40aed4]
mov ecx, dword [0x40aa0c]
sub eax, edi
mov dword [0x40aed4], eax
cmp ecx, esi
je 0x4020ce
lea eax, [eax + ecx - 0x3b9aca00]
mov dword [0x40aed4], eax
mov dword [0x40aa0c], esi
cmp eax, esi
jg 0x40203f
jmp 0x4020e2
mov dword [0x40a900], 1
pop ebx
push dword [0x40aecc]
call dword [sym.imp.KERNEL32.dll__lclose]
xor eax, eax
cmp dword [0x40a900], esi
sete al
jmp 0x402146
mov dword [0x40aed8], esi
mov dword [0x40aedc], esi
mov dword [0x40aed0], edi
cmp dword [0x40a900], esi
je 0x402126
push dword [0x40aecc]
call dword [sym.imp.KERNEL32.dll__lclose]
xor eax, eax
jmp 0x402146
call fcn.00401f2d
push dword [0x40aecc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [0x40a900]
neg eax
sbb eax, eax
not eax
and eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x402420
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4095d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push edi
call sub.MSVCR90.dll_strlen
pop ecx
cmp eax, 4
jb 0x4024c1
push esi
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.MSVCR90.dll__splitpath]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR90.dll_strcpy
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR90.dll_strcat
lea eax, [ebp - 0x110]
lea esi, [ebp - 0x110]
push eax
dec esi
call sub.MSVCR90.dll_strlen
add esp, 0x28
cmp byte [eax + esi], 0x5c
jne 0x4024aa
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR90.dll_strlen
pop ecx
mov byte [eax + esi], 0
lea eax, [ebp - 0x110]
push eax
call fcn.00402420
pop ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00405284
leave
ret

Function at 0x4024ce
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4095d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push edi
call sub.MSVCR90.dll_strlen
pop ecx
cmp eax, 4
jae 0x4024f5
xor eax, eax
jmp 0x402573
push esi
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.MSVCR90.dll__splitpath]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR90.dll_strcpy
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR90.dll_strcat
lea eax, [ebp - 0x110]
lea esi, [ebp - 0x110]
push eax
dec esi
call sub.MSVCR90.dll_strlen
add esp, 0x28
cmp byte [eax + esi], 0x5c
jne 0x40255c
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR90.dll_strlen
pop ecx
mov byte [eax + esi], 0
lea eax, [ebp - 0x110]
push eax
call fcn.00402420
pop ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00405284
leave
ret

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

Disassembly:
push dword [esp + 4]
push dword [0x40a714]
call fcn.004025d8
mov dword [0x40a714], eax
movzx eax, al
add eax, dword [0x40a718]
imul eax, eax, 0x8088405
inc eax
mov dword [0x40a718], eax
shr eax, 0x18
push eax
push dword [0x40a71c]
call fcn.004025d8
add esp, 0x10
mov dword [0x40a71c], eax
ret
Function at 0x40264e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4095d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCR90.dll_memcpy
mov al, byte [0x40a8c4]
add esp, 0xc
mov dword [0x40a714], 0x12345678
mov dword [0x40a718], 0x23456789
mov dword [0x40a71c], 0x34567890
test al, al
je 0x4026ad
mov edx, 0x40a8c4
movzx eax, al
push eax
call fcn.004025f3
inc edx
mov al, byte [edx]
pop ecx
test al, al
jne 0x40269c
push esi
push edi
xor edi, edi
lea esi, [ebp + edi - 0x10]
call fcn.00402634
mov edx, eax
movzx eax, byte [esi]
xor edx, eax
push edx
call fcn.004025f3
inc edi
pop ecx
mov byte [esi], dl
cmp edi, 0xc
jb 0x4026b1
mov eax, dword [ebp + 0xc]
xor ecx, ecx
shr eax, 0x18
cmp byte [ebp - 5], al
pop edi
sete cl
pop esi
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405284
leave
ret
Function at 0x4029c4
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x13f0
call fcn.004052a0
mov eax, dword [0x4095d0]
xor eax, esp
mov dword [esp + 0x13ec], eax
mov eax, dword [0x409e38]
push ebx
push ebp
push esi
push edi
push dword [0x4091bc]
mov dword [0x40ab1c], eax
lea eax, [esp + 0x64]
push str.temp_d.zme
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [esp + 0x20]
add esp, 0xc
mov esi, 0x40ab44
cmp byte [0x40ab44], bl
jne 0x402a53
push 0x28
push ebx
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push 0x4076b1
call fcn.00402968
pop ecx
pop ecx
test eax, eax
je 0x402b9a
push esi
lea ecx, [esp + 0x20]
call fcn.00405b2e
push ebx
mov edi, 0x80
push edi
push 2
push ebx
push ebx
push 0xc0000000
lea eax, [esp + 0x78]
push eax
call ebp
push ebx
push edi
push 3
push ebx
push 1
push 0x80000000
push 0x40aa10
mov dword [esp + 0x30], eax
call ebp
push ebx
push ebx
push dword [0x409e38]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x14]
push eax
push 0x1388
lea eax, [esp + 0x80]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], ebx
je 0x402ad8
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], 0x1388
je 0x402a9c
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push str.code42
call fcn.00402968
pop ecx
pop ecx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x20]
call fcn.004067ad
push ebx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp dword [0x40ab40], ebx
jne 0x402b5d
push 4
lea eax, [esp + 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lread]
push 4
lea eax, [esp + 0x78]
push 0x4091c4
push eax
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x402b50
mov dword [0x40ab40], 1
jmp 0x402b5d
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
mov byte [0x40ab44], bl
lea ecx, [esp + 0x1c]
call fcn.00405b78
cmp dword [0x40ab40], ebx
je 0x402a18
xor eax, eax
mov dword [0x4091c0], edi
mov dword [0x409e38], ebx
inc eax
mov ecx, dword [esp + 0x13fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405284
add esp, 0x13f0
ret
xor eax, eax
jmp 0x402b81
Function at 0x402b9e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x210
mov eax, dword [0x4095d0]
xor eax, ebp
mov dword [ebp + 0x68], eax
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
push edi
mov edi, dword [ebp + 0x74]
push edi
call sub.MSVCR90.dll_strlen
mov esi, eax
cmp esi, 5
pop ecx
jl 0x402c8c
cmp esi, 9
jge 0x402bf3
lea eax, [esi - 4]
push eax
lea eax, [ebp - 0x60]
push edi
push eax
call sub.MSVCR90.dll_memcpy
lea eax, [ebp + esi - 0x60]
lea ecx, [edi + esi - 4]
mov byte [eax - 4], 0x2a
push ecx
add eax, 0xfffffffd
jmp 0x402c0b
push 4
lea eax, [ebp - 0x60]
push edi
push eax
call sub.MSVCR90.dll_memcpy
lea eax, [edi + esi - 4]
push eax
mov byte [ebp - 0x5c], 0x2a
lea eax, [ebp - 0x5b]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 0x14
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402c8c
push 0
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
test esi, esi
jl 0x402c73
push 0
push 0x3e0
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push 2
lea eax, [ebp - 0x1a4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lread]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov ax, word [ebp - 0x1a4]
cmp ax, word [ebp + 0x78]
je 0x402ca0
lea eax, [ebp - 0x1a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402c2c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405284
add ebp, 0x6c
leave
ret
lea eax, [ebp - 0x174]
push eax
push ebx
call sub.MSVCR90.dll_strcpy
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x402c8e
Function at 0x4048b6
Capabilities:
Create process on windows
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x134]
sub esp, 0x1b4
mov eax, dword [0x4095d0]
xor eax, ebp
mov dword [ebp + 0x130], eax
push ebx
push esi
push edi
mov esi, 0x409e58
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov ebx, eax
call fcn.004024ce
pop ecx
test eax, eax
jne 0x40499d
cmp ebx, 0xffffffff
je 0x4048ff
test bl, 0x10
jne 0x40499d
push esi
lea eax, [ebp - 0x60]
push str.The_self_extractor_was_unable_to_create_the_folder__s.__Please_enter_another_folder_name.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.Folder_Creation_Error
lea eax, [ebp - 0x60]
push eax
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x4091a8]
push esi
push dword [0x409e48]
push esi
push esi
push 0xa
push 0xa
push esi
push esi
push 0x80cc0000
push eax
push eax
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x40ab18], eax
mov dword [0x40ab24], 1
call fcn.004039ec
push 0x40000000
push 0xfffffffffffffff0
push dword [0x409e50]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x40498b
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
call edi
test eax, eax
jne 0x404977
jmp 0x404a20
call fcn.00403184
call fcn.004040ea
push 0x40a398
call sub.MSVCR90.dll_strlen
pop ecx
test eax, eax
jbe 0x404a20
call dword [sym.imp.MSVCR90.dll__getdrive]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x2c]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll__getcwd]
mov al, byte [0x409e58]
cmp al, 0x41
pop ecx
pop ecx
jl 0x4049dd
cmp al, 0x5a
jle 0x4049df
add al, 0xe0
mov edi, dword [sym.imp.MSVCR90.dll__chdrive]
movsx eax, al
sub eax, 0x40
push eax
call edi
mov ebx, dword [sym.imp.MSVCR90.dll__chdir]
push esi
call ebx
pop ecx
pop ecx
push 1
push esi
push 0x4076b1
push 0x40a398
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x64]
call edi
lea eax, [ebp + 0x2c]
push eax
call ebx
pop ecx
pop ecx
mov ecx, dword [ebp + 0x130]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405284
add ebp, 0x134
leave
ret
Function at 0x405284
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4095d0]
jne 0x40528e
repz ret
jmp fcn.004055f3
Function at 0x4065df
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
mov edi, ecx
mov dword [ebp - 4], 0x10
call fcn.00405fd7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00406026
mov eax, dword [ebp - 0xc]
mov esi, dword [edi + 0x10]
mov ebx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
add esi, 0x81
dec dword [ebp - 4]
sub esi, 8
push esi
push ebx
mov ecx, edi
call fcn.00406519
xor eax, dword [ebp + 0xc]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], ebx
mov ebx, eax
jne 0x40661e
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.004062a5
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.00405f9b
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40667b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4095d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x54], eax
push edi
mov edi, dword [ebp + 8]
xor eax, eax
inc eax
push eax
mov esi, ecx
mov dword [ebp - 0x5c], eax
push 8
lea eax, [esi + 4]
push eax
lea ebx, [esi + 0x10]
push ebx
call fcn.00405d66
push 0x4078f8
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fopen]
call edi
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x4066ce
and dword [ebp - 0x5c], eax
jmp 0x40677d
push 0x4078f4
push dword [ebp - 0x54]
call edi
pop ecx
pop ecx
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x4066e9
and dword [ebp - 0x5c], eax
jmp 0x406773
push dword [ebp - 0x58]
mov edi, dword [sym.imp.MSVCR90.dll_fread]
push 0x32
lea eax, [ebp - 0x50]
push 1
push eax
call edi
push dword [ebp - 0x58]
lea eax, [ebp - 0xc]
push 8
push 1
push eax
call edi
add esp, 0x20
test eax, eax
jle 0x406769
lea eax, [ebp - 0xc]
push eax
push eax
mov ecx, esi
call fcn.004065df
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCR90.dll_memcpy
push dword [ebp - 0x58]
lea eax, [ebp - 0xc]
push 8
push 1
push eax
call edi
add esp, 0x1c
push dword [ebp - 0x54]
cmp eax, 8
jne 0x406755
push eax
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
jmp 0x406710
movzx eax, byte [ebp - 0xd]
push eax
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
push dword [ebp - 0x54]
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
push dword [ebp - 0x58]
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
push 0x81
push 0
push dword [ebx]
call sub.MSVCR90.dll_memset
push dword [ebx]
call dword [sym.imp.MSVCR90.dll_free]
mov ecx, dword [ebp - 4]
and dword [ebx], 0
mov eax, dword [ebp - 0x5c]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405284
leave
ret 8
Function at 0x4067ad
Capabilities:
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4095d0]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
mov esi, dword [ebp + 0x94]
push edi
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp - 0x80], ecx
call sub.MSVCR90.dll_strcpy
lea eax, [ebp - 0x7c]
push 0x2e
push eax
call dword [sym.imp.MSVCR90.dll__mbsrchr]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x406803
lea eax, [ebp - 0x7c]
push str..zme
push eax
call sub.MSVCR90.dll_strcat
jmp 0x406824
mov edi, str..zme
push edi
push ebx
call dword [sym.imp.MSVCR90.dll__mbsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40681d
push str..
jmp 0x40681e
push edi
push ebx
call sub.MSVCR90.dll_strcpy
pop ecx
pop ecx
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.0040667b
mov edi, eax
test edi, edi
je 0x40684d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x7c]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_rename]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x88]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405284
add ebp, 0x8c
leave
ret 4
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479004]
jne 0x40100a
repz ret
jmp fcn.0040170c

Function at 0x404bbb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x479004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402b5c
and dword [ebp - 0x14], 0
cmp dword [0x47b270], 0
mov dword [ebp - 0x18], eax
jne 0x404c6e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404d16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404d16
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47b270], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47b274], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47b278], eax
call edi
push eax
call esi
mov dword [0x47b280], eax
test eax, eax
je 0x404c6e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47b27c], eax
mov eax, dword [0x47b27c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404cc7
cmp dword [0x47b280], ecx
je 0x404cc7
push eax
call esi
push dword [0x47b280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404cc7
test ebx, ebx
je 0x404cc7
call edi
test eax, eax
je 0x404cbe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404cbe
test byte [ebp - 8], 1
jne 0x404cc7
or dword [ebp + 0x10], 0x200000
jmp 0x404cfa
mov eax, dword [0x47b274]
cmp eax, dword [ebp - 0x18]
je 0x404cfa
push eax
call esi
test eax, eax
je 0x404cfa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404cfa
mov eax, dword [0x47b278]
cmp eax, dword [ebp - 0x18]
je 0x404cfa
push eax
call esi
test eax, eax
je 0x404cfa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47b270]
call esi
test eax, eax
je 0x404d16
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404d18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x47539b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x47cb24]
push dword [0x47c970]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x4754a1
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x479004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jle 0x4754f9
push esi
and dword [ebp - 0x808], 0
lea esi, [ebp - 0x808]
call fcn.00475496
mov al, byte [ebp - 0x808]
xor byte [ebx + edi], al
cmp dword [ebp + 8], 0xf
jne 0x4754f2
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
inc edi
cmp edi, dword [ebp + 8]
jl 0x4754bd
pop esi
cmp dword [ebp + 8], 0x2d
pop edi
jne 0x475511
or dword [0x47cc5c], 0xffffffff
mov dword [0x47cc58], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret