joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479560
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4795fb
lea eax, [ebp - 0x22c]
push 0x49d108
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x4795e9
lea eax, [ebp - 0x22c]
push 0x4c6b80
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x4795e9
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
mov eax, dword [ebp + 0x10]
or ecx, dword [ebp + 0xc]
not eax
and ecx, eax
lea eax, [ebp - 0x22c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x4796ac
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x47958a
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
je 0x4796a3
lea eax, [ebp - 0x258]
push eax
push 0x4c6b78
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x47969a
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x479688
lea eax, [ebp - 0x22c]
push 0x49d108
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x479688
lea eax, [ebp - 0x22c]
push 0x4c6b80
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x479688
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00479560
test al, al
je 0x4796b7
push 0x4c6b80
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x47962a
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x4796a5
xor ebx, ebx
jmp 0x47969c
Function at 0x4796bb
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x479741
lea eax, [ebp - 0x22c]
push 0x49d108
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x47972f
lea eax, [ebp - 0x22c]
push 0x4c6b80
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x47972f
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
call fcn.0046da03
pop ecx
test al, al
je 0x4797f2
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4796e5
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
je 0x4797e9
lea eax, [ebp - 0x258]
push eax
push 0x4c6b78
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4797e0
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x4797ce
lea eax, [ebp - 0x22c]
push 0x49d108
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x4797ce
lea eax, [ebp - 0x22c]
push 0x4c6b80
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x4797ce
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004796bb
test al, al
je 0x4797fd
push 0x4c6b80
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x479770
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x4797eb
xor ebx, ebx
jmp 0x4797e2
Function at 0x479a49
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14]
call fcn.0040b606
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push 0x4c6b78
mov dword [ebp - 0x18], eax
inc dword [eax]
call fcn.004052b7
lea eax, [ebp - 0x278]
mov bl, 1
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x479ba8
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.00473792
cmp eax, 1
je 0x479ba3
cmp eax, 0xb
jne 0x479ace
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x479aae
lea eax, [ebp - 0x24c]
push 0x49d108
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x479b89
lea eax, [ebp - 0x24c]
push 0x4c6b80
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x479b89
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c1c3
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004052b7
test byte [ebp - 0x278], 0x10
je 0x479b66
cmp byte [ebp + 0x18], 0
je 0x479b35
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x479b89
push 0x49d034
lea ecx, [ebp - 0x14]
call fcn.004052b7
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00479a49
mov bl, al
test bl, bl
je 0x479ba5
jmp 0x479b89
mov edx, dword [ebp + 0xc]
xor eax, eax
or eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x25c]
add dword [edx], eax
adc dword [edx + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x479b89
add dword [edi], 1
adc dword [edi + 4], 0
lea eax, [ebp - 0x278]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x479aae
jmp 0x479ba5
xor bl, bl
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x24]
call fcn.0040b1ff
lea ecx, [ebp - 0x14]
call fcn.0040b1ff
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x18
Function at 0x47c394
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 0x74], 4
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], eax
jne 0x47c3b6
or eax, 0x800000
mov dword [ebp - 4], eax
movzx eax, word [edi + 0x78]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x70]
push dword [edi + 0x30]
push dword [edi + 0x20]
push eax
push dword [edi + 0x10]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi], eax
test eax, eax
jne 0x47c402
mov dword [esi + 0x18], 0xb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c3fb
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor al, al
jmp 0x47c521
push ebx
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [edi + 0x60]
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x47c426
mov dword [esi + 0x18], 0xc
jmp 0x47c4fa
cmp byte [ebp + 0xc], bl
je 0x47c436
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.0047cf1f
test dword [ebp - 4], 0x1000
je 0x47c46d
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0xc], 0x100
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x47c4f3
push edi
call fcn.0047c355
cmp eax, 0xc8
jne 0x47c4f3
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
call fcn.0042628b
pop ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp byte [ebp + 0x10], bl
je 0x47c4db
mov ecx, esi
push edi
cmp byte [esi + 0x30], bl
je 0x47c4d2
call fcn.0047ce38
jmp 0x47c4d7
call fcn.0047cd62
mov bl, al
jmp 0x47c514
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c4ef
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov bl, 1
jmp 0x47c514
mov dword [esi + 0x18], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c514
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
test edi, edi
je 0x47c51f
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x47cc3c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
inc ebx
push edi
mov edi, ecx
cmp eax, ebx
jne 0x47cc59
movzx ecx, word [edi + 0x8c]
jmp 0x47cc5d
movzx ecx, word [edi + 0x58]
movzx edx, cx
mov ecx, dword [edi + 0xc0]
cmp dx, bx
jne 0x47cc73
xor esi, esi
push esi
push esi
push esi
push ebx
jmp 0x47cc9a
cmp dx, 2
jne 0x47cc94
dec eax
neg eax
sbb eax, eax
and eax, 0xffffffcc
xor esi, esi
push esi
push str._local_
push dword [eax + edi + 0xb0]
push 3
jmp 0x47cc9a
xor esi, esi
push esi
push esi
push esi
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
test eax, eax
jne 0x47ccac
xor al, al
jmp 0x47cccc
cmp byte [edi + 0xdc], 0
je 0x47ccca
push 8
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
push 0x32
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47cd62
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
push 0x4c6a98
push dword [esi + 0x34]
call fcn.0042e57b
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x47cd8e
mov dword [esi + 0x18], 0x1f
jmp 0x47ce08
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47ce01
cmp dword [ebp - 4], 0
je 0x47cdd9
push edi
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call fcn.0042db43
mov eax, dword [ebp - 4]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x47cd94
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47cdea
mov dword [esi + 0x18], 0x21
jmp 0x47ce08
and dword [esi + 0x18], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47ce24
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
jmp 0x47ce24
mov dword [esi + 0x18], 0x20
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47ce22
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor bl, bl
test edi, edi
je 0x47ce2f
push edi
call fcn.0042e608
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x47ce38
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
inc eax
mov esi, ecx
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x47ce6b
mov eax, 0x400
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
je 0x47cec3
test eax, eax
jne 0x47ce78
mov edi, ebx
jmp 0x47ce84
push eax
call fcn.0041fd8b
mov edi, eax
mov eax, dword [ebp - 8]
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47cef0
cmp dword [ebp - 4], ebx
je 0x47ceba
push dword [ebp - 4]
lea ecx, [esi + 0x44]
push edi
call fcn.0047d19c
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], ebx
test eax, eax
je 0x47cec3
mov eax, dword [ebp - 8]
jmp 0x47ce70
push ebx
push edi
call fcn.0041fd4d
pop ecx
pop ecx
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47cf02
mov dword [esi + 0x18], 0x21
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47ceec
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor al, al
jmp 0x47cf18
push ebx
push edi
call fcn.0041fd4d
pop ecx
pop ecx
mov dword [esi + 0x18], 0x20
jmp 0x47ced2
mov dword [esi + 0x18], ebx
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x47cf16
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x48cb5b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xff
push eax
xor esi, esi
lea eax, [ebp - 4]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x218]
mov edi, ecx
push eax
push esi
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x48cc63
mov eax, ebx
or eax, 0x20019
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
push eax
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48cc75
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.0048cb5b
push dword [ebp - 8]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x48cc75
push str.advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x48cc12
push str.RegDeleteKeyExW
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x48cc12
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x218]
push 0
push ebx
push ecx
push edi
call eax
jmp 0x48cc23
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0x48cc6a
test esi, esi
je 0x48cc32
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xff
push eax
xor esi, esi
lea eax, [ebp - 4]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov eax, dword [ebp - 0x10]
jne 0x48cba6
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
test esi, esi
je 0x48cc75
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor al, al
jmp 0x48cc65
Function at 0x498064
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x44
push 0
mov ebx, 0x4d3008
push ebx
call fcn.004222d0
push 0x10
push 0
mov esi, 0x4d304c
push esi
call fcn.004222d0
add esp, 0x18
mov dword [0x4d3008], 0x44
xor eax, eax
inc eax
mov dword [0x4d3034], eax
push esi
push ebx
mov word [0x4d3038], ax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
pop esi
pop ebx
test eax, eax
je 0x4980c9
push dword [0x4d304c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
ret 4

Function at 0x4980cd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 3
pop esi
mov edx, dword [edi + 4]
mov dword [ebp + 8], edx
cmp dword [edi + 0x190], ebx
je 0x49817f
mov ebx, esi
cmp dword [0x4d1934], esi
jl 0x498176
mov eax, dword [0x4d1924]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x49816d
cmp dword [ecx + 4], edx
jne 0x49816d
mov dl, byte [ecx + 0x90]
cmp dl, 0xb
je 0x49816a
mov dh, byte [ecx + 0x93]
movzx eax, dh
cmp eax, dword [edi + 0x190]
je 0x49813a
cmp byte [edi + 0x198], 0
je 0x49816a
cmp dh, 0xff
je 0x49816a
cmp dl, 0xa
je 0x49816a
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1924]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x49816a
cmp byte [eax + 0x90], 0x1a
jne 0x49816a
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc ebx
cmp ebx, dword [0x4d1934]
jle 0x4980f8
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x190], ebx
cmp dword [0x4d1934], esi
jl 0x498213
mov eax, dword [0x4d1924]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x498203
cmp dword [ecx + 4], edx
jne 0x498203
cmp byte [ecx + 0x90], 0xb
je 0x498203
movzx eax, byte [ecx + 0x93]
cmp eax, dword [edi + 0x190]
jne 0x498203
test byte [ecx + 0x92], 0x20
jne 0x498203
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1924]
push 4
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d1924]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x498203
cmp byte [eax + 0x90], 0x1a
jne 0x498203
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [0x4d1934]
jle 0x49818b
push 0
push ebx
push 0x130c
push dword [edi + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x498461
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x49857a
push edi
push edi
push 3
push edi
push edi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4984b2
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4984b9
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x4985a9
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x4984b2
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x49fc54
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4984b2
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x498557
mov eax, edi
cmp dword [ecx], edi
jne 0x498557
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [edx]
push 0x2000
push dword [ecx]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x49857f
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x498594
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4016e0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
and eax, 1
test eax, eax
je 0x401703
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
pop ebp
ret
Function at 0x401ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_GetTempPathA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jb 0x401edb
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402d90
add esp, 4
and eax, 0xff
test eax, eax
jne 0x401ee9
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403210
add esp, 4
push str._temp_
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401880
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401f29
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x5c
mov eax, dword [ebp - 4]
push eax
call fcn.00401650
add esp, 8
mov byte [eax], 0
mov esp, ebp
pop ebp
ret

Function at 0x401f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 1
call dword [sym.imp.kernel32.dll_SleepEx]
push 1
push 1
call dword [sym.imp.kernel32.dll_SleepEx]
mov eax, dword [0x406064]
mov dword [ebp - 0xc], eax
mov ecx, dword [0x406064]
mov dl, byte [ecx + 0xf]
mov byte [ebp - 4], dl
jmp 0x401fc3
call fcn.00401f63
mov dword [ebp - 8], 0x5f8
jmp 0x401f83
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x401faa
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], dl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x401f7a
push 0x5f8
mov eax, dword [0x406064]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
jmp 0x401fc5
jmp 0x401f6c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret