joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b0aad4
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41b0ab40
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp + 8]
cmp dword [edi + 0x2c], eax
jne 0x41b0ab38
lea eax, [ebp - 8]
push eax
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41b0fa86
add edi, 0x30
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jne 0x41b0ab38
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
mov eax, dword [0x41b28b68]
cmp eax, 0x41b28b68
je 0x41b0ab38
test dword [eax + 0x1c], 0x400000
je 0x41b0ab38
cmp byte [eax + 0x19], 2
jb 0x41b0ab38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x41b28b68]
push 0x41b027ac
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b0298a
jmp 0x41b0ab38
Function at 0x41b0b3ec
Capabilities:
Get file size

Disassembly:
test al, 0x20
jne 0x41b0e9f5
test al, 0x40
jne 0x41b0e9fe
mov dword [ebp + 0x14], edi
jmp 0x41b0b422
push 4
lea edi, [esi + 8]
push edi
push ebx
call sym.WINMM.dll_mmioRead
cmp eax, 4
je 0x41b0b50f
jmp 0x41b0ea2c
push dword [esi + 4]
call fcn.41b1e4e2
jmp 0x41b0b485
cmp eax, dword [edi]
jne 0x41b0b51a
jmp 0x41b0b54b
mov eax, 0x107
jmp 0x41b0b54d
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
test eax, 0xffffff8f
jne 0x41b0e9e5
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
je 0x41b0e9ed
test al, 0x10
je 0x41b0b2a7
mov eax, dword [esi]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0xc], edi
push ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x10], edi
cmp ebx, edi
je 0x41b0ea10
cmp dword [ebx + 4], 0x20534f44
je 0x41b0ea1a
push 8
push esi
push ebx
call sym.WINMM.dll_mmioRead
cmp eax, 8
jne 0x41b0ea2c
push 1
push edi
push ebx
call sym.WINMM.dll_mmioSeek
mov edi, eax
mov dword [esi + 0xc], edi
cmp edi, 0xffffffff
je 0x41b0b3dd
mov eax, dword [esi]
cmp eax, 0x6b72544d
je 0x41b0b3c3
cmp eax, 0x6468544d
je 0x41b0b3c3
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 8
push edi
call fcn.41b0b288
test eax, eax
jl 0x41b0ea2c
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push edi
call fcn.41b0a91e
test eax, eax
jl 0x41b0ea2c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41b0b4e7
mov ebx, dword [eax + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push dword [eax + 4]
push ebx
call fcn.41b0a91e
test eax, eax
jl 0x41b0ea2c
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jb 0x41b0ea2c
cmp eax, dword [ebp - 0x10]
jae 0x41b0ea2c
mov ebx, dword [ebp + 8]
cmp dword [ebp - 4], 0xffffffff
jne 0x41b0ea36
mov eax, dword [esi]
cmp eax, 0x46464952
je 0x41b0b3a9
cmp eax, 0x5453494c
je 0x41b0b3a9
lea edi, [esi + 8]
and dword [edi], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41b0b540
cmp eax, dword [esi]
je 0x41b0b540
push 0
push esi
push ebx
call sym.WINMM.dll_mmioAscend
test eax, eax
jne 0x41b0b54d
push 8
push esi
push ebx
call sym.WINMM.dll_mmioRead
cmp eax, 8
jne 0x41b0ea2c
xor edi, edi
jmp 0x41b0b453
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x41b0b3d0
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x10
push 0xa
pop eax
jmp 0x41b0b550
push 0xb
pop eax
jmp 0x41b0b54e
mov dword [ebp + 0x14], 0x46464952
jmp 0x41b0ea05
mov dword [ebp + 0x14], 0x5453494c
mov eax, dword [esi + 8]
mov dword [ebp + 0xc], eax
jmp 0x41b0b425
mov eax, 0x102
jmp 0x41b0b54d
push edi
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
jmp 0x41b0b441
mov eax, 0x109
jmp 0x41b0b54d
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
call fcn.41b0b288
test eax, eax
jl 0x41b0ea2c
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 8], ecx
jbe 0x41b0b4f1
mov eax, dword [esi]
cmp eax, 0x6b72544d
je 0x41b0ea6b
cmp eax, 0x6468544d
je 0x41b0ea6b
mov dword [esi + 4], ecx
jmp 0x41b0b4f1
push ecx
call fcn.41b1e4b3
mov dword [esi + 4], eax
jmp 0x41b0b4f1
Function at 0x41b19b17
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov eax, dword [0x41b28b68]
mov edi, 0x41b28b68
mov ebx, 0x400000
cmp eax, edi
je 0x41b19b52
test dword [eax + 0x1c], ebx
je 0x41b19b52
cmp byte [eax + 0x19], 5
jb 0x41b19b52
push dword [ebp + 8]
push 0x41b0bcc0
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02a79
call fcn.41b02f70
test eax, eax
jne 0x41b19b8b
mov eax, dword [0x41b28b68]
cmp eax, edi
je 0x41b19b81
test dword [eax + 0x1c], ebx
je 0x41b19b81
cmp byte [eax + 0x19], 1
jb 0x41b19b81
push 0x41b0bcc0
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
mov eax, 0x115
jmp 0x41b19c9c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x41b19bc9
mov eax, dword [0x41b28b68]
cmp eax, edi
je 0x41b19bbf
test dword [eax + 0x1c], ebx
je 0x41b19bbf
cmp byte [eax + 0x19], 1
jb 0x41b19bbf
push 0x41b0bcc0
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
mov eax, 0x133
jmp 0x41b19c9c
inc eax
mov dword [ebp - 4], eax
push esi
lea eax, [eax + eax + 0x18]
push eax
call fcn.41b0c674
mov esi, eax
test esi, esi
je 0x41b19c6e
lea ebx, [esi + 0x18]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41b19c2e
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push 0
push 0x3ca
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
push dword [0x41b282b0]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
jmp 0x41b19c5d
mov eax, dword [0x41b28b68]
cmp eax, edi
je 0x41b19c58
test dword [eax + 0x1c], 0x400000
je 0x41b19c58
cmp byte [eax + 0x19], 1
jb 0x41b19c58
push 0x41b0bcc0
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
mov edi, 0x133
push esi
push 0
push dword [0x41b28b30]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41b19c99
mov eax, dword [0x41b28b68]
cmp eax, edi
je 0x41b19c94
test dword [eax + 0x1c], ebx
je 0x41b19c94
cmp byte [eax + 0x19], 1
jb 0x41b19c94
push 0x41b0bcc0
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
mov edi, 0x108
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x41b19f2b
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0x803
push ebx
push esi
push edi
je 0x41b1a0c8
dec eax
je 0x41b1a031
sub eax, 0xc
je 0x41b1a00d
dec eax
je 0x41b19ffd
dec eax
je 0x41b19fb9
test byte [ebp + 0x10], 2
mov esi, dword [ebp + 0x18]
je 0x41b19fa3
cmp dword [esi + 0x14], 0x41b1c6c3
jne 0x41b19fa3
mov eax, dword [0x41b28b68]
cmp eax, 0x41b28b68
je 0x41b19f9a
test dword [eax + 0x1c], 0x400000
je 0x41b19f9a
cmp byte [eax + 0x19], 5
jb 0x41b19f9a
push 0x41b0bcc0
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetKeyState]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x38]
call sym.WINMM.dll_SendDriverMessage
jmp 0x41b1a0d6
test dword [ebp + 0x10], 0x100
mov edi, dword [ebp + 0x14]
je 0x41b19fca
mov eax, dword [edi + 4]
jmp 0x41b19fcf
mov eax, 0x41b1a0e8
mov ecx, dword [ebp + 0x10]
shr ecx, 1
not ecx
and ecx, 1
or ecx, 0x10000
push ecx
push 0
push eax
call sym.WINMM.dll_PlaySoundW
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffefa
add esi, 0x106
push edi
jmp 0x41b1a020
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.41b199b4
jmp 0x41b1a01b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.41b1c7aa
push dword [ebp + 0x14]
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 8]
push esi
call fcn.41b19982
jmp 0x41b1a0d8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 0x18]
cmp eax, dword [ecx + 0x30]
je 0x41b1a0b6
mov eax, dword [ecx]
lea edx, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x41b1a046
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 0xe]
cmp dword [ebp + 0x1c], ebx
jne 0x41b1a064
mov esi, 0x12f
jmp 0x41b1a0d8
push esi
call fcn.41b0c674
mov edi, eax
cmp edi, ebx
jne 0x41b1a077
mov eax, 0x108
jmp 0x41b1a0da
push 0x41b29d3c
push esi
push edi
call fcn.41b029b6
push 0x41b1a0e4
push esi
push edi
call fcn.41b02b3a
mov eax, dword [ebp + 0x18]
push dword [eax]
push esi
push edi
call fcn.41b02b3a
push ebx
push ebx
push ebx
push edi
call fcn.41b19b17
push edi
push ebx
push dword [0x41b28b30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41b1a0d8
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.41b1c3ba
jmp 0x41b1a0d6
push dword [ebp + 0x20]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.41b1d712
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x41b1c13f
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x41b28d84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x41b28b68]
cmp eax, 0x41b28b68
je 0x41b1c18b
test dword [eax + 0x1c], 0x400000
je 0x41b1c18b
cmp byte [eax + 0x19], 2
jb 0x41b1c18b
push edi
push 0x41b110a4
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02a79
push 0x21
push edi
call dword [sym.imp.ntdll.dll_wcschr]
mov esi, eax
pop ecx
pop ecx
mov ebx, 0x41b2a1b8
test esi, esi
je 0x41b1c1cc
cmp esi, edi
je 0x41b1c1cc
push 0x41b110b4
xor eax, eax
push 0x21
mov word [esi], ax
lea eax, [ebp - 0x48]
push eax
push ebx
push edi
push 0x41b070c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x21
pop ecx
mov word [esi], cx
test eax, eax
jne 0x41b1c212
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41b1c1d1
sub eax, edx
sar eax, 1
lea eax, [edi + eax*2]
mov ecx, eax
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 4
jl 0x41b1c212
xor edx, edx
inc edx
dec eax
dec eax
movzx ecx, word [eax]
cmp cx, 0x2f
je 0x41b1c212
cmp cx, 0x5c
je 0x41b1c212
cmp cx, 0x2e
je 0x41b1c225
cmp eax, edi
je 0x41b1c212
inc edx
cmp edx, 0x20
jle 0x41b1c1f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.41b028d6
leave
ret 0xc
cmp edx, 1
je 0x41b1c212
push dword [ebp + 0x10]
add eax, 2
push dword [ebp - 0x4c]
push ebx
push eax
push str.Mci_Extensions
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
neg eax
sbb eax, eax
neg eax
jmp 0x41b1c214
Function at 0x41b1cd56
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x64
pop esi
push 0xc8
call fcn.41b0c674
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x41b1cdc2
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x41b110b4
push esi
push ebx
push 0x41b2a1b8
push 0
push 0x41b070c8
call edi
xor ecx, ecx
cmp word [ebx], cx
je 0x41b1cdcc
lea edx, [esi - 2]
cmp eax, edx
jne 0x41b1cde4
push ebx
push ecx
push dword [0x41b28b30]
add esi, esi
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esi + esi]
push eax
call fcn.41b0c674
mov ebx, eax
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x41b1cd7d
mov eax, 0x108
jmp 0x41b1cf7e
push ebx
push ecx
push dword [0x41b28b30]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0x132
jmp 0x41b1cf7e
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.41b050d1
test eax, eax
jge 0x41b1ce03
mov esi, 0x136
jmp 0x41b1cf6b
mov esi, dword [ebp + 0x14]
jmp 0x41b1cebe
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], edx
mov ecx, esi
test ax, ax
je 0x41b1ce2b
movzx eax, ax
cmp ax, 0x20
je 0x41b1ce2b
inc ecx
inc ecx
movzx eax, word [ecx]
test ax, ax
jne 0x41b1ce1b
dec ecx
dec ecx
jmp 0x41b1ce41
cmp ax, 0x2f
je 0x41b1ce4a
cmp ax, 0x3a
je 0x41b1ce4a
dec ecx
dec ecx
cmp ecx, esi
jb 0x41b1ce4a
movzx eax, word [ecx]
cmp ax, 0x5c
jne 0x41b1ce2f
inc ecx
mov eax, edx
inc ecx
cmp word [eax], 0
je 0x41b1ce93
mov eax, ecx
sub eax, esi
mov bx, word [edx]
mov dx, word [ecx]
inc ecx
inc ecx
inc eax
mov word [ebp + 0xa], dx
mov edx, dword [ebp + 0x14]
inc eax
inc edx
mov dword [ebp - 8], eax
mov ax, word [ebp + 0xa]
inc edx
mov dword [ebp + 0x14], edx
cmp bx, ax
jne 0x41b1ce8e
mov eax, dword [ebp - 8]
mov ebx, eax
sar ebx, 1
cmp ebx, dword [ebp + 0x18]
jae 0x41b1ce8e
cmp word [edx], 0
je 0x41b1ce90
jmp 0x41b1ce58
dec ecx
dec ecx
mov ebx, dword [ebp - 4]
cmp word [edx], 0
jne 0x41b1cea8
movzx eax, word [ecx]
cmp ax, 0x20
je 0x41b1cf14
cmp ax, 0x2e
je 0x41b1cf14
mov ax, word [ebx]
inc ebx
inc ebx
test ax, ax
jne 0x41b1cea8
mov dword [ebp - 4], ebx
cmp word [ebx], ax
je 0x41b1cf66
push 0x41b110b4
push dword [ebp + 0x18]
push esi
push 0x41b2a1b8
push ebx
push 0x41b070c8
call edi
movzx eax, word [esi]
test ax, ax
jne 0x41b1ce0b
mov eax, dword [0x41b28b68]
cmp eax, 0x41b28b68
je 0x41b1cf0d
test dword [eax + 0x1c], 0x400000
je 0x41b1cf0d
cmp byte [eax + 0x19], 1
jb 0x41b1cf0d
push 0x41b110a4
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
mov esi, 0x10a
jmp 0x41b1cf6b
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.41b050d1
test eax, eax
jge 0x41b1cf62
mov eax, dword [0x41b28b68]
cmp eax, 0x41b28b68
je 0x41b1cdf9
test dword [eax + 0x1c], 0x400000
je 0x41b1cdf9
cmp byte [eax + 0x19], 1
jb 0x41b1cdf9
push 0x41b110a4
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
jmp 0x41b1cdf9
xor esi, esi
jmp 0x41b1cf6b
mov esi, 0x107
push dword [ebp - 0xc]
push 0
push dword [0x41b28b30]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x41b20b03
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0xc
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x41b20b25
push 2
pop eax
jmp 0x41b20bc9
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
cmp dword [ebp + 0xc], edi
je 0x41b20b4f
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi], eax
cmp eax, edi
jne 0x41b20b4f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x41b20b1d
push ebx
mov ebx, dword [esi]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x41b20ac3
push 0x200
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x41b20bb1
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x41b20b76
mov dword [ecx], ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41b28b68]
cmp eax, 0x41b28b68
je 0x41b20bad
test dword [eax + 0x1c], 0x400000
je 0x41b20bad
cmp byte [eax + 0x19], 2
jb 0x41b20bad
push dword [ebp - 4]
push 0x41b20bd0
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b0298a
xor eax, eax
jmp 0x41b20bc8
cmp dword [ebp + 0xc], edi
je 0x41b20bbe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 2
pop eax
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x41b22bf6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push 2
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push edi
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, edi
jne 0x41b22c89
cmp dword [ebp - 8], 1
jne 0x41b22c86
push dword [ebp - 4]
push edi
push dword [0x41b28b30]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x41b22c82
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 2
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, edi
jne 0x41b22c70
cmp dword [ebp - 8], 1
jne 0x41b22c6d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x41b22c89
push 2
pop ebx
push dword [ebp - 0xc]
push edi
push dword [0x41b28b30]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41b22c89
push 0xe
jmp 0x41b22c88
push 2
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x41b24f82
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x41b24f99
xor eax, eax
jmp 0x41b250cc
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x41b24fa9
push 0xb
pop eax
jmp 0x41b250cb
cmp dword [ebp + 8], 0xffff
jne 0x41b24fb6
or dword [ebp + 8], 0xffffffff
push esi
call fcn.41b04431
push dword [ebp + 8]
mov esi, 0x41b28820
push esi
call fcn.41b08f20
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41b24fdc
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], ebx
jmp 0x41b24fe8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], eax
and dword [ebp + 0x10], 0
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
push esi
call fcn.41b046f6
test eax, eax
jne 0x41b25023
mov eax, dword [ebp + 0x10]
push 0x41b29898
add eax, 0xec
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x41b25023
mov dword [ebp + 0xc], 6
jmp 0x41b250aa
push 1
push dword [ebp + 8]
call fcn.41b0422a
test eax, eax
jne 0x41b25097
push dword [0x41b28db0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [ebp + 8], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, eax
je 0x41b25064
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41b25064
test byte [eax + 0x50], 4
je 0x41b25064
lea eax, [ebx + 1]
push eax
push dword [0x41b28db0]
call edi
test ebx, ebx
je 0x41b25072
mov dword [0x41b29ce4], 1
push dword [ebp + 0xc]
push dword [ebp - 4]
push 4
push dword [ebp + 8]
push dword [0x41b280f8]
push esi
call fcn.41b0919b
push ebx
push dword [0x41b28db0]
mov dword [ebp + 0xc], eax
call edi
jmp 0x41b250aa
push dword [ebp + 0xc]
push dword [ebp - 4]
push 4
push dword [ebp + 8]
call fcn.41b0498c
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x41b250b8
push dword [ebp + 0x10]
call fcn.41b043f1
cmp dword [ebp - 8], 0
je 0x41b250c7
push dword [ebp + 8]
push esi
call fcn.41b0968d
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x41b31400
Capabilities:
Encode data using xor

Disassembly:
pop edi
mov eax, 0x54959a14
mov ecx, 0x6ba
xor byte [edi], al
inc edi
dec eax
loopne 0x41b3140b
call fcn.41b31424
call fcn.41b31400
jl 0x41b31430
add dl, byte [ecx + 0x10]
invalid
Function at 0x10003470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0xc], 1
je 0x10003493
mov eax, dword [ebp + 8]
push ecx
push 0
push 0x10003d30
mov dword [ecx + 4], eax
mov byte [ecx + 0xc], 1
call fcn.1001997d
add esp, 0xc
pop ebp
ret 4
Function at 0x10004840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029b36
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1005bbb0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.1001a5c0
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x10004904
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x10004904
call fcn.100020f0
mov esi, eax
jmp 0x100049f1
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10004927
call fcn.100020f0
jmp 0x100049e4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x10004945
call fcn.100020f0
jmp 0x100049e4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10004966
mov esi, 0x8007000e
jmp 0x100049e6
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.10001f20
jmp 0x10004990
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x100049a7
mov esi, 0x8007000e
jmp 0x100049e6
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x100049c7
call fcn.100020f0
jmp 0x100049e4
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.100046e0
mov esi, eax
test edi, edi
je 0x100049f1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10004a10
lea ecx, [ebp - 0x420]
call fcn.100029a0
lea ebx, [ebx]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10019adf
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100053c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x100053d9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100053e5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x100053e0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10005420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10005435
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x10005440
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005440
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc