joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411364
Capabilities:
Create process on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esi + 0x378]
lea ebx, [esi + 0x378]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4114be
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
push ebp
cmp ecx, 1
push edi
mov dword [esp + 0x10], edx
jg 0x41139a
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x4113eb
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x4113a7
jne 0x411488
mov ecx, dword [0x424038]
mov dword [ebx], ecx
mov edi, dword [ebx]
lea ecx, [ebp + 1]
mov eax, ecx
lea esi, [edx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov eax, dword [0x42403c]
cmp edx, eax
je 0x4113eb
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4113eb
mov edx, dword [esp + 0x10]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebx]
mov esi, dword [esp + 0x14]
push 5
push 0
push 0
push eax
mov eax, dword [esi + 4]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x411468
mov ecx, dword [0x42403c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x411442
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41143a
mov ecx, dword [ebx]
sub ecx, 0xc
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [0x424038]
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov ecx, ebx
push eax
call fcn.00410180
test eax, eax
je 0x411468
mov ecx, dword [esi + 4]
mov edi, dword [ebx]
inc ecx
add esi, 0xc
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx]
pop edi
pop ebp
pop esi
mov dword [ecx - 8], eax
mov edx, dword [ebx]
pop ebx
mov byte [edx + eax], 0
xor eax, eax
add esp, 8
ret 0x10
lea edx, [ebp + 0xd]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x4114b7
mov edx, dword [esp + 0x10]
mov dword [eax], 1
mov byte [eax + ebp + 0xc], 0
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx], eax
jmp 0x4113af
xor eax, eax
jmp 0x4113f1
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
Function at 0x415b00
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.GlobalLoginCycs
push 0
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x640], eax
pop esi
test eax, eax
jne 0x415b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415b30
mov eax, 1
ret
xor eax, eax
ret
Function at 0x4196e0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f66b
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov al, 1
push ebx
push ebp
mov ebp, dword [esp + 0x120]
push esi
push edi
cmp byte [ebp], 0
je 0x4198c0
mov esi, ebp
mov dword [esp + 0x14], esi
mov bl, byte [esi]
cmp bl, 0x5c
je 0x419728
cmp bl, 0x2f
jne 0x41986e
mov byte [esi], 0
mov eax, dword [0x424038]
test ebp, ebp
mov dword [esp + 0x10], eax
je 0x4197ff
mov ecx, ebp
shr ecx, 0x10
jne 0x4197ca
mov edi, ebp
lea edx, [esp + 0x18]
and edi, 0xffff
push 0x100
push edx
push edi
call fcn.00413760
mov ecx, 0x100
sub ecx, eax
cmp ecx, 2
jle 0x41977e
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.004198e0
jmp 0x4197ff
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00411e10
test eax, eax
je 0x4197bd
push esi
push eax
push edi
call fcn.00413760
mov ecx, esi
sub ecx, eax
cmp ecx, 2
jg 0x4197bd
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00411e10
test eax, eax
jne 0x419795
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00411ec0
jmp 0x4197fb
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4197fb
push esi
lea ecx, [esp + 0x14]
call fcn.00410180
test eax, eax
je 0x4197fb
mov edi, dword [esp + 0x10]
mov ecx, esi
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0
push ecx
call fcn.0041ad40
add esp, 4
test al, al
jne 0x41982c
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41982c
mov al, 1
jmp 0x41982e
xor al, al
test al, al
mov byte [esi], bl
jne 0x419882
mov eax, dword [esp + 0x10]
mov ecx, dword [0x42403c]
mov dword [esp + 0x120], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41986e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41986e
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, byte [esi + 1]
inc esi
test al, al
mov dword [esp + 0x14], esi
jne 0x419718
mov al, 1
jmp 0x4198c0
mov eax, dword [esp + 0x10]
mov edx, dword [0x42403c]
xor bl, bl
mov dword [esp + 0x120], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4198be
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4198be
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x41ad40
Capabilities:
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x14], edx
jg 0x41ad61
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x41adb4
mov ebx, dword [eax - 8]
test ebx, ebx
jle 0x41ad6e
jne 0x41ae50
mov eax, dword [0x424038]
mov dword [ebp], eax
mov edi, dword [ebp]
lea ecx, [ebx + 1]
mov eax, ecx
lea esi, [edx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov eax, dword [0x42403c]
cmp edx, eax
je 0x41adb4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41adb4
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x41ae25
mov ecx, dword [0x42403c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x41adfe
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41adf5
mov eax, dword [ebp]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [0x424038]
mov dword [ebp], ecx
mov edx, dword [esi + 4]
mov ecx, ebp
push edx
call fcn.00410180
test eax, eax
je 0x41ae25
mov ecx, dword [esi + 4]
mov edi, dword [ebp]
inc ecx
add esi, 0xc
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]
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp]
cmp ebx, 0xffffffff
mov dword [edx - 8], eax
mov ecx, dword [ebp]
mov byte [ecx + eax], 0
je 0x41ae87
test bl, 0x10
je 0x41ae87
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
lea ecx, [ebx + 0xd]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x41ae80
mov edx, dword [esp + 0x14]
mov dword [eax], 1
mov byte [eax + ebx + 0xc], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
add eax, 0xc
mov dword [ebp], eax
jmp 0x41ad76
xor eax, eax
jmp 0x41adb7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x41ae90
Capabilities:
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
lea edx, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x14], edx
jg 0x41aeb1
mov ecx, dword [eax - 4]
test ecx, ecx
jge 0x41af04
mov ebx, dword [eax - 8]
test ebx, ebx
jle 0x41aebe
jne 0x41afa0
mov eax, dword [0x424038]
mov dword [ebp], eax
mov edi, dword [ebp]
lea ecx, [ebx + 1]
mov eax, ecx
lea esi, [edx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov eax, dword [0x42403c]
cmp edx, eax
je 0x41af04
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41af04
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x41af75
mov ecx, dword [0x42403c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x41af4e
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41af45
mov eax, dword [ebp]
sub eax, 0xc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [0x424038]
mov dword [ebp], ecx
mov edx, dword [esi + 4]
mov ecx, ebp
push edx
call fcn.00410180
test eax, eax
je 0x41af75
mov ecx, dword [esi + 4]
mov edi, dword [ebp]
inc ecx
add esi, 0xc
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]
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp]
cmp ebx, 0xffffffff
mov dword [edx - 8], eax
mov ecx, dword [ebp]
mov byte [ecx + eax], 0
je 0x41afd7
test bl, 0x10
jne 0x41afd7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
lea ecx, [ebx + 0xd]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x41afd0
mov edx, dword [esp + 0x14]
mov dword [eax], 1
mov byte [eax + ebx + 0xc], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
add eax, 0xc
mov dword [ebp], eax
jmp 0x41aec6
xor eax, eax
jmp 0x41af07
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x41bb70
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41bc0a
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x41bc0a
test ebp, ebp
je 0x41bc0a
mov eax, dword [ebp]
push esi
dec eax
mov dword [ebp], eax
je 0x41bc02
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi], eax
mov eax, dword [ebp]
add esp, 4
xor esi, esi
test eax, eax
jle 0x41bc02
add ebx, 4
push 0x105
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [edi]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [edi]
mov ecx, dword [ebx]
push 0
mov eax, dword [edx + esi*4]
push 0
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp]
inc esi
add ebx, 4
cmp esi, eax
jl 0x41bbc3
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x41bff0
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov esi, 0x104
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp ecx, 1
jg 0x41c010
cmp dword [eax - 4], esi
jge 0x41c06e
mov edi, dword [eax - 8]
cmp edi, esi
mov dword [esp + 0x14], edi
jle 0x41c104
test edi, edi
mov esi, edi
jne 0x41c104
mov eax, dword [0x424038]
lea ecx, [edi + 1]
lea esi, [ebx + 0xc]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x14]
mov dword [eax - 8], ecx
mov eax, dword [0x42403c]
cmp ebx, eax
je 0x41c06e
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41c06e
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov eax, dword [ebp]
seta bl
mov ecx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp ecx, 1
jle 0x41c0e6
mov ecx, dword [0x42403c]
add eax, 0xfffffff4
cmp eax, ecx
je 0x41c0bf
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41c0b7
mov edx, dword [ebp]
sub edx, 0xc
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [0x424038]
mov dword [ebp], eax
mov ecx, dword [esi + 4]
push ecx
mov ecx, ebp
call fcn.00410180
test eax, eax
je 0x41c0e6
mov ecx, dword [esi + 4]
mov edi, dword [ebp]
inc ecx
add esi, 0xc
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp]
pop edi
pop esi
mov dword [ecx - 8], eax
mov edx, dword [ebp]
pop ebp
mov byte [edx + eax], 0
mov al, bl
pop ebx
ret
lea ecx, [esi + 0xd]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x41c12d
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
jmp 0x41c02e
xor eax, eax
jmp 0x41c071

Function at 0x41c590
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x190
lea eax, [esp]
push ebx
push eax
push 0x101
xor bl, bl
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x41c5f6
mov ecx, dword [esp + 0x198]
push ecx
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x41c5f1
mov edx, dword [eax + 0xc]
xor ecx, ecx
mov eax, dword [edx]
xor edx, edx
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
mov eax, dword [esp + 0x1a4]
push ecx
push edx
push str._d._d._d._d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
mov bl, 1
call sub.WS2_32.dll_WSACleanup
mov al, bl
pop ebx
add esp, 0x190
ret
Function at 0x41ce50
Capabilities:
Create http request

Disassembly:
sub esp, 0x47c
push esi
push edi
mov ecx, 0xc
mov esi, str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_6.0_
lea edi, [esp + 8]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.http:__list.cycs.67pk.com_Statistics.aspx_type_dfirstrun_dver_s
lea edi, [esp + 0x3c]
mov byte [esp + 0x84], 0
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xff
lea edi, [esp + 0x85]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x488]
push 0x420518
stosb byte es:[edi], al
mov eax, dword [esp + 0x490]
lea edx, [esp + 0x40]
and eax, 0xff
xor edi, edi
push eax
push ecx
lea eax, [esp + 0x90]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea ecx, [esp + 8]
push edi
push edi
push edi
push edi
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x41cf17
push ebx
push edi
push 0x80000300
push edi
lea edx, [esp + 0x94]
push edi
push edx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x41cf08
push eax
mov edi, 1
call ebx
push esi
call ebx
mov eax, edi
pop ebx
pop edi
pop esi
add esp, 0x47c
ret
mov eax, edi
pop edi
pop esi
add esp, 0x47c
ret
Function at 0x41cf30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov eax, dword [0x4248b8]
sub esp, 0x38
push ebx
push esi
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x41cf5d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
mov eax, dword [0x4248b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, edi
mov dword [esp + 0x4c], eax
jne 0x41cf7b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
mov eax, dword [0x4248b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41cf95
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
jne 0x41cfab
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00404960
add esp, 0xc
test eax, eax
je 0x41cfd3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x41cff0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
push ebp
push ecx
lea edx, [esp + 0x50]
push esi
push edx
push ebx
mov dword [esp + 0x5c], eax
xor ebp, ebp
call fcn.004049b0
add esp, 0x10
test eax, eax
jne 0x41d0ca
mov eax, ebx
mov dword [esp + 0x10], edi
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
cmp word [esp + 0x20], 0x4d42
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov dx, word [eax + 0xc]
mov word [esp + 0x2c], dx
je 0x41d04f
mov eax, dword [esp + 0x22]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
jne 0x41d0ca
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
lea ecx, [esp + 0x14]
push edi
push ecx
lea edx, [ebx + 0xe]
mov esi, eax
push edi
push edx
push esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
cmp ebp, edi
je 0x41d0c3
xor eax, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], eax
push ecx
mov dword [esp + 0x3c], eax
push 0x18
mov dword [esp + 0x44], eax
push ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2a]
imul ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
mov eax, ecx
lea esi, [edx + ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x38
ret
Function at 0x41d0e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x41d14d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [0x4248b8]
push ecx
push edx
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41d14d
mov eax, dword [0x4248b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x41d14d
mov eax, dword [0x4248b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x22
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41d157
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x41d191
test eax, eax
je 0x41d191
mov ecx, esi
mov esi, eax
mov eax, ecx
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]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
push ecx
push 0
push ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41d1e1
mov edx, dword [esp + 0x24]
push edx
push 0x420cf8
push eax
mov eax, dword [esp + 0x2c]
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov ebx, eax
mov eax, dword [esp + 0x20]
neg ebx
mov ecx, dword [eax]
push eax
sbb ebx, ebx
inc ebx
call dword [ecx + 8]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x41d860
Capabilities:
Parse url

Disassembly:
mov eax, 0x1274
call fcn.0041e170
mov edx, dword [esp + 0x1278]
push ebx
xor ebx, ebx
push edi
cmp edx, ebx
je 0x41da57
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41da57
mov ecx, 8
lea edi, [esp + 0x45]
mov byte [esp + 0x44], bl
mov byte [esp + 0x170], bl
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x171]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esp + 0xed]
mov byte [esp + 0xec], bl
mov byte [esp + 0x68], bl
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esp + 0x69]
rep stosd dword es:[edi], eax
mov ecx, 0x200
lea edi, [esp + 0x275]
mov byte [esp + 0x274], bl
mov byte [esp + 0xa78], bl
rep stosd dword es:[edi], eax
mov ecx, 0x200
lea edi, [esp + 0xa79]
rep stosd dword es:[edi], eax
mov ecx, 0xe
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x170]
lea eax, [esp + 0x44]
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xec]
mov eax, 0x81
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x274]
lea eax, [esp + 0x68]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 8]
mov eax, 0x801
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
push SysReAllocStringLen
lea eax, [esp + 0xa80]
push ebx
push edx
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x20], 0x21
mov dword [esp + 0x2c], 0x101
mov dword [esp + 0x4c], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov edx, eax
cmp edx, ebx
je 0x41da4c
mov eax, dword [esp + 0x1294]
cmp eax, ebx
je 0x41d9a9
mov cx, word [esp + 0x20]
mov word [eax], cx
or ecx, 0xffffffff
lea edi, [esp + 0x170]
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1288]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x278]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x128c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xf0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1290]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1294]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
mov eax, edx
pop ebx
add esp, 0x1274
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x1274
ret