joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4071cc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x411aa0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x407207
push 2
push ebp
push ecx
call fcn.004070a0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x407369
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4072b1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x407262
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40724f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x407232
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40735a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4072ad
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40722e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x407349
mov eax, dword [esp + 0x18]
test eax, eax
je 0x407305
cmp eax, 5
jne 0x4072ee
call fcn.00404510
mov dword [eax], 9
call fcn.00404520
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00404490
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x407325
cmp byte [ebp], 0x1a
jne 0x407325
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00404510
mov dword [eax], 0x1c
call fcn.00404520
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4072ad
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40739a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4072b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4072b1
Function at 0x407e10
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00402620
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.004070a0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x407f50
push 2
push ebp
push ebx
call fcn.004070a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x407f50
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x407ef1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.004086f0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x407e96
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004071a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x407eb2
sub esi, eax
test esi, esi
jle 0x407eca
jmp 0x407e87
call fcn.00404520
cmp dword [eax], 5
jne 0x407ec7
call fcn.00404510
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.004086f0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004070a0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x407f37
push 0
push ecx
push ebx
call fcn.004070a0
add esp, 0xc
push ebx
call fcn.00407c80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x407f37
call fcn.00404510
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00404520
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.004070a0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x409c70
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x410998]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x409cb8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x409c98
mov eax, 2
jmp 0x409cb3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x409d98
mov eax, 1
mov dword [0x410998], eax
cmp eax, 2
jne 0x409cd8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x409daa
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x409cf3
mov ecx, dword [0x410900]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x409d12
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.004028a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x409d29
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x409d8f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x409d70
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x409d8f
push esi
call fcn.00402830
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x409d9f
push esi
call fcn.00402830
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00402830
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x425cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x425cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040eb82
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x425d13
test byte [esp + 8], 2
je 0x425d13
call fcn.0040ebf5
mov dword [eax], 0xd
call fcn.0040ebfe
mov dword [eax], 5
jmp 0x425cec
xor eax, eax
ret

Function at 0x1000e750
Capabilities:
Encode data using xor

Disassembly:
mov ebp, dword [edi + 0x323f74f4]
cmp bh, dl
aas
xor bh, byte [edx]
cli
sbb al, 0x35
jl 0x1000e754
invalid
mov ecx, dword [esi + edi*4]

Function at 0x1000ea50
Capabilities:
Encode data using xor

Disassembly:
inc ebx
pop esp
cmp dword [eax], 0xffffffa4
mov esi, 0xce16df
sbb eax, 0xabccf9ad
aas
mov bh, 0x7f
loopne 0x1000e9eb
invalid

Function at 0x1202b188
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1202b192
pushal
call 0x1202b198
pop ebp
sub ebp, 0x10
sub ebp, 0x202b188
mov al, byte [esp + 0x28]
cmp al, 1
je 0x1202b1bc
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x1202b1c5
mov eax, 0x202b188
add eax, ebp
add eax, 0x63
mov ecx, 0x5aa
mov edx, 0xa2e709b9
xor byte [eax], dl
inc eax
dec ecx
jne 0x1202b1dc
jmp 0x1202b1ef
xor dh, byte [edx + esi + 0x30]
test dword [ecx + 0x7838b9b9], edi
inc ecx
mov ecx, 0x74bab9b9
add dword [edi + 0x3b9b9b9], edi
xchg ecx, eax
mov ecx, 0x5b4eb9b9
mov edx, 0xb5383271
mov ecx, 0x7cbab9b9
jmp 0x6a148403
Function at 0x10005e45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10005e54
pop dword [ebp - 0xc]
mov eax, 0x57d51e19
sub eax, 0x47d4bfc5
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x9ce77298
sub dword [ebp - 0x1c], 0x4e952d4d
mov dword [ebp - 0x18], 0xf9e31043
add dword [ebp - 0x18], 0x38503c02
mov dword [ebp - 0x14], 0xa1bce449
sub dword [ebp - 0x14], 0x5570a01b
mov dword [ebp - 0x10], 0xeeaae824
add dword [ebp - 0x10], 0x115517dc
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xd7f88165
sub dword [ebp - 0x1c], 0x6386180f
mov dword [ebp - 0x18], 0xcb5ee556
add dword [ebp - 0x18], 0x760d7c1f
mov dword [ebp - 0x14], 0x224f38ab
sub dword [ebp - 0x14], 0xbedfcc3f
mov dword [ebp - 0x10], 0x7e19589
sub dword [ebp - 0x10], 0x7e19589
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x3df5d136
add eax, 0xd20c2eca
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x4068a
push 0
call eax
mov ecx, 0xb654b89f
sub ecx, 0xb6546201
xor ebx, ebx
add ebx, eax
mov edi, 0xd94f2281
add edi, 0x36b3997f
add edi, dword [ebp - 0xc]
mov edx, 0x599e8304
add edx, 0xdcd9167a
add dword [ebp - 4], 0xc90a29e3
mov esi, dword [edi]
xor dword [ebp - 8], 0xe1e56e8e
xor esi, edx
sub dword [ebp - 8], ecx
mov dword [ebx], esi
add dword [ebp - 4], ecx
add ebx, 4
add edi, 4
loop 0x10005f73
add eax, 0x14d4b
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40673a
pop dword [ebp - 0x4c]
mov eax, 0x40673a
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xf03fb38d
sub dword [ebp - 0x5c], 0xa1ed6e42
mov dword [ebp - 0x58], 0xacc8a6cd
sub dword [ebp - 0x58], 0x7a955a88
mov dword [ebp - 0x54], 0x410dca4f
add dword [ebp - 0x54], 0xb3e79df
mov dword [ebp - 0x50], 0x75f78a0f
add dword [ebp - 0x50], 0x8a0875f1
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x3b232049
sub dword [ebp - 0x5c], 0xc6b0b6f3
mov dword [ebp - 0x58], 0x6be504f1
sub dword [ebp - 0x58], 0x2a78a37c
mov dword [ebp - 0x54], 0x1f7490f6
add dword [ebp - 0x54], 0x43fadb76
mov dword [ebp - 0x50], 0xb55e0cab
sub dword [ebp - 0x50], 0xb55e0cab
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x9ea0619f
sub eax, 0x9e5fe09f
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a685
push 0
call eax
mov ecx, 0xa8a4866d
add ecx, 0x575bcd24
xor edx, edx
add edx, eax
mov edi, str.lu80__f
add edi, dword [ebp - 0x4c]
mov esi, 0x9b6a1cd0
sub esi, 0xdf173c8f
add dword [ebp - 0x3c], 0xb9ecd046
mov ebx, dword [edi]
sub dword [ebp - 0x20], eax
add ebx, esi
xor dword [ebp - 0x30], 0xc3ddca17
mov dword [edx], ebx
add dword [ebp - 0x44], edi
add edx, 0xa97b6b54
sub edx, 0xa97b6b50
add edi, 4
loop 0x40684e
add eax, 0x487d60a1
sub eax, 0x487c1f8a
mov ebx, eax
add eax, 0x3d177ee1
add eax, 0xc2e88124
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x408b90
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46cd7b
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.00461c83
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408c12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045fa3a
mov eax, dword [eax]
push 0x5b7230
push eax
call fcn.00451e94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461f0e
test bl, bl
je 0x408c12
push 0x5b7230
lea ecx, [esp + 0xc]
call fcn.0046229e
push 0x5bad78
lea ecx, [esp + 0xc]
call fcn.0046229e
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 0x408c4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461f0e
jmp 0x408d19
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 0x408cd2
lea edx, [esp + 0x7c]
push 0x5bad74
push edx
call fcn.00451e94
add esp, 8
test eax, eax
je 0x408cd2
lea eax, [esp + 0x7c]
push 0x5bad70
push eax
call fcn.00451e94
add esp, 8
test eax, eax
je 0x408cd2
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 0x408c62
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.00461f0e
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 0x409510
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 0x409572
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 0x409580
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46cdfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5c55e4]
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 0x4096b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4095e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461f0e
xor eax, eax
jmp 0x40972f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046204b
push esi
lea ecx, [esp + 0xc]
call fcn.004622da
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 0x40970d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409510
test eax, eax
jne 0x40970d
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.00409510
test eax, eax
jne 0x40970d
lea eax, [esp + 0x14]
push 0x5bad8c
push eax
call fcn.00452ed0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4096ec
lea ecx, [esp + 0x14]
push 0x5bad88
push ecx
call fcn.00452e50
mov esi, eax
add esp, 8
test esi, esi
jne 0x4096ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4096ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461ffb
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4095fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461f0e
xor eax, eax
jmp 0x40972f
mov byte [esi], 0
push 0x5bad84
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.00461f0e
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 0x419c20
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 0x419c8e
cmp si, 0x69
ja 0x419c8e
add esi, 0xffd0
cmp si, 0x11
je 0x419c5e
push 0x11
call edi
test ax, ax
jge 0x419c5e
or esi, 0x2000
cmp si, 0x10
je 0x419c73
push 0x10
call edi
test ax, ax
jge 0x419c73
or esi, 0x4000
cmp si, 0x12
je 0x419c88
push 0x12
call edi
test ax, ax
jge 0x419c88
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x419c9b
mov esi, 0xbd
jmp 0x419c4f
cmp si, 0x6e
jne 0x419ca8
mov esi, 0xbe
jmp 0x419c4f
cmp si, 0x6f
jne 0x419c49
mov esi, 0xbf
jmp 0x419c4f

Function at 0x41b450
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5d5c90]
xor edx, edx
cmp eax, edx
jne 0x41b476
xor eax, eax
mov byte [eax + 0x5d5b90], al
inc eax
cmp eax, 0x100
jl 0x41b45e
mov dword [0x5d5c90], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5d5b90
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b507
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 0x41b4da
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 0x41b4a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41b580
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 0x41b5d3
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 0x41b5ba
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 0x422010
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 0x4221a8
cmp ebp, ebx
jle 0x4221a8
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 0x42206e
dec eax
or eax, 0xfffffff8
inc eax
je 0x422075
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x422084
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42208b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00461c4f
add esp, 4
cmp eax, ebx
je 0x4220ac
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.00461c4f
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 0x42219e
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 0x422185
mov al, byte [edx]
cmp al, 0xc0
jbe 0x422171
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x422166
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 0x422174
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x422174
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x422110
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 0x422101
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 0x4251c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e2c8
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 0x4251f9
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.004695fc
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.00469648
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.00425280
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00469685
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24