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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x479513
test eax, eax
jbe 0x479513
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x479513
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4794be
xor esi, esi
jmp 0x4794c4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4794ef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0047ad00
add esi, eax
push esi
mov ebx, esi
call fcn.0047ad00
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4794d0
pop ebp
test edi, edi
pop edi
jne 0x479513
test ebx, ebx
je 0x479513
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004882a0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x479655
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 0x47976d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47976d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004ab879
mov esi, eax
test esi, esi
je 0x47976d
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 0x47976d
mov ecx, esi
call fcn.004795c0
cmp edi, eax
jge 0x47976d
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 0x4796f3
mov dword [esp + 0x34], 1
jmp 0x47974e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47976d
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.00477e60
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 0x47bf20
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x511294]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x47bf33
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x47bf74
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x51133c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x47bfa6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x47bfaa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x47bf9b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x47bfc8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x47bfcc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x47bfbd
xor ecx, ecx
mov eax, 0x5112a4
xor ebx, ebx
mov bl, byte [ecx + 0x51134c]
cmp byte [esp + ebx + 0x14], 0
je 0x47bff7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x511364]
cmp byte [esp + ebx + 0x14], 0
je 0x47c00e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x47bfde
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x47bf67
lea edx, [esp + 0x84]
push edx
call fcn.0047c050
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x49fde0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4bc040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00494e44
mov eax, dword [0x4f7d40]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.00494d76
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004a08e0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x49fe87
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49fe7e
cmp al, 0xff
je 0x49fe7e
dec al
mov byte [ecx], al
jmp 0x49fe87
push ecx
call fcn.004a9b6d
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x49feb8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49feaf
cmp al, 0xff
je 0x49feaf
dec al
mov byte [ecx], al
jmp 0x49feb8
push ecx
call fcn.004a9b6d
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4ac21d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ac255
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.004aa2aa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004aa282
jmp 0x4ac261
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ad90f
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 0x4ad951
call fcn.004b3641
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ad951
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ad948
xor eax, eax
jmp 0x4ad959
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ad95f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b3b71
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 0x4b3b9f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b3bbd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b3ad7
jmp 0x4b3bbd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b3bbd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b3ad7
test edi, edi
mov eax, edi
jne 0x4b3ba7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x402f30
Capabilities:
Create directory
Get common file path
Get program files directory
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x433ac2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 0x94]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_4
lea ebx, [esi + 0x98]
mov dword [esp + 0x124], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0x23
xor eax, eax
lea edi, [esi + 4]
mov dword [esi], 0x438d70
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [esi + 0x90], eax
lea eax, [esp + 0x14]
mov byte [esp + 0x124], 1
push eax
push 0
push 0
push 0x23
push 0
call edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_2
push str.S_5_4_02
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [ebp]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x44228c
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
push str.9D658AFE_FDB5_4D69_9EDC_742B3ADB0
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x1a
push 0
call edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_2
push str.S_5_4_02
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [ebx]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x44228c
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
push str.9D658AFE_FDB5_4D69_9EDC_742B3ADB0
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
mov byte [esi + 0x9c], 0
mov byte [esi + 0x9d], 0
mov byte [esi + 0x9e], 0
mov al, 0xc
mov byte [esi + 0x9f], 0
mov byte [esi + 0xa0], al
mov byte [esi + 0xa1], 0x35
mov byte [esi + 0xa2], 0x2b
mov byte [esi + 0xa3], 7
mov dl, 0xd
mov byte [esi + 0xa4], dl
mov byte [esi + 0xa5], 0x12
mov byte [esi + 0xa6], 0x1c
mov byte [esi + 0xa7], 0x18
mov byte [esi + 0xa8], al
mov byte [esi + 0xa9], 0
mov cl, 0x13
mov bl, 0x36
mov byte [esi + 0xaa], al
mov byte [esi + 0xb6], al
mov byte [esi + 0xc6], al
mov byte [esi + 0xab], 0x31
mov byte [esi + 0xac], 0x24
mov byte [esi + 0xad], 0xa
mov byte [esi + 0xae], 0xf
mov byte [esi + 0xaf], 0x2a
mov byte [esi + 0xb0], 0x27
mov byte [esi + 0xb1], 0x11
mov byte [esi + 0xb2], cl
mov byte [esi + 0xb3], 0x1f
mov byte [esi + 0xb4], 0
mov byte [esi + 0xb5], 0x1e
mov byte [esi + 0xb7], dl
mov byte [esi + 0xb8], 5
mov byte [esi + 0xb9], bl
mov byte [esi + 0xba], 0x3f
mov byte [esi + 0xbb], 0x1d
mov byte [esi + 0xbc], cl
mov byte [esi + 0xbd], 0x1f
mov byte [esi + 0xbe], 4
mov byte [esi + 0xbf], 0x11
mov byte [esi + 0xc0], 1
mov byte [esi + 0xc1], 0xf
mov byte [esi + 0xc2], 0x3d
mov byte [esi + 0xc3], dl
mov byte [esi + 0xc4], bl
mov byte [esi + 0xc5], 2
mov byte [esi + 0xc7], cl
mov ecx, dword [esp + 0x11c]
mov byte [esi + 0xc8], 0x2b
mov byte [esi + 0xc9], 0x39
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x403770
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov ebp, ecx
push eax
call sub.MFC42.DLL_CTime::GetTickCount
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 0x14]
xor edx, edx
add ecx, 0x76c
mov dh, bl
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
mov eax, dword [ebp + 4]
or ecx, edx
and esi, 0xff
lea edi, [esp + 0x1c]
or ecx, esi
lea esi, [ebp + 0xc]
mov dword [esp + 0x9c], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, 0x20
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x4422ec
push eax
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
mov esi, eax
add esp, 8
test esi, esi
je 0x403833
push esi
push 1
lea edx, [esp + 0x1c]
push 0x8c
push edx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov ebp, dword [ebp + 0x98]
push 0x4422ec
push ebp
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x403863
push esi
push 1
lea eax, [esp + 0x1c]
push 0x8c
push eax
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret

Function at 0x403870
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x18]
push eax
push ecx
mov word [esp + 0x22], 9
mov word [esp + 0x26], 0x19
mov word [esp + 0x20], 0x7d3
mov word [esp + 0x28], 0xd
mov word [esp + 0x2a], 0x2b
mov word [esp + 0x2c], 5
mov word [esp + 0x2e], 0x1b2
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esi + 0x94]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 1
push 0x40000000
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edi, eax
cmp edi, 0xffffffff
je 0x4038fe
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x98]
push 0
push 0
push 3
push 0
push 1
push 0x40000000
push esi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x403936
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x403940
Capabilities:
Encode data using xor
Get hostname
Get session user name

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ebp, dword [esp + 0x138]
mov ecx, 0x23
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x101
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x403a08
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x403a08
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x13c]
dec esi
dec edi
cmp eax, 1
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
jne 0x4039e3
xor ecx, ecx
mov eax, ecx
xor edx, edx
div esi
mov eax, ecx
mov ebx, edx
xor edx, edx
div edi
mov al, byte [esp + ebx + 0x30]
xor al, byte [esp + edx + 0x20]
mov byte [ecx + ebp + 8], al
inc ecx
cmp ecx, 0x80
jl 0x4039be
jmp 0x403a08
xor ecx, ecx
mov eax, ecx
xor edx, edx
div esi
mov eax, ecx
mov ebx, edx
xor edx, edx
div edi
mov al, byte [esp + ebx + 0x30]
xor al, byte [esp + edx + 0x20]
mov byte [ecx + ebp + 8], al
inc ecx
cmp ecx, 0x80
jl 0x4039e5
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 0x14]
xor edx, edx
add ecx, 0x76c
mov dh, bl
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
or ecx, edx
and esi, 0xff
or ecx, esi
push 0
mov dword [ebp + 0x88], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc ebx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 0x14]
mov al, byte [esp + 0x1c]
add ecx, 0x76d
xor edx, edx
and ecx, 0xffff
pop edi
shl ecx, 0x10
inc al
pop esi
mov dh, al
and edx, 0xffff
or ecx, edx
inc bl
and ebx, 0xff
or ecx, ebx
mov dword [ebp], ecx
pop ebp
pop ebx
add esp, 0x124
ret 8

Function at 0x403c70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x30
push ebx
push esi
push edi
push 0x4422f0
mov edi, ecx
push eax
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x403cce
push esi
push 1
lea ecx, [esp + 0x14]
push 0x2e
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
xor eax, eax
mov dl, byte [esp + eax + 0xc]
mov cl, byte [edi + eax + 0x9c]
cmp dl, cl
jne 0x403cc4
inc eax
cmp eax, 0x2e
jl 0x403caf
cmp eax, 0x2e
mov eax, 1
je 0x403cd0
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 4
Function at 0x403d20
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
push 0x4422f4
mov eax, dword [edi + 0x94]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x403d42
pop edi
pop esi
ret
push esi
push 1
add edi, 0x9c
push 0x2e
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fflush]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x18
mov eax, 1
pop edi
pop esi
ret
Function at 0x410730
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x434ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0x60]
mov dword [esi], 0x439704
mov dword [edi], 0x439700
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x18], 8
test eax, eax
je 0x41077f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4107b6
mov ecx, dword [eax + 0x2c]
push 0x5dc
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4107a8
mov edx, dword [esi + 0x78]
push 2
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4107b6
mov edx, dword [ecx]
push 1
call dword [edx + 4]
lea ecx, [esi + 0x140]
mov byte [esp + 0x18], 7
call sub.MFC42.DLL_CButton::CButton
lea ecx, [esi + 0x100]
mov byte [esp + 0x18], 6
call sub.MFC42.DLL_CButton::CButton
lea ecx, [esi + 0xc0]
mov byte [esp + 0x18], 5
call sub.MFC42.DLL_CProgressCtrl::CProgressCtrl
lea ecx, [esi + 0x80]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esi + 0x74]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x70]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov byte [esp + 0x18], 0
neg ecx
sbb ecx, ecx
and ecx, edi
call fcn.00410550
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00432c96
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x410b80
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
mov dword [esp + 8], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
pop ecx
ret
Function at 0x410ba0
Capabilities:
Resume thread

Disassembly:
sub esp, 8
push ebx
xor ebx, ebx
call fcn.00410b80
test eax, eax
je 0x410c79
push esi
push edi
push 0x812
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov edi, dword [esp + 0x2c]
add esp, 4
lea eax, [edx + 0x802]
push ebx
push 4
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
push ebx
push ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
push edx
push 0x4112a0
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_AfxBeginThread
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ebx
lea ecx, [esp + 0x14]
push ebx
push ecx
mov esi, eax
call edi
mov edx, dword [esi + 0x2c]
push eax
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 0x2c]
push 0x5dc
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
test eax, eax
jne 0x410c6e
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x410c6e
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
add esp, 8
ret 0x14

Function at 0x410c90
Capabilities:
Resume thread

Disassembly:
sub esp, 8
push ebx
xor ebx, ebx
call fcn.00410b80
test eax, eax
je 0x410d48
push esi
push edi
push 0x812
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x1c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
push 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
push ebx
push edx
push 0x411530
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_AfxBeginThread
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ebx
lea ecx, [esp + 0x14]
push ebx
push ecx
mov esi, eax
call edi
mov edx, dword [esi + 0x2c]
push eax
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 0x2c]
push 0x5dc
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
test eax, eax
jne 0x410d3d
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x410d3d
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
add esp, 8
ret 4
Function at 0x411c20
Capabilities:
Enumerate gui resources

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x20
or ecx, 0xffffffff
xor eax, eax
push edi
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 0x200
jb 0x411c41
add esp, 0x20
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.00411c90
lea edx, [esp]
push edx
push 0x411c70
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x14]
add esp, 0x20
ret

Function at 0x411cd0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x220]
push eax
mov esi, ecx
push edi
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x18]
cmp ecx, eax
jne 0x411d32
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 0x1f4
push ebp
push eax
push 0x200
push 0xd
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x411d7f
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00411e30
mov ebx, eax
test ebx, ebx
jne 0x411d69
jmp 0x411d59
lea eax, [esp + 0x18]
push 0x200
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x411d7f
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00411e30
mov ebx, eax
test ebx, ebx
jne 0x411d69
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.00411ea0
test eax, eax
je 0x411d7f
push ebx
push edi
mov ecx, esi
call fcn.00411d90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 4