joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300dd82b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [section..cdata]
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 0x300dd866
and word [eax - 2], 0
jmp 0x300dd874
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 0x301de2a0
call dword [sym.imp.MSO.DLL_Ordinal_6873]
mov esi, dword [sym.imp.MSO.DLL_Ordinal_6877]
mov ebx, 0x100
push ebx
mov edi, 0x301e7860
push edi
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp - 0x208]
push eax
call fcn.3001225f
lea eax, [ebp - 0x208]
push eax
call fcn.300b0801
cmp dword [ebp + 8], 0
je 0x300dd9b7
test eax, eax
jne 0x300dd9bf
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 0x300dd8fd
and word [eax - 2], 0
jmp 0x300dd90b
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 0x301de260
call dword [sym.imp.MSO.DLL_Ordinal_6873]
push ebx
push edi
lea eax, [ebp - 0x40c]
push eax
call esi
lea eax, [ebp - 0x40c]
push eax
call fcn.3001225f
lea eax, [ebp - 0x40c]
push eax
call fcn.300b0801
test eax, eax
jne 0x300dd9bf
push 0xff
lea eax, [ebp - 0x208]
push eax
push dword [0x301dec00]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push eax
call fcn.3000d602
lea ecx, [ebp - 6]
sub ecx, eax
sar ecx, 1
push ecx
push eax
push 0x301de2a0
call esi
push ebx
push edi
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp - 0x208]
push eax
call fcn.3001225f
lea eax, [ebp - 0x208]
push eax
call fcn.300b0801
jmp 0x300dd9c2
test eax, eax
je 0x300dd9bf
xor eax, eax
jmp 0x300dd9c2
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.30056b36
leave
ret 4
Function at 0x300e4e5f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [0x301dec0c]
test edi, edi
mov dword [esp + 0x10], edi
je 0x300e4f14
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
nop
cmp byte [0x301e4d00], 0
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
je 0x300e4ec7
cmp dword [0x301debf8], 0
je 0x300e4eb7
cmp dword [0x301e3340], 4
jne 0x300e4eb7
push 0xffffffffffffffff
push esi
push eax
push ebx
call fcn.30055c94
test eax, eax
jne 0x300e4f06
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.300c534b
test eax, eax
je 0x300e4ead
jmp 0x300e4f06
movzx ecx, word [eax]
cmp esi, ecx
jne 0x300e4f06
mov di, word [ebx + esi*2 - 2]
mov cx, word [eax + esi*2]
movzx edx, cx
movzx ebp, di
xor edx, ebp
je 0x300e4eef
cmp edx, 0x20
je 0x300e4eef
or ecx, edi
cmp cx, 0x80
jb 0x300e4f02
movzx ecx, word [eax]
push ecx
push esi
add eax, 2
push eax
push ebx
call fcn.3000e159
test eax, eax
jne 0x300e4f1e
mov edi, dword [esp + 0x10]
mov edi, dword [edi]
test edi, edi
mov dword [esp + 0x10], edi
jne 0x300e4e7f
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 0x3011806c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..cdata]
push esi
push edi
mov edi, dword [0x301ddacc]
push 1
mov esi, 0x80000000
push esi
push 0x301180f4
push 0x3011810c
mov dword [ebp - 4], eax
call fcn.30004ab2
cmp eax, esi
je 0x301180a5
test eax, eax
je 0x301180a5
xor eax, eax
jmp 0x301180e6
push 8
lea eax, [ebp - 0x14]
push eax
push 5
push dword [0x301ddad0]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x301180db
mov ecx, dword [ebp - 0x14]
xor edi, edi
xor eax, eax
jmp 0x301180d6
imul edi, edi, 0xa
movzx ecx, cx
inc eax
lea edi, [edi + ecx - 0x30]
mov cx, word [ebp + eax*2 - 0x14]
test cx, cx
jne 0x301180c6
xor eax, eax
cmp edi, dword [0x301ddacc]
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.30056b36
leave
ret
Function at 0x30122f01
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
cmp word [ebp + 0xa], 0
je 0x30122fc5
push edi
mov edi, dword [ebp + 8]
test byte [edi], 8
jne 0x30122fc4
push esi
lea esi, [edi + 0x1c]
movzx eax, word [esi]
push 1
push 1
lea eax, [eax + eax + 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.30055888
test eax, eax
je 0x30122fc3
movzx eax, word [esi]
inc eax
inc eax
push eax
push dword [ebp + 8]
push esi
call fcn.30032768
mov esi, dword [edi + 0x10]
push edi
call fcn.300471f3
mov eax, dword [0x301e491c]
test eax, eax
je 0x30122f67
cmp dword [eax + 0x14], edi
jne 0x30122f67
and dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
mov edi, dword [0x301df188]
and dword [0x301df188], 0
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x30122f8e
push dword [ebp + 8]
push esi
call fcn.300c5b89
push 0
push 0x78736d66
mov dword [0x301df188], edi
call dword [sym.imp.MSO.DLL_Ordinal_6848]
neg esi
sbb esi, esi
add esi, 0x100a4
push esi
call fcn.30122a44
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
call dword [sym.imp.MSO.DLL_Ordinal_957]
pop esi
pop edi
pop ebp
ret 4

Function at 0x30123b37
Capabilities:
Delete file

Disassembly:
sub esp, 0x41c
mov eax, dword [section..cdata]
push ebx
push ebp
mov dword [esp + 0x420], eax
mov eax, dword [0x301dec10]
mov ebp, dword [eax + 0xc]
push esi
push edi
movzx edi, word [eax]
lea ebx, [ebp + edi*4 - 4]
jmp 0x30123c45
mov esi, dword [ebx]
mov ecx, dword [esi + 8]
dec edi
cmp ecx, 5
je 0x30123b91
cmp ecx, 0x40000001
jne 0x30123c42
push 0
push 0x30356765
call dword [sym.imp.MSO.DLL_Ordinal_6848]
or byte [0x301e4962], 2
jmp 0x30123c20
push 0
push 0x30356764
call dword [sym.imp.MSO.DLL_Ordinal_6848]
test byte [0x301e495a], 1
jne 0x30123bb8
push 0
push 0x100b5
call fcn.30122b32
cmp eax, 6
jne 0x30123c20
push 0x105
lea eax, [esp + 0x220]
push eax
call fcn.3010f2a8
push 0x105
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x224]
push eax
call fcn.300b0863
cmp eax, 0xffffffff
je 0x30123bfc
movzx eax, word [esp + 0x10]
and word [esp + eax*2 + 0x12], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x4004
call dword [sym.imp.MSO.DLL_Ordinal_1272]
push 0x4003
call dword [sym.imp.MSO.DLL_Ordinal_1455]
and al, 0xf7
push eax
push 0x4003
call dword [sym.imp.MSO.DLL_Ordinal_1612]
mov eax, dword [esi + 0x10]
add eax, 0x14
push eax
push esi
call dword [sym.imp.MSO.DLL_Ordinal_957]
push 1
push edi
push dword [0x301dec10]
call dword [sym.imp.MSO.DLL_Ordinal_320]
mov eax, dword [0x301dec10]
sub ebx, 4
cmp ebx, ebp
jae 0x30123b61
xor esi, esi
push esi
push eax
call dword [sym.imp.MSO.DLL_Ordinal_519]
mov eax, dword [0x301dec10]
cmp word [eax], si
jne 0x30123c6e
push eax
call dword [sym.imp.MSO.DLL_Ordinal_653]
mov dword [0x301dec10], esi
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
call fcn.30056b36
add esp, 0x41c
ret
Function at 0x30126ca7
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, 0x100
cmp dword [ebp + 8], esi
push edi
jle 0x30126cba
mov dword [ebp + 8], esi
mov ebx, dword [ecx + 0x40]
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x30126ccc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jmp 0x30126d01
cmp ebx, esi
jle 0x30126d01
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 0x30126cf1
sub eax, edi
xor edi, edi
jmp 0x30126cfd
cmp eax, ebx
jle 0x30126cfd
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, 0x301e613c
push esi
push ebx
lea eax, [eax + edi*2]
push eax
call fcn.30007ae4
sub dword [ebp + 0xc], edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x30126d78
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
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 + 0x301e613c]
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 [0x301e6138], eax
mov dword [0x301e6130], eax
call edi
mov ebx, eax
lea eax, [ebx + 0x20]
xor edi, edi
jmp 0x30126d8b
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [0x301e6138], eax
mov dword [0x301e6130], eax
lea eax, [ebx + ebx + 0x20]
mov dword [0x301e6120], edi
pop edi
mov dword [0x301e611c], eax
mov eax, dword [ebp + 8]
pop esi
mov dword [0x301e6124], ebx
mov dword [0x301e6128], 0x20
mov dword [0x301e612c], eax
mov dword [0x301e6134], eax
pop ebx
pop ebp
ret 0x10
Function at 0x30132a3c
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [esp + 0xc], edi
je 0x30132a94
cmp dword [0x301e4790], edi
je 0x30132aba
cmp dword [0x301e35f4], edi
jne 0x30132aba
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push eax
push dword [0x301dec00]
push dword [0x301ddb4c]
push 2
call edi
mov dword [0x301e35f4], eax
call esi
push eax
push dword [0x301dec00]
push dword [0x301ddb50]
push 0xffffffffffffffff
call edi
mov dword [0x301e35c8], eax
jmp 0x30132aba
mov eax, dword [0x301e35f4]
cmp eax, edi
je 0x30132aba
mov esi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push eax
call esi
push dword [0x301e35c8]
call esi
mov dword [0x301e35f4], edi
mov dword [0x301e35c8], edi
pop edi
pop esi
ret 4

Function at 0x301469b8
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esp + 4]
call fcn.30146894
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
push ecx
push 0
push dword [esp + 0xc]
call fcn.30145661
ret 4
Function at 0x301528cd
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x10c
mov eax, dword [section..cdata]
mov dword [ebp + 0x58], eax
mov eax, dword [0x301e4ce8]
and eax, 0x2000000
neg eax
sbb eax, eax
and eax, 0xc
add eax, 0x401
mov word [ebp - 0xb0], ax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x64]
push esi
lea esi, [ebp - 0xb0]
mov dword [ebp - 0xa4], eax
call fcn.301525c4
test eax, eax
je 0x30152934
mov eax, esi
push eax
call fcn.30152597
test eax, eax
jne 0x3015293b
xor eax, eax
jmp 0x301529fd
cmp dword [ebp + 0x78], 0
push 0x20
pop esi
je 0x3015295f
cmp word [ebp - 0xc], si
lea eax, [ebp - 0xc]
jne 0x30152954
inc eax
inc eax
cmp word [eax], si
je 0x3015294d
push 0x1e
push dword [ebp + 0x78]
push eax
call fcn.30005197
cmp dword [ebp + 0x74], 0
je 0x30152980
cmp word [ebp - 0x5c], si
lea eax, [ebp - 0x5c]
jne 0x30152975
inc eax
inc eax
cmp word [eax], si
je 0x3015296e
push 0x1e
push dword [ebp + 0x74]
push eax
call fcn.30005197
cmp dword [ebp + 0x70], 0
je 0x301529a1
cmp word [ebp - 0x20], si
lea eax, [ebp - 0x20]
jne 0x30152996
inc eax
inc eax
cmp word [eax], si
je 0x3015298f
push 0x1e
push dword [ebp + 0x70]
push eax
call fcn.30005197
cmp dword [ebp + 0x7c], 0
je 0x301529fa
push 6
push dword [ebp - 0xa0]
call fcn.30055f82
push 7
pop ecx
add eax, 6
xor edx, edx
div ecx
push 0x1e
lea eax, [ebp - 0x98]
push eax
movzx eax, word [ebp - 0xb0]
add edx, 0x2a
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0x98], si
lea eax, [ebp - 0x98]
jne 0x301529ef
inc eax
inc eax
cmp word [eax], si
je 0x301529e8
push 0x1e
push dword [ebp + 0x7c]
push eax
call fcn.30005197
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x58]
pop esi
call fcn.30056b36
add ebp, 0x5c
leave
ret 0x1c
Function at 0x301a67a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..cdata]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x17
push esi
mov dword [ebp - 4], eax
call fcn.30020d10
push 1
call fcn.3002c96e
mov edi, eax
xor eax, eax
cmp byte [edi + 0x29], 0xff
setne al
push eax
lea eax, [esi + 0xc0]
push eax
call fcn.3012349f
xor eax, eax
cmp byte [edi + 0x2d], 0xff
setne al
push eax
push esi
call fcn.3012349f
push edi
call fcn.30046e58
push eax
lea eax, [esi + 0x90]
push eax
call fcn.3012349f
mov eax, dword [edi + 0x14]
neg eax
push eax
lea eax, [esi + 0xc]
push eax
call fcn.3001f8ba
push dword [edi + 0x18]
lea eax, [esi + 0x48]
push eax
call fcn.3001f8ba
xor eax, eax
cmp byte [edi + 0x31], 0xff
setne al
push eax
lea eax, [esi + 0xcc]
push eax
call fcn.3012349f
mov al, byte [edi]
shr eax, 3
and eax, 1
push eax
lea eax, [esi + 0xe4]
push eax
call fcn.3012349f
push dword [edi + 0x20]
lea eax, [esi + 0x18]
push eax
call fcn.3001f8ba
push dword [edi + 0x1c]
lea eax, [esi + 0x54]
push eax
call fcn.3001f8ba
mov eax, dword [edi + 0x24]
mov al, byte [eax + 0x1d5]
and eax, 1
push eax
lea eax, [esi + 0x60]
push eax
call fcn.3012349f
movzx eax, word [edi]
shr eax, 0xf
push eax
lea eax, [esi + 0xd8]
push eax
call fcn.3012349f
push dword [edi + 0x654]
lea eax, [esi + 0x24]
push eax
call fcn.3001f8ba
push dword [edi + 0x650]
lea eax, [esi + 0x9c]
push eax
call fcn.3001f8ba
push dword [edi + 0x648]
lea eax, [esi + 0xa8]
push eax
call fcn.3001f8ba
push dword [edi + 0x64c]
lea eax, [esi + 0x30]
push eax
call fcn.3001f8ba
mov ax, word [edi]
shr eax, 9
and eax, 1
push eax
lea eax, [esi + 0xfc]
push eax
call fcn.3012349f
push dword [edi + 0x66c]
lea eax, [esi + 0xb4]
push eax
call fcn.3001f8ba
mov ax, word [edi + 4]
and ah, 0x3f
cmp ax, 3
lea eax, [esi + 0xf0]
jne 0x301a690e
push dword [edi + 0x18]
jmp 0x301a6910
push 0
push eax
call fcn.3001f8ba
mov eax, dword [edi + 0x658]
inc eax
push eax
lea eax, [esi + 0x3c]
push eax
call fcn.3001f8ba
push edi
call fcn.3016d478
push eax
lea eax, [esi + 0x6c]
push eax
call fcn.3001f8ba
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.3016d4c1
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x78]
push eax
call fcn.3012367f
push edi
call fcn.3016d4a6
push eax
add esi, 0x84
push esi
call fcn.3001f8ba
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.30056b36
leave
ret 4
Function at 0x301d7fce
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3f4]
sub esp, 0x474
mov eax, dword [section..cdata]
push edi
mov dword [ebp + 0x3f0], eax
push 0x105
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor edi, edi
cmp eax, edi
jne 0x301d8007
xor eax, eax
jmp 0x301d810f
cmp eax, 0x104
ja 0x301d802a
add eax, eax
lea ecx, [ebp + eax + 0x194]
cmp word [ecx], 0x5c
je 0x301d802a
mov word [ecx], 0x5c
mov word [ebp + eax + 0x196], di
push ebx
push esi
mov esi, 0x301d81c0
push 0x106
lea edx, [ebp + 0x194]
mov ecx, esi
call fcn.300018b7
push 8
push edi
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
jne 0x301d806a
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x301d80fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x301d81ac
push ebx
call esi
push 0x301d818c
push ebx
mov dword [ebp - 0x80], eax
call esi
cmp eax, edi
mov dword [ebp - 0x7c], eax
je 0x301d80fa
cmp dword [ebp + 0x3fc], edi
mov ebx, 0x301d8178
mov esi, 0x301d8128
je 0x301d80de
cmp dword [ebp - 0x80], edi
je 0x301d80fa
lea eax, [ebp + 0x3a0]
push eax
push dword [ebp + 0x3fc]
call dword [ebp - 0x80]
cmp eax, edi
jne 0x301d80d7
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push edi
lea eax, [ebp + 0x3a0]
push eax
push edi
push ebx
push esi
mov dword [ebp - 0x78], 0x104
call dword [ebp - 0x7c]
cmp eax, edi
je 0x301d80fe
cmp eax, 0x642
je 0x301d80fe
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push edi
push edi
push edi
push ebx
push esi
mov dword [ebp - 0x78], 0x104
call dword [ebp - 0x7c]
test eax, eax
je 0x301d80fe
xor eax, eax
jmp 0x301d810d
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x301dd898], eax
pop esi
pop ebx
mov ecx, dword [ebp + 0x3f0]
pop edi
call fcn.30056b36
add ebp, 0x3f4
leave
ret 4

Function at 0x301d8254
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [section..cdata]
push ebx
push esi
mov dword [ebp + 0x194], eax
lea eax, [ebp - 0x7c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x301d8310
push 0x80000002
mov dword [ebp - 0x7c], ebx
xor esi, esi
mov dword [ebp - 0x80], 0x208
mov word [ebp - 0x78], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x301d8374
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x7c], ebx
je 0x301d82c1
push dword [ebp - 0x7c]
call dword [entry0]
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x301d82e6
cmp eax, 0x208
ja 0x301d82e6
shr eax, 1
mov esi, eax
je 0x301d82e6
lea eax, [ebp + esi*2 - 0x7a]
cmp word [eax], 0x5c
je 0x301d82e6
dec esi
dec eax
dec eax
cmp esi, ebx
jne 0x301d82d9
mov edx, dword [ebp + 0x1a0]
lea ecx, [ebp - 0x78]
mov word [ebp + esi*2 - 0x78], bx
call fcn.301d81d0
mov ecx, dword [ebp + 0x194]
pop esi
pop ebx
call fcn.30056b36
add ebp, 0x198
leave
ret 4
Function at 0x301d8628
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push 0x300a8048
push 0x80000000
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x301d86c7
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x301d86b9
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x301d86e0
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x301d86b9
cmp dword [ebp + 8], esi
jne 0x301d86b9
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x301d86b9
cmp dword [ebp - 4], ebx
mov esi, dword [entry0]
je 0x301d86ab
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x301d86b5
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x301d86d7
cmp dword [ebp - 4], ebx
je 0x301d86c7
push dword [ebp - 4]
call dword [entry0]
cmp dword [ebp - 8], ebx
je 0x301d86d5
push dword [ebp - 8]
call dword [entry0]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x301d86f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x301e6384], 0
je 0x301d870b
mov eax, dword [0x301e6380]
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x301d8808
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x301d8762
lea eax, [ebp - 8]
push eax
push 0x301e6380
push 0
push 0
push dword [0x301e5ec8]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x301d8762
cmp dword [ebp - 8], 4
je 0x301d87a7
lea eax, [ebp - 4]
push eax
push ebx
xor ebx, ebx
push ebx
push 0x301d87cc
push edi
call esi
test eax, eax
jne 0x301d879f
push 4
pop esi
lea eax, [ebp - 8]
push eax
push 0x301e6380
push ebx
push ebx
push dword [0x301e5ec8]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x301d879f
cmp dword [ebp - 8], esi
je 0x301d87a9
mov dword [0x301e6380], ebx
jmp 0x301d87a9
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov esi, dword [0x301e6380]
mov byte [0x301e6384], 1
je 0x301d87c4
push dword [ebp - 4]
call dword [entry0]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424d40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x887490]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x38]
push esi
call fcn.00424e40
add esp, 4
mov ebp, eax
push dword [ebp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
movzx ecx, word [ebp + 8]
push 0
push ebp
push eax
push ecx
push 0
push esi
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, 0x4d42
mov word [esp + 0x18], ax
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x20]
push 0
push 0x80
push 2
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 0x14]
add ecx, 0xe
add eax, ecx
mov dword [esp + 0x26], eax
xor eax, eax
mov dword [esp + 0x2a], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp]
push 0
push 0
push 0xc0000000
lea eax, [eax + ecx*4]
add eax, 0xe
push ebx
mov dword [esp + 0x3e], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
push 0
lea eax, [esp + 0x14]
push eax
push 0xe
lea eax, [esp + 0x24]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0x20]
lea eax, [eax*4 + 0x28]
push eax
push ebp
push edi
call esi
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push dword [ebp + 0x14]
push ebx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov ecx, dword [esp + 0x20]
pop ebp
pop ebx
xor ecx, esp
call fcn.005091ef
add esp, 0x1c
ret