joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c150
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x220
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x22c]
lea eax, [esp + 0x20]
push edi
push 0x4e925c
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [0x5091cc]
add esp, 0x10
test ecx, ecx
mov dword [esp + 8], ebx
je 0x40c1d0
mov eax, dword [0x509204]
test eax, eax
jne 0x40c1ba
push str.AppKeyExists
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x509204], eax
je 0x40c1c8
lea ecx, [esp + 8]
lea edx, [esp + 0x20]
push ecx
push edx
call eax
mov ebx, eax
mov eax, dword [esp + 8]
test eax, eax
jne 0x40c218
xor eax, eax
mov ecx, 0x505010
mov dword [esp + 0xe], eax
mov word [esp + 0xc], 0
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
call fcn.0040aab0
push eax
lea ecx, [esp + 0x10]
push 8
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor edx, edx
pop edi
cmp edx, eax
pop ebx
sbb eax, eax
neg eax
add esp, 0x220
ret
mov eax, ebx
pop edi
pop ebx
add esp, 0x220
ret

Function at 0x40c600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d34e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004ce850
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [esp + 0x14], edi
call fcn.0041bcb0
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0x62cd8]
mov dword [esi], 0x4d8bcc
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0x630e8]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esi + 0x62ee0]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40c870
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x25c
mov ax, word [0x505000]
mov edx, dword [0x5e03cc]
push edi
mov word [esp + 0x58], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5a]
push str.seup.exe
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x5c]
push 0x104
push ecx
push edx
stosw word es:[edi], ax
call fcn.00432f20
lea eax, [esp + 0x68]
push eax
call fcn.004431d0
add esp, 0x14
test eax, eax
je 0x40c92a
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 4], eax
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 4]
mov dword [esp + 8], ecx
lea eax, [esp + 0x14]
mov dword [esp + 0xc], ecx
push edx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x2c], ecx
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x34], 0x44
push ecx
push 0
mov word [esp + 0x6c], 5
mov dword [esp + 0x68], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40c92a
mov edx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
pop edi
add esp, 0x25c
ret 4
Function at 0x40ca4e
Capabilities:
Delete file
Read .ini file

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push esi
mov esi, ecx
push edi
push ebx
lea edi, [esi + 0x62ee0]
push 0x103
push edi
push 0x505000
push str.TheWorld.exe
push 0x4e9c08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.3.6.0.5
push edi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jle 0x40caad
push ebx
mov ecx, esi
call fcn.0040cbf0
test eax, eax
je 0x40caad
mov ecx, esi
call fcn.0040cb20
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40cb05
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x5e03c8]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push 0xc37a
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
push 0x32
call fcn.0047dc90
add esp, 4
lea edx, [esp + 0x10]
push eax
push edx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4

Function at 0x40cbf0
Capabilities:
Get geographical location
Read .ini file

Disassembly:
sub esp, 0x21c
xor eax, eax
push ebx
mov dword [esp + 6], eax
push esi
mov dword [esp + 0xe], eax
mov esi, ecx
mov dword [esp + 0x12], eax
push edi
mov dword [esp + 0x1a], eax
mov ecx, 0x81
lea edi, [esp + 0x22]
mov word [esp + 0x1e], ax
mov word [esp + 0x20], ax
push 9
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov word [esp + 0x10], 0
push ecx
push 3
push 0x505074
stosw word es:[edi], ax
call fcn.00442750
add esp, 4
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [esp + 0xc]
push edx
call fcn.0048b310
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x20]
push eax
push str.url__s
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edi, dword [esp + 0x23c]
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esi, 0x630e8
push edi
push 0x823
push esi
lea edx, [esp + 0x2c]
push 0x505000
push edx
push str.TheWorld.exe
call ebx
cmp word [esi], 0
jne 0x40ccc0
push edi
push 0x823
push esi
push 0x505000
push 0x4e9368
push str.TheWorld.exe
call ebx
xor eax, eax
pop edi
cmp word [esi], ax
pop esi
pop ebx
setne al
add esp, 0x21c
ret 4
Function at 0x40ce30
Capabilities:
Delete file
Hide graphical window

Disassembly:
sub esp, 0x208
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x40ce54
mov ecx, 0x505010
call fcn.004093f0
pop esi
pop ebx
add esp, 0x208
ret
push ebp
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea esi, [ebx + 0x62cd8]
push 0x103
push esi
mov ecx, ebx
stosw word es:[edi], ax
call fcn.0040d0c0
push esi
call fcn.004337d0
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 4
lea eax, [esp + 0x10]
push esi
push str._stheworld.zip
push 0x103
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebx + 0x34]
mov ecx, esi
call fcn.0041c280
mov ecx, esi
call fcn.0041c5d0
mov ecx, esi
call fcn.0041c2a0
lea edx, [esi + 0x5d0d0]
mov ecx, 0x82
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push 0x4e925c
push 0x104
push edx
call ebp
lea edx, [esi + 0x5d4e0]
mov ecx, 0x412
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [ebx + 0x630e8]
push ecx
push 0x4e925c
push 0x824
push edx
call ebp
add esp, 0x10
mov ecx, esi
mov dword [esi + 0x269c], 0x40d120
mov dword [esi + 0x2698], ebx
call fcn.0041c1d0
pop edi
pop ebp
test eax, eax
je 0x40cf94
mov edx, dword [ebx + 0x28]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 1
push edx
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebx + 0x28]
push 0
push 0
push 0x402
push 0x3f0
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x28]
push 5
push 0x3f0
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xc36c
call fcn.0047dc90
mov edx, dword [ebx + 0x28]
add esp, 4
push eax
push 0x42e
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x40d0c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 4]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [esp + 0x214]
mov eax, dword [esp + 0x210]
lea ecx, [esp + 4]
push ecx
push str._sTheWorld_
push edx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
pop edi
add esp, 0x208
ret 8
Function at 0x40d15c
Capabilities:
Create process on windows
Delete directory
Delete file
Hide graphical window

Disassembly:
mov eax, 0x128c
call fcn.004d03a0
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x28]
push 0x3f0
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ebx, [esi + 0x62cd8]
lea ebp, [esi + 0x5d104]
push ebx
push ebp
call fcn.004cf360
add esp, 8
test eax, eax
je 0x40d2ed
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4e]
mov word [esp + 0x4c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x256]
mov word [esp + 0x254], 0
rep stosd dword es:[edi], eax
push str.TheWorld.exe
push ebx
stosw word es:[edi], ax
mov edi, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x4e9370
lea ecx, [esp + 0x58]
push 0x103
push ecx
call edi
add esp, 0x14
lea edx, [esp + 0x4c]
lea eax, [esp + 0x254]
push edx
push 0x4e96d4
push 5
push str._tp:
push str._s_d__s_s
push 0x823
push eax
call edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0x1c
rep stosd dword es:[edi], eax
mov eax, dword [0x5dc170]
lea ecx, [esp + 0x254]
test eax, eax
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x20], 0x505074
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], str.open
je 0x40d259
mov dword [esp + 0x1c], str.runas
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40d2ed
mov eax, dword [esp + 0x48]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc366
mov dword [esi + 0x30], 1
call fcn.0047dc90
mov edx, dword [esi + 0x28]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
add esp, 4
push eax
push 0x42e
push edx
call edi
push 0xc368
call fcn.0047dc90
add esp, 4
push eax
mov eax, dword [esi + 0x28]
push 1
push eax
call edi
push 0xc369
call fcn.0047dc90
mov ecx, dword [esi + 0x28]
add esp, 4
push eax
push 2
push ecx
call edi
mov edx, dword [esi + 0x28]
push 1
push 1
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40d2f4
mov ecx, esi
call fcn.0040d310
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128c
ret
Function at 0x40d310
Capabilities:
Delete directory
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [esi + 0x28]
push 0
push 0x3f0
push eax
mov dword [esi + 0x30], 0
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0xc36a
call fcn.0047dc90
mov ecx, dword [esi + 0x28]
mov ebp, dword [sym.imp.USER32.dll_SetDlgItemTextW]
add esp, 4
push eax
push 1
push ecx
call ebp
push 0xc367
call fcn.0047dc90
mov edx, dword [esi + 0x28]
add esp, 4
push eax
push 0x42e
push edx
call ebp
mov eax, dword [esi + 0x28]
push 5
push 1
push eax
call edi
push eax
call ebx
mov ecx, dword [esi + 0x28]
push 1
push 1
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
add esi, 0x62cd8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40e130
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push esi
push edi
push str.360se_iecompat_filter
push 0
mov edi, ecx
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
xor esi, esi
test ebx, ebx
mov dword [esp + 0xc], esi
jne 0x40e1c9
cmp word [edi], si
je 0x40e252
push esi
push 0x80
push 4
push esi
push esi
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e252
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x14
jb 0x40e1a6
push str.360se_iecompat_filter
push esi
push 0
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x208], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi + 0x208]
mov dword [edi + 0x20c], esi
test ebx, ebx
mov dword [esp + 0xc], 1
je 0x40e252
push ebp
push 0
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x40e242
push ebp
mov ecx, edi
call fcn.0040e7a0
test eax, eax
je 0x40e23b
test esi, esi
jne 0x40e1fb
mov esi, dword [ebp + 4]
shl esi, 8
add esi, 0x14
cmp esi, dword [edi + 0x214]
jbe 0x40e21f
mov ecx, edi
call fcn.0040e100
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [edi + 0x210], eax
mov dword [edi + 0x214], esi
mov edi, dword [edi + 0x210]
test edi, edi
je 0x40e23b
mov ecx, esi
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x10]
pop ebp
test eax, eax
jne 0x40e252
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40e360
Capabilities:
Parse url

Disassembly:
sub esp, 0x140
push ebx
push ebp
push esi
mov esi, dword [esp + 0x150]
test esi, esi
push edi
mov ebx, ecx
je 0x40e52a
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x50]
push ecx
push 0x10000000
push esi
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x100
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x40e52a
mov eax, dword [ebx + 0x210]
test eax, eax
je 0x40e41d
mov ecx, dword [eax + 4]
xor esi, esi
test ecx, ecx
lea edi, [eax + 0x14]
jbe 0x40e478
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
lea edx, [esp + 0x50]
push edx
push edi
call ebp
add esp, 8
test eax, eax
je 0x40e52a
mov eax, dword [ebx + 0x210]
add edi, 0x100
inc esi
cmp esi, dword [eax + 4]
jb 0x40e3f6
jmp 0x40e478
push 0x6414
mov dword [ebx + 0x214], 0x6414
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 0x214]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x210], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x210]
mov dword [eax], 0x133
mov ecx, dword [ebx + 0x210]
mov dword [ecx + 0x10], 0x233
mov edx, dword [ebx + 0x210]
mov dword [edx + 8], 0x14
mov eax, dword [ebx + 0x210]
mov ebp, dword [ebx + 0x214]
mov ecx, dword [eax + 4]
shl ecx, 8
add ecx, 0x114
cmp ebp, ecx
jae 0x40e4da
add ebp, 0x6400
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebx + 0x214]
mov esi, dword [ebx + 0x210]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.0040e100
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x214], ebp
mov dword [ebx + 0x210], eax
mov eax, dword [ebx + 0x210]
lea edx, [esp + 0x50]
mov esi, 0x100
mov ecx, dword [eax + 4]
shl ecx, 8
lea eax, [ecx + eax + 0x14]
sub edx, eax
lea ecx, [esi + 0x7ffffefe]
test ecx, ecx
je 0x40e50e
mov cl, byte [edx + eax]
test cl, cl
je 0x40e50e
mov byte [eax], cl
inc eax
dec esi
jne 0x40e4f5
jmp 0x40e512
test esi, esi
jne 0x40e513
dec eax
mov byte [eax], 0
mov eax, dword [ebx + 0x210]
mov ecx, dword [eax + 4]
inc ecx
mov dword [eax + 4], ecx
mov ecx, ebx
call fcn.0040e260
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret 4
Function at 0x40e540
Capabilities:
Parse url

Disassembly:
sub esp, 0x13c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14c]
test esi, esi
push edi
mov ebx, ecx
je 0x40e63e
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x4c]
push ecx
push 0x10000000
push esi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x100
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x40e63e
mov eax, dword [ebx + 0x210]
test eax, eax
je 0x40e63e
mov ecx, dword [eax + 4]
xor edi, edi
test ecx, ecx
lea esi, [eax + 0x14]
jbe 0x40e63e
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
lea edx, [esp + 0x4c]
push edx
push esi
call ebp
add esp, 8
test eax, eax
je 0x40e600
mov eax, dword [ebx + 0x210]
add esi, 0x100
inc edi
cmp edi, dword [eax + 4]
jb 0x40e5d2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret 4
mov edx, dword [ebx + 0x210]
lea eax, [edi + 1]
mov ecx, eax
mov edi, dword [edx + 4]
shl ecx, 0x18
sub ecx, eax
lea eax, [esi + 0x100]
add ecx, edi
shl ecx, 8
push ecx
push eax
push esi
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [ebx + 0x210]
add esp, 0xc
mov ecx, dword [eax + 4]
dec ecx
mov dword [eax + 4], ecx
mov ecx, ebx
call fcn.0040e260
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret 4
Function at 0x40e650
Capabilities:
Parse url

Disassembly:
sub esp, 0x140
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [esp + 0x150]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x4c]
push ecx
push 0x10000000
push esi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x100
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40e6c5
pop edi
pop esi
pop ebx
add esp, 0x140
ret 4
mov al, byte [esp + 0x4c]
xor edi, edi
test al, al
push ebp
mov dword [esp + 0x10], edi
je 0x40e787
lea edx, [esp + 0x50]
push 0x2e
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x40e705
pop ebp
mov dword [esp + 0xc], 2
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x140
ret 4
lea eax, [esp + 0x50]
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x40e72d
pop ebp
mov dword [esp + 0xc], 2
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x140
ret 4
mov eax, dword [ebx + 0x210]
cmp eax, edi
je 0x40e787
mov ecx, dword [eax + 4]
lea esi, [eax + 0x14]
cmp ecx, edi
jbe 0x40e787
mov ebp, dword [sym.imp.SHLWAPI.dll_PathMatchSpecA]
test esi, esi
je 0x40e75c
cmp byte [esi], 0
je 0x40e75c
lea ecx, [esp + 0x50]
push esi
push ecx
call ebp
test eax, eax
jne 0x40e77f
mov edx, dword [ebx + 0x210]
add esi, 0x100
inc edi
cmp edi, dword [edx + 4]
jb 0x40e747
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret 4
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret 4

Function at 0x40e7d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d3528
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
call fcn.004ce850
xor edi, edi
lea ecx, [esi + 0x74]
mov dword [esp + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], 1
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
call fcn.004910b0
mov al, byte [esp + 0xb]
lea edx, [esi + 0x3c]
mov byte [esi + 0x1e70], al
mov dword [esi + 0x1e74], edi
mov dword [esi + 0x1e78], edi
mov dword [esi + 0x1e7c], edi
xor ecx, ecx
mov dword [esi], 0x4d8cc8
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], 2
mov dword [edx], ecx
mov eax, esi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x1e6c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x4c], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40e930
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x14]
push ebx
lea edx, [esi + 0x3c]
mov dword [esi + 0x1e6c], eax
push edx
mov dword [esi + 0x24], ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [0x50505c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [esi + 0x6c]
mov ecx, 0x4600004c
test edi, edi
mov edx, 0x80
mov eax, 0xfffffffd
je 0x40e98d
xor eax, eax
mov ecx, 0x84000000
test edi, edi
mov edx, 0x8000080
mov edi, 0x505000
jne 0x40e991
mov edi, dword [esp + 0x1c]
push 0
push eax
push ebx
push ecx
push edi
push str.Container
push edx
mov ecx, esi
call fcn.004ce940
mov eax, dword [esi + 4]
test eax, eax
je 0x40e9d9
mov ecx, dword [esi + 0x6c]
test ecx, ecx
jne 0x40e9d9
mov ecx, dword [esi + 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetParent]
test eax, eax
jne 0x40e9d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40e9d9
push 1
push 0
push 9
mov ecx, esi
call fcn.0040fa10
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
ret 0x14

Function at 0x40e9f0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [esi + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
ret
Function at 0x40fc20
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx]
call dword [eax + 0x24]
test eax, eax
je 0x40fc8e
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x4c]
test eax, eax
je 0x40fc8e
mov eax, dword [ebx + 0x2c]
push ebp
push esi
lea ecx, [esp + 0xc]
push edi
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, eax
push 1
push esi
push edi
call ebp
test eax, eax
je 0x40fc72
push 0
push esi
push edi
call ebp
mov edx, dword [ebx + 4]
mov ecx, ebx
push edx
call fcn.0040fd40
pop edi
pop esi
test eax, eax
pop ebp
jne 0x40fc8e
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop ebx
pop ecx
ret

Function at 0x413ed0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0
call fcn.00413770
cmp dword [esi + 0x5698], 2
jne 0x413ef5
mov eax, dword [esi + 0x562c]
push 0
push eax
jmp 0x413f7e
mov eax, dword [esi + 0x5634]
mov bl, byte [esp + 0x14]
test eax, eax
je 0x413f4a
push eax
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x413f4a
mov ecx, dword [esi + 0x5628]
mov edx, dword [esi + 0x5624]
push 0
push ecx
push 0x5c24
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 0x50], 2
jbe 0x413f41
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413f4e
test bl, bl
je 0x413f84
cmp dword [esi + 0x5698], 1
jne 0x413f71
mov eax, dword [esi + 0x5630]
mov ecx, dword [esi + 0x568c]
push eax
push ecx
call fcn.00482ec0
mov ecx, eax
call fcn.00483300
test bl, bl
je 0x413f84
mov edx, dword [esi + 0x562c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
call fcn.00413b00
pop edi
pop esi
pop ebx
ret 8