joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b17e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565118
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.0040757d
lea eax, [ebp - 0x28]
push eax
call fcn.004b1e00
mov edi, eax
add esp, 0x1c
lea eax, [ebp + 8]
cmp eax, edi
je 0x4b187a
cmp dword [ebp + 0x1c], 8
jb 0x4b185d
push dword [ebp + 8]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.004408e4
cmp dword [ebp - 0x14], 8
jb 0x4b188b
push dword [ebp - 0x28]
call fcn.0052558c
add esp, 4
cmp dword [ebp + 0x18], 0
je 0x4b18ee
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b18ee
cmp dword [esi], 0
je 0x4b18bf
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x2c]
call fcn.0044460a
mov esi, 1
jmp 0x4b18f0
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.0040757d
mov ecx, esi
call fcn.004b0dd0
mov esi, eax
jmp 0x4b18f0
xor esi, esi
cmp dword [ebp + 0x1c], 8
jb 0x4b1901
push dword [ebp + 8]
call fcn.0052558c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4b49d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4b49e5
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x70]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4b49f5
push eax
call edi
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4b49ff
push eax
call edi
lea eax, [esi + 0x54]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
cmp dword [eax + 0x14], 8
jb 0x4b4a1f
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x6c], eax
cmp eax, 0xffffffff
jne 0x4b4a4f
mov dword [esi + 0x6c], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov edi, dword [ebp + 8]
push 0
push edi
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x70], eax
test eax, eax
je 0x4b4a47
push edi
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
pop edi
mov dword [esi + 0x74], eax
pop esi
pop ebp
ret 4
Function at 0x4b7b90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5656b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b38f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
xor eax, eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], eax
mov byte [esi + 0x30], al
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 4], eax
push 0xffffffffffffffff
mov dword [ebp - 4], eax
lea ecx, [esi + 0x54]
mov dword [esi], vtable.HttpWrapper::CHttpFileData.0
push eax
push dword [ebp + 8]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
mov word [ecx], ax
call fcn.0040757d
mov dword [esi + 0x6c], 0
mov eax, esi
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4b9b20
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5659e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x4b9b56
mov eax, dword [esi]
jmp 0x4b9b58
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b9c34
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.0040757d
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push 0x1a
xor eax, eax
mov dword [ebp - 0x30], 7
push str.tmp_123abc456def789hij.tmp
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00408659
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043eb25
add esp, 8
cmp dword [ebp - 0x30], 8
jb 0x4b9bd6
push dword [ebp - 0x44]
call fcn.0052558c
add esp, 4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4b9c03
xor esi, esi
jmp 0x4b9c21
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 1
cmp dword [ebp - 0x18], 8
jb 0x4b9c32
push dword [ebp - 0x2c]
call fcn.0052558c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret 4

Function at 0x4ba090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [ebx], eax
cmp dword [ecx + 0x14], 8
mov dword [ebp + 8], edi
jb 0x4ba0b0
mov ecx, dword [ecx]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push ecx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4ba107
cmp dword [esi + 0x14], 8
mov edi, dword [ebp + 8]
jb 0x4ba0de
mov esi, dword [esi]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 4
push eax
push ebx
lea eax, [ebp - 4]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ba107
cmp dword [ebp - 4], 4
jne 0x4ba107
lea esi, [eax + 1]
jmp 0x4ba109
xor esi, esi
test edi, edi
je 0x4ba114
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ba120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5b38f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
lea edx, [ebp + 0xc]
mov dword [ebp - 4], 0
cmp eax, edx
je 0x4ba177
push 0xffffffffffffffff
mov ecx, edx
push 0
push ecx
mov ecx, eax
call fcn.0040757d
mov ecx, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], ebx
jb 0x4ba18e
mov esi, dword [esi]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x28]
push 0
push 0
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4ba29d
mov eax, dword [ebp + 0x28]
mov ebx, dword [ebp - 0x10]
and eax, 0x300
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
jb 0x4ba1cc
mov eax, dword [edi]
jmp 0x4ba1ce
mov eax, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ba29d
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4ba202
cmp eax, 2
jne 0x4ba29d
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
inc eax
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x24]
call fcn.004bb100
cmp dword [edi + 0x14], 8
jb 0x4ba240
mov edi, dword [edi]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
push esi
push edi
lea ecx, [ebp - 0x30]
call fcn.0044f384
test eax, eax
je 0x4ba259
xor edi, edi
jmp 0x4ba28e
cmp word [esi], 0
jne 0x4ba263
xor ecx, ecx
jmp 0x4ba27f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4ba270
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ba270
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x18]
push esi
call fcn.00408659
mov edi, 1
test esi, esi
je 0x4ba29f
push esi
call fcn.0052558c
add esp, 4
jmp 0x4ba29f
xor edi, edi
test ebx, ebx
je 0x4ba2aa
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x20], 8
jb 0x4ba2bb
push dword [ebp + 0xc]
call fcn.0052558c
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ba2d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp dword [eax + 0x14], 8
mov dword [ebp + 8], esi
jb 0x4ba2e8
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0
push dword [ebp + 0x18]
push 0
push 0
push 0
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4ba338
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x4ba317
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4ba338
lea edi, [eax + 1]
jmp 0x4ba33a
xor edi, edi
test esi, esi
je 0x4ba345
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ba350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x28]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], edi
jb 0x4ba36e
mov eax, dword [eax]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 4]
push edx
push 0
push dword [ebp + 0x2c]
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4ba3de
cmp dword [ebp + 0x24], 8
lea edx, [ebp + 0x10]
mov edi, dword [ebp - 4]
cmovae edx, dword [ebp + 0x10]
cmp dword [esi + 0x14], 8
jb 0x4ba3a3
mov esi, dword [esi]
test edx, edx
je 0x4ba3de
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ba3b0
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
test eax, eax
jne 0x4ba3de
lea esi, [eax + 1]
jmp 0x4ba3e0
xor esi, esi
test edi, edi
je 0x4ba3eb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x24], 8
jb 0x4ba3fc
push dword [ebp + 0x10]
call fcn.0052558c
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4baed0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x565c50
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5b38f0]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov eax, dword [0x5b38f0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x40]
mov dword [esp + 0x68], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], VariantClear
call fcn.004ba470
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x4baf47
mov esi, dword [esi]
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
cmp word [esi], ax
jne 0x4baf67
xor ecx, ecx
jmp 0x4baf7f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4baf70
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.00408659
mov byte [esp + 0x68], 1
lea edx, [esp + 0x40]
cmp dword [esp + 0x54], 8
mov dword [esp + 0x24], 7
cmovae edx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
cmp word [edx], ax
jne 0x4bafbd
xor ecx, ecx
jmp 0x4bafd1
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bafc2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00408659
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
mov dword [esp + 8], 0
jae 0x4baff3
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push 0x20006
push 0
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bb03b
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
mov esi, dword [esp + 8]
cmovae eax, dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4bb0c2
test esi, esi
je 0x4bb03b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp dword [esp + 0x24], 8
jb 0x4bb050
push dword [esp + 0x10]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
jb 0x4bb07a
push dword [esp + 0x28]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
cmp dword [esp + 0x54], 8
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
jb 0x4bb0a4
push dword [esp + 0x40]
call fcn.0052558c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4bb0cd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x4bb03d
Function at 0x4c0800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566430
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x58]
cmp eax, ecx
je 0x4c089a
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.0040757d
lea eax, [ebp - 0x40]
cmp eax, ebx
je 0x4c08ad
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.0040757d
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x4c08c0
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.0040757d
push 0x5bb624
mov dword [ebp - 0x70], 0x5bb624
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004c1560
cmp dword [esi + 0xc], 0
jne 0x4c0911
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x4bf210
push 0
push 0
mov dword [esi + 0x10], eax
call fcn.00526b46
add esp, 0x18
mov dword [esi + 0xc], eax
push 0x5bb624
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x6c]
call fcn.004c0780
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4db19f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, edx
mov dword [ebp - 8], ecx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4db22f
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4db22f
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4db228
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4db221
push ebx
push edi
push eax
call fcn.00527280
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4db21a
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.004dab0e
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4db236
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x4db2c1
push ebx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jle 0x4db2c0
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], 0xff
push esi
and dword [ebp - 4], 0
test eax, eax
jle 0x4db2b9
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
imul ecx, dword [ebp - 4]
imul eax, ebx
cdq
and edx, 7
lea esi, [edx + eax]
sar esi, 3
add esi, ecx
add esi, dword [edi + 8]
movzx ecx, byte [esi + 3]
movzx eax, byte [esi]
imul eax, ecx
cdq
idiv dword [ebp - 8]
mov byte [esi], al
movzx eax, byte [esi + 1]
imul eax, ecx
cdq
idiv dword [ebp - 8]
mov byte [esi + 1], al
movzx eax, byte [esi + 2]
imul eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov ecx, dword [ebp - 4]
inc ecx
mov byte [esi + 2], al
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x4db25f
inc ebx
cmp ebx, dword [edi + 0xc]
jl 0x4db257
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4dbc0d
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
push esi
movzx eax, dx
mov esi, ecx
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
shr edx, 0x10
mov dword [ebp - 4], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004dbd50
mov edi, eax
test edi, edi
jne 0x4dbc54
push esi
push 0x4dbf8b
call dword [sym.imp.USER32.dll_EnumWindows]
jmp case.default.0x4dbc65
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [edi - 1]
cmp eax, 7
ja case.default.0x4dbc65
jmp dword [eax*4 + 0x4dbcf1]
push dword [esi + 0x98]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp edi, 2
setne al
add eax, 0xf001
jmp 0x4dbcd3
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf006
cmp edi, 1
lea ecx, [eax - 3]
jmp 0x4dbcd0
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf008
cmp edi, 5
lea ecx, [eax - 4]
jmp 0x4dbcd0
push dword [esi + 0xa4]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf007
cmp edi, 6
lea ecx, [eax - 2]
cmove eax, ecx
push 0
push eax
push 0x112
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4dc6f2
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x567fbf
call fcn.0052eb20
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.004dc930
xor ecx, ecx
lea eax, [ebp - 0x44]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x30], 8
push 3
cmovae eax, dword [ebp - 0x44]
push ecx
inc ecx
push ecx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dc7c5
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.004dc930
lea ecx, [ebp - 0x44]
call fcn.004dcdb1
test al, al
jne 0x4dc792
lea ecx, [ebp - 0x2c]
call fcn.004dcdb1
test al, al
je 0x4dc792
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
push 0
cmovae ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4dc792
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00403236
cmp esi, 0xffffffff
je 0x4dc7ff
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x4dc7f8
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
push 0
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4dc7f8
cmp dword [ebp - 0x48], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x44]
push 0
inc eax
push eax
call fcn.00403236
mov al, bl
call fcn.0052eacf
ret

Function at 0x4dc815
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x567fec
call fcn.0052eb20
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.004dc930
xor ecx, ecx
lea eax, [ebp - 0x44]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x30], 8
push 2
cmovae eax, dword [ebp - 0x44]
push ecx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dc896
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.004dc930
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00403236
cmp esi, 0xffffffff
je 0x4dc8be
push 0
lea eax, [ebp - 0x48]
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4dc8b7
cmp dword [ebp - 0x48], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x44]
push 0
inc eax
push eax
call fcn.00403236
mov al, bl
call fcn.0052eacf
ret