joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d126
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [0x4050ec], 1
jne 0x46d150
cmp dword [0x4050d0], 0x3e8
jge 0x46d144
mov dword [ebp - 0x20], 0x10
push 0x10
lea edx, [ebp - 0x10]
push edx
call fcn.0046bff6
push 0xffff
push dword [ebp - 0x28]
call fcn.0046bff6
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
push 0
push 0xffff
push dword [ebp - 0x28]
push dword [0x4050c8]
call dword [sym.imp.ws2_32.dll_recvfrom]
cmp eax, 0
jle 0x46d144
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x28]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
add eax, 1
add eax, eax
push eax
call fcn.0046bf6e
mov dword [ebp - 0x24], eax
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x28]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
nop
call fcn.0046d0b4
or dword [eax], eax
and byte [eax], al
or eax, 0xa00
add bh, bh
push dword [ebp - 0x24]
invalid
push dword [ebp - 0x24]
call dword [sym.imp.shlwapi.dll_StrTrimW]
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_lstrlenW]
cmp eax, 0
je 0x46d144
mov dword [ebp - 0x14], eax
mov ebx, dword [0x405054]
cmp dword [ebx + 0x50], 0
je 0x46d0df
mov ebx, dword [ebx + 0x50]
jmp 0x46d0d4
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x44], eax
push 0x58
call fcn.0046bf6e
mov dword [ebx + 0x50], eax
push dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
push edx
call fcn.0046d2f6
push 0
push 0
call fcn.00472f96
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call 0x46d126
and eax, 0x20007300
add byte [0x20006400], ah
add byte [ebx], dh
and byte [eax], al
and eax, 0x20006400
add byte [0x39002e00], ah
add byte [eax + eax], ah
add bh, bh
jne 0x46d111
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0x14
push dword [ebp - 0x18]
call fcn.00472db1
mov dword [ebx + 0x48], eax
add dword [0x4050d0], 1
push 1
call fcn.0046bc96
jmp 0x46d007
push dword [ebp - 0x28]
call fcn.0046bfdb
pop edx
pop ecx
pop ebx
pop eax
leave
ret

Function at 0x46d1fe
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push ecx
push edx
push dword [ebp + 8]
call fcn.0046d2a3
cmp eax, 0xffffffff
je 0x46d29c
push 0x10
lea edx, [ebp - 0x10]
push edx
call fcn.0046bff6
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call dword [sym.imp.ws2_32.dll_htons]
mov word [ebp - 0xe], ax
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 0x10]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, eax
add ecx, 1
push ecx
call fcn.0046bf6e
mov ebx, eax
push 0
push 0
push ecx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0x10]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
cmp eax, 0
jle 0x46d296
push 0x10
lea edx, [ebp - 0x10]
push edx
push 0
push eax
push ebx
push dword [0x4050c8]
call dword [sym.imp.ws2_32.dll_sendto]
push ebx
call fcn.0046bfdb
pop edx
pop ecx
pop ebx
leave
ret 0xc
Function at 0x46d2a3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ecx
push edx
push 0x20
lea edx, [ebp - 0x20]
push edx
call fcn.0046bff6
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], 0x11
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x20]
push edx
push 0
push dword [ebp + 8]
call dword [sym.imp.ws2_32.dll_GetAddrInfoW]
cmp eax, 0
jne 0x46d2eb
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
jmp 0x46d2f0
mov eax, 0xffffffff
pop edx
pop ecx
leave
ret 4
Function at 0x46da51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push eax
push ebx
push ecx
push edx
push edi
lea ebx, [ebp - 0x18]
mov ecx, 4
push ebx
call fcn.00475b7f
push 0x2c
call fcn.0047695d
add ebx, 4
sub ecx, 1
jne 0x46da64
push ebx
call fcn.0046eceb
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0046db3c
test eax, eax
je 0x46db28
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0x2e1
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, eax
add ecx, 1
push ecx
call fcn.0046bf6e
mov edi, eax
push 0
push 0
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0x2e1
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub eax, 1
mov ebx, eax
push dword [ebp - 4]
call fcn.0046bfdb
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x46db28
push eax
push 0
lea edx, [ebp - 4]
push edx
push ebx
push edi
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop eax
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call fcn.0046bfdb
mov eax, dword [ebp - 4]
mov edx, dword [0x405044]
push eax
pop dword [edx + 0x44]
add edx, 0x58
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret
Function at 0x46e5e2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push ecx
push edx
push esi
push edi
push 0x4000
call fcn.0046bf6e
mov dword [ebp - 0x14], eax
add eax, 0x1000
mov dword [ebp - 0x10], eax
add eax, 0x1000
mov dword [ebp - 0xc], eax
add eax, 0x1000
mov dword [ebp - 8], eax
mov esi, dword [ebp + 8]
nop
nop
nop
Function at 0x46fd9a
Capabilities:
Get file size
Read file on windows

Disassembly:
call fcn.0046c51e
cmp dword [0x40153c], 0
je 0x46fd67
call dword [0x401548]
push 0
push 0
push 0
call dword [sym.imp.winmm_PlaySoundW]
jmp 0x4700ca
push ebx
call dword [sym.imp.shlwapi.dll_StrTrimW]
push ebx
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
je 0x46fd53
cmp dword [ebp - 8], 1
jne 0x46fdc9
add eax, 1
add eax, eax
push eax
call fcn.0046bf6e
mov edi, eax
push ebx
push eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
jmp 0x46fe32
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4700ca
mov ebx, eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x46fe0c
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x4700ca
push eax
add eax, 0x104
push eax
call fcn.0046bf6e
mov edi, eax
pop eax
push 0
push 0x4050f4
push eax
push edi
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ebx, dword [0x405070]
call fcn.0046c4fd
cmp eax, 0xffffffff
je 0x46fe4c
push dword [ebx]
call fcn.0046bfdb
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
jmp 0x4700ca
mov edx, dword [0x405044]
push eax
pop dword [edx + 0x44]
add edx, 0x58
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret
Function at 0x47018b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push eax
push ebx
push ecx
push edx
push edi
mov dword [ebp - 8], 0
lea edx, [ebp - 0x1c]
push edx
call fcn.00475b7f
push 0x2c
call fcn.0047695d
lea edx, [ebp - 0x18]
push edx
call fcn.00475b7f
push 0x2c
call fcn.0047695d
call fcn.004745ed
mov esi, dword [0x4050c4]
cmp dword [0x405084], 3
je 0x4701fe
cmp dword [0x405084], 0xb
je 0x4701fe
cmp dword [0x405084], 8
jne 0x4701f1
cmp eax, 0xe2
jl 0x4701f1
cmp eax, 0xf5
jle 0x4701fe
cmp dword [0x405084], 0xa
jne 0x4702b6
lea edx, [ebp - 0xc]
push edx
call fcn.0046eceb
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x47037b
mov ebx, eax
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 4], eax
push eax
call fcn.0046bf6e
mov dword [ebp - 8], eax
push 0
push 0x4050f4
push dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [ebp - 8]
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edx, eax
imul edx, ebx
test edx, edx
jl 0x47037b
cmp dword [ebp - 0x1c], 0
jl 0x47027d
cmp dword [ebp - 0x18], 0
jge 0x470296
mov edx, dword [0x405044]
push eax
pop dword [edx + 0x44]
add edx, 0x58
push ebx
pop dword [edx + 0x44]
add edx, 0x58
jmp 0x47037b
add edi, 0x10
push edi
push ebx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0046bbf6
mov eax, dword [0x4050f4]
jmp 0x47037b
lea edx, [ebp - 0x14]
push edx
call fcn.00475b7f
push 0x2c
call fcn.0047695d
lea edx, [ebp - 0x10]
push edx
call fcn.00475b7f
push 0x2c
call fcn.0047695d
lea edx, [ebp - 0xc]
push edx
call fcn.0046eceb
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp eax, 1
jl 0x47037b
cmp ecx, 1
jl 0x47037b
cmp dword [ebp - 0x1c], 0
jl 0x47037b
cmp dword [ebp - 0x18], 0
jl 0x47037b
imul eax, ecx
lea eax, [eax*4 + 0x10]
mov dword [ebp - 4], eax
push eax
call fcn.0046bf6e
mov dword [ebp - 8], eax
mov edi, eax
push esi
lea esi, [ebp - 0x1c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0046bb67
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x47037b
push eax
push 0
push 0x4050f4
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop eax
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x4050f4]
cmp dword [ebp - 8], 0
je 0x470389
push dword [ebp - 8]
call fcn.0046bfdb
mov edx, dword [0x405044]
push eax
pop dword [edx + 0x44]
add edx, 0x58
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret
Function at 0x4722b5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push eax
push ebx
push ecx
push edx
lea edx, [ebp - 4]
push edx
call fcn.0046eceb
push 0x2c
call fcn.0047695d
call fcn.004745ed
cmp dword [0x405084], 0xb
je 0x4722e6
cmp dword [0x405084], 0xa
jne 0x472336
cmp dword [0x405084], 0xb
jne 0x4722f9
call fcn.0046c4bd
lea ebx, [eax + 0x44]
jmp 0x472314
cmp dword [0x405084], 0xa
jne 0x472314
lea edx, [ebp - 0xc]
push edx
call fcn.00475942
mov ebx, dword [eax + 0x44]
mov ecx, dword [ebp - 0xc]
lea ebx, [ebx + ecx*4]
push 0xfde9
push dword [ebp - 4]
call fcn.004730e0
cmp eax, 0xffffffff
je 0x4723d2
mov dword [ebx], eax
jmp 0x4723d2
cmp dword [0x405084], 9
jne 0x4723bb
lea edx, [ebp - 0xc]
push edx
call fcn.00475942
mov ebx, eax
push dword [ebp - 4]
call fcn.00472f01
cmp eax, 0xffffffff
je 0x4723d2
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4723d2
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0xffffffff
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4723ad
mov ecx, eax
shr ecx, 2
cmp ecx, dword [ebx + 0x50]
jle 0x47239a
mov eax, dword [ebx + 0x50]
push 0
lea edx, [ebp - 0xc]
push edx
push eax
push dword [ebx + 0x44]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
jmp 0x4723d2
mov esi, dword [0x4050c4]
lea edx, [ebp - 0xc]
push edx
call fcn.00475b7f
push dword [ebp - 4]
call fcn.00472f01
mov edx, dword [0x405044]
push eax
pop dword [edx + 0x44]
add edx, 0x58
pop edx
pop ecx
pop ebx
pop eax
leave
ret
Function at 0x4723e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push eax
push ebx
push ecx
push edx
push edi
lea edx, [ebp - 8]
push edx
call fcn.0046eceb
push 0x2c
call fcn.0047695d
call fcn.004745ed
cmp dword [0x405084], 9
je 0x472417
cmp dword [0x405084], 0xa
jne 0x47244e
lea edx, [ebp - 0xc]
push edx
call fcn.00475942
mov edi, eax
mov ecx, dword [edi + 0x50]
lea ecx, [ecx*4]
mov dword [ebp - 0x10], ecx
push esi
push edi
push ecx
call fcn.0046bf6e
mov dword [ebp - 4], eax
mov esi, dword [edi + 0x44]
mov edi, eax
nop
lodsb al, byte [esi]
stosb byte es:[edi], al
sub ecx, 1
jne 0x472440
pop edi
pop esi
jmp 0x4724ed
cmp dword [0x405084], 3
je 0x472480
cmp dword [0x405084], 0xb
je 0x472480
cmp dword [0x405084], 8
jne 0x472477
cmp eax, 0xe2
jl 0x472477
cmp eax, 0xf5
jle 0x472480
cmp dword [0x405084], 0xa
jne 0x4724d7
mov esi, dword [0x4050c4]
lea edx, [ebp - 0xc]
push edx
call fcn.0046eceb
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0xc]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, eax
add ecx, 1
push ecx
call fcn.0046bf6e
mov dword [ebp - 4], eax
push 0
push 0
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0xc]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4724ed
mov esi, dword [0x4050c4]
lea edx, [ebp - 0xc]
push edx
call fcn.00475b7f
mov eax, 0xffffffff
jmp 0x472534
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x472534
push eax
push 0
lea edx, [ebp - 0xc]
push edx
push dword [ebp - 0x10]
push dword [ebp - 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop eax
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 4]
call fcn.0046bfdb
mov eax, dword [ebp - 0xc]
mov edx, dword [0x405044]
push eax
pop dword [edx + 0x44]
add edx, 0x58
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret
Function at 0x472548
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push eax
push ecx
push edx
lea edx, [ebp - 0x10]
push edx
call fcn.0046eceb
push 0x2c
call fcn.0047695d
lea edx, [ebp - 0xc]
push edx
call fcn.0046eceb
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0xc]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, eax
add ecx, 1
push ecx
call fcn.0046bf6e
mov dword [ebp - 8], eax
push 0
push 0
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0xc]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xffffffff
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x47260a
mov dword [ebp - 0x14], eax
push 2
push 0
push 0
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x472601
push 0
lea edx, [ebp - 0xc]
push edx
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 8]
call fcn.0046bfdb
mov edx, dword [0x405044]
push dword [ebp - 0xc]
pop dword [edx + 0x44]
add edx, 0x58
pop edx
pop ecx
pop eax
leave
ret

Function at 0x472c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push ecx
push edx
push edi
push 0x20
lea edx, [ebp - 0x20]
push edx
call fcn.0046bff6
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], 0x472cb1
mov ebx, dword [0x40508c]
mov word [ebx], 0
mov dword [ebp - 8], ebx
push ebx
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.shell32_SHBrowseForFolderW]
cmp eax, 0
je 0x472ca9
push edi
push eax
call dword [sym.imp.shell32_SHGetPathFromIDListW]
push edi
call dword [sym.imp.shlwapi.dll_PathQuoteSpacesW]
mov eax, edi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 8

Function at 0x472f01
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push edi
mov edi, dword [ebp + 8]
push 0
push edi
push 0
call dword [sym.imp.urlmon.dll_IsValidURL]
cmp eax, 0
jne 0x472f8c
push 4
call 0x472f2c
push 0x74007400
add byte [eax], dh
add byte [eax], al
push edi
call dword [sym.imp.shlwapi.dll_StrCmpNIW]
cmp eax, 0
jne 0x472f8c
mov ebx, dword [0x405088]
push ebx
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
push edi
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
mov edx, dword [0x405080]
push eax
push ebx
call 0x472f6a
and eax, 0x5c007300
add byte [0x7300], ah
add byte [edx - 1], dl
adc eax, sym.imp.user32.dll_wsprintfW
add esp, 0x10
push dword [0x405080]
push edi
call fcn.00473235
cmp eax, 0xffffffff
je 0x472f8e
mov eax, dword [0x405080]
jmp 0x472f8e
mov eax, edi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 4
Function at 0x472f2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push edi
mov edi, dword [ebp + 8]
push 0
push edi
push 0
call dword [sym.imp.urlmon.dll_IsValidURL]
cmp eax, 0
jne 0x472f8c
push 4
call 0x472f2c
push 0x74007400
add byte [eax], dh
add byte [eax], al
push edi
call dword [sym.imp.shlwapi.dll_StrCmpNIW]
cmp eax, 0
jne 0x472f8c
mov ebx, dword [0x405088]
push ebx
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
push edi
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
mov edx, dword [0x405080]
push eax
push ebx
call 0x472f6a
and eax, 0x5c007300
add byte [0x7300], ah
add byte [edx - 1], dl
adc eax, sym.imp.user32.dll_wsprintfW
add esp, 0x10
push dword [0x405080]
push edi
call fcn.00473235
cmp eax, 0xffffffff
je 0x472f8e
mov eax, dword [0x405080]
jmp 0x472f8e
mov eax, edi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 4

Function at 0x4730e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push ecx
push edx
push esi
push edi
call 0x4730fa
or dword [eax], eax
and byte [eax], al
and al, byte [eax]
daa
add byte [eax], al
add bh, bh
jne 0x473105
call dword [sym.imp.shlwapi.dll_StrTrimW]
push dword [ebp + 8]
call fcn.00472f01
cmp eax, 0xffffffff
je 0x47322c
or al, ch
idiv ch
invalid
mov dword [ebp + 8], eax
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x47322c
mov dword [ebp - 0x18], eax
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47315d
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x47322c
mov dword [ebp - 0x10], eax
mov ecx, eax
add eax, 0x104
push eax
call fcn.0046bf6e
mov dword [ebp - 8], eax
add ecx, ecx
add ecx, 0x10000
push ecx
call fcn.0046bf6e
mov dword [ebp - 4], eax
push ecx
call fcn.0046bf6e
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0xc]
push edx
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [ebp - 8]
cmp byte [esi], 0xef
jne 0x4731bf
cmp byte [esi + 1], 0xbb
jne 0x4731bf
cmp byte [esi + 2], 0xbf
jne 0x4731bf
add esi, 3
mov edi, dword [ebp - 0x14]
cmp byte [esi], 0
je 0x4731ee
cmp byte [esi], 0xa
jne 0x4731d2
cmp byte [esi - 1], 0xd
jne 0x4731dd
cmp byte [esi], 0xd
jne 0x4731ea
cmp byte [esi + 1], 0xa
je 0x4731ea
mov word [edi], 0xa0d
add edi, 2
add esi, 1
jmp 0x4731ec
lodsb al, byte [esi]
stosb byte es:[edi], al
jmp 0x4731c2
mov byte [edi], 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x14]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp - 0x14]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push dword [ebp - 0x14]
call fcn.0046bfdb
push dword [ebp - 8]
call fcn.0046bfdb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x4730fa
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push ecx
push edx
push esi
push edi
call 0x4730fa
or dword [eax], eax
and byte [eax], al
and al, byte [eax]
daa
add byte [eax], al
add bh, bh
jne 0x473105
call dword [sym.imp.shlwapi.dll_StrTrimW]
push dword [ebp + 8]
call fcn.00472f01
cmp eax, 0xffffffff
je 0x47322c
or al, ch
idiv ch
invalid
mov dword [ebp + 8], eax
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x47322c
mov dword [ebp - 0x18], eax
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47315d
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x47322c
mov dword [ebp - 0x10], eax
mov ecx, eax
add eax, 0x104
push eax
call fcn.0046bf6e
mov dword [ebp - 8], eax
add ecx, ecx
add ecx, 0x10000
push ecx
call fcn.0046bf6e
mov dword [ebp - 4], eax
push ecx
call fcn.0046bf6e
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0xc]
push edx
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [ebp - 8]
cmp byte [esi], 0xef
jne 0x4731bf
cmp byte [esi + 1], 0xbb
jne 0x4731bf
cmp byte [esi + 2], 0xbf
jne 0x4731bf
add esi, 3
mov edi, dword [ebp - 0x14]
cmp byte [esi], 0
je 0x4731ee
cmp byte [esi], 0xa
jne 0x4731d2
cmp byte [esi - 1], 0xd
jne 0x4731dd
cmp byte [esi], 0xd
jne 0x4731ea
cmp byte [esi + 1], 0xa
je 0x4731ea
mov word [edi], 0xa0d
add edi, 2
add esi, 1
jmp 0x4731ec
lodsb al, byte [esi]
stosb byte es:[edi], al
jmp 0x4731c2
mov byte [edi], 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x14]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp - 0x14]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push dword [ebp - 0x14]
call fcn.0046bfdb
push dword [ebp - 8]
call fcn.0046bfdb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x476eaa
Capabilities:
Packed with generic packer
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push ecx
push edx
push edi
mov ebx, dword [ebp + 8]
call fcn.00472df1
cmp word [esi], 0x5d
jne 0x476ecd
mov dword [ebp - 4], 0
xor eax, eax
jmp 0x476ed9
lea edx, [ebp - 4]
push edx
call fcn.00475b7f
mov eax, dword [ebp - 4]
cmp eax, 0
jl 0x476ee3
cmp eax, dword [ebx + 0x4c]
jl 0x476ee8
jmp 0x404871
cmp dword [ebx + 0x50], 0x100000
jle 0x476f11
push 0x1010
push 0x4041c6
push 0x40408c
push dword [0x4012e8]
call dword [sym.imp.user32.dll_MessageBoxW]
jmp fcn.004743a5
push 0x5d
call fcn.0047695d
lodsw ax, word [esi]
cmp ax, 0x2e
jne 0x404fa1
call fcn.00472dd2
test eax, eax
je 0x404fa1
call fcn.004745ed
cmp dword [0x405084], 5
je 0x476f56
cmp dword [0x405084], 0xb
je 0x476f56
cmp dword [0x405084], 6
je 0x476f56
jmp 0x404722
mov edi, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x48]
push ecx
push edi
push 0x4670fc
call dword [sym.imp.kernel32.dll_lstrcmpW]
pop ecx
cmp eax, 0
jne 0x476f7d
mov eax, dword [ebp - 4]
imul eax, dword [ebx + 0x48]
imul eax, eax, 0x58
add eax, edi
jmp 0x476f8a
add edi, 0x58
sub ecx, 1
jne 0x476f5c
jmp 0x404f6f
pop edi
pop edx
pop ecx
pop ebx
leave
ret 4