joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4377a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4500c8]
cmp byte [eax + 0xc], 0
je 0x43790d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x437906
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x451af4], 0
jne 0x4377f4
push 0x437914
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43791c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451af4], eax
cmp dword [0x44fac8], 0
jne 0x4378ef
push 0x43792c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44fac8], eax
cmp dword [0x44fac8], 0
je 0x4378ef
push 0x437938
mov eax, dword [0x44fac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451af8], eax
push 0x437948
mov eax, dword [0x44fac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451afc], eax
push 0x43795c
mov eax, dword [0x44fac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b00], eax
push 0x437974
mov eax, dword [0x44fac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b04], eax
push 0x43798c
mov eax, dword [0x44fac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b08], eax
push 0x4379a0
mov eax, dword [0x44fac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b0c], eax
push 0x4379b8
mov eax, dword [0x44fac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b10], eax
push 0x4379d0
mov eax, dword [0x44fac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b14], eax
push 0x4379ec
mov eax, dword [0x44fac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b18], eax
push 0x4379f8
mov eax, dword [0x44fac8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43790d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43b7c0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040493c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43b80f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404bac
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442fb8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x443008]
test si, 4
je 0x442fcc
or bl, 1
test si, 8
je 0x442fd6
or bl, 4
test si, 1
je 0x442fe0
or bl, 8
test si, 2
je 0x442fea
or bl, 0x10
test si, 0x10
je 0x442ff4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x443003
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44300c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x443044]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x443025
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x443034
or bl, 4
test esi, 0x20000000
je 0x44303f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x449708
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44971a
add esp, 0xfffffff0
call fcn.00403ee8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419d9c
mov eax, dword [0x44fdcc]
mov dword [eax + 4], ebx
mov dword [eax], 0x449aac
mov eax, dword [0x44fdd8]
mov dword [eax + 4], ebx
mov dword [eax], 0x449ab8
mov eax, ebx
call fcn.00449ac4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411fb4]
call fcn.00403b98
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411fb4]
call fcn.00403b98
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411fb4]
call fcn.00403b98
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411fb4]
call fcn.00403b98
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411fb4]
call fcn.00403b98
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x445edc
push eax
push 0
push 0
mov eax, dword [0x44ff04]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b7c4]
call fcn.0041cc2c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b7c4]
call fcn.0041cc2c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b7c4]
call fcn.0041cc2c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00449f14
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449ddc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449ddc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449ddc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x449857
call fcn.00403f40
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x449bc0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x449d6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x449d4c
mov dl, 1
mov eax, dword [0x4123d0]
call fcn.00403b98
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040493c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x449d3b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00437b00
test al, al
je 0x449d2e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x449d7c
lea eax, [ebp - 0x254]
call fcn.004093f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x449d2e
xor eax, eax
push ebp
push 0x449d27
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x449db4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x449d10
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bac
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x449d10
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449d2e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x449c31
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415f34
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449d72
lea eax, [ebp - 0x260]
call fcn.0040493c
ret

Function at 0x44a6b4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x451b40]
cmp byte [eax + 0xa5], 0
jne 0x44a725
cmp dword [0x451b58], 0
jne 0x44a6e6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a670
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x451b58], eax
cmp dword [0x451b54], 0
jne 0x44a701
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x451b54], eax
cmp dword [0x451b5c], 0
jne 0x44a725
push esp
push 0
push 0
push 0x44a614
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x451b5c], eax
pop edx
ret
Function at 0x44adb8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x451b40]
cmp dword [eax + 0x30], 0
je 0x44ae62
cmp dword [ebx + 0x94], 0
jne 0x44ae5c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44ad48
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44ae5c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44ae22
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44ae5c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414330
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44ae31
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b9c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44b9f5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a2c
jmp 0x44ba02
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404990
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c990
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c9d1
mov eax, esi
call fcn.004332b8
test al, al
je 0x44c9d1
mov eax, dword [ebx + 0x84]
call fcn.00433058
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c9d1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00433058
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44d36c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404dec
mov eax, dword [ebp - 8]
call fcn.00404dec
mov eax, dword [ebp + 8]
call fcn.00404dec
xor eax, eax
push ebp
push 0x44d411
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404dfc
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov eax, dword [ebp + 8]
call fcn.00404bfc
push eax
mov eax, dword [ebp + 8]
call fcn.00404dfc
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00404dfc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x44d3e5
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d418
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404960
lea eax, [ebp + 8]
call fcn.0040493c
ret
Function at 0x44d424
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404dec
mov eax, dword [ebp - 8]
call fcn.00404dec
mov eax, dword [ebp + 0xc]
call fcn.00404dec
xor eax, eax
push ebp
push 0x44d506
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00404990
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00404dfc
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44d4e3
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404dfc
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44d4da
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00404f88
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.00404dfc
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00404f88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d50d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404960
lea eax, [ebp + 0xc]
call fcn.0040493c
ret
Function at 0x44dfd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404dfc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44dfe9
test al, 0x10
jne 0x44dfed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x44e07c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dec
xor eax, eax
push ebp
push 0x44e104
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040493c
lea eax, [ebp - 0x109]
xor ecx, ecx
mov edx, 0x105
call fcn.00403444
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x109]
push eax
mov eax, dword [ebp - 4]
call fcn.00404dfc
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
test ebx, ebx
jbe 0x44e0ee
mov eax, esi
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e10b
lea eax, [ebp - 4]
call fcn.0040493c
ret

Function at 0x44e254
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x105
call fcn.00403444
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404bac
add esp, 0x108
pop ebx
ret
Function at 0x432f00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
jmp 0x432f1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x432f21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x432f10
mov eax, 1
add ebx, ebx
jne 0x432f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x432f28
jne 0x432f44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x432f28
xor ecx, ecx
sub eax, 3
jb 0x432f58
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x432fca
mov ebp, eax
add ebx, ebx
jne 0x432f63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x432f70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x432f94
inc ecx
add ebx, ebx
jne 0x432f80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x432f75
jne 0x432f91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x432f75
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x432fb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x432fa5
jmp 0x432f16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x432fb4
add edi, ecx
jmp 0x432f16
pop esi
mov edi, esi
mov ecx, 0x35f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x432fd2
cmp byte [edi], 6
jne 0x432fd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x432fd7
lea edi, [esi + 0x30000]
mov eax, dword [edi]
or eax, eax
je 0x43304f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x33fcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x34008]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x433004
mov ecx, edi
jns 0x433033
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x34010]
or eax, eax
je 0x433049
mov dword [ebx], eax
add ebx, 4
jmp 0x433021
call dword [esi + 0x3400c]
mov ebp, dword [esi + 0x34014]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x433083
sub esp, 0xffffff80
jmp 0x403670
Function at 0x100036e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x118
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
cmp eax, 0x26
jne 0x10003910
cmp byte [ebx], 0x7b
jne 0x10003910
cmp byte [ebx + 9], 0x2d
jne 0x10003910
cmp byte [ebx + 0xe], 0x2d
jne 0x10003910
cmp byte [ebx + 0x13], 0x2d
jne 0x10003910
cmp byte [ebx + 0x18], 0x2d
jne 0x10003910
cmp byte [ebx + 0x25], 0x7d
jne 0x10003910
mov eax, 1
lea ecx, [eax - 9]
cmp ecx, 0x1c
ja 0x100038e8
mov edi, 1
shl edi, cl
and edi, 0x8421
jne 0x10003908
cmp ecx, 0x1c
jne 0x100038e8
test byte [0x10022028], 8
jne 0x10003920
lea edx, [ebp - 0x10c]
xor eax, eax
mov ecx, 0x40
mov edi, edx
rep stosd dword es:[edi], eax
movzx eax, word [0x10024cb0]
mov byte [ebp - 0xd3], 9
lea ecx, [ebx + 1]
mov dword [ebp - 0xdb], 0x4030201
mov dword [ebp - 0xd7], 0x8070605
mov dword [ebp - 0xcb], 0xd0c0b0a
mov dword [ebp - 0xab], 0xd0c0b0a
mov word [ebp - 0xc7], ax
mov word [ebp - 0xa7], ax
mov eax, 4
movzx edx, byte [ecx]
movzx edi, byte [ecx + 1]
add ecx, 2
movzx edx, byte [ebp + edx - 0x10c]
shl edx, 4
or dl, byte [ebp + edi - 0x10c]
mov byte [esi + eax - 1], dl
sub eax, 1
jne 0x100037d4
movzx edx, byte [ebx + 0xa]
movzx ecx, byte [ebx + 0xb]
movzx edx, byte [ebp + edx - 0x10c]
shl edx, 4
or dl, byte [ebp + ecx - 0x10c]
mov byte [esi + 5], dl
movzx edx, byte [ebx + 0xc]
movzx ecx, byte [ebx + 0xd]
movzx edx, byte [ebp + edx - 0x10c]
shl edx, 4
or dl, byte [ebp + ecx - 0x10c]
mov byte [esi + 4], dl
movzx edx, byte [ebx + 0xf]
movzx ecx, byte [ebx + 0x10]
movzx edx, byte [ebp + edx - 0x10c]
shl edx, 4
or dl, byte [ebp + ecx - 0x10c]
mov byte [esi + 7], dl
movzx edx, byte [ebx + 0x11]
movzx ecx, byte [ebx + 0x12]
movzx edx, byte [ebp + edx - 0x10c]
shl edx, 4
or dl, byte [ebp + ecx - 0x10c]
mov byte [esi + 6], dl
movzx edx, byte [ebx + 0x14]
movzx ecx, byte [ebx + 0x15]
movzx edx, byte [ebp + edx - 0x10c]
shl edx, 4
or dl, byte [ebp + ecx - 0x10c]
mov byte [esi + 8], dl
movzx edx, byte [ebx + 0x16]
movzx ecx, byte [ebx + 0x17]
movzx edx, byte [ebp + edx - 0x10c]
shl edx, 4
or dl, byte [ebp + ecx - 0x10c]
mov byte [esi + 9], dl
lea esi, [esi]
nop
movzx edx, byte [ebx + eax*2 + 0x19]
movzx ecx, byte [ebx + eax*2 + 0x1a]
movzx edx, byte [ebp + edx - 0x10c]
shl edx, 4
or dl, byte [ebp + ecx - 0x10c]
mov byte [esi + eax + 0xa], dl
add eax, 1
cmp eax, 6
jne 0x100038b0
add esp, 0x118
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [ebx + eax]
mov edi, ecx
and edi, 0xffffffdf
sub edi, 0x41
mov edx, edi
cmp dl, 5
jbe 0x10003908
sub ecx, 0x30
cmp cl, 9
ja 0x10003910
lea esi, [esi]
nop
add eax, 1
jmp 0x10003742
add esp, 0x118
mov eax, 0x800401f3
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str._s_____p_n
mov dword [esp + 8], str.AVIFILE_CLSIDFromString
mov dword [esp + 4], 0x10022028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10003777
Function at 0x10020370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100203c8
cmp byte [esi + ebx - 1], 0xa
je 0x1002039c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100350c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10020970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x100350d4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10020b30
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x100350d4]
movzx eax, al
bt eax, esi
jae 0x10020b90
mov ecx, dword [0x100350c4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10020a35
test byte [0x100220c8], 8
jne 0x10020ad0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100220d8], 8
jne 0x10020a80
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10020a04
cmp esi, 3
jbe 0x10020a40
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1002dbe0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10020a04
mov ecx, dword [0x100350d4]
test ecx, ecx
je 0x10020b70
mov dword [esp], 0x100220d8
call dword [0x100350d4]
test al, 8
je 0x100209db
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x100209db
mov ebx, dword [0x100350d4]
test ebx, ebx
je 0x10020b50
mov dword [esp], 0x100220c8
call dword [0x100350d4]
test al, 8
je 0x100209c6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x100209ce
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100350d4
call sym._load_func.part.0
jmp 0x1002098d
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100350d4
call sym._load_func.part.0
jmp 0x10020ada
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100350d4
call sym._load_func.part.0
jmp 0x10020a8e
mov eax, 0xffffffff
jmp 0x10020a35