joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56ee0c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x56eea9
push ebx
push esi
call fcn.0056edd5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0056ae2c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x56ee56
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x56eea8
push edi
push eax
call fcn.00569333
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x56ee76
call fcn.005685a9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x56eea7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0056ae2c
add esp, 0x20
test eax, eax
jne 0x56ee95
push edi
call fcn.005685a9
jmp 0x56ee9d
push ebx
call fcn.005685a9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x56eeac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x56eebd
pop esi
ret
push ebx
push edi
push esi
call fcn.0056edd5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00569333
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x56eee5
push ebx
push esi
push edi
call fcn.00554ff0
add esp, 0xc
push 0
call fcn.005685a9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x571039
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005682be
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5710a8
cmp esi, dword [ebp - 4]
je 0x5710a3
cmp dword [ebp + 0xc], 0
je 0x5710a3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x571080
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00570b8b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5710aa
xor eax, eax
inc eax
jmp 0x5710aa
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x57110f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x732480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005682be
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005682be
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x571186
cmp word [ecx], dx
je 0x571186
mov eax, dword [0x700d9c]
push edi
dec eax
push eax
push 0x700c88
call fcn.005710ae
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5711f9
cmp word [eax], dx
je 0x5711f9
mov eax, dword [edi]
test eax, eax
je 0x5711aa
cmp word [eax], dx
je 0x5711aa
lea eax, [ebp - 0x10]
push eax
call fcn.00570a91
jmp 0x5711b3
lea eax, [ebp - 0x10]
push eax
call fcn.00570b2c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x571223
mov eax, dword [0x700c84]
push dword [ebp - 0x14]
dec eax
push eax
push 0x700978
call fcn.005710ae
add esp, 0xc
test al, al
je 0x571223
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5711ee
cmp word [eax], di
je 0x5711ee
lea eax, [ebp - 0x10]
push eax
call fcn.00570a91
pop ecx
jmp 0x571225
lea eax, [ebp - 0x10]
push eax
call fcn.00570b2c
jmp 0x5711eb
mov eax, dword [edi]
test eax, eax
je 0x571210
cmp word [eax], dx
je 0x571210
lea eax, [ebp - 0x10]
push eax
call fcn.00570a46
pop ecx
jmp 0x571223
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5712ee
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00570f33
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5712ee
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5712ee
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5712ee
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x57127b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00568cb7
test ebx, ebx
je 0x5712e9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00568cb7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5712ee
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5712ee
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00576e51
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5712f0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553392
leave
ret
Function at 0x577280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5772ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5772ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401079
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
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 0x40109a
xor eax, eax
leave
ret
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop esi
test eax, eax
jne 0x401096
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
leave
ret

Function at 0x4010ec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00407640
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x401144
leave
ret
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
leave
ret

Function at 0x401186
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1f98]
mov eax, 0x2018
call fcn.004077b0
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp + 0x1f94], eax
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push str.c:LiuInstall.log
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40125b
lea eax, [ebp + 0x1fa4]
push eax
push dword [ebp + 0x1fa0]
lea eax, [ebp + 0xf94]
push 0x7ff
push eax
call fcn.0040778e
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
lea eax, [ebp + 0xf94]
push eax
movzx eax, word [ebp - 0x74]
push eax
movzx eax, word [ebp - 0x76]
push eax
movzx eax, word [ebp - 0x78]
push eax
movzx eax, word [ebp - 0x7a]
push eax
movzx eax, word [ebp - 0x7e]
push eax
movzx eax, word [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push str._02d__02d__02d__02d:_02d:_02d_____s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
push 2
push esi
push esi
push edi
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x70]
add eax, eax
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp + 0x1f94]
pop edi
xor ecx, ebp
pop esi
call fcn.0040762a
add ebp, 0x1f98
leave
ret
Function at 0x40127e
Capabilities:
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x20], 0
push esi
push edi
push 6
xor eax, eax
cmp dword [0x415f2c], 0
pop ecx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x4012ab
push dword [0x415f28]
call dword [sym.imp.KERNEL32.DLL_Wow64RevertWow64FsRedirection]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
xor ecx, ecx
mov word [esi + eax*2 + 2], cx
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [0x415f2c], 0
mov edi, eax
je 0x4012ed
push 0x415f28
call dword [sym.imp.KERNEL32.DLL_Wow64DisableWow64FsRedirection]
test edi, edi
je 0x401300
push esi
push edi
push str.Exception:_SHFileOperation_failed__0x_X__:__s
call fcn.00401186
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
inc eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x401311
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x14
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x1e
lea eax, [ebp - 0x68]
push eax
push 0x8f
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x124
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x401370
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040762a
leave
ret
Function at 0x4024c2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebx
cmp eax, dword [ebp + 8]
jae 0x40250e
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push edi
xor edi, edi
jmp 0x4024f6
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x4024e2
call ebx
cmp eax, dword [ebp + 8]
jb 0x4024f6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e6e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x124
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
xor ebx, ebx
mov edi, 0x11c
mov dword [esi], ebx
push edi
mov dword [ebp - 0xb4], eax
mov dword [eax], ebx
lea eax, [ebp - 0xb0]
push ebx
push eax
call fcn.00407640
add esp, 0xc
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push eax
call edi
test eax, eax
jne 0x402ee5
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xb0], 0x114
call edi
test eax, eax
jne 0x402ee5
xor al, al
jmp 0x403079
mov eax, dword [ebp - 0xa0]
dec eax
je 0x40301a
dec eax
jne 0x40306d
mov eax, dword [ebp - 0xac]
sub eax, 3
je 0x403012
dec eax
je 0x40300a
dec eax
je 0x402fad
dec eax
jne 0x40306d
mov eax, dword [ebp - 0xa8]
sub eax, ebx
je 0x402f55
dec eax
je 0x402f3f
dec eax
jne 0x402f9b
cmp byte [ebp + 0x6a], 1
setne al
dec eax
and eax, 0xfffffff0
add eax, 0xd0
jmp 0x402f51
xor eax, eax
cmp byte [ebp + 0x6a], 1
setne al
dec eax
and eax, 0xfffffff0
add eax, 0xb0
mov dword [esi], eax
jmp 0x402f9b
cmp byte [ebp + 0x6a], 1
movzx eax, word [ebp + 0x64]
jne 0x402f7e
sub eax, ebx
je 0x402f76
dec eax
je 0x402f6e
mov dword [esi], 0x82
jmp 0x402f9b
mov dword [esi], 0x81
jmp 0x402f9b
mov dword [esi], 0x80
jmp 0x402f9b
sub eax, ebx
je 0x402f95
dec eax
je 0x402f8d
mov dword [esi], 0x92
jmp 0x402f9b
mov dword [esi], 0x91
jmp 0x402f9b
mov dword [esi], 0x90
call fcn.00402e47
mov ecx, dword [ebp - 0xb4]
mov dword [ecx], eax
jmp 0x40306d
mov eax, dword [ebp - 0xa8]
sub eax, ebx
je 0x403002
dec eax
je 0x402fd1
dec eax
jne 0x40306d
cmp byte [ebp + 0x6a], 1
setne al
dec eax
and eax, 0xfffffff0
add eax, 0x70
jmp 0x402f51
movzx eax, word [ebp + 0x64]
sub eax, ebx
je 0x402ffa
dec eax
je 0x402ff2
dec eax
je 0x402fea
mov dword [esi], 0x63
jmp 0x40306d
mov dword [esi], 0x62
jmp 0x40306d
mov dword [esi], 0x61
jmp 0x40306d
mov dword [esi], 0x60
jmp 0x40306d
mov dword [esi], 0x50
jmp 0x40306d
mov dword [esi], 0x41
jmp 0x40306d
mov dword [esi], 0x40
jmp 0x40306d
cmp dword [ebp - 0xac], 4
jne 0x40306d
cmp dword [ebp - 0xa8], ebx
je 0x403057
cmp dword [ebp - 0xa8], 0xa
je 0x403045
cmp dword [ebp - 0xa8], 0x5a
jne 0x40306d
mov dword [esi], 0x30
jmp 0x40306d
xor eax, eax
cmp word [ebp - 0x9a], 0x41
sete al
add eax, 0x20
jmp 0x40306b
movzx eax, word [ebp - 0x9a]
xor ecx, ecx
add eax, 0xffffffbe
inc ecx
cmp ecx, eax
sbb eax, eax
add eax, 0x11
mov dword [esi], eax
xor eax, eax
cmp dword [ebp - 0xa0], 2
sete al
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040762a
add ebp, 0x70
leave
ret
Function at 0x404ce3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
je 0x404d2e
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x404cff
mov eax, edi
and dword [ebp + 0x10], 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x404d34
test ecx, ecx
je 0x404d2e
test edi, edi
ja 0x404cf4
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_GetLastError]

Function at 0x404d3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
je 0x404d88
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x404d59
mov eax, edi
and dword [ebp + 0x10], 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x404d8e
test ecx, ecx
je 0x404d88
test edi, edi
ja 0x404d4e
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_GetLastError]

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

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40501e
mov dword [ecx*4 + 0x416d18], eax
inc ecx
cmp ecx, 0x100
jb 0x405019
pop esi
ret

Function at 0x405045
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 4]
test edx, edx
jbe 0x40506e
push esi
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x416d18]
dec edx
inc ecx
test edx, edx
ja 0x405052
pop esi
ret 4
Function at 0x4074cf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4074e8
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x40750b
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x407510
inc edi
cmp edi, dword [ebp - 4]
jb 0x407502
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x407608
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x407567
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x40753b
cmp cl, 0xff
jne 0x407592
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x4075a0
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4075a7
dec ecx
shl edx, cl
and edx, 7
je 0x40752c
movzx ecx, byte [edx + 0x411eb0]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x411ea8], 0
mov cl, byte [ebx + 4]
je 0x40758f
test cl, cl
je 0x40758f
cmp cl, 0xff
jne 0x40752c
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4074fd
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x4075db
movzx esi, byte [edx + 0x411eb0]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x4075c6
cmp al, 0xff
jne 0x4075d8
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x407559
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4074fd
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x40762a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415010]
jne 0x407634
repz ret
jmp fcn.00407fa5
Function at 0x40d7bc
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.0040a137
and dword [ebp - 4], 0
cmp dword [0x417b98], 0
mov ebx, eax
jne 0x40d86d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d91e
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40d91e
push eax
call fcn.0040a0c5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x417b98], eax
call esi
push eax
call fcn.0040a0c5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x417b9c], eax
call esi
push eax
call fcn.0040a0c5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x417ba0], eax
call esi
push eax
call fcn.0040a0c5
pop ecx
mov dword [0x417ba8], eax
test eax, eax
je 0x40d86d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a0c5
pop ecx
mov dword [0x417ba4], eax
mov eax, dword [0x417ba4]
cmp eax, ebx
je 0x40d8c5
cmp dword [0x417ba8], ebx
je 0x40d8c5
push eax
call fcn.0040a140
push dword [0x417ba8]
mov esi, eax
call fcn.0040a140
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d8c5
test edi, edi
je 0x40d8c5
call esi
test eax, eax
je 0x40d8bc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d8bc
test byte [ebp - 0xc], 1
jne 0x40d8c5
or dword [ebp + 0x10], 0x200000
jmp 0x40d8fe
mov eax, dword [0x417b9c]
cmp eax, ebx
je 0x40d8fe
push eax
call fcn.0040a140
pop ecx
test eax, eax
je 0x40d8fe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d8fe
mov eax, dword [0x417ba0]
cmp eax, ebx
je 0x40d8fe
push eax
call fcn.0040a140
pop ecx
test eax, eax
je 0x40d8fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417b98]
call fcn.0040a140
pop ecx
test eax, eax
je 0x40d91e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d920
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401760
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020b8
push 0x401960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x4035f4], 0xffffffff
mov dword [0x4035f8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4031a4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4031a0]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x4035fc], ecx
call fcn.00401950
mov eax, dword [0x403080]
test eax, eax
jne 0x4017f1
push 0x401940
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00401920
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x40319c]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x403198]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [edx]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4018ff
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x401865
cmp al, 0x22
jne 0x401857
cmp byte [esi], 0x22
jne 0x40186e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40187e
cmp al, 0x20
ja 0x40187e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40186e
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40189f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4018a4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4018e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40186e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4018ff

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx