joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402660
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2008
call fcn.00414ff0
mov eax, dword [0x433dc0]
xor eax, esp
mov dword [esp + 0x2004], eax
cmp dword [esp + 0x200c], 0
je 0x40279d
push 0x1ffe
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.00414040
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [edi + 0x248]
push ecx
push str._s__X_:
lea edx, [esp + 0x10]
push 0x1000
push edx
call fcn.0041142e
mov edx, dword [esp + 0x2020]
lea ecx, [esp + 0x2024]
push ecx
push edx
mov ecx, 0x1000
sub ecx, eax
push ecx
lea edx, [esp + eax*2 + 0x24]
push edx
call fcn.00412350
push 0x42e32c
lea eax, [esp + 0x2c]
push 0x1000
push eax
call fcn.00411940
lea eax, [edi + 0x40]
add esp, 0x30
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402702
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub eax, edx
sar eax, 1
push esi
je 0x402737
lea esi, [edi + 4]
push esi
call ebx
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.004025d0
push esi
call ebp
lea eax, [esp + 0x10]
xor edx, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402740
sub eax, esi
sar eax, 1
add eax, 0xfffffffe
je 0x402786
cmp word [esp + edx*2 + 0x10], 0xa
jne 0x402763
mov word [esp + edx*2 + 0x10], 0x20
lea eax, [esp + 0x10]
add edx, 1
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402770
sub eax, esi
sar eax, 1
add eax, 0xfffffffe
cmp edx, eax
jb 0x402754
lea esi, [edi + 4]
push esi
call ebx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.004112e9
add esp, 0x2008
ret

Function at 0x404c30
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp di, si
movzx eax, ax
jne 0x404c94
cmp di, ax
jne 0x404c94
xor eax, eax
movzx edx, di
mov ecx, 0x435098
jmp 0x404c70
cmp dword [ecx], edx
je 0x404c86
add eax, 1
add ecx, 0x10
cmp eax, 0x26
jb 0x404c70
movzx eax, di
pop edi
pop esi
pop ebx
ret
pop edi
shl eax, 4
movzx eax, word [eax + 0x43509c]
pop esi
pop ebx
ret
xor eax, eax
movzx edx, bx
mov ecx, 0x435098
mov edi, edi
cmp dword [ecx], edx
je 0x404c86
add eax, 1
add ecx, 0x10
cmp eax, 0x26
jb 0x404ca0
pop edi
pop esi
movzx eax, bx
pop ebx
ret
Function at 0x405a9b
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x433dc0]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x405b39
push 0x42a9b4
push 4
push eax
call fcn.004118d4
push eax
call fcn.004020b0
add esp, 0x10
push ebx
push edi
call fcn.00411c66
mov edi, dword [eax]
call fcn.00411c66
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0041144a
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00411c66
cmp dword [eax], ebx
je 0x405b50
call fcn.00411c66
push dword [eax]
call fcn.00405a2b
pop ecx
jmp 0x405b57
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x405aea
jmp 0x405bc9
call fcn.00411c66
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x405bc5
cmp dword [ebp - 0x40], esi
jae 0x405bc5
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00414040
add esp, 0xc
push 0x42a714
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x405bb7
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x405bb7
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x405bb7
push ebx
push ebx
push esi
jmp 0x405bbd
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x405bc7
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.004112e9
add ebp, 0x1f4
leave
ret
Function at 0x40e71e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40e74c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40e76a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040e688
jmp 0x40e76a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40e76a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040e688
test edi, edi
mov eax, edi
jne 0x40e754
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x437700]
test ecx, ecx
je 0x40e82d
jmp 0x40e71d
ret 8

Function at 0x4112e9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433dc0]
jne 0x4112f3
repz ret
jmp fcn.00416601
Function at 0x415412
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x433de0]
je 0x41542d
inc edi
cmp edi, 0x17
jb 0x41541e
cmp edi, 0x17
jae 0x4155ad
push ebp
push 3
call fcn.0041ee53
cmp eax, 1
pop ecx
je 0x415579
push 3
call fcn.0041ee53
test eax, eax
pop ecx
jne 0x415461
cmp dword [0x433c24], 1
je 0x415579
cmp ebx, 0xfc
je 0x4155ac
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4377c0
push ebp
call fcn.0041b5a7
add esp, 0xc
test eax, eax
je 0x415497
push esi
push esi
push esi
push esi
push esi
call fcn.004125f7
add esp, 0x14
push 0x104
mov esi, 0x4377d9
push esi
push 0
mov byte [0x4378dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4154db
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041b5a7
add esp, 0xc
test eax, eax
je 0x4154db
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004125f7
add esp, 0x14
push esi
call fcn.0041b610
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x415520
push esi
call fcn.0041b610
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x437ad4
push 0x42c314
sub ecx, eax
push ecx
push eax
call fcn.0041eda0
add esp, 0x14
test eax, eax
je 0x415520
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004125f7
add esp, 0x14
jmp 0x415522
xor esi, esi
push 0x42c310
push ebx
push ebp
call fcn.0041ed2f
add esp, 0xc
test eax, eax
je 0x415542
push esi
push esi
push esi
push esi
push esi
call fcn.004125f7
add esp, 0x14
push dword [edi*8 + 0x433de4]
push ebx
push ebp
call fcn.0041ed2f
add esp, 0xc
test eax, eax
je 0x415564
push esi
push esi
push esi
push esi
push esi
call fcn.004125f7
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041eb72
add esp, 0xc
jmp 0x4155ac
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4155ac
cmp ebp, 0xffffffff
je 0x4155ac
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x433de4]
push dword [esi]
call fcn.0041b610
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41eb72
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00415fd6
xor ebx, ebx
cmp dword [0x4382c0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41ec48
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41ed28
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41ed28
push eax
call fcn.00415f68
mov dword [esp], 0x42c5dc
push edi
mov dword [0x4382c0], eax
call esi
push eax
call fcn.00415f68
mov dword [esp], 0x42c5c8
push edi
mov dword [0x4382c4], eax
call esi
push eax
call fcn.00415f68
mov dword [0x4382c8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004145a7
test eax, eax
pop ecx
pop ecx
je 0x41ec16
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004125f7
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41ec48
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00415f68
cmp eax, ebx
pop ecx
mov dword [0x4382d0], eax
je 0x41ec48
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415f68
pop ecx
mov dword [0x4382cc], eax
mov eax, dword [0x4382cc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41eccd
cmp dword [0x4382d0], ecx
je 0x41eccd
push eax
call fcn.00415fdf
push dword [0x4382d0]
mov esi, eax
call fcn.00415fdf
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41eccd
cmp edi, ebx
je 0x41eccd
call esi
cmp eax, ebx
je 0x41ec9a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ec9a
test byte [ebp - 0x18], 1
jne 0x41eccd
lea eax, [ebp - 0x10]
push eax
call fcn.004145de
test eax, eax
pop ecx
je 0x41ecb5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004125f7
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41ecc4
or dword [ebp + 0x10], 0x200000
jmp 0x41ed08
or dword [ebp + 0x10], 0x40000
jmp 0x41ed08
mov eax, dword [0x4382c4]
cmp eax, dword [ebp - 8]
je 0x41ed08
push eax
call fcn.00415fdf
cmp eax, ebx
pop ecx
je 0x41ed08
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41ed08
mov eax, dword [0x4382c8]
cmp eax, dword [ebp - 8]
je 0x41ed08
push eax
call fcn.00415fdf
cmp eax, ebx
pop ecx
je 0x41ed08
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4382c0]
call fcn.00415fdf
cmp eax, ebx
pop ecx
je 0x41ed28
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ed2a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422627
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x422654
call fcn.00411c79
mov dword [eax], esi
call fcn.00411c66
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004126f3
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x422630
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x422683
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411c8c
pop ecx
call fcn.00411c66
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4226aa
test al, 1
je 0x4226aa
test byte [esp + 0xc], 2
je 0x4226aa
call fcn.00411c79
mov dword [eax], 5
call fcn.00411c66
mov dword [eax], 0xd
jmp 0x42267a
xor eax, eax
pop esi
ret
Function at 0x42814c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x433dc0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004280e1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00414040
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42819b
cmp dword [ebp - 0x1c], 5
jb 0x4281b3
jmp 0x4281af
cmp dword [ebp - 0x10], 1
jne 0x4281b3
cmp dword [ebp - 0x1c], 4
ja 0x4281af
jne 0x4281b3
cmp dword [ebp - 0x18], 0
jbe 0x4281b3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42d7f4
call fcn.00427fb5
test eax, eax
jge 0x4281d4
mov byte [0x438484], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004112e9
add ebp, 0x78
leave
ret
Function at 0x1007cb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xac6000]
push edi
jmp 0x1007cca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1007cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1007cc0
mov eax, 1
add ebx, ebx
jne 0x1007ce3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1007cf4
jne 0x1007d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1007d13
dec eax
add ebx, ebx
jne 0x1007d00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1007cd8
add ebx, ebx
jne 0x1007d0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1007d65
xor ecx, ecx
sub eax, 3
jb 0x1007d2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1007d9a
sar eax, 1
mov ebp, eax
jmp 0x1007d36
add ebx, ebx
jne 0x1007d36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1007d04
inc ecx
add ebx, ebx
jne 0x1007d44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1007d04
add ebx, ebx
jne 0x1007d51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1007d46
jne 0x1007d62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1007d46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1007d84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1007d76
jmp 0x1007cc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1007d84
add edi, ecx
jmp 0x1007cc6
pop esi
mov edi, esi
mov ecx, 0xfda5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1007da2
cmp byte [edi], 0x3e
jne 0x1007da2
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 0x1007da7
lea edi, [esi + 0xc02000]
mov eax, dword [edi]
or eax, eax
je 0x1007e1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc2d878]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc2da1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1007dd4
mov ecx, edi
jns 0x1007e03
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 + 0xc2da24]
or eax, eax
je 0x1007e19
mov dword [ebx], eax
add ebx, 4
jmp 0x1007df1
call dword [esi + 0xc2da20]
mov ebp, dword [esi + 0xc2da28]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x1007e53
sub esp, 0xffffff80
jmp 0x6fa54e
Function at 0x401140
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push 0x411d58
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x411d5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.CLRCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], 0
test eax, eax
je 0x4011d2
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0x411dfc
push 0x411e0c
call eax
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4011ca
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x411e1c
push str.v4.0.30319
push ecx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4011ca
mov eax, dword [ecx]
lea edx, [esp + 4]
push edx
push 0x411dcc
push 0x411dec
push ecx
call dword [eax + 0x24]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4011f1
lea eax, [esp + 4]
push eax
push 0x411dcc
push 0x411dec
push 0
push 0
push 0
call dword [sym.imp.mscoree.dll_CorBindToRuntimeEx]
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x28]
mov eax, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push 0x411ddc
push eax
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
push str._RESOLVER
call fcn.00401010
mov edx, dword [esp + 0x10]
add esp, 4
mov ecx, dword [ebp + 8]
push str._ENTRYPOINT
call fcn.00401010
add esp, 4
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x40f2a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x28
fild dword [esp + 0x2c]
push esi
push str..Morrowind.ini
push 1
fmul dword [0x746498]
fld qword [0x746610]
push str.Clip_One_To_One_Float
fsin
push str.General
mov esi, ecx
fxch st(1)
fxch st(1)
fdivp st(1)
fstp dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
fld qword [0x746610]
test eax, eax
je 0x40f2fa
fcos
sub esp, 8
fmul dword [esp + 0xc]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
add esp, 8
jmp 0x40f300
fcos
fmul dword [esp + 4]
mov ecx, dword [esi + 0x50]
fstp dword [esi + 0xa4]
mov eax, dword [esi + 0xa4]
push eax
call fcn.00408760
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x128]
test eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
je 0x40f349
mov edx, dword [esi + 0x124]
lea ecx, [esi + 0x124]
lea eax, [esp + 0x14]
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 0x154]
test eax, eax
je 0x40f367
mov edx, dword [esi + 0x150]
lea ecx, [esi + 0x150]
lea eax, [esp + 0x14]
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 0x180]
test eax, eax
je 0x40f385
mov edx, dword [esi + 0x17c]
lea ecx, [esi + 0x17c]
lea eax, [esp + 0x14]
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x40f3a3
mov edx, dword [esi + 0xf8]
lea ecx, [esi + 0xf8]
lea eax, [esp + 0x14]
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 0x1ac]
test eax, eax
je 0x40f3c2
push 0x200
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x1a8]
call fcn.0042eb30
mov eax, dword [esi + 0x230]
test eax, eax
je 0x40f3e1
push 0x100
lea edx, [esp + 0x18]
push edx
lea ecx, [esi + 0x22c]
call fcn.0042eb30
mov eax, dword [esi + 0x2b4]
test eax, eax
je 0x40f3ff
mov eax, dword [esi + 0x2b0]
lea ecx, [esi + 0x2b0]
lea edx, [esp + 0x14]
push edx
call dword [eax + 0x10]
mov ecx, dword [esi + 0x2e4]
test ecx, ecx
je 0x40f4ba
call fcn.00596c50
fld dword [esi + 0xa4]
mov ecx, dword [esi + 0x2e4]
lea eax, [esp + 0x30]
fstp dword [esp + 0xc]
push eax
call fcn.00412820
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
add eax, 0x30
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40f466
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
test edx, edx
mov dword [eax], edx
jne 0x40f466
test ecx, ecx
je 0x40f466
mov edx, dword [ecx]
push 1
call dword [edx]
fld dword [esi + 0xa4]
mov ecx, dword [esi + 0x2e4]
lea eax, [esp + 0x30]
fstp dword [esp + 0xc]
push eax
call fcn.00439790
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
add eax, 0x30
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40f4ba
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
test edx, edx
mov dword [eax], edx
jne 0x40f4ba
test ecx, ecx
je 0x40f4ba
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x40f4cb
mov ecx, esi
call fcn.00411400
mov ecx, dword [esi + 0x184]
test ecx, ecx
pop esi
je 0x40f4e1
push 1
push 0
push 0
call fcn.006eb000
add esp, 0x28
ret 4
Function at 0x48a9e0
Capabilities:
Read .ini file

Disassembly:
push ecx
mov al, byte [0x7c9c9a]
test al, al
push ebp
push esi
push edi
mov edi, ecx
mov ebp, dword [edi + 0xb540]
jne 0x48aac0
push ebx
mov ecx, 0x7cb478
mov byte [0x7c9c9a], 1
call fcn.004d51b0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..Morrowind.ini
push 0x200
mov esi, eax
push esi
push 0x777760
push str.Minimum_Time_Between_Environmental_Sounds
push str.Weather
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [0x78a0b8]
add esp, 4
push str..Morrowind.ini
push 0x200
push esi
push str.10.0
push str.Maximum_Time_Between_Environmental_Sounds
push str.Weather
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [0x78a0bc]
fld dword [0x78a0b8]
add esp, 4
fadd dword [0x746470]
pop ebx
fld dword [0x78a0bc]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x48aa8f
fstp dword [0x78a0bc]
jmp 0x48aa91
fstp st(0)
push 0
call fcn.0047b3b0
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
add esp, 4
fld dword [0x78a0bc]
fsub dword [0x78a0b8]
call sub.MSVCRT.dll__CIfmod
fadd dword [0x78a0b8]
fstp dword [0x78a0c4]
test ebp, ebp
je 0x48abe7
mov ecx, ebp
call fcn.004e22f0
test al, al
je 0x48aae2
mov ecx, ebp
call fcn.004e2320
test al, al
je 0x48abe7
mov ecx, ebp
call fcn.004e28d0
test eax, eax
je 0x48abe7
mov eax, dword [edi + 0xb548]
test eax, eax
je 0x48ab27
mov dword [0x78a0c0], 0
mov ecx, dword [edi + 0xb548]
call fcn.00510b80
test al, al
jne 0x48ac06
mov dword [edi + 0xb548], 0
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, dword [0x7c67dc]
fld dword [eax + 0x2c]
fadd dword [0x78a0c0]
fst dword [0x78a0c0]
fcomp dword [0x78a0c4]
fnstsw ax
test ah, 0x41
jne 0x48ac06
push 0
mov dword [0x78a0c0], 0
call fcn.0047b3b0
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
add esp, 4
fld dword [0x78a0bc]
fsub dword [0x78a0b8]
call sub.MSVCRT.dll__CIfmod
fadd dword [0x78a0b8]
mov ecx, ebp
fstp dword [0x78a0c4]
call fcn.004e28d0
mov ecx, eax
call fcn.00481250
mov esi, eax
test esi, esi
mov dword [edi + 0xb548], esi
je 0x48ac06
mov ecx, dword [0x7c67dc]
mov eax, dword [ecx + 0x34]
xor edx, edx
mov dl, byte [eax + 0x290]
xor ecx, ecx
mov cl, byte [eax + 0x298]
mov eax, 0x10624dd3
push 0
push 0
push 0x3f800000
imul ecx, edx
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push 0
push 0
push esi
mov ecx, edi
call fcn.0048bd40
pop edi
pop esi
pop ebp
pop ecx
ret
mov ecx, dword [edi + 0xb548]
test ecx, ecx
je 0x48ac06
call fcn.00510bc0
mov ecx, dword [edi + 0xb548]
push 0
push ecx
mov ecx, edi
call fcn.0048c0d0
pop edi
pop esi
pop ebp
pop ecx
ret