joyce8/EMBER2024-capa huggingface dataset:
Function at 0x506cd8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55f650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004fbefb
and dword [ebp - 0x14], 0
cmp dword [0x566f7c], 0
mov dword [ebp - 0x18], eax
jne 0x506d8b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x506e33
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x541168
push ebx
call edi
test eax, eax
je 0x506e33
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x541158
push ebx
mov dword [0x566f7c], eax
call edi
push eax
call esi
push 0x541144
push ebx
mov dword [0x566f80], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x566f84], eax
call edi
push eax
call esi
mov dword [0x566f8c], eax
test eax, eax
je 0x506d8b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x566f88], eax
mov eax, dword [0x566f88]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x506de4
cmp dword [0x566f8c], ecx
je 0x506de4
push eax
call esi
push dword [0x566f8c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x506de4
test ebx, ebx
je 0x506de4
call edi
test eax, eax
je 0x506ddb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x506ddb
test byte [ebp - 8], 1
jne 0x506de4
or dword [ebp + 0x10], 0x200000
jmp 0x506e17
mov eax, dword [0x566f80]
cmp eax, dword [ebp - 0x18]
je 0x506e17
push eax
call esi
test eax, eax
je 0x506e17
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x506e17
mov eax, dword [0x566f84]
cmp eax, dword [ebp - 0x18]
je 0x506e17
push eax
call esi
test eax, eax
je 0x506e17
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x566f7c]
call esi
test eax, eax
je 0x506e33
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x506e35
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f5a64
leave
ret
Function at 0x1001a283
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001a2c2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a2c2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a2c2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001a2c2
cmp dword [ecx + 0x74], 0xe
jbe 0x1001a2c2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001cf3f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001cfdc
push ebx
push esi
call fcn.1001cf08
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001ce9c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001cf89
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001cfdb
push edi
push eax
call fcn.1001defa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001cfa9
call fcn.1001b9e4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001cfda
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001ce9c
add esp, 0x20
test eax, eax
jne 0x1001cfc8
push edi
call fcn.1001b9e4
jmp 0x1001cfd0
push ebx
call fcn.1001b9e4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001d249
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024cc8
push 0x10024cc0
push str.FlsAlloc
push 0x1f
call fcn.1001d165
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d27d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023150]
call esi
jmp 0x1001d283
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d2c7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024cd8
push 0x10024cd0
push str.FlsGetValue
push 0x21
call fcn.1001d165
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d2fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001d306
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024ce0
push 0x10024cd8
push str.FlsSetValue
push 0x22
call fcn.1001d165
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d340
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10023150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100229c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100229ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100229ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x419e40
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0040fcfb
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x419ca8
or dword [edi + 8], 0x104
jmp 0x419d6b
mov dword [edi], eax
add eax, 0x40
lea ebx, [edi + 4]
mov dword [ebx], eax
je 0x419cc9
cmp byte [eax], 0
je 0x419cc9
push ebx
push 0x16
push 0x41db50
call fcn.004116a4
add esp, 0xc
mov eax, dword [edi]
and dword [edi + 8], 0
test eax, eax
je 0x419d2e
cmp byte [eax], 0
je 0x419d2e
mov eax, dword [ebx]
test eax, eax
je 0x419cec
cmp byte [eax], 0
je 0x419cec
mov esi, edi
call fcn.004010c3
jmp 0x419cf3
mov esi, edi
call fcn.0040f10c
cmp dword [edi + 8], 0
jne 0x419d81
push edi
push 0x40
push 0x41d948
call fcn.004116a4
add esp, 0xc
test eax, eax
je 0x419d77
mov ebx, dword [ebx]
test ebx, ebx
je 0x419d25
cmp byte [ebx], 0
je 0x419d25
mov esi, edi
call fcn.004010c3
jmp 0x419d77
mov esi, edi
call fcn.0040f10c
jmp 0x419d77
mov ebx, dword [ebx]
test ebx, ebx
je 0x419d64
cmp byte [ebx], 0
je 0x419d64
push ebx
call fcn.00402d0a
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x419321
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x419d77
and dword [edi + 8], 0
jmp 0x419d77
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x419e6c
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call fcn.00411706
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x419e6c
cmp esi, 0xfde8
je 0x419e6c
cmp esi, 0xfde9
je 0x419e6c
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x419e6c
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x419e6c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x419df8
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], si
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x419e67
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x419e2f
push str.Norwegian_Nynorsk
push 0x40
push ebx
call fcn.0040d663
add esp, 0xc
test eax, eax
je 0x419e40
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e571
push 0x40
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
test eax, eax
je 0x419e6c
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
test eax, eax
je 0x419e6c
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call fcn.0040d7a7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x419e6e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x100084e0
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Execute anti-debugging instructions
Execute shellcode via indirect call
Hide graphical window
Parse credit card information
Parse pe header
Resume thread

Disassembly:
jmp 0x1000df9f
push ebp
cmc
and bp, 0x9a91
sal ax, cl
mov ebp, esp
push ebx
bsr eax, ebx
add eax, ebp
test ebp, 0xb12b8e22
push edi
push esi
add ax, sp
lea esp, [esp - 0x130]
mov eax, dword [0x10075200]
xor eax, ebp
cmp ecx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x138], 0x971e36c7
xor ax, 0x7e97

Function at 0x1001a753
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001a792
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a792
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a792
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001a792
cmp dword [ecx + 0x74], 0xe
jbe 0x1001a792
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001d40f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001d4ac
push ebx
push esi
call fcn.1001d3d8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d36c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d459
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d4ab
push edi
push eax
call fcn.1001e3ca
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d479
call fcn.1001beb4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d4aa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d36c
add esp, 0x20
test eax, eax
jne 0x1001d498
push edi
call fcn.1001beb4
jmp 0x1001d4a0
push ebx
call fcn.1001beb4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001d719
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cc8
push 0x10025cc0
push str.FlsAlloc
push 0x1f
call fcn.1001d635
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d74d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
jmp 0x1001d753
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d797
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cd8
push 0x10025cd0
push str.FlsGetValue
push 0x21
call fcn.1001d635
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d7ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001d7d6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025ce0
push 0x10025cd8
push str.FlsSetValue
push 0x22
call fcn.1001d635
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d810
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10022e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x4080bb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
pushal
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
shr ebx, 2
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov eax, dword [esi + edx*4]
xor eax, edi
inc ecx
and ecx, 0x1f
ror eax, cl
mov dword [esi + edx*4], eax
inc edx
cmp edx, ebx
jne 0x4080d3
popal
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4080ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
pushal
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
shr ebx, 2
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov eax, dword [esi + edx*4]
inc ecx
and ecx, 0x1f
rol eax, cl
xor eax, edi
mov dword [esi + edx*4], eax
inc edx
cmp edx, ebx
jne 0x408104
popal
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x475512
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5c78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00472a46
and dword [ebp - 0x14], 0
cmp dword [0x4a8fc0], 0
mov dword [ebp - 0x18], eax
jne 0x4755c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x47566d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x47566d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a8fc0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a8fc4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a8fc8], eax
call edi
push eax
call esi
mov dword [0x4a8fd0], eax
test eax, eax
je 0x4755c5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a8fcc], eax
mov eax, dword [0x4a8fcc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x47561e
cmp dword [0x4a8fd0], ecx
je 0x47561e
push eax
call esi
push dword [0x4a8fd0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x47561e
test ebx, ebx
je 0x47561e
call edi
test eax, eax
je 0x475615
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x475615
test byte [ebp - 8], 1
jne 0x47561e
or dword [ebp + 0x10], 0x200000
jmp 0x475651
mov eax, dword [0x4a8fc4]
cmp eax, dword [ebp - 0x18]
je 0x475651
push eax
call esi
test eax, eax
je 0x475651
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x475651
mov eax, dword [0x4a8fc8]
cmp eax, dword [ebp - 0x18]
je 0x475651
push eax
call esi
test eax, eax
je 0x475651
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a8fc0]
call esi
test eax, eax
je 0x47566d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x47566f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468861
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x5df041ac
Capabilities:
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
or ebx, 0xffffffff
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x1c], ebx
jne 0x5df04278
xor ecx, ecx
push ecx
lea edx, [ebp + 0xc]
push edx
push ecx
xor eax, eax
inc eax
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
push edi
call fcn.5df13db1
test eax, eax
jl 0x5df042d8
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push eax
mov dword [esi + 0x1c], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x5df0420f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
push 0x32
push dword [edi + 0x11c]
push dword [esi + 0x1c]
call dword [0x5df0b594]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x5df04232
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
jmp 0x5df042ae
mov eax, dword [edi + 0x168]
neg eax
lea ecx, [edi + 0x198]
sbb eax, eax
and eax, ecx
push eax
push dword [edi + 8]
push dword [esi + 4]
call fcn.5df08972
push 0x10
lea eax, [esi + 8]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x5df04278
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
cmp eax, 0x2733
jne 0x5df042ae
jmp 0x5df042d6
xor eax, eax
mov dword [ebp + 0xc], eax
cmp dword [esi + 0x24], eax
je 0x5df042ae
cmp eax, ebx
je 0x5df04266
push 0
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x5df042a4
sub dword [esi + 0x24], eax
add dword [esi + 0x20], eax
cmp dword [esi + 0x24], 0
jne 0x5df04282
cmp eax, ebx
je 0x5df04266
push 0
push dword [edi + 0x11c]
push dword [esi + 0x1c]
call dword [0x5df0b594]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x5df042cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
push esi
push edi
call fcn.5df0416e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8