joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30060be1
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.30060725

Function at 0x300610c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20c], 0
push ebx
mov ebx, dword [ebp + 8]
movzx eax, word [ebx]
push esi
push edi
push 0xff
lea edi, [ebx + 2]
push eax
mov dword [ebp - 0x210], edi
call fcn.3007f8d4
lea esi, [edi + eax*2]
mov eax, esi
sub eax, edi
push 0x5c
sar eax, 1
push eax
push edi
mov edi, dword [sym.imp.MSO.dll_Ordinal_834]
call edi
test eax, eax
je 0x3006119d
cmp eax, dword [ebp - 0x210]
jne 0x3006114d
mov ecx, esi
sub ecx, eax
sub ecx, 4
push 0x5c
sar ecx, 1
push ecx
add eax, 4
push eax
call edi
test eax, eax
je 0x3006119d
sub esi, eax
dec esi
push 0x5c
dec esi
sar esi, 1
push esi
add eax, 2
push eax
call edi
test eax, eax
je 0x3006119d
push 0x101
lea ecx, [ebp - 0x208]
sub eax, ebx
push ecx
sar eax, 1
push eax
push dword [ebp - 0x210]
call fcn.3007e07e
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x3006119d
cmp dword [ebp - 0x20c], 0xf
jb 0x3006119d
xor eax, eax
inc eax
jmp 0x3006119f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3020156b
leave
ret 4
Function at 0x30061f82
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
je 0x30061fbc
movzx eax, word [edi]
test ax, ax
jbe 0x30061fbc
movzx eax, ax
lea ecx, [eax + 1]
cmp ecx, esi
jge 0x30061fb8
and word [edi + eax*2 + 2], 0
lea eax, [edi + 2]
push eax
call fcn.30061e84
test eax, eax
je 0x30061fbc
xor eax, eax
jmp 0x30061ffd
push ebx
lea eax, [esi - 1]
lea ebx, [edi + 2]
push ebx
push eax
mov esi, 0xf9
push esi
mov dword [ebp + 0x10], eax
call fcn.3007f8d4
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
push esi
call fcn.3007f8d4
cmp dword [ebp + 0xc], eax
jle 0x30061fef
and word [ebx], 0
push ebx
call dword [sym.imp.MSO.dll_Ordinal_295]
mov word [edi], ax
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x3007526b
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x3020a0d8]
call dword [sym.imp.USER32.dll_GetClipboardData]
pop ebp
ret 4

Function at 0x30076248
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x30225c58], 0
push ebx
mov ebx, dword [ebp + 8]
je 0x30076266
push ebx
call fcn.30075575
test eax, eax
je 0x3007630e
cmp ebx, 2
jne 0x30076272
call fcn.3007559f
mov ebx, eax
cmp ebx, 9
push edi
mov edi, dword [ebx*4 + 0x3020a0d8]
jne 0x3007628e
push 8
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x3007628e
push 8
pop edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push edi
call esi
test eax, eax
mov dword [ebp + 8], eax
je 0x3007630c
cmp edi, 8
jne 0x300762b1
cmp ebx, 0x2d
je 0x300762f2
push eax
call fcn.30076188
jmp 0x3007630c
cmp edi, 2
jne 0x300762f2
cmp dword [0x302ae620], 0
je 0x300762f2
push 9
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x300762f2
push 9
call esi
test eax, eax
je 0x300762f2
cmp ebx, 0x2d
jne 0x300762e5
push 0
push eax
push dword [ebp + 8]
call fcn.30075fd2
jmp 0x3007630c
push eax
push dword [ebp + 8]
call fcn.30076218
test eax, eax
jne 0x3007630c
push ebx
push dword [ebp + 8]
call fcn.30075ec8
cmp ebx, 0x24
jne 0x3007630c
test eax, eax
je 0x3007630c
push 1
push eax
call fcn.30054844
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x300812ab
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x3022b6ec]
jne 0x3008133f
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
call esi
test ax, ax
jge 0x300812d9
mov dword [ebp + 0xc], 8
jmp 0x300812dd
and dword [ebp + 0xc], 0
push 4
call esi
test ax, ax
push 0x10
pop edi
jge 0x300812ee
mov dword [ebp - 4], edi
jmp 0x300812f2
and dword [ebp - 4], 0
push 2
pop ebx
push ebx
call esi
test ax, ax
jl 0x300812ff
xor ebx, ebx
push edi
call esi
test ax, ax
jge 0x3008130c
push 4
pop edi
jmp 0x3008130e
xor edi, edi
push 1
call esi
xor ecx, ecx
test ax, ax
movzx eax, word [ebp + 0x10]
setl cl
shl eax, 0x10
or ecx, eax
movzx eax, word [ebp + 0xc]
or ecx, eax
movzx eax, word [ebp - 4]
or ecx, eax
movzx eax, bx
or ecx, eax
movzx eax, di
pop edi
or ecx, eax
pop esi
mov dword [ebp + 0x10], ecx
pop ebx
cmp dword [0x3022a470], 0
je 0x30081369
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.30081275
push dword [ebp + 0x14]
push eax
mov eax, dword [0x3022a470]
push 0x20a
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
leave
ret 0x10

Function at 0x30082227
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push 1
call fcn.3005b52d
mov eax, dword [0x30229f5c]
mov esi, dword [eax + 0x108]
push 0
push dword [esi + 8]
call fcn.3005aeaa
push 2
push dword [esi + 8]
call fcn.3005e56e
push dword [esi + 8]
call fcn.300a6cef
test eax, eax
jne 0x300822ae
mov eax, dword [0x30229f5c]
cmp esi, dword [eax + 0x108]
jne 0x30082274
push 1
push dword [esi + 8]
call fcn.300be1f1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x28]
and ecx, 0x700
cmp ecx, 0x500
jne 0x300822a1
push 2
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call fcn.3005e56e
mov eax, dword [0x3022b6d8]
cmp esi, dword [eax + 0x108]
je 0x300822b5
mov eax, dword [0x3022b6d8]
jmp 0x30082237
cmp dword [ebp + 8], 0
je 0x3008230c
mov eax, dword [0x30229f5c]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [eax + 0x108]
push dword [esi + 8]
call fcn.300a6cef
test eax, eax
jne 0x30082304
push dword [esi + 8]
call fcn.3005b996
test eax, eax
je 0x300822f7
mov eax, dword [esi + 8]
push 0
push dword [eax]
call edi
mov eax, dword [esi + 8]
push 8
push dword [eax]
call edi
mov eax, dword [0x3022b6d8]
cmp esi, dword [eax + 0x108]
je 0x3008230b
mov eax, dword [0x3022b6d8]
jmp 0x300822c7
pop edi
push 1
push dword [0x302ae65c]
call fcn.3005e56e
mov esi, 0x302adc2c
push 2
push dword [esi]
call fcn.3005e56e
add esi, 4
cmp esi, 0x302adc3c
jl 0x3008231e
pop esi
pop ebp
ret 4
Function at 0x30082358
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x208
mov eax, dword [0x3001d1b0]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
movzx edx, word [eax]
push edi
push 0x1ff
lea ecx, [esp + 0xd]
push ecx
push edx
add eax, 2
push eax
call dword [sym.imp.MSO.dll_Ordinal_836]
movzx edi, al
cmp edi, 0x10
mov byte [esp + 8], al
mov eax, dword [0x302089a8]
movzx ecx, word [eax + edi*2 - 2]
mov dword [esp + 4], ecx
mov ax, cx
jge 0x300823de
push ebx
mov ebx, dword [0x302089ac]
push esi
mov edx, 0x68
mov edi, edi
movzx ecx, byte [esp + edi + 0x10]
mov esi, 7
lea ebx, [ebx]
test cl, 0x40
je 0x300823cd
xor ax, word [ebx + edx*2]
add ecx, ecx
sub edx, 1
sub esi, 1
jne 0x300823c4
sub edi, 1
jne 0x300823b8
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
pop edi
xor ecx, esp
call fcn.3020156b
add esp, 0x208
ret 4

Function at 0x30082710
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x30082776
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x3008273b
test byte [0x302ad080], 0x40
je 0x3008273b
mov eax, dword [esp + 8]
push 1
push esi
push eax
call fcn.30082514
pop esi
ret 0xc
test ecx, ecx
mov eax, dword [0x30229d2c]
je 0x30082752
mov eax, dword [0x30225ce4]
sub eax, dword [0x3022bb40]
and eax, 0xf
mov ecx, dword [esp + 8]
mov dl, byte [eax + 0x3022bc58]
xor dl, byte [ecx]
add eax, 1
rol dl, 3
mov byte [ecx], dl
add ecx, 1
and eax, 0xf
sub esi, 1
jne 0x30082756
mov dword [0x30229d2c], eax
pop esi
ret 0xc
Function at 0x3009c562
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xff
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [eax + eax]
lea eax, [ebp + ecx - 0x208]
cmp word [eax - 2], 0x5c
jne 0x3009c59f
and word [eax - 2], 0
jmp 0x3009c5ad
mov word [eax], 0x5c
and word [ebp + ecx - 0x206], 0
push ebx
push esi
push edi
push 0x101
lea eax, [ebp - 0x208]
push eax
push 0x3022b8ec
call dword [sym.imp.MSO.dll_Ordinal_6873]
mov esi, dword [sym.imp.MSO.dll_Ordinal_6877]
push pe_nt_image_headers32
mov ebx, 0x3022a270
push ebx
lea eax, [ebp - 0x208]
push eax
call esi
mov edi, dword [sym.imp.MSO.dll_Ordinal_295]
lea eax, [ebp - 0x208]
push eax
call edi
mov dword [ebp - 0x410], eax
add eax, eax
push eax
lea eax, [ebp - 0x206]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.3002660a
mov ax, word [ebp - 0x410]
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x208]
push eax
call fcn.30061f1b
cmp dword [ebp + 8], 0
je 0x3009c76c
test eax, eax
jne 0x3009c774
push 0xff
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [eax + eax]
lea eax, [ebp + ecx - 0x40c]
cmp word [eax - 2], 0x5c
jne 0x3009c662
and word [eax - 2], 0
jmp 0x3009c670
mov word [eax], 0x5c
and word [ebp + ecx - 0x40a], 0
push 0x101
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x40c]
push eax
call esi
push 0x101
lea eax, [ebp - 0x40c]
push eax
push 0x3022b8bc
call dword [sym.imp.MSO.dll_Ordinal_6873]
push pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x40c]
push eax
call esi
lea eax, [ebp - 0x40c]
push eax
call edi
mov dword [ebp - 0x410], eax
add eax, eax
push eax
lea eax, [ebp - 0x40a]
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.3002660a
mov ax, word [ebp - 0x410]
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x40c]
push eax
call fcn.30061f1b
test eax, eax
jne 0x3009c774
push 0xff
lea eax, [ebp - 0x208]
push eax
push dword [0x302ae8dc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push eax
call fcn.300a45c3
lea ecx, [ebp - 6]
sub ecx, eax
sar ecx, 1
push ecx
push eax
push 0x3022b8ec
call esi
push pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp - 0x208]
push eax
call edi
mov esi, eax
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x206]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.3002660a
lea eax, [ebp - 0x208]
push eax
mov word [ebp - 0x208], si
call fcn.30061f1b
jmp 0x3009c777
test eax, eax
je 0x3009c774
xor eax, eax
jmp 0x3009c777
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3020156b
leave
ret 4
Function at 0x300a9897
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x300a9976
push edi
push dword [ebp + 0xc]
mov word [esi], di
push esi
call fcn.300624e1
test eax, eax
jne 0x300a98c2
mov word [esi], di
jmp 0x300a996d
push 1
push dword [ebp + 0xc]
push esi
call fcn.300624e1
test eax, eax
jne 0x300a996d
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.MSO.dll_Ordinal_1326]
mov edi, dword [sym.imp.MSO.dll_Ordinal_295]
push esi
call edi
mov ebx, eax
lea ecx, [ebx + ebx]
push ecx
lea eax, [esi + 2]
push eax
push esi
call fcn.3002660a
push 1
push dword [ebp + 0xc]
mov word [esi], bx
push esi
call fcn.300624e1
test eax, eax
jne 0x300a996c
push dword [ebp + 0xc]
push esi
call dword [sym.imp.MSO.dll_Ordinal_1367]
push esi
call edi
mov ebx, eax
lea eax, [ebx + ebx]
push eax
lea eax, [esi + 2]
push eax
push esi
call fcn.3002660a
mov word [esi], bx
mov ebx, dword [ebp + 0xc]
push 1
push ebx
push esi
call fcn.300624e1
test eax, eax
jne 0x300a996c
lea eax, [ebx - 1]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x300a994d
and word [esi], ax
push esi
call edi
mov edi, eax
lea eax, [edi + edi]
push eax
lea eax, [esi + 2]
push eax
push esi
call fcn.3002660a
push 1
push ebx
push esi
mov word [esi], di
call fcn.300624e1
pop ebx
movzx eax, word [esi]
and word [esi + eax*2 + 2], 0
pop edi
pop esi
pop ebp
ret 8

Function at 0x300ab041
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [0x302ae684]
test edi, edi
mov dword [esp + 0x10], edi
je 0x300ab0f6
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
nop
cmp byte [0x30225c90], 0
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
je 0x300ab0a9
cmp dword [0x302ae7d4], 0
je 0x300ab099
cmp dword [0x30209e20], 4
jne 0x300ab099
push 0xffffffffffffffff
push esi
push eax
push ebx
call fcn.3007d9c4
test eax, eax
jne 0x300ab0e8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push 0xffffffffffffffff
push esi
push eax
push ebx
call fcn.3007a97f
test eax, eax
je 0x300ab08f
jmp 0x300ab0e8
movzx ecx, word [eax]
cmp esi, ecx
jne 0x300ab0e8
movzx edi, word [ebx + esi*2 - 2]
movzx ecx, word [eax + esi*2]
movzx edx, cx
movzx ebp, di
xor edx, ebp
je 0x300ab0d1
cmp edx, 0x20
je 0x300ab0d1
or ecx, edi
cmp cx, 0x80
jb 0x300ab0e4
movzx ecx, word [eax]
push ecx
push esi
add eax, 2
push eax
push ebx
call fcn.3007da48
test eax, eax
jne 0x300ab100
mov edi, dword [esp + 0x10]
mov edi, dword [edi]
test edi, edi
mov dword [esp + 0x10], edi
jne 0x300ab061
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x300bf887
Capabilities:
Hide graphical window

Disassembly:
push 1
call fcn.30082227
mov eax, dword [0x3020a2bc]
test eax, eax
je 0x300bf8e2
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x84]
mov ecx, dword [0x3020a2bc]
mov edx, dword [ecx]
and eax, 0xffffffef
push eax
push ecx
call dword [edx + 0x80]
mov esi, 0x302adc2c
mov eax, dword [esi]
test eax, eax
je 0x300bf8d6
cmp dword [eax], 0
je 0x300bf8d6
test word [eax + 0x28], 0x8000
jne 0x300bf8d6
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
add esi, 4
cmp esi, 0x302adc38
jle 0x300bf8b9
pop esi
push 1
call fcn.3005b4e2
push 1
call fcn.3011b39c
ret
Function at 0x300d5c99
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x12]
push edi
movsx edi, word [esi + 0x10]
shr edi, 3
dec edi
test edi, edi
jg 0x300d5ccd
mov eax, dword [ebp + 0xc]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [eax]
movsx eax, word [esi + 0x12]
push eax
call fcn.300d56c0
mov word [esi + 0x12], ax
jmp 0x300d5d04
lea esi, [eax + 2]
mov eax, dword [ebp + 0xc]
push 0
push dword [ebp + 0x14]
dec edi
push dword [ebp + 0x10]
push dword [eax]
mov ax, word [esi]
add ax, ax
movsx eax, ax
sar eax, 1
push eax
call fcn.300d56c0
mov cx, word [esi]
xor cx, ax
and cx, 0x7fff
xor word [esi], cx
add esi, 8
test edi, edi
jg 0x300d5cd0
xor eax, eax
pop edi
inc eax
pop esi
pop ebp
ret 0x10
Function at 0x30103ba1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov eax, edi
sar eax, 0x10
test ax, ax
je 0x30103c58
test byte [edi], 8
jne 0x30103c58
push esi
lea esi, [edi + 0x20]
movzx eax, word [esi]
push 1
lea eax, [eax + eax + 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.300ac978
test eax, eax
je 0x30103c57
movzx eax, word [esi]
inc eax
inc eax
push eax
push dword [ebp + 8]
push esi
call fcn.3007e1aa
mov esi, dword [edi + 0x14]
push edi
call fcn.3007b1bb
mov eax, dword [0x302ae8d4]
test eax, eax
je 0x30103c04
cmp dword [eax + 0x14], edi
jne 0x30103c04
and dword [eax + 0x14], 0
mov edi, dword [0x3022b710]
push 0
call fcn.30082343
mov eax, dword [ebp + 8]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x30103c2b
push dword [ebp + 8]
push esi
call fcn.3007b562
push edi
call fcn.30082343
push 0
push 0x78736d66
call dword [sym.imp.MSO.dll_Ordinal_6848]
neg esi
sbb esi, esi
add esi, 0x100a4
push esi
call fcn.30103713
push dword [ebp + 8]
call dword [sym.imp.MSO.dll_Ordinal_652]
pop esi
pop edi
pop ebp
ret 4

Function at 0x30105046
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x3001d1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x302ae774]
mov ecx, dword [eax + 0xc]
push esi
push edi
mov edi, dword [eax]
lea edx, [ecx + edi*4 - 4]
cmp edx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x420], edx
jb 0x30105181
push ebx
mov ebx, 0x3000182c
mov eax, dword [ebp - 0x420]
mov esi, dword [eax]
mov eax, dword [esi + 8]
dec edi
cmp eax, 5
je 0x301050bb
cmp eax, 0x40000001
jne 0x30105168
push 0
push 0x78636a77
call dword [sym.imp.MSO.dll_Ordinal_6848]
or dword [0x302ad08c], 0x20000
jmp 0x3010514c
push 0
push 0x78636a73
call dword [sym.imp.MSO.dll_Ordinal_6848]
test word [0x302ad084], 0x1000
jne 0x301050e4
push 0
push 0x100b5
call fcn.301037b3
cmp eax, 6
jne 0x3010514c
push 0x105
lea eax, [ebp - 0x41c]
push eax
call fcn.300e9f16
push 0x105
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.30061d68
cmp eax, 0xffffffff
je 0x3010512f
movzx eax, word [ebp - 0x210]
and word [ebp + eax*2 - 0x20e], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x3000183c
call dword [sym.imp.MSO.dll_Ordinal_1272]
push ebx
call dword [sym.imp.MSO.dll_Ordinal_1455]
and eax, 0xfffffff7
push eax
push ebx
call dword [sym.imp.MSO.dll_Ordinal_1612]
push esi
call dword [sym.imp.MSO.dll_Ordinal_652]
push 1
push edi
push dword [0x302ae774]
call dword [sym.imp.MSO.dll_Ordinal_320]
mov ecx, dword [ebp - 0x424]
sub dword [ebp - 0x420], 4
cmp dword [ebp - 0x420], ecx
jae 0x30105083
mov eax, dword [0x302ae774]
pop ebx
xor esi, esi
push esi
push eax
call dword [sym.imp.MSO.dll_Ordinal_519]
mov eax, dword [0x302ae774]
cmp dword [eax], esi
jne 0x301051a1
push eax
call dword [sym.imp.MSO.dll_Ordinal_653]
mov dword [0x302ae774], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.3020156b
leave
ret
Function at 0x301063ab
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, pe_nt_image_headers32
cmp dword [ebp + 8], esi
push edi
jle 0x301063be
mov dword [ebp + 8], esi
mov ebx, dword [ecx + 0x40]
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x301063d0
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jmp 0x30106405
cmp ebx, esi
jle 0x30106405
mov edi, dword [ebp + 0xc]
mov eax, esi
sub eax, dword [ebp + 8]
cdq
sub eax, edx
mov edx, dword [ebp + 8]
sar eax, 1
sub edi, eax
add eax, edx
add eax, dword [ebp + 0xc]
test edi, edi
jge 0x301063f5
sub eax, edi
xor edi, edi
jmp 0x30106401
cmp eax, ebx
jle 0x30106401
mov edx, ebx
sub edx, eax
add edi, edx
mov eax, ebx
sub eax, edi
mov ebx, eax
mov eax, dword [ecx + 0x48]
push esi
mov esi, 0x3022c818
push esi
push ebx
lea eax, [eax + edi*2]
push eax
call fcn.3002655b
sub dword [ebp + 0xc], edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x3010647f
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx eax, ax
push eax
call dword [sym.imp.MSO.dll_Ordinal_307]
mov ecx, dword [ebp + 0xc]
push edi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.MSO.dll_Ordinal_835]
lea ecx, [ecx + 0x3022c818]
push ecx
push eax
mov dword [ebp + 0x10], eax
call edi
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
push esi
push dword [ebp + 0x10]
call edi
push 0x200
push esi
push ebx
push esi
push dword [ebp + 0x10]
mov dword [0x3022c814], eax
mov dword [0x3022c80c], eax
call edi
mov ebx, eax
lea eax, [ebx + 0x20]
xor edi, edi
jmp 0x30106492
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [0x3022c814], eax
mov dword [0x3022c80c], eax
lea eax, [ebx + ebx + 0x20]
mov dword [0x3022c7fc], edi
pop edi
mov dword [0x3022c7f8], eax
mov eax, dword [ebp + 8]
pop esi
mov dword [0x3022c800], ebx
mov dword [0x3022c804], 0x20
mov dword [0x3022c808], eax
mov dword [0x3022c810], eax
pop ebx
pop ebp
ret 0x10
Function at 0x301084d3
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
push edi
call dword [sym.imp.MSO.dll_Ordinal_2392]
xor esi, esi
inc esi
push esi
call dword [sym.imp.MSO.dll_Ordinal_3077]
call dword [sym.imp.MSO.dll_Ordinal_1815]
and dword [0x3022ca34], 0xffffffef
mov ecx, eax
xor ebx, ebx
push ebx
mov dword [0x3022ca38], ecx
call fcn.301065dd
mov eax, dword [0x3022ca34]
and eax, 0xffffff3e
or eax, 8
cmp ecx, ebx
mov dword [0x3022ca34], eax
je 0x30108533
cmp dword [ecx], ebx
je 0x30108533
push ebx
call dword [ecx + 0xb0]
mov ecx, dword [0x3022ca38]
xor eax, eax
cmp dword [0x30225c78], ebx
mov edi, 0x3022ca1c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x30108608
cmp ecx, ebx
je 0x30108555
cmp dword [ecx], ebx
mov dword [ebp - 8], esi
jne 0x30108558
mov dword [ebp - 8], ebx
xor eax, eax
cmp dword [0x30225c84], ebx
mov dword [0x3022c7f4], ebx
sete al
mov dword [0x3022ca2c], ebx
inc eax
shl ax, 0xa
or ax, 4
movzx edi, ax
lea eax, [ebp - 0xa8]
push eax
push 0x28
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor esi, esi
cmp eax, ebx
mov dword [ebp - 4], eax
jle 0x301085b4
cmp dword [ebp - 8], ebx
jne 0x301085d0
push dword [ebp + esi*4 - 0xa8]
call fcn.3007fcf6
test eax, eax
je 0x301085da
mov eax, dword [ebp + esi*4 - 0xa8]
mov dword [0x3022ca2c], eax
xor esi, esi
cmp dword [ebp - 4], ebx
jle 0x30108608
cmp dword [ebp - 8], ebx
jne 0x301085e2
push dword [ebp + esi*4 - 0xa8]
call fcn.3007fcf6
test eax, eax
jmp 0x301085f2
cmp word [ebp + esi*4 - 0xa8], di
je 0x301085a8
inc esi
cmp esi, dword [ebp - 4]
jl 0x30108593
jmp 0x301085b4
mov ax, word [ebp + esi*4 - 0xa8]
and ax, 0x3ff
cmp ax, 9
je 0x301085fc
inc esi
cmp esi, dword [ebp - 4]
jl 0x301085bb
jmp 0x30108608
mov eax, dword [ebp + esi*4 - 0xa8]
mov dword [0x3022c7f4], eax
call fcn.301074b5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30108635
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
push ebx
push esi
push edi
lea edi, [eax + ecx*2 + 2]
lea edx, [eax + 2]
mov dword [ebp - 4], edi
mov esi, edx
jmp 0x3010865c
cmp cx, 0x2c
je 0x3010866a
cmp esi, edi
jae 0x30108664
inc esi
inc esi
movzx ecx, word [esi]
test cx, cx
jne 0x30108650
cmp word [esi], 0x2c
jne 0x30108688
mov ecx, esi
sub ecx, eax
dec ecx
dec ecx
sar ecx, 1
inc esi
inc esi
test ecx, ecx
jle 0x30108688
mov edi, dword [ebp + 8]
push 0x20
push edi
push ecx
push edx
call fcn.3007e0b4
mov word [edi], ax
mov edi, 0x302ad470
mov ebx, 0xffff8001
mov ecx, edi
mov dword [ebp + 0xc], ebx
call fcn.3013e79a
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.3002cb71
test eax, eax
je 0x301086bd
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x30108730
mov ecx, dword [ebp + 8]
imul eax, eax, 0x14
mov dword [ecx + 0x40], eax
jmp 0x30108730
mov edx, dword [ebp + 0xc]
cmp edx, ebx
je 0x30108730
test edx, edx
jl 0x30108730
lea eax, [esi + edx*2]
lea ecx, [eax + 2]
cmp ecx, dword [ebp - 4]
jae 0x30108730
cmp word [eax], 0x2e
movzx ecx, word [ecx]
mov dword [ebp - 4], ecx
jne 0x30108730
add ecx, 0xffffffd0
cmp cx, 9
ja 0x30108730
and word [eax], 0
mov ecx, edi
mov ebx, edx
call fcn.3013e79a
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.3002cb71
test eax, eax
je 0x3010872a
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffff8001
je 0x3010872a
movzx eax, word [ebp - 4]
imul ecx, ecx, 0x14
sub eax, 0x30
imul eax, eax, 0x14
cdq
push 0xa
pop edi
idiv edi
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], eax
mov word [esi + ebx*2], 0x2e
mov eax, dword [ebp + 8]
cmp word [eax], 0
pop edi
pop esi
pop ebx
je 0x30108747
cmp dword [eax + 0x40], 0
je 0x30108747
xor eax, eax
inc eax
jmp 0x30108749
xor eax, eax
leave
ret 8