joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415d20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, dword [0x422090]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x415df1
mov eax, dword [0x4225a0]
mov edx, 0x40
sub edx, eax
mov ebx, dword [ebp + 8]
cmp esi, edx
jl 0x415dff
add eax, 0x422560
push ecx
push edx
push ebx
push eax
call sub.msvcrt.dll_memcpy
mov edx, dword [0x4225a0]
mov eax, 0x40
sub eax, edx
pop ecx
add ebx, eax
sub esi, eax
pop eax
push 0x422560
push 0x42254c
call fcn.00416c50
mov edx, dword [0x422548]
xor ecx, ecx
add esp, 0x10
mov al, byte [ecx + 0x422560]
xor byte [edx + 0x422098], al
inc edx
cmp edx, 0x4b0
setl al
and eax, 0xff
inc ecx
neg eax
and edx, eax
cmp ecx, 0x14
jne 0x415d88
mov dword [0x422548], edx
cmp edx, 0x13
jle 0x415df8
xor eax, eax
mov dword [0x4225a0], 0
mov edx, 0x40
cmp esi, 0x3f
jg 0x415d4d
mov eax, 0x422560
push edx
push esi
push ebx
push eax
call sub.msvcrt.dll_memcpy
mov ebx, dword [0x4225a0]
add ebx, esi
add esp, 0x10
mov dword [0x4225a0], ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
call fcn.004159f0
jmp 0x415db8
add eax, 0x422560
jmp 0x415dd7

Function at 0x415f00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x50], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x54], 0
pop ebp
ret

Function at 0x4167f0
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x50
lea edi, [ebp - 0x4c]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push 0x40
push 0x36
push edi
call sub.msvcrt.dll_memset
add esp, 0x10
test ebx, ebx
jle 0x4168a7
mov edx, 1
lea esi, [esi]
mov al, byte [edx + esi - 1]
xor byte [edx + edi - 1], al
mov eax, edx
inc edx
cmp ebx, eax
jg 0x416896
mov eax, dword [ebp + 8]
push eax
call fcn.00415f00
mov eax, dword [ebp + 8]
push 0x40
push edi
push eax
call fcn.00415f90
add esp, 0xc
push 0x40
push 0x5c
push edi
call sub.msvcrt.dll_memset
mov edx, 1
add esp, 0x10
lea esi, [esi]
mov al, byte [edx + esi - 1]
xor byte [edx + edi - 1], al
mov eax, edx
inc edx
cmp ebx, eax
jg 0x4168a0
mov ebx, dword [ebp + 8]
add ebx, 0x5c
push ebx
call fcn.00415f00
push 0x40
push edi
push ebx
call fcn.00415f90
cld
mov ecx, 0x10
xor eax, eax
rep stosd dword es:[edi], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x3f
jle 0x416820
jmp 0x41682f
cmp eax, 0x3f
jle 0x416860
jmp 0x41686f
mov esi, dword [ebp + 8]
push esi
call fcn.00415f00
mov ebx, dword [ebp + 8]
push 0x40
push edi
push ebx
call fcn.00415f90
add esp, 0xc
push 0x40
push 0x5c
push edi
call sub.msvcrt.dll_memset
add esp, 0x10
jmp 0x41686f
Function at 0x416f70
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x54], 0
mov dword [eax + 0x5c], 0
mov dword [eax + 0x58], 0
pop ebp
ret

Function at 0x417130
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x50
lea edi, [ebp - 0x4c]
mov ebx, ecx
mov dword [ebp - 0x50], eax
push 0x40
push 0x36
push edi
mov esi, edx
call sub.msvcrt.dll_memset
add esp, 0x10
test ebx, ebx
jle 0x4171e7
mov edx, 1
lea esi, [esi]
mov al, byte [edx + esi - 1]
xor byte [edx + edi - 1], al
mov eax, edx
inc edx
cmp ebx, eax
jg 0x4171d6
mov eax, dword [ebp - 0x50]
push eax
call fcn.00416f70
mov eax, dword [ebp - 0x50]
push 0x40
push edi
push eax
call fcn.00416fd0
add esp, 0xc
push 0x40
push 0x5c
push edi
call sub.msvcrt.dll_memset
mov edx, 1
add esp, 0x10
lea esi, [esi]
mov al, byte [edx + esi - 1]
xor byte [edx + edi - 1], al
mov eax, edx
inc edx
cmp ebx, eax
jg 0x4171e0
mov ebx, dword [ebp - 0x50]
add ebx, 0x60
push ebx
call fcn.00416f70
push 0x40
push edi
push ebx
call fcn.00416fd0
cld
mov ecx, 0x10
xor eax, eax
rep stosd dword es:[edi], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x3f
jle 0x417160
jmp 0x41716f
cmp eax, 0x3f
jle 0x4171a0
jmp 0x4171af
mov eax, dword [ebp - 0x50]
push eax
call fcn.00416f70
mov eax, dword [ebp - 0x50]
push 0x40
push edi
push eax
call fcn.00416fd0
add esp, 0xc
push 0x40
push 0x5c
push edi
call sub.msvcrt.dll_memset
add esp, 0x10
jmp 0x4171af

Function at 0x417720
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret
Function at 0x4015e0
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x4149df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x10], esi
call fcn.0040e0b3
lea ecx, [esi + 0xb0]
mov dword [esp + 0x14], 0
call fcn.00401da0
lea ecx, [esi + 0xec]
mov byte [esp + 0x14], 1
call fcn.00401da0
mov byte [esp + 0x14], 2
mov dword [esi], method.CDialog.virtual_0
call fcn.00413845
call fcn.00413845
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x900
mov dword [esi + 0x128], eax
call fcn.0040d048
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
mov byte [esp + 0x14], 3
je 0x401688
call fcn.00413845
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x68]
push ecx
mov ecx, edi
call fcn.00401000
jmp 0x40168a
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xac], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40c5b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00403970
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40c67b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40c67b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40c62e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40c639
or bh, 8
and edi, 0x8000000
je 0x40c654
mov eax, dword [0x420c5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40c67b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ca50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40ca7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40ca9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40caba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4108f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x410934
call fcn.00413845
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x410934
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41092b
xor eax, eax
jmp 0x41093c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00410942
pop edi
pop esi
pop ebx
ret 4

Function at 0x413f97
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 0x413fc5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x413fe3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00413efd
jmp 0x413fe3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x413fe3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00413efd
test edi, edi
mov eax, edi
jne 0x413fcd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4085d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4639fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00458818
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408652
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00456767
mov eax, dword [eax]
push 0x7ae1c0
push eax
call fcn.00449664
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00458aa3
test bl, bl
je 0x408652
push 0x7ae1c0
lea ecx, [esp + 0xc]
call fcn.00458e33
push 0x7b1d18
lea ecx, [esp + 0xc]
call fcn.00458e33
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40868e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00458aa3
jmp 0x408759
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408712
lea edx, [esp + 0x7c]
push 0x7b1d14
push edx
call fcn.00449664
add esp, 8
test eax, eax
je 0x408712
lea eax, [esp + 0x7c]
push 0x7b1d10
push eax
call fcn.00449664
add esp, 8
test eax, eax
je 0x408712
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4086a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00458aa3
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x408f50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408fb2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x408fc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x463a7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x7b81b8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4090f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409026
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458aa3
xor eax, eax
jmp 0x40916f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00458be0
push esi
lea ecx, [esp + 0xc]
call fcn.00458e6f
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40914d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00408f50
test eax, eax
jne 0x40914d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00408f50
test eax, eax
jne 0x40914d
lea eax, [esp + 0x14]
push 0x7b1d2c
push eax
call fcn.0044a6a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40912c
lea ecx, [esp + 0x14]
push 0x7b1d28
push ecx
call fcn.0044a620
mov esi, eax
add esp, 8
test esi, esi
jne 0x40912c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40912f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00458b90
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40903e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458aa3
xor eax, eax
jmp 0x40916f
mov byte [esi], 0
push 0x7b1d24
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00458aa3
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x419d40
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x419dae
cmp si, 0x69
ja 0x419dae
add esi, 0xffd0
cmp si, 0x11
je 0x419d7e
push 0x11
call edi
test ax, ax
jge 0x419d7e
or esi, 0x2000
cmp si, 0x10
je 0x419d93
push 0x10
call edi
test ax, ax
jge 0x419d93
or esi, 0x4000
cmp si, 0x12
je 0x419da8
push 0x12
call edi
test ax, ax
jge 0x419da8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x419dbb
mov esi, 0xbd
jmp 0x419d6f
cmp si, 0x6e
jne 0x419dc8
mov esi, 0xbe
jmp 0x419d6f
cmp si, 0x6f
jne 0x419d69
mov esi, 0xbf
jmp 0x419d6f

Function at 0x41b4f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7c8848]
xor edx, edx
cmp eax, edx
jne 0x41b516
xor eax, eax
mov byte [eax + 0x7c8748], al
inc eax
cmp eax, 0x100
jl 0x41b4fe
mov dword [0x7c8848], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7c8748
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b5a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41b57a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41b548
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41b620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41b673
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41b65a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4220b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x422248
cmp ebp, ebx
jle 0x422248
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42210e
dec eax
or eax, 0xfffffff8
inc eax
je 0x422115
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x422124
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42212b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004587e4
add esp, 4
cmp eax, ebx
je 0x42214c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.004587e4
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42223e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x422225
mov al, byte [edx]
cmp al, 0xc0
jbe 0x422211
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x422206
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x422214
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x422214
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4221b0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x4221a1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x4254b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x464f88
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x4254e9
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.00460191
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.004601dd
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00425570
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.0046021a
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24