joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1149f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1149ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x114a035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.01149e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x1149fc5
mov edi, 0x11648b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x114a035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.01149e00
add edi, 4
add esp, 0xc
cmp edi, 0x11648c0
jb 0x114a000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x114a070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.01150082
mov esi, eax
add esp, 8
test esi, esi
je 0x114a107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x114a102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.0114f946
add esp, 8
test eax, eax
je 0x114a0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x114a0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0114f946
add esp, 8
test eax, eax
jne 0x114a0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x114a102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x114af10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x115f9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x114b002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0114edff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x114b002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.011466e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0114f20b
push 0x10
call fcn.0114f1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x114afc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0113b1c0
jmp 0x114afc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0114ab80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x114aff0
mov ecx, edi
call fcn.0113b2c0
push edi
call fcn.0114f1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x114b021
inc ebx
cmp ebx, 0x20
jb 0x114af3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x114c250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1160808
push 0x1150288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x114c329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x114c329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0114f1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x114c329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x114c329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x114c32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0114c351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x114cd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x114cd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x114cd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x114cd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x114cd94
push eax
push esi
call fcn.0114f20b
add esp, 8
pop esi
ret 0x10

Function at 0x114cda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x114ce22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x114ce15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x1165320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0114edff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x114cdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x114ce30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x114cec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x114ceb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x1165320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0114edff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x114ceab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x114ce6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x114d000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x114d131
push esi
call fcn.01150145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0113f080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x114d131
push 0
push ebp
call fcn.0113f3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0113f260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x114d08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0113f2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x114d121
push 0x1165918
push edi
call fcn.0114e3f0
push eax
push ebx
push esi
call fcn.0114cf60
push 0x11658f8
push edi
call fcn.0114e3f0
push eax
push ebx
push esi
call fcn.0114cf60
push 0x11658d8
push edi
call fcn.0114e3f0
push eax
push ebx
push esi
call fcn.0114cf60
push 0x11658c0
push edi
call fcn.0114e3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0114cf60
push 0x11658a0
push edi
call fcn.0114e3f0
push eax
push ebx
push esi
call fcn.0114cf60
push 0x1165888
push edi
call fcn.0114e3f0
push eax
push ebx
push esi
call fcn.0114cf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x114e1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0114e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0114e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0114e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0114e140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x114ebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x114ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x116087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x114ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x114ec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401f35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x485d60]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f99
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402630
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402ef5
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f68
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069ff
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.00403895
push eax
call fcn.00403863
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402ef5
jmp 0x401f9b
Function at 0x41834a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407940
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414745
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41838c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421760
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x485958]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418770
mov ecx, dword [esi*4 + 0x485958]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4184e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184e1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4184e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418770
add esp, 0x14
test edx, edx
jl 0x4184e1
jg 0x418457
test eax, eax
jb 0x4184e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184e1
jl 0x418471
cmp dword [ebp - 0x1008], eax
ja 0x4184e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41848f
test ebx, ebx
je 0x4184c8
cmp ecx, edi
jae 0x4184c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4184a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184b5
cmp byte [ecx + 1], 0xa
jne 0x4184b5
inc ecx
jmp 0x4184b5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41848f
cmp edx, ebx
jne 0x41848f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069ff
leave
ret
Function at 0x41eada
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x485958]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41eb1a
cmp byte [ebx], 0xa
jne 0x41eb1a
or byte [eax + edi + 0x28], 4
jmp 0x41eb1f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec1d
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebff
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb4e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb73
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb7d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41eb30
jmp 0x41ec1d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ebfa
cmp dword [ebp - 0xc], 0
je 0x41ebfa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x485958]
test byte [eax + edi + 0x28], 0x48
je 0x41ebd4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebbf
mov byte [esi], dl
jmp 0x41ebd0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485958]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec1d
cmp byte [ebp - 1], 0xa
jne 0x41ebe3
cmp esi, ebx
jne 0x41ebe3
mov byte [esi], 0xa
jmp 0x41ec1c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec1d
mov byte [esi], 0xd
jmp 0x41ec1c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x485958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec19
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec1d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec26
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x485958]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ec69
cmp word [esi], dx
jne 0x41ec69
or byte [edi + eax + 0x28], 4
jmp 0x41ec6e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41edc1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41eda1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ecb0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ece6
cmp eax, edx
jae 0x41ecf2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ec88
jmp 0x41edc1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ed9d
cmp dword [ebp - 0x14], 0
je 0x41ed9d
mov eax, dword [ebx*4 + 0x485958]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed75
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed3e
mov word [esi], cx
jmp 0x41ed71
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x485958]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x485958]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x485958]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edc1
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed86
cmp esi, dword [ebp + 0xc]
jne 0x41ed86
mov word [esi], bx
jmp 0x41edbe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edc1
push 0xd
jmp 0x41edba
mov ecx, dword [ebx*4 + 0x485958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edb8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edc1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x407280
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x12
call sub.libgdkglext_win32_1.0_0.dll_gdk_gl_config_new_by_mode
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4072d9
push str._n_Cannot_find_the_double_buffered_visual._n
call sub.libglib_2.0_0.dll_g_print
add esp, 4
push str._n_Trying_single_buffered_visual._n
call sub.libglib_2.0_0.dll_g_print
add esp, 4
push 0x10
call sub.libgdkglext_win32_1.0_0.dll_gdk_gl_config_new_by_mode
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4072d9
push str._No_appropriate_OpenGL_capable_visual_found._n
call sub.libglib_2.0_0.dll_g_print
add esp, 4
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x408b90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.glut32.dll_glutGameModeString]
push 1
call dword [sym.imp.glut32.dll_glutGameModeGet]
test eax, eax
je 0x408bb8
call dword [sym.imp.glut32.dll_glutEnterGameMode]
mov eax, 1
jmp 0x408bce
push str.smyrna_cannot_initialize_requested_screen_resolution_and_rate__n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.MSVCR90.dll_exit]
pop ebp
ret
Function at 0x40acb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.:eKf:txvV_
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00427740
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40adb7
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, 0x3f
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x37
ja case.0x40acfb.1
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x40adf0]
jmp dword [edx*4 + 0x40add8]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x324], 1
jmp case.0x40acfb.1
mov byte [0x4b8080], 1
jmp case.0x40acfb.1
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x394], 1
mov edx, dword [0x4b8f14]
push edx
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x398], eax
jmp case.0x40acfb.1
mov edx, dword [0x493004]
push edx
mov eax, dword [0x493000]
push eax
mov ecx, dword [0x492ffc]
push ecx
push 0x493014
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x14
push 0
call dword [sym.imp.MSVCR90.dll_exit]
jmp case.0x40acfb.1
cmp dword [0x4b8f10], 0x3f
jne 0x40ad93
push 0
call fcn.0040ae30
add esp, 4
jmp case.0x40acfb.1
mov edx, dword [0x4b8f10]
push edx
push str.smyrna:_option___c_unrecognized___ignored_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
jmp 0x40acb6
mov eax, dword [0x4a8264]
cmp eax, dword [ebp + 8]
jge 0x40add1
mov ecx, dword [0x4a8264]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
jmp 0x40add3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40ae30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x20
push eax
mov eax, dword [str.Usage:_smyrns___v____file__n___f_WxH:bits_rate____________full_screen_mode_n___e___________draw_edges_as_splines_if_available_n___v___________verbose_n_______________print_usage_n]
push eax
call dword [sym.imp.MSVCR90.dll_fputs]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_exit]
pop ebp
ret

Function at 0x40b020
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret