joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499c65
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x499d7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x499d7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004d576b
mov esi, eax
test esi, esi
je 0x499d7d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x499d7d
mov ecx, esi
call fcn.00499b70
cmp edi, eax
jge 0x499d7d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x499d03
mov dword [esp + 0x34], 1
jmp 0x499d5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x499d7d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00497df0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x49e650
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x49e6b6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x49e6b6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x49e697
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x49ee30
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x49ee68
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x49fb00
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x49fb49
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x49ffc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e5780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0049fb70
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0049fbf0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0049fbf0
lea ecx, [esi + 0xc]
call fcn.004d3c7f
lea ecx, [esi + 0x10]
call fcn.004d3c7f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a1180
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a1180
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a1180
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004d3cf4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004d3cf4
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4d610e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d6146
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d419b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d4173
jmp 0x4d6152
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d7803
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d7845
call fcn.004dd7e9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d7845
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d783c
xor eax, eax
jmp 0x4d784d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d7853
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ddd19
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ddd47
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ddd65
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ddc7f
jmp 0x4ddd65
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ddd65
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ddc7f
test edi, edi
mov eax, edi
jne 0x4ddd4f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x413020]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x401046
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004034d3
add esp, 0x20c
ret
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040376a
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x40107f
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004034d3
add esp, 0x20c
ret
lea edx, [esp + 8]
push edx
call edi
test eax, eax
jne 0x401097
lea eax, [esp + 8]
push eax
call fcn.00401000
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.004034d3
add esp, 0x20c
ret
Function at 0x401440
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
movzx eax, word [esp + 4]
mov ecx, dword [0x414c44]
push esi
push 0x410c48
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 8], eax
test esi, esi
jne 0x401477
xor al, al
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401473
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
mov edi, eax
mov eax, dword [edx]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0xc]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test esi, esi
je 0x4014cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x4014e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40e160
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x413020]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x41405c]
mov edx, dword [eax + 0xc]
mov ecx, 0x41405c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x410c58
lea edi, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00401150
add esp, 4
mov byte [esp + 0x20], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x40158c
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40157b
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40157b
call fcn.00402040
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x401572
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov dword [esp + 0x10], esi
jmp 0x40158c
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x14]
call fcn.00401fa0
mov esi, dword [esp + 0x10]
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
push ecx
push 0x82
call fcn.00401440
mov bl, al
lea eax, [esi - 0x10]
add esp, 8
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4015f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x401610
Capabilities:
Access peb ldr_data
Delete file
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40e128
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x413020]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x41405c]
mov edx, dword [eax + 0xc]
mov ecx, 0x41405c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push str.RootGenius.zip
lea edi, [esp + 0x20]
mov dword [esp + 0x34], 0
call fcn.00401150
add esp, 4
mov byte [esp + 0x30], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x4016bd
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4016ac
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4016ac
call fcn.00402040
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4016a3
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x18], esi
jmp 0x4016bd
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00401fa0
mov esi, dword [esp + 0x18]
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4016e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebp
lea ecx, [esp + 0x18]
push ecx
push 0x84
call fcn.00401440
mov bl, al
add esp, 8
test bl, bl
je 0x401740
push 1
push ecx
mov edi, esp
mov dword [esp + 0x28], esp
push 0x410c8c
call fcn.00401150
lea eax, [esi - 0x10]
mov byte [esp + 0x3c], 2
mov dword [esp + 0x30], esp
mov edi, esp
call fcn.00402040
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x3c], 0
call fcn.00402610
add esp, 0xc
push esi
mov bl, al
call ebp
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401764
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x401780
Capabilities:
Access peb ldr_data
Delete file
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40e128
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x413020]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x41405c]
mov edx, dword [eax + 0xc]
mov ecx, 0x41405c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push str.RootGeniusEx.zip
lea edi, [esp + 0x20]
mov dword [esp + 0x34], 0
call fcn.00401150
add esp, 4
mov byte [esp + 0x30], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x40182d
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x40181c
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40181c
call fcn.00402040
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x401813
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x18], esi
jmp 0x40182d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00401fa0
mov esi, dword [esp + 0x18]
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401852
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebp
lea ecx, [esp + 0x18]
push ecx
push 0x85
call fcn.00401440
mov bl, al
add esp, 8
test bl, bl
je 0x4018b0
push 0
push ecx
mov edi, esp
mov dword [esp + 0x28], esp
push 0x410cb4
call fcn.00401150
lea eax, [esi - 0x10]
mov byte [esp + 0x3c], 2
mov dword [esp + 0x30], esp
mov edi, esp
call fcn.00402040
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x3c], 0
call fcn.00402610
add esp, 0xc
push esi
mov bl, al
call ebp
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4018d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4018f0
Capabilities:
Check if file exists
Get disk size

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ebx, ax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push 0x410d08
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
and ecx, 0x80000000
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
fild qword [esp + 0x18]
fchs
faddp st(1)
fld qword [0x410e98]
fmul st(1), st(0)
fmulp st(1)
fcomp qword [0x410e90]
fnstsw ax
test ah, 5
jp 0x40199c
mov edx, ebx
and edx, 0x3ff
mov eax, 4
push 0x30
cmp ax, dx
jne 0x40198a
push 0x410d10
push 0x410d18
jmp 0x401994
push str.Warning
push str.C_disk_space_will_cause_the_software_can_not_be_used_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0x3c], 1
call fcn.004014e0
test al, al
jne 0x4019b3
mov byte [esp + 0x3c], al
jmp 0x401a4e
push str.zlib1.dll
lea edi, [esp + 0x1c]
call fcn.00401150
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 4
push eax
call esi
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401610
test al, al
jne 0x401a09
mov byte [esp + 0x3c], al
jmp 0x401a42
push str.RootGenius.dll
lea edi, [esp + 0x1c]
call fcn.00401150
mov eax, dword [eax]
add esp, 4
push eax
call esi
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00401780
cmp byte [esp + 0x3c], 0
jne 0x401a7e
and ebx, 0x3ff
mov ecx, 4
push 0x30
cmp cx, bx
jne 0x401a6c
push 0x410df0
push str.Root
jmp 0x401a76
push str.Error
push str.Root_Genius_failed_to_initialize_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push str.DataTextAuthList
lea edi, [esp + 0x18]
call fcn.00401150
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401aae
mov eax, edi
push eax
push 0xcc
call fcn.00401440
add esp, 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ace
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x402400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402417
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402448
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402444
cmp esi, eax
jae 0x402448
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402434
cmp esi, eax
jb 0x40244e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4034d3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413020]
jne 0x4034dd
repz ret
jmp fcn.00403ebc

Function at 0x4083ac
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.00404034
and dword [ebp - 4], 0
cmp dword [0x414b68], 0
mov ebx, eax
jne 0x40845d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40850e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40850e
push eax
call fcn.00403fc2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414b68], eax
call esi
push eax
call fcn.00403fc2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414b6c], eax
call esi
push eax
call fcn.00403fc2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x414b70], eax
call esi
push eax
call fcn.00403fc2
pop ecx
mov dword [0x414b78], eax
test eax, eax
je 0x40845d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403fc2
pop ecx
mov dword [0x414b74], eax
mov eax, dword [0x414b74]
cmp eax, ebx
je 0x4084b5
cmp dword [0x414b78], ebx
je 0x4084b5
push eax
call fcn.0040403d
push dword [0x414b78]
mov esi, eax
call fcn.0040403d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4084b5
test edi, edi
je 0x4084b5
call esi
test eax, eax
je 0x4084ac
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4084ac
test byte [ebp - 0xc], 1
jne 0x4084b5
or dword [ebp + 0x10], 0x200000
jmp 0x4084ee
mov eax, dword [0x414b6c]
cmp eax, ebx
je 0x4084ee
push eax
call fcn.0040403d
pop ecx
test eax, eax
je 0x4084ee
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4084ee
mov eax, dword [0x414b70]
cmp eax, ebx
je 0x4084ee
push eax
call fcn.0040403d
pop ecx
test eax, eax
je 0x4084ee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414b68]
call fcn.0040403d
pop ecx
test eax, eax
je 0x40850e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408510
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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
Function at 0x49e85f
Capabilities:
Execute anti-debugging instructions

Disassembly:
call 0x49e85f
mov dword [esp], esi
jmp 0x49e845
mov byte [esp + 2], bl
mov dword [esp], ecx
push edx
call fcn.0049e8ce
out dx, al
push 0xfffffffffffffff8
lahf
push 0xffffffffffffffed
or ecx, dword [edi + 0x52897a1f]
mov byte [0x246c8966], al
add dword [ecx - 0x7717dbfc], ecx
clc
invalid

Function at 0x49e8ce
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf048b08c
jmp 0x49e8e8
je 0x49e882
mov dword [esp + 8], ebx
mov dword [esp + 4], esp
jmp 0x49e88a
mov dword [esp + 8], ebx
mov dword [esp + 4], esp
call fcn.0049e8a6
push dword [esp + 1]
jl 0x49e8a9
mov dword [esp + 0xc], ebp
pushal
push word [esp + 0x1e]
jmp 0x49e8ff
mov dword [esp + 0xc], ebp
pushal
jmp 0x49e8b4
push word [esp + 0x1e]
mov byte [esp + 1], dh
pop word [esp + 0x10]
pushal
mov dword [esp + 0x48], esi
jmp 0x49e8da
mov word [esp + 1], ax
pushfd
push dword [esp + 5]
jmp 0x49e86c
mov dword [esp + 0x44], edi
lea esp, [esp + 0x44]
pushfd
jmp 0x49df5a
bswap ebx
pushal
jmp 0x49e920
mov byte [esp + 1], dh
pop word [esp + 0x10]
jmp 0x49e8c2
lea esi, [esp + 0x20]
bsr di, bp
jbe 0x49e942
mov eax, ebp
jmp 0x49e92c
mov ebp, dword [esp + 0x4c]
rdtsc
rdtsc
rdtsc
jmp 0x49e90a
mov ch, 1
jmp 0x49e986
mov eax, ebp
mov ch, 1
call 0x49e961
push ebx
xlatb
inc edi
and dl, cl
sbb cl, bl
dec eax
fidivr word [ecx - 0x6b9a49b8]
pop es
xchg dh, dl
jmp 0x49ea18
sub esp, 0xa0
jmp 0x49e9c0
mov edi, esp
cpuid
mov cx, 0x9fef
not bh
call fcn.0049df66
lea ebx, [edi*4]
xchg bx, dx
mov dx, 0x842f
jmp 0x49eb34
push dword [esp + 4]
ret 8
xchg dword [esp + 4], eax
mov bx, word [esp]
mov bx, cx
xchg ebx, eax
mov edx, esi
mov bl, ah
jmp 0x49ea66
lea eax, [eax - 0x133]
sub edx, edi
mov ebx, dword [esp]
mov bl, byte [esp]
xchg dx, bx
cmc
jmp 0x49ea7e

Function at 0x4c6a21
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx edx, byte [eax + 1]
inc bl
jmp 0x4c6a6c
xor ecx, ecx
jmp 0x4c6b3c
movzx ebx, byte [eax - 1]
call fcn.004c69f9
shl edx, 8
call 0x4c6a21
push 9
fimul dword [edi]
mov dh, 0x58
invalid
sub esp, 0xf
mov word [esp + 5], di
lea esp, [esp + 3]
or edx, ebx
jmp 0x4c6a0f
mov bx, word [esp]
neg bx
movzx ebx, byte [eax]
shl edx, 8
jmp 0x4c6a3e
lea esp, [esp + 4]
lea eax, [esi + 0x1a]
jmp 0x4c67ad