joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437122
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x450be0]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00437106
cmp dword [esi], 0
mov ebx, eax
je 0x437182
push edi
mov edi, dword [ebp + 0x18]
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.004127da
add esp, 0xc
cmp eax, 1
pop edi
je 0x43719f
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.00436c5b
mov ecx, esi
call fcn.00436d06
jmp 0x43719f
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.00412749
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.00433e39
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040fe88
leave
ret

Function at 0x437e08
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x450be0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x437e57
push edi
call fcn.0043c3f6
mov esi, eax
test esi, esi
je 0x437e7b
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x437e7b
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x443168
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040fe88
leave
ret 0xc

Function at 0x43a136
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x43a16b
cmp edi, dword [esi + 0xc]
jge 0x43a16b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43a16b
cmp edi, dword [eax + 8]
jge 0x43a16b
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x43a16d
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x43a33a
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x43a36e
jmp fcn.00426272
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x43a3e9
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x43a4e2
cmp eax, dword [edi + 0xc]
jge 0x43a4e2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x43a43a
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x43a4cb
cmp dword [ebp + 0xc], ebx
je 0x43a4cb
jmp 0x43a464
push 0x10
call fcn.00439ff3
cmp eax, ebx
je 0x43a450
mov ecx, eax
call fcn.0043a2ee
mov esi, eax
jmp 0x43a452
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x43a47b
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x43a48b
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x43a49d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00426272
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00411b90
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x43a4dd
cmp ecx, dword [esi + 8]
jge 0x43a4dd
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x43a4e3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43b7db
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [ebp + 8], 0x800
mov eax, dword [0x450be0]
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x11c]
jne 0x43b80c
push 0x444260
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x43b81e
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x43b853
lea eax, [ebp - 0x11c]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00412e20
add esp, 0x10
cmp eax, 0xffffffff
je 0x43b853
cmp eax, esi
jae 0x43b853
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x43b855
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040fe88
leave
ret
Function at 0x43b880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x450be0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43b928
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x38], eax
call esi
mov dword [ebp - 0x34], eax
push 4
xor ebx, ebx
jmp 0x43ba2a
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x43b9d8
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43ba2b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43b9cd
cmp dword [ebp - 0x24], 1
jne 0x43b9cd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x444270
push eax
call fcn.004127da
add esp, 0xc
cmp eax, 1
jne 0x43b9cd
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x40], eax
call esi
push 2
mov dword [ebp - 0x3c], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43ba2b
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x43ba2b
lea ecx, [ebp - 0x18]
push ecx
push 0x43b865
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x43ba2b
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x40], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x43ba50
push dword [ebp + edi*4 - 0x40]
mov ecx, dword [ebp - 0x2c]
call fcn.0043b7db
cmp eax, ebx
pop ecx
jne 0x43ba52
inc edi
cmp edi, esi
jl 0x43ba3a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040fe88
leave
ret 4
Function at 0x43ba66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x450ab4
je 0x43bb22
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43bb0a
mov esi, dword [ebx + 4]
jmp 0x43bb04
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43baf4
cmp dword [ebp - 0xc], 4
jne 0x43baf4
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x43baec
or dword [eax + 0x9c], ecx
jmp 0x43baf4
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x43bab8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x43ba9b
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret
Function at 0x43c4af
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x44013c
call fcn.00411740
mov eax, 0x1024
call fcn.0040fe10
mov eax, dword [0x450be0]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 0x102c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1030], esi
mov dword [ebp - 0x1014], edx
je 0x43c5e4
push eax
call fcn.0043c3f6
cmp eax, edi
mov dword [ebp - 0x1020], eax
jne 0x43c518
push dword [ebp - 0x1014]
jmp 0x43c616
call fcn.00428366
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1018], ebx
lea eax, [ebp - 0x1024]
push eax
push edi
lea eax, [ebp - 0x102c]
push eax
push edi
push esi
push dword [ebp - 0x1020]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
mov dword [ebp - 0x1028], eax
jne 0x43c5a1
lea eax, [ebp - 0x1024]
push eax
push dword [ebp - 0x1024]
lea ecx, [ebp - 0x1018]
call fcn.004031b0
push eax
lea eax, [ebp - 0x102c]
push eax
push edi
push dword [ebp - 0x1030]
push dword [ebp - 0x1020]
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x1028], eax
call fcn.00402d00
mov ebx, dword [ebp - 0x1018]
push dword [ebp - 0x1020]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1028], edi
mov ecx, dword [ebp - 0x101c]
jne 0x43c5d7
lea eax, [ebp - 0x1018]
push eax
call fcn.00403180
lea ecx, [ebx - 0x10]
call fcn.004015b0
mov eax, dword [ebp - 0x101c]
jmp 0x43c61f
push dword [ebp - 0x1014]
call fcn.004076b0
jmp 0x43c5c7
cmp edx, edi
jne 0x43c5f2
mov dword [ebp - 0x1014], 0x442ba0
push dword [ecx + 0x64]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push dword [ebp - 0x1014]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, ebx
call fcn.004076b0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040fe88
leave
ret 0x10
Function at 0x43c918
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44021d
call fcn.00411740
sub esp, 0x124
mov eax, dword [0x450be0]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x43ca24
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x43c9f8
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004076b0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0043c918
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004015b0
test bl, bl
jne 0x43c9f8
or dword [ebp - 4], 0xffffffff
jmp 0x43c963
cmp esi, 0x103
je 0x43ca08
cmp esi, 0x3f2
jne 0x43ca18
push dword [edi]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040fe88
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43cd30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x450be0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
call fcn.00412003
mov esi, eax
test esi, esi
pop ecx
je 0x43cdd9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
je 0x43cdcf
push edi
mov edi, SysReAllocStringLen
push ebx
push eax
push esi
mov byte [eax], 0
call fcn.0041316f
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x43cdcd
push 0x105
lea eax, [ebp - 0x10c]
push eax
xor ebx, ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x43cda7
inc ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x43cdcd
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x5c
push esi
call fcn.004130ff
test eax, eax
pop ecx
pop ecx
jne 0x43cd68
pop ebx
pop edi
push esi
call fcn.0040faa6
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040fe88
leave
ret 4
Function at 0x40b000
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
cmp byte [eax + 1], 0
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, ebx
je 0x40b030
pop ebx
pop esi
jmp fcn.00407650
pop ebx
pop esi
jmp fcn.00405c30

Function at 0x40b040
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x30], eax
test esi, esi
je 0x40b160
test ebx, ebx
je 0x40b1d8
cmp esi, ebx
ja 0x40b128
mov dword [esp + 0x38], 0xb9
mov eax, 0xca
mov ebp, 0x69f
mov dword [esp + 0x3c], 0x584
mov edx, esi
shr edx, 8
imul eax, edx
imul edx, dword [esp + 0x38]
add edx, dword [esp + 0x3c]
add eax, ebp
mov ebp, eax
shr ebp, 5
add eax, ebp
cmp edx, eax
jbe 0x40b170
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00409bc0
cmp eax, 0xffffff88
ja 0x40b165
cmp ebx, eax
jbe 0x40b1c8
mov ecx, dword [esp + 0x28]
sub ebx, eax
mov dword [esp + 0x64], edi
mov edx, esi
mov dword [esp + 0x60], ebx
add ecx, eax
mov eax, dword [esp + 0x34]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00407650
mov eax, ebx
xor edx, edx
shl eax, 4
div esi
shl eax, 4
lea edx, [eax + 0x427640]
mov eax, dword [eax + 0x427640]
mov ebp, dword [edx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0xc]
jmp 0x40b0a9
mov eax, 0xffffffba
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], ebp
mov dword [esp + 0x10], eax
mov dword [esp], edi
call fcn.00409180
cmp eax, 0xffffff88
ja 0x40b165
cmp ebx, eax
jbe 0x40b1c8
sub ebx, eax
mov ecx, ebp
mov dword [esp + 0x64], edi
mov edx, esi
mov dword [esp + 0x60], ebx
add ecx, eax
mov eax, dword [esp + 0x34]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00405c30
add esp, 0x4c
mov eax, 0xffffffb8
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x4c
mov eax, 0xffffffec
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41a030
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x428340
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
nop

Function at 0x41a0f0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [esp + 0xc], eax
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str.Usage_:__n
call sub.cygwin1.dll_fwrite
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], str._______s__args___FILE_s_____o_file___n
call sub.cygwin1.dll_fprintf
mov dword [esp + 4], ebx
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x16
mov dword [esp + 4], 1
mov dword [esp], str.FILE____:_a_filename__n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], 1
mov dword [esp], str.__________with_no_FILE__or_when_FILE_is_____read_standard_input_n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xd
mov dword [esp + 4], 1
mov dword [esp], str.Arguments_:__n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x19
mov dword [esp + 4], 1
mov dword [esp], str.__d_____:_decompression__n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x43
mov dword [esp + 4], 1
mov dword [esp], str.__D_DICT:_use_DICT_as_Dictionary_for_compression_or_decompression__n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x3a
mov dword [esp + 4], 1
mov dword [esp], str.__o_file:_result_stored_into__file___only_1_output_file___n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x4e
mov dword [esp + 4], 1
mov dword [esp], str.__f_____:_disable_input_and_output_checks._Allows_overwriting_existing_files__n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x44
mov dword [esp + 4], 1
mov dword [esp], str.__________input_from_console__output_to_stdout__operating_on_links__n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 1
mov dword [esp], str.__________block_devices__etc._n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x41
mov dword [esp + 4], 1
mov dword [esp], str.__rm____:_remove_source_file_s__after_successful_de_compression__n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.__k_____:_preserve_source_file_s___default___n
call sub.cygwin1.dll_fwrite
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x2b
mov dword [esp + 4], 1
mov dword [esp], str.__h__H__:_display_help_long_help_and_exit__n
call sub.cygwin1.dll_fwrite
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x41a640
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
cmp dword [0x426008], 1
jle 0x41a743
call sub.cygwin1.dll___getreent
mov dword [esp + 0x14], str.Yann_Collet
mov dword [esp + 0x10], str.v1.5.2
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], str.zstd_command_line_interface
mov dword [esp + 4], str.__s__i_bits__s__by__s__n
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x426008], 2
jg 0x41a695
add esp, 0x2c
ret
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp + 8], 0x12
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str._supports:_zstd
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputc
cmp dword [0x426008], 3
jle 0x41a691
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x31069
mov dword [esp + 4], str._POSIX_C_SOURCE_defined:__ldL_n
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x31069
mov dword [esp + 4], str._POSIX_VERSION_defined:__ldL__n
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x31069
mov dword [esp + 4], str.PLATFORM_POSIX_VERSION_defined:__ldL_n
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x41a691
call sub.cygwin1.dll___getreent
mov dword [esp + 8], str.1.5.2
mov dword [esp + 4], 0x428ac3
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x41a691

Function at 0x41a770
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
mov eax, dword [0x426008]
test eax, eax
jle 0x41a7a7
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x16
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.Incorrect_parameters__n
call sub.cygwin1.dll_fwrite
cmp dword [0x426008], 1
jg 0x41a7b5
add esp, 0x18
pop ebx
ret
call sub.cygwin1.dll___getreent
mov edx, ebx
mov eax, dword [eax + 0xc]
add esp, 0x18
pop ebx
jmp fcn.0041a0f0