joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c560
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b4a14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00406925
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00406925
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x40c5d7
cmp word [ecx], dx
je 0x40c5d7
mov eax, dword [0x49219c]
push edi
dec eax
push eax
push 0x492088
call fcn.0040c4ff
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40c64a
cmp word [eax], dx
je 0x40c64a
mov eax, dword [edi]
test eax, eax
je 0x40c5fb
cmp word [eax], dx
je 0x40c5fb
lea eax, [ebp - 0x10]
push eax
call fcn.0040bee2
jmp 0x40c604
lea eax, [ebp - 0x10]
push eax
call fcn.0040bf7d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x40c674
mov eax, dword [0x492084]
push dword [ebp - 0x14]
dec eax
push eax
push 0x491d78
call fcn.0040c4ff
add esp, 0xc
test al, al
je 0x40c674
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40c63f
cmp word [eax], di
je 0x40c63f
lea eax, [ebp - 0x10]
push eax
call fcn.0040bee2
pop ecx
jmp 0x40c676
lea eax, [ebp - 0x10]
push eax
call fcn.0040bf7d
jmp 0x40c63c
mov eax, dword [edi]
test eax, eax
je 0x40c661
cmp word [eax], dx
je 0x40c661
lea eax, [ebp - 0x10]
push eax
call fcn.0040be97
pop ecx
jmp 0x40c674
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40c73f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040c384
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40c73f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40c73f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40c73f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40c6cc
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004072e7
test ebx, ebx
je 0x40c73a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004072e7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c73f
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c73f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0040eb30
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40c741
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402aa5
leave
ret
Function at 0x411826
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4b5d00]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411866
cmp byte [ebx], 0xa
jne 0x411866
or byte [edi + eax + 0x28], 4
jmp 0x41186b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41196a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41194d
inc eax
cmp dl, 0xd
je 0x411897
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4118bd
cmp eax, ecx
jae 0x4118cb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41187f
jmp 0x41196a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411948
cmp dword [ebp - 0x10], 0
je 0x411948
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b5d00]
test byte [eax + edi + 0x28], 0x48
je 0x411922
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41190d
mov byte [esi], dl
jmp 0x41191e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b5d00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41196a
cmp byte [ebp - 1], 0xa
jne 0x411931
cmp esi, ebx
jne 0x411931
mov byte [esi], 0xa
jmp 0x411969
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041162b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41196a
mov byte [esi], 0xd
jmp 0x411969
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b5d00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411967
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41196a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411973
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4b5d00]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4119b9
cmp word [ebx], dx
jne 0x4119b9
or byte [eax + edi + 0x28], 4
jmp 0x4119be
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x411b21
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x411b01
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4119ff
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x411a35
cmp eax, edx
jae 0x411a43
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4119da
jmp 0x411b21
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411afc
cmp dword [ebp - 0x18], 0
je 0x411afc
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4b5d00]
test byte [eax + edi + 0x28], 0x48
je 0x411ad2
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x411a96
mov word [esi], cx
jmp 0x411acd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4b5d00]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4b5d00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4b5d00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x411b21
pop eax
cmp word [ebp - 4], ax
jne 0x411ae2
cmp esi, ebx
jne 0x411ae2
mov word [esi], ax
jmp 0x411b1e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041162b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x411b21
push 0xd
pop eax
jmp 0x411add
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4b5d00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x411b1b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x411b21
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4164e0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x41657b
push edi
push 0x4b66c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4b6004]
test edi, edi
je 0x41654e
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x416547
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x4b6004
call fcn.00421f6d
pop ecx
pop ecx
jmp 0x416549
mov edi, dword [edi]
test edi, edi
jne 0x41651c
pop ebp
mov esi, dword [0x4b52b0]
push 0x10
push 0x4b6004
lea eax, [esi + 1]
mov dword [0x4b52b0], eax
call fcn.00421f3e
pop ecx
pop ecx
push 0x4b66c0
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x419d10
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x419da6
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x419da3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x419da3
lea eax, [esi - 1]
push eax
push dword [0x4b6734]
call fcn.0042185c
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x419da5
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x419d93
mov edx, 0xfa01
cmp word [ecx], dx
je 0x419d9e
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x419d83
jmp 0x419da3
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x419e4c
push eax
call esi
test al, al
jns 0x419e4c
push 0x11
call esi
test al, al
js 0x419e4c
push 0x10
call esi
test al, al
js 0x419e4c
push 0x12
call esi
test al, al
js 0x419e4c
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x419e4c
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0040afb1
add esp, 0xc
test eax, eax
je 0x419e20
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0040afb1
add esp, 0xc
test eax, eax
jne 0x419e37
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x419e8d
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.004773e8
pop ecx
pop ecx
test eax, eax
je 0x419e8d
test ebp, ebp
je 0x419e70
push 0x11
call esi
test al, al
js 0x419e68
push 0x10
call esi
test al, al
js 0x419e68
push 0x12
call esi
test al, al
jns 0x419e70
push 1
push ebp
call fcn.00419e99
test ebx, ebx
je 0x419e84
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x419e8d
test edi, edi
je 0x419e8d
mov eax, dword [edi + 8]
jmp 0x419e8f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x41b904
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [0x4b678c]
xor edi, edi
call fcn.004217f3
mov ebx, eax
cmp dword [ebp + 0xc], edi
je 0x41b9ee
push esi
push 0x60
push 8
push dword [0x4b55a0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0xc]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], 1
call fcn.00477d80
mov dword [esi + 8], eax
mov dword [esp], str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
call fcn.00477d80
pop ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], eax
test cl, 1
je 0x41b9de
test ebx, ebx
je 0x41b9ac
push ebx
push edi
push dword [0x4b55a0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x41b9a7
push ebx
push dword [ebp + 0x10]
push eax
call fcn.00414790
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x41b9d5
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 0x41b9f6
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41b9d0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41b9eb
cmp dword [ebp + 0xc], edi
jne 0x41b9eb
push esi
call fcn.0041b475
pop ecx
jmp 0x41b9ed
mov eax, dword [ebp + 0x10]
push esi
mov dword [esi + 0x48], eax
call fcn.0041b506
pop ecx
mov edi, esi
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x18

Function at 0x41bc2c
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x41bb7f
push 0x10
push 0x2c
call fcn.00421901
push 0
push 0
push 8
mov dword [0x4b61b0], eax
call fcn.004217fa
cmp word [0x4b61a8], 0
mov dword [0x4b6794], eax
jne 0x41bd05
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x4b61a8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4b61b4], eax
test eax, eax
je 0x41bd05
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4959a0
push eax
call esi
push 0x4959ac
push dword [0x4b61b4]
mov dword [0x4b6198], eax
call esi
push str.getnameinfo
push dword [0x4b61b4]
mov dword [0x4b619c], eax
call esi
push str.WSAStringToAddressA
push dword [0x4b61b4]
mov dword [0x4b61a0], eax
call esi
cmp dword [0x4b6198], 0
mov dword [0x4b61a4], eax
pop esi
je 0x41bd05
cmp dword [0x4b619c], 0
je 0x41bd05
cmp dword [0x4b61a0], 0
je 0x41bd05
test eax, eax
je 0x41bd05
mov dword [0x4b61ac], 1
add esp, 0x190
ret
Function at 0x41bd2d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x41bda5
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0047784b
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040acd9
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x41bd86
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x41bd83
cmp ecx, 0x5c
je 0x41bd83
cmp ecx, 0x2f
jne 0x41bd90
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x41bd70
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x41bda7
xor eax, eax
leave
ret 4

Function at 0x41be6d
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x4b61bc]
push esi
test eax, eax
jne 0x41be7e
push fcn.0041bf86
push 0x10
push 0x258
call fcn.00421901
mov dword [0x4b61bc], eax
push dword [esp + 0xc]
push eax
call fcn.00421884
mov esi, eax
test esi, esi
je 0x41bf7f
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x41bea0
mov edi, 0x493478
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x41beb0
xor eax, eax
cmp word [ebx], ax
jne 0x41beb5
mov ebx, 0x4959dc
push edi
call fcn.0040acd9
push ebx
mov dword [esp + 0x24], eax
call fcn.0040acd9
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x4b55a0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41bf66
push edi
push eax
call fcn.00477459
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x41bf16
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x41bf1a
push 0x4907d0
push edi
call fcn.00477428
pop ecx
pop ecx
jmp 0x41bf1a
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.00477428
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41bf3e
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x41bf54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41bf52
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x4b55a0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x41bf7d
cmp dword [esp + 0x14], 0xffffffff
je 0x41bf71
mov esi, dword [esp + 0x14]
push esi
push dword [0x4b61bc]
call fcn.00421822
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x41c2d0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x41c2e9
push dword [0x4b679c]
call fcn.004219bf
pop edi
ret 4
push esi
push edi
push dword [0x4b679c]
call fcn.0042185c
mov esi, eax
test esi, esi
je 0x41c353
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41c33f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x41c32e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x4b55a0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x4b679c]
call fcn.00421822
pop esi
pop edi
ret 4

Function at 0x41d833
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push dword [0x4b67e4]
call fcn.00421884
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41d8bc
push 8
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x41d8b2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x41d8b1
push dword [ebp + 0xc]
push ebx
call fcn.0041d8e7
mov ecx, eax
test ecx, ecx
je 0x41d8aa
cmp dword [ebp + 8], 0xffffffff
mov edi, esi
mov dword [esi], ecx
mov ax, word [ebx + 4]
mov word [esi + 4], ax
mov ax, word [ebx + 8]
mov word [esi + 6], ax
mov eax, dword [ebp + 0xc]
mov byte [esi + 8], al
mov byte [esi + 9], al
mov dword [esi + 0x10], 1
je 0x41d8aa
mov edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
test edi, edi
jne 0x41d8d1
cmp dword [ebp + 8], 0xffffffff
je 0x41d8c5
mov esi, dword [ebp + 8]
push esi
push dword [0x4b67e4]
call fcn.00421822
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x41f570
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x41f5a8
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f5a3
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.00414790
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x41ff59
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x41ff89
cmp esi, 2
je 0x41ff89
cmp esi, 4
je 0x41ff89
cmp esi, 8
je 0x41ff89
cmp esi, 0x18
je 0x41ff89
cmp esi, 0x20
je 0x41ff89
xor eax, eax
jmp 0x420156
mov ecx, dword [0x4b61e0]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x420152
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x4b6800]
cmp dword [eax], edx
je 0x41ffbc
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x41ffa3
jmp 0x420152
cmp dword [esp + 0x38], 0x20
jne 0x420129
mov eax, dword [eax + 8]
test eax, eax
je 0x41fffc
cmp esi, 0x20
je 0x41ffd8
cmp esi, 0xffffffff
jne 0x41fffc
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x420150
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x4b55a0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x420152
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x4200f4
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x4200d3
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
sub edi, 1
jne 0x420062
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
sub dword [esp + 0x24], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x42004f
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x4b6800]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x4b55a0]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x420152
cmp dword [esp + 0x38], 0x18
jne 0x420152
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28