joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417070
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push esi
call fcn.0041bcaf
mov esi, dword [eax + 8]
test esi, esi
jne 0x417083
xor al, al
pop esi
ret 8
movzx eax, word [esp + 8]
push edi
push 0x4975f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x417111
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417111
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x417109
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
test esi, esi
je 0x417103
lea edx, [esp + 0x14]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x417103
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
ret 8
pop edi
xor al, al
pop esi
ret 8
Function at 0x41a7b3
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41a7de
call fcn.0041bcaf
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x41a801
push eax
push dword [esi + 4]
call fcn.0041a739
push esi
push eax
mov ecx, 0x4bf124
call fcn.0041a3ed
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x421a41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x421a88
call fcn.0041bcaf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x421a88
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x421aa4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004215bb
mov esi, eax
test edi, edi
je 0x421aa2
test ebx, ebx
je 0x421aa2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4228ab
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4813d0
call fcn.0043a4d1
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4228d0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x422916
lea ecx, [ebp - 0x10]
call fcn.00402540
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ecf0
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402610
mov eax, esi
call fcn.0043a5a9
ret 8
Function at 0x42cdee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42ce36
call fcn.0041bcaf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42ce36
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42ce79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42ce62
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 0x42ce62
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42ce76
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 0x43675a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a55d0]
jne 0x436764
repz ret
jmp fcn.0043c94f

Function at 0x448326
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004401c4
and dword [ebp - 4], 0
cmp dword [0x4c1a04], 0
mov ebx, eax
jne 0x4483d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x448488
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48b5b0
push edi
call esi
test eax, eax
je 0x448488
push eax
call fcn.00440152
mov dword [esp], 0x48b5a0
push edi
mov dword [0x4c1a04], eax
call esi
push eax
call fcn.00440152
mov dword [esp], 0x48b58c
push edi
mov dword [0x4c1a08], eax
call esi
push eax
call fcn.00440152
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c1a0c], eax
call esi
push eax
call fcn.00440152
pop ecx
mov dword [0x4c1a14], eax
test eax, eax
je 0x4483d7
push 0x48b558
push edi
call esi
push eax
call fcn.00440152
pop ecx
mov dword [0x4c1a10], eax
mov eax, dword [0x4c1a10]
cmp eax, ebx
je 0x44842f
cmp dword [0x4c1a14], ebx
je 0x44842f
push eax
call fcn.004401cd
push dword [0x4c1a14]
mov esi, eax
call fcn.004401cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44842f
test edi, edi
je 0x44842f
call esi
test eax, eax
je 0x448426
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x448426
test byte [ebp - 0xc], 1
jne 0x44842f
or dword [ebp + 0x10], 0x200000
jmp 0x448468
mov eax, dword [0x4c1a08]
cmp eax, ebx
je 0x448468
push eax
call fcn.004401cd
pop ecx
test eax, eax
je 0x448468
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x448468
mov eax, dword [0x4c1a0c]
cmp eax, ebx
je 0x448468
push eax
call fcn.004401cd
pop ecx
test eax, eax
je 0x448468
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c1a04]
call fcn.004401cd
pop ecx
test eax, eax
je 0x448488
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44848a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44db30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4822a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0x13]
push ebx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0044e530
mov ebp, dword [esp + 0x13c]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x134], 1
mov esi, ecx
lea ecx, [esp + 0x14]
add esi, ebp
mov eax, esi
sub eax, ebp
inc eax
push eax
call fcn.0044eb20
mov ecx, dword [esp + 0x14]
push ecx
push esi
push ebp
call fcn.00463260
mov dword [esp + 0x24], eax
add esp, 0xc
mov byte [eax], bl
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 2
call fcn.00437047
mov edx, dword [esp + 0x14]
push 0x100
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x2c], 0x48be6c
call fcn.004373e0
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x12b], bl
mov dword [esp + 0x20], 0x48be6c
push 0x49e320
push ecx
call fcn.0043a5db
pop edi
pop esi
pop ebp
pop ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ecx + 0xc]
ret

Function at 0x44dd20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x290
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x8e]
mov word [esp + 0x8c], 0
mov dword [esp + 8], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0x8c]
push eax
push ecx
call fcn.0044dc80
add esp, 8
lea edx, [esp + 0x8c]
push str.SetURL.ini
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x8c]
lea ecx, [esp + 0xc]
push eax
push 0x40
push ecx
push 0x4c1c3c
push 0x4a69b0
push 0x4a69a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x44dda3
pop edi
add esp, 0x290
ret
lea edx, [esp + 0xc]
push esi
push edx
call fcn.00439fd7
mov ecx, dword [0x4c1b10]
lea edi, [esp + eax*2 + 0x14]
mov edx, edi
lea eax, [esp + 0x14]
sub edx, eax
mov eax, dword [0x4c1b14]
mov esi, eax
add esp, 4
sub esi, ecx
sar edx, 1
sar esi, 1
cmp edx, esi
ja 0x44de34
test edx, edx
lea esi, [esp + 0x10]
jbe 0x44ddf8
mov eax, edx
mov di, word [esi]
add esi, 2
mov word [ecx], di
add ecx, 2
dec eax
jne 0x44ddde
mov eax, dword [0x4c1b14]
mov ecx, dword [0x4c1b10]
mov esi, eax
lea edi, [ecx + edx*2]
cmp edi, esi
je 0x44de7b
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
push edi
call fcn.0044de90
mov ecx, dword [0x4c1b14]
sub esi, edi
sar esi, 1
add esp, 0xc
mov eax, 1
neg esi
lea edx, [ecx + esi*2]
pop esi
mov dword [0x4c1b14], edx
pop edi
add esp, 0x290
ret
mov edx, eax
lea esi, [esp + 0x10]
sub edx, ecx
sar edx, 1
je 0x44de5a
mov ax, word [esi]
add esi, 2
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x44de40
mov eax, dword [0x4c1b14]
mov ecx, dword [0x4c1b10]
mov dl, byte [esp + 0xb]
sub eax, ecx
mov byte [esp + 0xb], dl
lea edx, [esp + 0xb]
sar eax, 1
push edx
push edi
lea eax, [esp + eax*2 + 0x18]
mov ecx, 0x4c1b10
push eax
call fcn.0044ea00
pop esi
mov eax, 1
pop edi
add esp, 0x290
ret
Function at 0x451510
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x482a5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
call fcn.00450390
lea esi, [ebx + 0x14]
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x10], esi
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
push 0x10
mov byte [esp + 0x34], 1
call fcn.0041812a
lea ecx, [eax + 0x10]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
add esp, 4
mov word [eax], bp
xor edx, edx
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edx
push eax
mov dword [esp + 0x24], edx
push str.53F56308_B6BF_11D0_94F2_00A0C91EFB8B
mov byte [esp + 0x38], 2
mov dword [ebx], 0x48c6b4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], edx
call dword [sym.imp.ole32.dll_IIDFromString]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.004514e0
mov edi, dword [esp + 0x38]
cmp edi, ebp
je 0x45164f
push edi
call fcn.00439fd7
mov edx, dword [esi]
mov ecx, dword [esi + 4]
lea eax, [edi + eax*2]
sub ecx, edx
mov dword [esp + 0x14], eax
sub eax, edi
sar eax, 1
sar ecx, 1
add esp, 4
cmp eax, ecx
ja 0x451614
cmp eax, ebp
jbe 0x4515e4
mov ecx, eax
mov bp, word [edi]
add edi, 2
mov word [edx], bp
add edx, 2
dec ecx
jne 0x4515d5
mov edx, dword [esi]
mov edi, dword [esi + 4]
lea ebp, [edx + eax*2]
cmp ebp, edi
je 0x45164f
mov eax, edi
sub eax, edi
sar eax, 1
inc eax
push eax
push edi
push ebp
call fcn.0044de90
mov eax, dword [esi + 4]
sub edi, ebp
sar edi, 1
neg edi
shl edi, 1
add esp, 0xc
add eax, edi
mov dword [esi + 4], eax
jmp 0x45164f
cmp ecx, ebp
mov eax, edi
jbe 0x451629
mov bp, word [eax]
add eax, 2
mov word [edx], bp
add edx, 2
dec ecx
jne 0x45161a
mov cl, byte [esp + 0x38]
mov ebp, dword [esi]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x38], cl
mov ecx, dword [esi + 4]
lea edx, [esp + 0x38]
sub ecx, ebp
push edx
sar ecx, 1
push eax
lea edx, [edi + ecx*2]
mov ecx, esi
push edx
call fcn.0044ea00
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4524a0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
mov al, byte [esi + 0x21c]
test al, al
je 0x45253e
mov ecx, 6
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.00480d77
lea ecx, [esp + 0x2c]
push ecx
call fcn.00480d50
add esp, 8
test eax, eax
je 0x4524fd
push eax
push str._Y__m__d__H:_M:_S
lea edx, [esp + 0x10]
push 0x19
push edx
call fcn.00439960
add esp, 0x10
cmp dword [esi + 4], 0x100
jne 0x45253e
mov eax, dword [esi + 0x218]
test eax, eax
jne 0x45251e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 0x218], eax
mov eax, dword [esi + 0x218]
test eax, eax
je 0x45253e
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push 0xc
push eax
call edi
mov eax, dword [esi + 0x218]
push 7
push eax
call edi
mov al, byte [esi + 0x21d]
pop edi
test al, al
pop esi
je 0x452555
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1c
ret
Function at 0x45a700
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4830ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
push ebx
push ebp
mov ebp, dword [esp + 0x1e0]
push esi
push edi
mov esi, ecx
push ebp
mov dword [esp + 0x3c], esi
call fcn.0044ed60
xor ebx, ebx
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], bx
mov dword [esp + 0x1e0], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x48]
mov dword [esi], 0x48c948
push eax
push 0x102
call sub.WS2_32.dll_WSAStartup
lea ecx, [esp + 0x13]
push ebx
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x1e8], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0044e530
push 0x10
mov byte [esp + 0x1e4], 3
call fcn.0041812a
lea edx, [eax + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
add esp, 4
mov word [eax], bx
lea eax, [esp + 0x13]
push ebx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1e8], 5
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0044e530
push 0x10
mov byte [esp + 0x1e4], 7
call fcn.0041812a
lea ecx, [eax + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
add esp, 4
mov word [eax], bx
lea edx, [esp + 0x13]
push ebx
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e8], 9
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.0044e530
push 0x10
mov byte [esp + 0x1e4], 0xb
call fcn.0041812a
add esp, 4
mov dword [esp + 0x2c], eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov word [eax], bx
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push ebp
mov ecx, esi
mov byte [esp + 0x1f0], 0xc
call fcn.0045a510
mov edx, dword [esp + 0x14]
push edx
call fcn.0048028f
add esp, 4
mov word [esi + 0x2c], 2
push eax
call sub.WS2_32.dll_htons
mov word [esi + 0x2e], ax
push 0xfde9
lea eax, [esp + 0x24]
push 0xfde9
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00452e00
mov eax, dword [eax]
add esp, 0x10
push eax
call sub.WS2_32.dll_inet_addr
mov dword [esi + 0x30], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e0], 0xd
call fcn.0044e300
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1e0], 0xe
call fcn.0044e300
lea ecx, [esp + 0x20]
mov byte [esp + 0x1e0], 0xf
call fcn.0044e300
lea ecx, [esp + 0x14]
mov byte [esp + 0x1e0], 0x10
call fcn.0044e300
mov ecx, dword [esp + 0x1d8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1d4
ret 4
Function at 0x45ae80
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x45ae9c
push str.pToDecodeNull
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esp + 0x10]
cmp eax, 0xe
jbe 0x45af29
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x45aec3
push str.pulDecodedLenNull
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
cmp byte [esi], 0x35
jne 0x45af1e
cmp byte [esi + 1], 0x46
jne 0x45af1e
mov edi, dword [esp + 0x14]
add eax, 0xfffffff4
test edi, edi
jne 0x45aee5
mov dword [edx], eax
pop edi
mov eax, 1
pop esi
ret 0x10
cmp dword [edx], eax
jae 0x45aefd
push str.LenErr
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
mov ecx, eax
push ebx
mov ebx, ecx
add esi, 0xa
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx], eax
pop edi
mov eax, 1
pop esi
ret 0x10
push str.okErr
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x45ce80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
push esi
push edi
mov esi, ecx
push 1
call fcn.0045ce50
push 0
mov ecx, esi
call fcn.0045ce50
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.0045cf00
test eax, eax
jbe 0x45cef2
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0x400
mov dword [esp + 8], 0
jbe 0x45ced4
mov eax, 0x400
lea ecx, [esp + 8]
push 0
push ecx
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0x18]
push edx
push eax
call edi
mov ecx, esi
call fcn.0045cf00
test eax, eax
ja 0x45cec0
pop edi
pop esi
add esp, 0x404
ret

Function at 0x45d680
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x45d6bd
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x45d6bd
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45d6bd
xor eax, eax
mov byte [ecx], 0
test esi, esi
jbe 0x45d6b3
push ebx
mov dl, byte [eax + edi]
mov bl, byte [ecx]
xor bl, dl
inc eax
cmp eax, esi
mov byte [ecx], bl
jb 0x45d6a4
pop ebx
pop edi
mov eax, 1
pop esi
ret 0xc
pop edi
xor eax, eax
pop esi
ret 0xc
Function at 0x45e100
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x45e11c
push str.pToDecodeNull
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
mov edi, dword [esp + 0x10]
cmp edi, 0xe
ja 0x45e146
call fcn.00452240
push edi
push esi
push str.pToDecode:
mov ecx, eax
mov dword [eax + 4], 1
call fcn.00452420
pop edi
xor eax, eax
pop esi
ret 0x10
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x45e160
push str.pulDecodedLenNull
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
cmp byte [esi], 0x6f
jne 0x45e239
cmp byte [esi + 1], 0x6b
jne 0x45e239
cmp byte [esi + 2], 0xa5
je 0x45e18b
push str.A5Err
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
cmp byte [esi + 5], 0x52
je 0x45e1a3
push str.52Err
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
cmp byte [esi + 6], 0x5f
je 0x45e1bb
push str.5FErr
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
mov al, byte [esi + 7]
xor ecx, ecx
mov cl, byte [esi + 8]
and eax, 3
shl eax, 8
add eax, ecx
cmp eax, 3
jbe 0x45e227
lea ecx, [eax + 0xb]
cmp ecx, edi
ja 0x45e227
mov edi, dword [esp + 0x14]
sub eax, 3
test edi, edi
jne 0x45e1ee
mov dword [edx], eax
pop edi
mov eax, 1
pop esi
ret 0x10
cmp dword [edx], eax
jae 0x45e206
push str.LenErr
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
mov ecx, eax
push ebx
mov ebx, ecx
add esi, 0xb
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx], eax
pop edi
mov eax, 1
pop esi
ret 0x10
push str.3Err
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
push str.okErr
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x4608b0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x48358a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
call fcn.00450390
xor eax, eax
mov dword [esp + 0x1b0], eax
lea esi, [ebx + 0x14]
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov edi, dword [esp + 0x1b8]
mov byte [esp + 0x1b0], 2
push edi
call fcn.00439fd7
lea ebp, [edi + eax*2]
add esp, 4
mov eax, ebp
mov ecx, esi
sub eax, edi
sar eax, 1
inc eax
push eax
call fcn.00450290
mov eax, dword [esi]
push eax
push ebp
push edi
call fcn.00463260
xor edi, edi
mov dword [esi + 4], eax
mov word [eax], di
lea esi, [ebx + 0x20]
mov dword [esp + 0x1c], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
push 0x10
mov byte [esp + 0x1c0], 5
call fcn.0041812a
lea ecx, [eax + 0x10]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov word [eax], di
mov word [esp + 0x28], di
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x2a]
add esp, 0x10
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
mov dword [ebx], 0x48cc3c
push edx
push 0x102
stosw word es:[edi], ax
call sub.WS2_32.dll_WSAStartup
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a4
ret 4

Function at 0x460cc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4837f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00450390
mov ecx, dword [esp + 0x2c]
mov dx, word [esp + 0x30]
mov edi, dword [sym.imp.ole32.dll_IIDFromString]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esi + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], eax
push ecx
push str.00001101_0000_1000_8000_00805f9b34fb
mov word [esi + 0x18], dx
mov dword [esi], 0x48cc4c
mov dword [esp + 0x20], eax
call edi
lea edx, [esp + 0xc]
push edx
push str.0850302A_B344_4fda_9BE9_90576B8D46F0
call edi
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.004514e0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x463390
Capabilities:
Encode data using xor

Disassembly:
push edi
mov di, word [esp + 0x10]
xor cl, cl
test di, di
jbe 0x4633bf
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
mov dl, byte [esi]
mov bl, byte [eax]
xor bl, dl
inc cl
xor dx, dx
mov byte [eax], bl
inc eax
mov dl, cl
inc esi
cmp dx, di
jb 0x4633a7
pop esi
pop ebx
pop edi
ret