joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4756d8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.0047590c
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.0047590c
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x47574c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x475771
inc esi
mov eax, edi
call fcn.00475730
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.004756d8
inc ebx
dec esi
jne 0x47575b
pop edi
pop esi
pop ebx
ret

Function at 0x475800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404c90
xor eax, eax
push ebp
push 0x475875
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00475778
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00475730
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004756d8
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x475840
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47587c
lea eax, [ebp - 4]
call fcn.004047f0
ret
Function at 0x47b8d4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x47b8dd
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, 0x4b94bc
mov edx, dword [0x4b9d20]
mov byte [edx], 0
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
push ebp
push 0x47b9a6
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, eax
lea eax, [ebp - 0x154]
call fcn.00402f4c
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.00403394
call fcn.00402a40
test eax, eax
jne 0x47b98d
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.004030a8
mov dx, word [ebp - 8]
test dx, dx
jbe 0x47b987
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebp - 4]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ebx + ecx*4]
mov esi, dword [ebp - 4]
shr esi, 8
xor ecx, esi
mov dword [ebp - 4], ecx
inc eax
dec dx
jne 0x47b964
cmp dword [ebp - 8], 0
jne 0x47b93b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b9ad
lea eax, [ebp - 0x154]
call fcn.004030c8
ret

Function at 0x47cfb0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.00404ca0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
cmp edi, 0xffffffff
je 0x47cfed
cmp byte [esp], 0
je 0x47cfdd
or edi, 1
jmp 0x47cfe0
and edi, 0xfffffffe
push edi
push ebp
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4b0618
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret
Function at 0x4b0634
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x4b063d
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x8014], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c90
xor eax, eax
push ebp
push 0x4b0786
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004047f0
push 0
push 0
push 0
push 0
push 0x4b0794
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b0765
xor eax, eax
push ebp
push 0x4b075e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80400000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404ca0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b0747
xor eax, eax
push ebp
push 0x4b0740
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x8000
jmp 0x4b070a
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x8010], 0
lea eax, [ebp - 0x8014]
lea edx, [ebp - 0x8010]
call fcn.004049e0
mov edx, dword [ebp - 0x8014]
mov eax, ebx
call fcn.00404ab0
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x8010]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4b0729
cmp dword [ebp - 0x10], 0
ja 0x4b06e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0747
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0765
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b078d
lea eax, [ebp - 0x8014]
call fcn.004047f0
lea eax, [ebp - 4]
call fcn.004047f0
ret

Function at 0x4b079c
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c90
mov eax, dword [ebp - 8]
call fcn.00404c90
xor eax, eax
push ebp
push 0x4b082a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4b0803
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404ca0
push eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b080f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0831
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404814
ret
Function at 0x402040
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
and edx, 0xe1
imul ebx
and ebx, 0x9c
and esi, 0xbc
not esi
or edx, 0x9b
not eax
and edx, 1
inc edi
rcl eax, 0xbb
inc edx
not eax
inc edi
rcl eax, 0x3c
not ebx
sbb ebx, 0x27
mov esi, 0x7b
inc eax
rcr ebx, 0xc9
imul edx
sub esi, 0x56
add edi, 0xaf
not ebx
add edi, 0xd6
dec eax
mov esi, 0x5f
imul eax
or edx, 0x3c
or edx, 0xdb
mov edi, 0x84
rcr edi, 4
neg esi
bswap eax
sub edx, 0xb5
inc edx
bswap eax
ror edx, 0xa5
rcr ebx, 0x53
sbb ebx, 0x94
rcr esi, 0x6b
dec esi
ror edi, 0xd6
neg esi
rcr esi, 0xb4
ror eax, 0x62
dec edi
bswap esi
dec ebx
sub edx, 0xb0
mov edi, 0xf9
xor ecx, ecx
xor edi, edi
rcl edi, 0x5c
add edi, 0x35
inc ebx
sub esi, 0x5f
inc edx
dec edx
sbb eax, 0x6e
inc esi
rcr edx, 0xc3
not ebx
dec ebx
rcl edx, 0x42
sub ebx, 0x8f
neg esi
rcl edi, 0x82
imul eax
or edx, 0x3e
rcl edi, 0xce
dec ebx
rcl eax, 0xf1
inc edi
dec edx
and ebx, 0x32
neg esi
imul ebx
and edi, 0x9f
neg esi
add esi, 0x6c
bswap ebx
inc eax
sbb eax, 7
imul edi
sub ebx, 0x67
mov edx, 0xb6
imul ebx
imul edi
bswap ebx
bswap edx
rcl edx, 0x46
sbb eax, 0x30
rcr edx, 0xbd
dec eax
rcl edi, 0x95
neg edx
bswap edi
dec esi
sub eax, 0x9e
not edi
neg edi
ror esi, 0xd
mov ecx, dword [ebp + 0xc]
or eax, 0x3b
mov edx, 0x66
imul ebx
or edi, 0x7a
not edx
sbb ebx, 0xea
inc eax
rcl edx, 0x37
not eax
neg esi
and edx, 0xb6
dec edi
rcr edi, 0x7d
dec esi
not edi
ror edi, 0xd6
not eax
inc edx
neg eax
bswap edi
bswap esi
not edi
imul esi
ror esi, 0xb0
and eax, 0x43
ror ebx, 0xc1
imul eax
add edx, 0x4b
dec edx
neg ebx
rcl edi, 0x5f
rcr esi, 0xb0
rcl ebx, 0xea
add edx, 0x75
rol eax, 3
rcr ebx, 0x9c
not edi
imul esi
rcr ebx, 0x15
rol ebx, 0x5b
rol edx, 8
imul edi
mov esi, 0x2e
ror edx, 0xfd
sub edi, 0x96
rcr ebx, 0xea
inc esi
sub esi, 0x81
inc ebx
or ebx, 0xaf
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, ebx
mov eax, esi
not byte [edi]
xor esi, ebx
mov esi, ebx
xor esi, esi
xor esi, ebx
xor esi, ebx
mov esi, eax
mov ebx, eax
mov ebx, eax
xor ebx, esi
add byte [edi], 0x36
mov eax, esi
xor ebx, ebx
xor ebx, eax
mov esi, ebx
mov esi, eax
mov eax, ebx
mov ebx, esi
mov ebx, esi
mov ebx, eax
sub byte [edi], 0x75
xor ebx, esi
xor eax, eax
mov eax, eax
mov ebx, ebx
mov ebx, eax
xor eax, eax
mov esi, eax
xor eax, eax
xor ebx, eax
imul byte [edi]
inc edi
loop 0x4021f8
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40a5da
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447a90]
jne 0x40a5e4
repz ret
jmp fcn.00411cee
Function at 0x41654c
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.00410594
and dword [ebp - 4], 0
cmp dword [0x4495d0], 0
mov ebx, eax
jne 0x4165fd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4166ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4166ae
push eax
call fcn.00410522
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4495d0], eax
call esi
push eax
call fcn.00410522
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4495d4], eax
call esi
push eax
call fcn.00410522
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4495d8], eax
call esi
push eax
call fcn.00410522
pop ecx
mov dword [0x4495e0], eax
test eax, eax
je 0x4165fd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410522
pop ecx
mov dword [0x4495dc], eax
mov eax, dword [0x4495dc]
cmp eax, ebx
je 0x416655
cmp dword [0x4495e0], ebx
je 0x416655
push eax
call fcn.0041059d
push dword [0x4495e0]
mov esi, eax
call fcn.0041059d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416655
test edi, edi
je 0x416655
call esi
test eax, eax
je 0x41664c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41664c
test byte [ebp - 0xc], 1
jne 0x416655
or dword [ebp + 0x10], 0x200000
jmp 0x41668e
mov eax, dword [0x4495d4]
cmp eax, ebx
je 0x41668e
push eax
call fcn.0041059d
pop ecx
test eax, eax
je 0x41668e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41668e
mov eax, dword [0x4495d8]
cmp eax, ebx
je 0x41668e
push eax
call fcn.0041059d
pop ecx
test eax, eax
je 0x41668e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4495d0]
call fcn.0041059d
pop ecx
test eax, eax
je 0x4166ae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4166b0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b000
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x466afb
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.0045b446
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b082
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045935d
mov eax, dword [eax]
push 0x4901c0
push eax
call fcn.0044c1c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045b6d1
test bl, bl
je 0x40b082
push 0x4901c0
lea ecx, [esp + 0xc]
call fcn.0045ba61
push 0x493d34
lea ecx, [esp + 0xc]
call fcn.0045ba61
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 0x40b0be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045b6d1
jmp 0x40b189
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 0x40b142
lea edx, [esp + 0x7c]
push 0x493d30
push edx
call fcn.0044c1c4
add esp, 8
test eax, eax
je 0x40b142
lea eax, [esp + 0x7c]
push 0x493d2c
push eax
call fcn.0044c1c4
add esp, 8
test eax, eax
je 0x40b142
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 0x40b0d2
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.0045b6d1
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 0x40b980
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 0x40b9e2
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 0x40b9f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x466b7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49a204]
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 0x40bb28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ba56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b6d1
xor eax, eax
jmp 0x40bb9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045b80e
push esi
lea ecx, [esp + 0xc]
call fcn.0045ba9d
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 0x40bb7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040b980
test eax, eax
jne 0x40bb7d
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 closesocket
mov ecx, edi
call fcn.0040b980
test eax, eax
jne 0x40bb7d
lea eax, [esp + 0x14]
push 0x493d48
push eax
call fcn.0044d200
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bb5c
lea ecx, [esp + 0x14]
push 0x493d44
push ecx
call fcn.0044d180
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bb5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bb5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045b7be
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ba6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b6d1
xor eax, eax
jmp 0x40bb9f
mov byte [esi], 0
push 0x493d40
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.0045b6d1
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 0x41c6d0
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 0x41c73e
cmp si, 0x69
ja 0x41c73e
add esi, 0xffd0
cmp si, 0x11
je 0x41c70e
push 0x11
call edi
test ax, ax
jge 0x41c70e
or esi, 0x2000
cmp si, 0x10
je 0x41c723
push 0x10
call edi
test ax, ax
jge 0x41c723
or esi, 0x4000
cmp si, 0x12
je 0x41c738
push 0x12
call edi
test ax, ax
jge 0x41c738
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41c74b
mov esi, 0xbd
jmp 0x41c6ff
cmp si, 0x6e
jne 0x41c758
mov esi, 0xbe
jmp 0x41c6ff
cmp si, 0x6f
jne 0x41c6f9
mov esi, 0xbf
jmp 0x41c6ff

Function at 0x41ddb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4aa870]
xor edx, edx
cmp eax, edx
jne 0x41ddd6
xor eax, eax
mov byte [eax + 0x4aa770], al
inc eax
cmp eax, 0x100
jl 0x41ddbe
mov dword [0x4aa870], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4aa770
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41de67
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 0x41de3a
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 0x41de08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41dee0
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 0x41df33
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 0x41df1a
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 0x424970
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 0x424b08
cmp ebp, ebx
jle 0x424b08
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 0x4249ce
dec eax
or eax, 0xfffffff8
inc eax
je 0x4249d5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x4249e4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4249eb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0045b412
add esp, 4
cmp eax, ebx
je 0x424a0c
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.0045b412
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 0x424afe
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 0x424ae5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x424ad1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x424ac6
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 0x424ad4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x424ad4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x424a70
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 0x424a61
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 0x427d30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468088
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 0x427d69
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.00462dbf
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.00462e0b
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.00427df0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00462e48
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24