joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424a60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4c4e50
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x424a92
jmp 0x424b67
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.ShiQiang
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x424ac2
jmp 0x424b67
mov dword [ebp - 4], 0
push 0x104
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
push 1
push 0
push str.OnlyIdentifier1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add ecx, 0x208
push ecx
push 1
push 0
push str.OnlyIdentifier2
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add ecx, 0x410
push ecx
push 1
push 0
push str.OnlyIdentifier3
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add ecx, 0x618
push ecx
push 1
push 0
push str.OnlyIdentifier4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x43c070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x43c086
xor eax, eax
jmp 0x43c0bf
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.00475d1d
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 4]
jne 0x43c0b1
xor eax, eax
jmp 0x43c0bf
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00475a52
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x43c0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x43c0e6
xor eax, eax
jmp 0x43c11f
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.00474c22
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp eax, dword [ebp - 4]
jne 0x43c111
xor eax, eax
jmp 0x43c11f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00475a52
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x43d740
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4e4260]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x43d772
xor eax, eax
jmp 0x43d77e
cmp dword [ebp - 0x11c], 5
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f960
mov esp, ebp
pop ebp
ret

Function at 0x43fbe0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x43fbf8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x43fc4b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x43fc19
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x43fc3c
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x43fc10
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x4e6150], eax
jmp 0x43fbef
jmp 0x43fc56
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x43fc8e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x4e5d50]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x4e6150]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x4e6150], edx
jmp 0x43fc4d
mov dword [0x4e8150], fcn.0043fcb0
call fcn.0043d610
test eax, eax
jne 0x43fcab
mov dword [0x4e8150], 0x43fdc0
mov esp, ebp
pop ebp
ret

Function at 0x4484c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x448800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x4484f6
jmp 0x448513
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0xffffffff
jne 0x448501
jmp 0x448513
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x448520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x448820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x448556
jmp 0x448573
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0xffffffff
jne 0x448561
jmp 0x448573
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x44c260
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4bcad3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4e4260]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x4e8258
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x4e8258
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x4d3320
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.0044f1f0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x45824e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x458291
call fcn.00459c15
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x458291
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4582ac
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00457e08
test ebx, ebx
mov esi, eax
je 0x4582aa
test edi, edi
je 0x4582aa
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x45a17b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4e4260]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x45a1b8
push 0x4c7a68
push 4
push eax
call fcn.00477882
push eax
call fcn.0044f5ea
add esp, 0x10
jmp 0x45a1ca
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45a235
push edi
call fcn.00475937
mov edi, dword [eax]
call fcn.00475937
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0046f57a
add esp, 0x18
mov ebx, eax
call fcn.00475937
cmp dword [eax], 0
je 0x45a215
call fcn.00475937
push dword [eax]
call fcn.00452da3
pop ecx
jmp 0x45a21c
call fcn.00475937
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x45a235
cmp ebx, esi
jae 0x45a235
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x45a237
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f960
leave
ret
Function at 0x45bf15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x45bf5b
call fcn.00459c15
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45bf5b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x45bf9e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x45bf87
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x45bf87
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x45bf9b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45d80b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x45d839
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45d857
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045d775
jmp 0x45d857
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45d857
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0045d775
test edi, edi
mov eax, edi
jne 0x45d841
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4e9c84]
test ecx, ecx
je 0x45d91a
jmp 0x45d80a
ret 8

Function at 0x46f960
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e4260]
jne 0x46f96a
repz ret
jmp fcn.0047aefc
Function at 0x475a81
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x475abe
cmp dword [ebp + 0x14], edi
je 0x475abe
cmp ecx, edi
jne 0x475ac5
call fcn.00475937
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0046feb0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x475ad9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x475afa
cmp ebx, 0xffffffff
je 0x475ae9
push ebx
push edi
push ecx
call fcn.0046f350
add esp, 0xc
cmp esi, edi
je 0x475aa6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x475aa6
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x475b16
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x475b1d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x475c0e
test word [esi + 0xc], 0x10c
je 0x475b71
mov eax, dword [esi + 4]
test eax, eax
je 0x475b71
jl 0x475c6f
cmp ebx, eax
mov edi, ebx
jb 0x475b42
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x475c16
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0046fc5b
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x475c06
cmp ebx, dword [ebp - 0xc]
jb 0x475bde
cmp dword [ebp - 0xc], 0
je 0x475b9b
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x475b90
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x475b97
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x475ba6
mov eax, SysReAllocString
cmp ebx, eax
ja 0x475ba6
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x475c42
push eax
push dword [ebp - 8]
push esi
call fcn.004825f1
pop ecx
push eax
call fcn.00485599
add esp, 0xc
test eax, eax
je 0x475c81
cmp eax, 0xffffffff
je 0x475c6f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x475c06
push esi
call fcn.00484eb8
cmp eax, 0xffffffff
pop ecx
je 0x475c73
cmp dword [ebp - 4], 0
je 0x475c42
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x475b25
mov eax, dword [ebp + 0x14]
jmp 0x475ac0
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x475c2d
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0046f350
add esp, 0xc
call fcn.00475937
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x475ab6
cmp dword [ebp + 0xc], 0xffffffff
je 0x475c58
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0046f350
add esp, 0xc
call fcn.00475937
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x475ab6
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x475ac0
or dword [esi + 0xc], 0x10
jmp 0x475c73
Function at 0x478397
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4e4470]
je 0x4783b2
inc edi
cmp edi, 0x17
jb 0x4783a3
cmp edi, 0x17
jae 0x478532
push ebp
push 3
call fcn.004879b2
cmp eax, 1
pop ecx
je 0x4784fe
push 3
call fcn.004879b2
test eax, eax
pop ecx
jne 0x4783e6
cmp dword [0x4e4258], 1
je 0x4784fe
cmp ebx, 0xfc
je 0x478531
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4ea200
push ebp
call fcn.0047b070
add esp, 0xc
test eax, eax
je 0x47841c
push esi
push esi
push esi
push esi
push esi
call fcn.0046fdb4
add esp, 0x14
push 0x104
mov esi, 0x4ea219
push esi
push 0
mov byte [0x4ea31d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x478460
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0047b070
add esp, 0xc
test eax, eax
je 0x478460
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0046fdb4
add esp, 0x14
push esi
call fcn.0046fbd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4784a5
push esi
call fcn.0046fbd0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ea514
push 0x4ca42c
sub ecx, eax
push ecx
push eax
call fcn.004812c7
add esp, 0x14
test eax, eax
je 0x4784a5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0046fdb4
add esp, 0x14
jmp 0x4784a7
xor esi, esi
push 0x4ca428
push ebx
push ebp
call fcn.00481256
add esp, 0xc
test eax, eax
je 0x4784c7
push esi
push esi
push esi
push esi
push esi
call fcn.0046fdb4
add esp, 0x14
push dword [edi*8 + 0x4e4474]
push ebx
push ebp
call fcn.00481256
add esp, 0xc
test eax, eax
je 0x4784e9
push esi
push esi
push esi
push esi
push esi
call fcn.0046fdb4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004877f5
add esp, 0xc
jmp 0x478531
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x478531
cmp ebp, 0xffffffff
je 0x478531
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4e4474]
push dword [esi]
call fcn.0046fbd0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4877f5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00478f47
xor ebx, ebx
cmp dword [0x4ead0c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4878cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4879ab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4879ab
push eax
call fcn.00478ed9
mov dword [esp], 0x4cb854
push edi
mov dword [0x4ead0c], eax
call esi
push eax
call fcn.00478ed9
mov dword [esp], 0x4cb840
push edi
mov dword [0x4ead10], eax
call esi
push eax
call fcn.00478ed9
mov dword [0x4ead14], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047760f
test eax, eax
pop ecx
pop ecx
je 0x487899
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046fdb4
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4878cb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00478ed9
cmp eax, ebx
pop ecx
mov dword [0x4ead1c], eax
je 0x4878cb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00478ed9
pop ecx
mov dword [0x4ead18], eax
mov eax, dword [0x4ead18]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x487950
cmp dword [0x4ead1c], ecx
je 0x487950
push eax
call fcn.00478f50
push dword [0x4ead1c]
mov esi, eax
call fcn.00478f50
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x487950
cmp edi, ebx
je 0x487950
call esi
cmp eax, ebx
je 0x48791d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48791d
test byte [ebp - 0x18], 1
jne 0x487950
lea eax, [ebp - 0x10]
push eax
call fcn.00477646
test eax, eax
pop ecx
je 0x487938
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046fdb4
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x487947
or dword [ebp + 0x10], 0x200000
jmp 0x48798b
or dword [ebp + 0x10], 0x40000
jmp 0x48798b
mov eax, dword [0x4ead10]
cmp eax, dword [ebp - 8]
je 0x48798b
push eax
call fcn.00478f50
cmp eax, ebx
pop ecx
je 0x48798b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48798b
mov eax, dword [0x4ead14]
cmp eax, dword [ebp - 8]
je 0x48798b
push eax
call fcn.00478f50
cmp eax, ebx
pop ecx
je 0x48798b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ead0c]
call fcn.00478f50
cmp eax, ebx
pop ecx
je 0x4879ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4879ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48e6b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4e4260]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x48e700
mov ax, word [esp]
cmp al, 2
jne 0x48e6fa
cmp ah, al
jne 0x48e6fa
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0046f960
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0046f960
add esp, 0x194
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x49a1a2
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 0x49a2f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x49a30b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x49a33f
cmp eax, 2
jg 0x49a33f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4cd980]
push 2
push edx
call fcn.00474c22
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.00474c22
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x49a6cd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x49a6a4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0049e550
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0049a4d0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret