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

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x434f29
pop esi
ret
push ebx
push edi
push esi
call fcn.00434ee1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004301ea
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x434f51
push ebx
push esi
push edi
call fcn.00421fe0
add esp, 0xc
push 0
call fcn.00430ba3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x435315
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00434f66
Function at 0x43bc70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43bc9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43bc9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4067c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x45fdcc], 0
push esi
jne 0x40695e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406938
mov dword [ecx*4 + 0x45fdc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406933
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40698f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fdc8]
xor eax, esi
inc ecx
dec edx
jne 0x406971
pop edi
not eax
pop esi
ret 0xc

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x402c00
pop dword [ebp - 0x48]
mov eax, 0x54449e3f
sub eax, 0x5404723f
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xd641ad51
add dword [ebp - 0x58], 0x781097fa
mov dword [ebp - 0x54], 0x7dece0ae
sub dword [ebp - 0x54], 0x4bb99469
mov dword [ebp - 0x50], 0x683214bc
sub dword [ebp - 0x50], 0x1be5d08e
mov dword [ebp - 0x4c], 0x3687511d
sub dword [ebp - 0x4c], 0x3687511d
lea eax, [ebp - 0x58]
push eax
mov eax, 0x939338ae
add eax, 0x6cad37b6
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x812f9c33
add dword [ebp - 0x58], 0xf342cd23
mov dword [ebp - 0x54], 0x14c50e60
sub dword [ebp - 0x54], 0xd358aceb
mov dword [ebp - 0x50], 0x5262e411
sub dword [ebp - 0x50], 0xeef377a5
mov dword [ebp - 0x4c], 0x5ddbfc50
sub dword [ebp - 0x4c], 0x5ddbfc50
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3a2ca
push 0
call eax
mov ecx, 0x55f1
mov edi, eax
mov edx, 0x410000
add edx, dword [ebp - 0x48]
mov esi, 0x1377878d
add dword [ebp - 0x40], eax
mov ebx, dword [edx]
mov dword [ebp - 0x38], 0x13bffe17
add ebx, esi
xor dword [ebp - 4], ecx
mov dword [edi], ebx
sub dword [ebp - 0x20], 0xfd2c0a03
add edi, 0xdfbd39a7
sub edi, 0xdfbd39a3
add edx, 4
loop 0x402d0b
add eax, 0xafbd071d
sub eax, 0xafbbbc86
xor ebx, ebx
add ebx, eax
add eax, 0xb9e36b40
sub eax, 0xb9e36b3b
mov ecx, 0x1671eb51
sub ecx, 0x1631eb51
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4044dd
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00408e10
mov eax, dword [0x42f180]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
push edi
push dword [0x43292c]
mov edi, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov ebp, 0x1000
push ebp
lea eax, [esp + 0x18]
push eax
mov ebx, 0x425524
push ebx
push str.title
mov esi, 0x425f40
push esi
call edi
push 0x50
pop ecx
lea eax, [esp + 0x10]
mov edx, 0x431140
call fcn.00407350
push dword [0x43292c]
lea eax, [esp + 0x14]
push ebp
push eax
push ebx
push str.info
push esi
call edi
mov ecx, ebp
lea eax, [esp + 0x10]
mov edx, 0x431580
call fcn.00407350
push dword [0x43292c]
push 0x50
push 0x4327c0
push ebx
push str.build_info
push esi
call edi
push dword [0x43292c]
mov ebp, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
push 1
push str.target_compile
push esi
call ebp
push dword [0x43292c]
mov dword [0x431194], eax
push 1
push str.target_optimize
push esi
call ebp
push dword [0x43292c]
mov dword [0x431190], eax
push 0xa
push 0x432590
push ebx
push str.target_version
push esi
call edi
push dword [0x43292c]
push 0x50
push 0x4312c0
push ebx
push str.name
push str.metadata
call edi
push dword [0x43292c]
push 0x104
push 0x4311a0
push ebx
push str.install_script
push esi
call edi
push dword [0x43292c]
mov ebp, 0x431550
push 0xa
push ebp
push ebx
push str.user_access_control
push esi
call edi
push 6
mov edi, str.force
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40462b
call fcn.00407350
test eax, eax
je 0x404688
call fcn.00403547
test eax, eax
jne 0x404688
call fcn.00407350
jmp 0x4046cb
push 5
mov edi, str.auto
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404658
call fcn.00407350
test eax, eax
je 0x404688
call fcn.00403547
test eax, eax
jne 0x404688
call fcn.00407350
test eax, eax
je 0x404688
jmp 0x404621
cmp byte [0x431550], al
je 0x404688
push 5
mov edi, str.none
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404688
push eax
push str.oops
push str.Bad_user_access_control_value
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x431140
call fcn.00402766
push eax
mov dword [0x432580], eax
call fcn.00407350
pop ecx
pop ecx
push dword [0x432814]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [0x43292c]
test eax, eax
je 0x4046bb
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [0x432930]
test eax, eax
je 0x4046cb
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00407875
add esp, 0x1004
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7
Function at 0x4014a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4014f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014f9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4014e8
cmp esi, edx
jae 0x4014f9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4014d6
cmp esi, edx
jae 0x4014f9
cmp word [esi], 0
je 0x4014f9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x401af0
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb88
mov eax, dword [0x40e00c]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.MsgBox_]
push 0x1f8
lea eax, [ebp - 0x1fc]
push 0
push eax
movups xmmword [ebp - 0x20c], xmm0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x40f918]
add esp, 0xc
test eax, eax
jne 0x401b53
mov dword [ebp - 0xb88], eax
lea eax, [ebp - 0xb88]
push eax
push 0x4019f0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0xb88]
mov dword [0x40f918], eax
push esi
push edi
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x978
lea eax, [ebp - 0xb84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0xb84]
push 0x4bb
push 0x4bb
push eax
call fcn.00401370
push dword [eax + 4]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnwprintf_s]
add esp, 0x20
mov byte [0x40f91c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x401a60
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov edi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0xb84]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
test edi, edi
je 0x401bef
push edi
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004078bc
mov esp, ebp
pop ebp
ret
Function at 0x401c10
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov dword [ebp - 0xc], edx
mov edi, ecx
mov dword [ebp - 8], eax
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401c4c
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004078bc
mov esp, ebp
pop ebp
ret
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push dword [ebp - 0xc]
mov ebx, eax
movzx eax, di
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401cda
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401cda
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x401cd3
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov ecx, 1
push ebx
cmovne esi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
mov eax, esi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004078bc
mov esp, ebp
pop ebp
ret
Function at 0x406270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x40e00c]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
mov ebx, edx
lea esi, [esp + 0x14]
xorps xmm0, xmm0
mov eax, esi
push edi
movlpd qword [esp + 0x10], xmm0
mov edi, 0x104
mov dword [ebx], 0
sub ecx, eax
nop dword [eax + eax]
lea eax, [edi + 0x7ffffefa]
test eax, eax
je 0x4062ce
movzx eax, word [ecx + esi]
test ax, ax
je 0x4062ce
mov word [esi], ax
add esi, 2
sub edi, 1
jne 0x4062b0
test edi, edi
lea eax, [esi - 2]
push 0x40a784
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [esp + 0x1c]
call fcn.00402e20
lea eax, [esp + 0x18]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x406340
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x406323
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.00404840
mov edi, eax
add esp, 4
test edi, edi
js 0x406376
mov edi, dword [esp + 0x10]
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004078bc
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov ecx, esi
call fcn.00404950
mov edi, eax
test edi, edi
jns 0x40639f
push edi
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.004047f0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4063c3
push edi
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x62
call fcn.004047f0
mov ecx, dword [esp + 0x22c]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004078bc
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
cdq
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x406327
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x937
call fcn.00404890
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x937
call fcn.00404890
int3
Function at 0x408930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x408952
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408948
mov eax, 1
add ebx, ebx
jne 0x40896b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408960
jne 0x40897c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408960
xor ecx, ecx
sub eax, 3
jb 0x408990
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408a02
mov ebp, eax
add ebx, ebx
jne 0x40899b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4089a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4089cc
inc ecx
add ebx, ebx
jne 0x4089b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4089ad
jne 0x4089c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4089ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4089ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4089dd
jmp 0x40894e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4089ec
add edi, ecx
jmp 0x40894e
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x408a0a
cmp byte [edi], 0
jne 0x408a0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x408a0f
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x408a7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x803c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408a3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8040]
or eax, eax
je 0x408a78
mov dword [ebx], eax
add ebx, 4
jmp 0x408a59
call dword [esi + 0x8048]
mov ebp, dword [esi + 0x8044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x408ab2
sub esp, 0xffffff80
jmp 0x40191a
Function at 0x406560
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406599
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8
Function at 0x408860
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x48d5d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b5930]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0xc
call fcn.0044ccf7
add esp, 4
test eax, eax
je 0x40889e
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x4088a0
xor eax, eax
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push 0x437580
push 0
push 0
mov dword [eax + 4], esi
mov dword [eax], 0x4089c0
mov dword [eax + 8], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x30
push str.Verify_Renewal
push str.Once_you_have_renewed_the_account__nplease_click__OK__to_continue.
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xc
call fcn.0044ccf7
mov esi, eax
add esp, 4
test esi, esi
je 0x408919
call fcn.00457afe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408908
push 0x80004005
call fcn.00405140
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
jmp 0x40891b
xor esi, esi
mov ecx, dword [0x4bb1f8]
mov edx, dword [ecx + 0x20]
push 0x49adb9
lea edi, [esp + 0x28]
mov ebx, 0x4bb3c8
mov dword [esi], edx
call fcn.00437400
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.0040b2c0
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408972
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0
push 0
push esi
push 0x417460
call fcn.004514b1
mov esi, eax
mov ecx, esi
call fcn.004507bd
mov ecx, dword [esi + 0x2c]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
call fcn.004507d2
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x40b0e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b0f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b134
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40b130
lea ebx, [ebx]
cmp esi, eax
jae 0x40b134
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40b120
cmp esi, eax
jb 0x40b13a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40bb00
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esi + 0x254]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push pe_nt_image_headers32
push eax
call edi
mov edx, dword [0x4bb3c8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0xc]
push ecx
sub eax, 1
push 4
neg eax
push 0
sbb eax, eax
push str.scanonstartup
add eax, 1
push edx
mov dword [esp + 0x20], eax
call ebx
mov eax, dword [esi + 0x2fc]
push 0
push 0
push pe_nt_image_headers32
push eax
call edi
cmp eax, 1
jne 0x40bb69
mov dword [esp + 8], 0
jmp 0x40bba5
mov eax, dword [esi + 0x350]
push 0
push 0
push pe_nt_image_headers32
push eax
call edi
cmp eax, 1
jne 0x40bb86
mov dword [esp + 8], eax
jmp 0x40bba5
mov eax, dword [esi + 0x3a4]
push 0
push 0
push pe_nt_image_headers32
push eax
call edi
cmp eax, 1
jne 0x40bbbe
mov dword [esp + 8], 2
mov edx, dword [0x4bb3c8]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push str.checkdbupdate
push edx
call ebx
pop edi
pop ebx
pop ecx
ret
Function at 0x40faf0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push edi
push 5
lea ecx, [esi + 0x4a8]
call fcn.0044e48d
mov eax, dword [esi + 0x194]
push 0
push 0
mov byte [esi + 0xc8c], 1
mov eax, dword [eax + 0x20]
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esi + 0xca0]
cmp dword [esi + 0xc9c], edi
lea ebx, [esi + 0xc98]
jbe 0x40fb41
call fcn.0046ecbd
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 8], eax
jbe 0x40fb56
call fcn.0046ecbd
mov eax, dword [esp + 8]
push edi
push ebx
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
call fcn.00411630
mov edi, dword [esi + 0x194]
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
call fcn.0040aea0
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.00420f20
mov edi, dword [esi + 0x194]
add esp, 4
mov ecx, esp
mov dword [esp + 0xc], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
call fcn.0040aea0
push SysReAllocStringLen
mov ecx, ebx
call fcn.00420f20
add esp, 8
push 0x49adb9
lea ecx, [esi + 0xb34]
call fcn.0044e3d0
push 0x49adb9
lea ecx, [esi + 0xb88]
call fcn.0044e3d0
push 0x49adb9
lea ecx, [esi + 0xbdc]
call fcn.0044e3d0
push 0x49adb9
lea ecx, [esi + 0xc30]
call fcn.0044e3d0
cmp byte [esi + 0xc84], 0
mov dword [esi + 0xc90], 0xffffffff
je 0x40fc10
push 5
lea ecx, [esi + 0x8d8]
call fcn.0044e48d
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413920
Capabilities:
Set registry value

Disassembly:
test esi, esi
jne 0x41392e
push 0x80004005
call fcn.00405140
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
add eax, 1
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8